[2025-04-18 00:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:00:05 [end_date_ymd] => 2025-04-18 00:00:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:00:05' and `end` < '2025-04-18 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-04-18 00:00:20] Production.INFO: count ==1559 [2025-04-18 00:00:20] Production.ERROR: pbx CDR StartTime 2025-04-17 21:00:05 - End Time 2025-04-18 00:00:05 [2025-04-18 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931780', 'tblTempUsageDetail_20' ) start [2025-04-18 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931780', 'tblTempUsageDetail_20' ) end [2025-04-18 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931780', 'tblTempVendorCDR_20' ) start [2025-04-18 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931780', 'tblTempVendorCDR_20' ) end [2025-04-18 00:00:20] Production.INFO: ProcessCDR(1,14931780,1,1,2) [2025-04-18 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931780', 'tblTempUsageDetail_20' ) start [2025-04-18 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931780', 'tblTempUsageDetail_20' ) end [2025-04-18 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:00:24] Production.INFO: ==11669== Releasing lock... [2025-04-18 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:00:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:01:05 [end_date_ymd] => 2025-04-18 00:01:05 [RateCDR] => 1 ) [2025-04-18 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:01:05' and `end` < '2025-04-18 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:01:26] Production.INFO: count ==1527 [2025-04-18 00:01:27] Production.ERROR: pbx CDR StartTime 2025-04-17 21:01:05 - End Time 2025-04-18 00:01:05 [2025-04-18 00:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931786', 'tblTempUsageDetail_20' ) start [2025-04-18 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931786', 'tblTempUsageDetail_20' ) end [2025-04-18 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931786', 'tblTempVendorCDR_20' ) start [2025-04-18 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931786', 'tblTempVendorCDR_20' ) end [2025-04-18 00:01:27] Production.INFO: ProcessCDR(1,14931786,1,1,2) [2025-04-18 00:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931786', 'tblTempUsageDetail_20' ) start [2025-04-18 00:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931786', 'tblTempUsageDetail_20' ) end [2025-04-18 00:01:32] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:01:32] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:01:32] Production.INFO: ==11790== Releasing lock... [2025-04-18 00:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:01:32] Production.INFO: 39.75 MB #Memory Used# [2025-04-18 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:02:05 [end_date_ymd] => 2025-04-18 00:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:02:05' and `end` < '2025-04-18 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-04-18 00:02:19] Production.INFO: count ==841 [2025-04-18 00:02:19] Production.ERROR: pbx CDR StartTime 2025-04-17 21:02:05 - End Time 2025-04-18 00:02:05 [2025-04-18 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931791', 'tblTempUsageDetail_20' ) start [2025-04-18 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931791', 'tblTempUsageDetail_20' ) end [2025-04-18 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931791', 'tblTempVendorCDR_20' ) start [2025-04-18 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931791', 'tblTempVendorCDR_20' ) end [2025-04-18 00:02:19] Production.INFO: ProcessCDR(1,14931791,1,1,2) [2025-04-18 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931791', 'tblTempUsageDetail_20' ) start [2025-04-18 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931791', 'tblTempUsageDetail_20' ) end [2025-04-18 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:02:22] Production.INFO: ==11901== Releasing lock... [2025-04-18 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:02:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:03:06 [end_date_ymd] => 2025-04-18 00:03:06 [RateCDR] => 1 ) [2025-04-18 00: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-04-17 21:03:06' and `end` < '2025-04-18 00: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-04-18 00:03:19] Production.INFO: count ==839 [2025-04-18 00:03:19] Production.ERROR: pbx CDR StartTime 2025-04-17 21:03:06 - End Time 2025-04-18 00:03:06 [2025-04-18 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931796', 'tblTempUsageDetail_20' ) start [2025-04-18 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931796', 'tblTempUsageDetail_20' ) end [2025-04-18 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931796', 'tblTempVendorCDR_20' ) start [2025-04-18 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931796', 'tblTempVendorCDR_20' ) end [2025-04-18 00:03:19] Production.INFO: ProcessCDR(1,14931796,1,1,2) [2025-04-18 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931796', 'tblTempUsageDetail_20' ) start [2025-04-18 00:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931796', 'tblTempUsageDetail_20' ) end [2025-04-18 00:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:03:24] Production.INFO: ==12004== Releasing lock... [2025-04-18 00:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:03:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:04:05 [end_date_ymd] => 2025-04-18 00:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:04:05' and `end` < '2025-04-18 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-04-18 00:04:20] Production.INFO: count ==835 [2025-04-18 00:04:21] Production.ERROR: pbx CDR StartTime 2025-04-17 21:04:05 - End Time 2025-04-18 00:04:05 [2025-04-18 00:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931801', 'tblTempUsageDetail_20' ) start [2025-04-18 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931801', 'tblTempUsageDetail_20' ) end [2025-04-18 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931801', 'tblTempVendorCDR_20' ) start [2025-04-18 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931801', 'tblTempVendorCDR_20' ) end [2025-04-18 00:04:21] Production.INFO: ProcessCDR(1,14931801,1,1,2) [2025-04-18 00:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931801', 'tblTempUsageDetail_20' ) start [2025-04-18 00:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931801', 'tblTempUsageDetail_20' ) end [2025-04-18 00:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:04:26] Production.INFO: ==12107== Releasing lock... [2025-04-18 00:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:04:26] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:05:06 [end_date_ymd] => 2025-04-18 00:05:06 [RateCDR] => 1 ) [2025-04-18 00: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-04-17 21:05:06' and `end` < '2025-04-18 00: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-04-18 00:05:30] Production.INFO: count ==832 [2025-04-18 00:05:31] Production.ERROR: pbx CDR StartTime 2025-04-17 21:05:06 - End Time 2025-04-18 00:05:06 [2025-04-18 00:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931806', 'tblTempUsageDetail_20' ) start [2025-04-18 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931806', 'tblTempUsageDetail_20' ) end [2025-04-18 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931806', 'tblTempVendorCDR_20' ) start [2025-04-18 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931806', 'tblTempVendorCDR_20' ) end [2025-04-18 00:05:31] Production.INFO: ProcessCDR(1,14931806,1,1,2) [2025-04-18 00:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931806', 'tblTempUsageDetail_20' ) start [2025-04-18 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931806', 'tblTempUsageDetail_20' ) end [2025-04-18 00:05:34] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:05:34] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:05:34] Production.INFO: ==12226== Releasing lock... [2025-04-18 00:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:05:34] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:06:05 [end_date_ymd] => 2025-04-18 00:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:06:05' and `end` < '2025-04-18 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-04-18 00:06:29] Production.INFO: count ==839 [2025-04-18 00:06:30] Production.ERROR: pbx CDR StartTime 2025-04-17 21:06:05 - End Time 2025-04-18 00:06:05 [2025-04-18 00:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931811', 'tblTempUsageDetail_20' ) start [2025-04-18 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931811', 'tblTempUsageDetail_20' ) end [2025-04-18 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931811', 'tblTempVendorCDR_20' ) start [2025-04-18 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931811', 'tblTempVendorCDR_20' ) end [2025-04-18 00:06:30] Production.INFO: ProcessCDR(1,14931811,1,1,2) [2025-04-18 00:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931811', 'tblTempUsageDetail_20' ) start [2025-04-18 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931811', 'tblTempUsageDetail_20' ) end [2025-04-18 00:06:33] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:06:33] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:06:33] Production.INFO: ==12344== Releasing lock... [2025-04-18 00:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:06:33] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:07:05 [end_date_ymd] => 2025-04-18 00:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:07:05' and `end` < '2025-04-18 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-04-18 00:07:29] Production.INFO: count ==842 [2025-04-18 00:07:29] Production.ERROR: pbx CDR StartTime 2025-04-17 21:07:05 - End Time 2025-04-18 00:07:05 [2025-04-18 00:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931816', 'tblTempUsageDetail_20' ) start [2025-04-18 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931816', 'tblTempUsageDetail_20' ) end [2025-04-18 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931816', 'tblTempVendorCDR_20' ) start [2025-04-18 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931816', 'tblTempVendorCDR_20' ) end [2025-04-18 00:07:29] Production.INFO: ProcessCDR(1,14931816,1,1,2) [2025-04-18 00:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931816', 'tblTempUsageDetail_20' ) start [2025-04-18 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931816', 'tblTempUsageDetail_20' ) end [2025-04-18 00:07:33] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:07:33] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:07:33] Production.INFO: ==12463== Releasing lock... [2025-04-18 00:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:07:33] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:08:05 [end_date_ymd] => 2025-04-18 00:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:08:05' and `end` < '2025-04-18 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-04-18 00:08:28] Production.INFO: count ==837 [2025-04-18 00:08:29] Production.ERROR: pbx CDR StartTime 2025-04-17 21:08:05 - End Time 2025-04-18 00:08:05 [2025-04-18 00:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931821', 'tblTempUsageDetail_20' ) start [2025-04-18 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931821', 'tblTempUsageDetail_20' ) end [2025-04-18 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931821', 'tblTempVendorCDR_20' ) start [2025-04-18 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931821', 'tblTempVendorCDR_20' ) end [2025-04-18 00:08:29] Production.INFO: ProcessCDR(1,14931821,1,1,2) [2025-04-18 00:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931821', 'tblTempUsageDetail_20' ) start [2025-04-18 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931821', 'tblTempUsageDetail_20' ) end [2025-04-18 00:08:32] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:08:32] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:08:32] Production.INFO: ==12583== Releasing lock... [2025-04-18 00:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:08:32] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:09:06 [end_date_ymd] => 2025-04-18 00:09:06 [RateCDR] => 1 ) [2025-04-18 00: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-04-17 21:09:06' and `end` < '2025-04-18 00: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-04-18 00:09:27] Production.INFO: count ==833 [2025-04-18 00:09:28] Production.ERROR: pbx CDR StartTime 2025-04-17 21:09:06 - End Time 2025-04-18 00:09:06 [2025-04-18 00:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931826', 'tblTempUsageDetail_20' ) start [2025-04-18 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931826', 'tblTempUsageDetail_20' ) end [2025-04-18 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931826', 'tblTempVendorCDR_20' ) start [2025-04-18 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931826', 'tblTempVendorCDR_20' ) end [2025-04-18 00:09:28] Production.INFO: ProcessCDR(1,14931826,1,1,2) [2025-04-18 00:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931826', 'tblTempUsageDetail_20' ) start [2025-04-18 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931826', 'tblTempUsageDetail_20' ) end [2025-04-18 00:09:31] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:09:31] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:09:31] Production.INFO: ==12703== Releasing lock... [2025-04-18 00:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:09:31] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:10:05 [end_date_ymd] => 2025-04-18 00:10:05 [RateCDR] => 1 ) [2025-04-18 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:10:05' and `end` < '2025-04-18 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:10:19] Production.INFO: count ==829 [2025-04-18 00:10:19] Production.ERROR: pbx CDR StartTime 2025-04-17 21:10:05 - End Time 2025-04-18 00:10:05 [2025-04-18 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931832', 'tblTempUsageDetail_20' ) start [2025-04-18 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931832', 'tblTempUsageDetail_20' ) end [2025-04-18 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931832', 'tblTempVendorCDR_20' ) start [2025-04-18 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931832', 'tblTempVendorCDR_20' ) end [2025-04-18 00:10:19] Production.INFO: ProcessCDR(1,14931832,1,1,2) [2025-04-18 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931832', 'tblTempUsageDetail_20' ) start [2025-04-18 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931832', 'tblTempUsageDetail_20' ) end [2025-04-18 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:10:23] Production.INFO: ==12844== Releasing lock... [2025-04-18 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:10:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:11:05 [end_date_ymd] => 2025-04-18 00:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:11:05' and `end` < '2025-04-18 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-04-18 00:11:18] Production.INFO: count ==823 [2025-04-18 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:11:05 - End Time 2025-04-18 00:11:05 [2025-04-18 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931837', 'tblTempUsageDetail_20' ) start [2025-04-18 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931837', 'tblTempUsageDetail_20' ) end [2025-04-18 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931837', 'tblTempVendorCDR_20' ) start [2025-04-18 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931837', 'tblTempVendorCDR_20' ) end [2025-04-18 00:11:18] Production.INFO: ProcessCDR(1,14931837,1,1,2) [2025-04-18 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931837', 'tblTempUsageDetail_20' ) start [2025-04-18 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931837', 'tblTempUsageDetail_20' ) end [2025-04-18 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:11:21] Production.INFO: ==12934== Releasing lock... [2025-04-18 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:11:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:12:05 [end_date_ymd] => 2025-04-18 00:12:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:12:05' and `end` < '2025-04-18 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-04-18 00:12:18] Production.INFO: count ==818 [2025-04-18 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:12:05 - End Time 2025-04-18 00:12:05 [2025-04-18 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931842', 'tblTempUsageDetail_20' ) start [2025-04-18 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931842', 'tblTempUsageDetail_20' ) end [2025-04-18 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931842', 'tblTempVendorCDR_20' ) start [2025-04-18 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931842', 'tblTempVendorCDR_20' ) end [2025-04-18 00:12:18] Production.INFO: ProcessCDR(1,14931842,1,1,2) [2025-04-18 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931842', 'tblTempUsageDetail_20' ) start [2025-04-18 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931842', 'tblTempUsageDetail_20' ) end [2025-04-18 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:12:22] Production.INFO: ==13023== Releasing lock... [2025-04-18 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:12:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:13:05 [end_date_ymd] => 2025-04-18 00:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:13:05' and `end` < '2025-04-18 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-04-18 00:13:17] Production.INFO: count ==816 [2025-04-18 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:13:05 - End Time 2025-04-18 00:13:05 [2025-04-18 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931847', 'tblTempUsageDetail_20' ) start [2025-04-18 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931847', 'tblTempUsageDetail_20' ) end [2025-04-18 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931847', 'tblTempVendorCDR_20' ) start [2025-04-18 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931847', 'tblTempVendorCDR_20' ) end [2025-04-18 00:13:18] Production.INFO: ProcessCDR(1,14931847,1,1,2) [2025-04-18 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931847', 'tblTempUsageDetail_20' ) start [2025-04-18 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931847', 'tblTempUsageDetail_20' ) end [2025-04-18 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:13:21] Production.INFO: ==13118== Releasing lock... [2025-04-18 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:13:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:14:05 [end_date_ymd] => 2025-04-18 00:14:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:14:05' and `end` < '2025-04-18 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-04-18 00:14:18] Production.INFO: count ==816 [2025-04-18 00:14:19] Production.ERROR: pbx CDR StartTime 2025-04-17 21:14:05 - End Time 2025-04-18 00:14:05 [2025-04-18 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931852', 'tblTempUsageDetail_20' ) start [2025-04-18 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931852', 'tblTempUsageDetail_20' ) end [2025-04-18 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931852', 'tblTempVendorCDR_20' ) start [2025-04-18 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931852', 'tblTempVendorCDR_20' ) end [2025-04-18 00:14:19] Production.INFO: ProcessCDR(1,14931852,1,1,2) [2025-04-18 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931852', 'tblTempUsageDetail_20' ) start [2025-04-18 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931852', 'tblTempUsageDetail_20' ) end [2025-04-18 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:14:22] Production.INFO: ==13208== Releasing lock... [2025-04-18 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:14:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:15:05 [end_date_ymd] => 2025-04-18 00:15:05 [RateCDR] => 1 ) [2025-04-18 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:15:05' and `end` < '2025-04-18 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:15:18] Production.INFO: count ==800 [2025-04-18 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:15:05 - End Time 2025-04-18 00:15:05 [2025-04-18 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931857', 'tblTempUsageDetail_20' ) start [2025-04-18 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931857', 'tblTempUsageDetail_20' ) end [2025-04-18 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931857', 'tblTempVendorCDR_20' ) start [2025-04-18 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931857', 'tblTempVendorCDR_20' ) end [2025-04-18 00:15:18] Production.INFO: ProcessCDR(1,14931857,1,1,2) [2025-04-18 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931857', 'tblTempUsageDetail_20' ) start [2025-04-18 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931857', 'tblTempUsageDetail_20' ) end [2025-04-18 00:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:15:23] Production.INFO: ==13295== Releasing lock... [2025-04-18 00:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:15:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:16:05 [end_date_ymd] => 2025-04-18 00:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:16:05' and `end` < '2025-04-18 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-04-18 00:16:17] Production.INFO: count ==794 [2025-04-18 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:16:05 - End Time 2025-04-18 00:16:05 [2025-04-18 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931862', 'tblTempUsageDetail_20' ) start [2025-04-18 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931862', 'tblTempUsageDetail_20' ) end [2025-04-18 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931862', 'tblTempVendorCDR_20' ) start [2025-04-18 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931862', 'tblTempVendorCDR_20' ) end [2025-04-18 00:16:18] Production.INFO: ProcessCDR(1,14931862,1,1,2) [2025-04-18 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931862', 'tblTempUsageDetail_20' ) start [2025-04-18 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931862', 'tblTempUsageDetail_20' ) end [2025-04-18 00:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:16:23] Production.INFO: ==13385== Releasing lock... [2025-04-18 00:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:16:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:17:05 [end_date_ymd] => 2025-04-18 00:17:05 [RateCDR] => 1 ) [2025-04-18 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:17:05' and `end` < '2025-04-18 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:17:17] Production.INFO: count ==795 [2025-04-18 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:17:05 - End Time 2025-04-18 00:17:05 [2025-04-18 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931867', 'tblTempUsageDetail_20' ) start [2025-04-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931867', 'tblTempUsageDetail_20' ) end [2025-04-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931867', 'tblTempVendorCDR_20' ) start [2025-04-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931867', 'tblTempVendorCDR_20' ) end [2025-04-18 00:17:18] Production.INFO: ProcessCDR(1,14931867,1,1,2) [2025-04-18 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931867', 'tblTempUsageDetail_20' ) start [2025-04-18 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931867', 'tblTempUsageDetail_20' ) end [2025-04-18 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:17:21] Production.INFO: ==13470== Releasing lock... [2025-04-18 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:17:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:18:05 [end_date_ymd] => 2025-04-18 00:18:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:18:05' and `end` < '2025-04-18 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-04-18 00:18:17] Production.INFO: count ==791 [2025-04-18 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:18:05 - End Time 2025-04-18 00:18:05 [2025-04-18 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931872', 'tblTempUsageDetail_20' ) start [2025-04-18 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931872', 'tblTempUsageDetail_20' ) end [2025-04-18 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931872', 'tblTempVendorCDR_20' ) start [2025-04-18 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931872', 'tblTempVendorCDR_20' ) end [2025-04-18 00:18:18] Production.INFO: ProcessCDR(1,14931872,1,1,2) [2025-04-18 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931872', 'tblTempUsageDetail_20' ) start [2025-04-18 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931872', 'tblTempUsageDetail_20' ) end [2025-04-18 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:18:21] Production.INFO: ==13561== Releasing lock... [2025-04-18 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:18:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:19:05 [end_date_ymd] => 2025-04-18 00:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:19:05' and `end` < '2025-04-18 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-04-18 00:19:18] Production.INFO: count ==786 [2025-04-18 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:19:05 - End Time 2025-04-18 00:19:05 [2025-04-18 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931877', 'tblTempUsageDetail_20' ) start [2025-04-18 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931877', 'tblTempUsageDetail_20' ) end [2025-04-18 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931877', 'tblTempVendorCDR_20' ) start [2025-04-18 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931877', 'tblTempVendorCDR_20' ) end [2025-04-18 00:19:18] Production.INFO: ProcessCDR(1,14931877,1,1,2) [2025-04-18 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931877', 'tblTempUsageDetail_20' ) start [2025-04-18 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931877', 'tblTempUsageDetail_20' ) end [2025-04-18 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:19:22] Production.INFO: ==13657== Releasing lock... [2025-04-18 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:19:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:20:05 [end_date_ymd] => 2025-04-18 00:20:05 [RateCDR] => 1 ) [2025-04-18 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:20:05' and `end` < '2025-04-18 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:20:18] Production.INFO: count ==789 [2025-04-18 00:20:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:20:05 - End Time 2025-04-18 00:20:05 [2025-04-18 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931882', 'tblTempUsageDetail_20' ) start [2025-04-18 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931882', 'tblTempUsageDetail_20' ) end [2025-04-18 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931882', 'tblTempVendorCDR_20' ) start [2025-04-18 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931882', 'tblTempVendorCDR_20' ) end [2025-04-18 00:20:19] Production.INFO: ProcessCDR(1,14931882,1,1,2) [2025-04-18 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931882', 'tblTempUsageDetail_20' ) start [2025-04-18 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931882', 'tblTempUsageDetail_20' ) end [2025-04-18 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:20:22] Production.INFO: ==13751== Releasing lock... [2025-04-18 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:20:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:21:06 [end_date_ymd] => 2025-04-18 00:21:06 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:21:06' and `end` < '2025-04-18 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-04-18 00:21:18] Production.INFO: count ==783 [2025-04-18 00:21:19] Production.ERROR: pbx CDR StartTime 2025-04-17 21:21:06 - End Time 2025-04-18 00:21:06 [2025-04-18 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931888', 'tblTempUsageDetail_20' ) start [2025-04-18 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931888', 'tblTempUsageDetail_20' ) end [2025-04-18 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931888', 'tblTempVendorCDR_20' ) start [2025-04-18 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931888', 'tblTempVendorCDR_20' ) end [2025-04-18 00:21:19] Production.INFO: ProcessCDR(1,14931888,1,1,2) [2025-04-18 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931888', 'tblTempUsageDetail_20' ) start [2025-04-18 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931888', 'tblTempUsageDetail_20' ) end [2025-04-18 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:21:22] Production.INFO: ==13841== Releasing lock... [2025-04-18 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:21:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:22:05 [end_date_ymd] => 2025-04-18 00:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:22:05' and `end` < '2025-04-18 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-04-18 00:22:18] Production.INFO: count ==783 [2025-04-18 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:22:05 - End Time 2025-04-18 00:22:05 [2025-04-18 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931893', 'tblTempUsageDetail_20' ) start [2025-04-18 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931893', 'tblTempUsageDetail_20' ) end [2025-04-18 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931893', 'tblTempVendorCDR_20' ) start [2025-04-18 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931893', 'tblTempVendorCDR_20' ) end [2025-04-18 00:22:18] Production.INFO: ProcessCDR(1,14931893,1,1,2) [2025-04-18 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931893', 'tblTempUsageDetail_20' ) start [2025-04-18 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931893', 'tblTempUsageDetail_20' ) end [2025-04-18 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:22:23] Production.INFO: ==13930== Releasing lock... [2025-04-18 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:22:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:23:05 [end_date_ymd] => 2025-04-18 00:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:23:05' and `end` < '2025-04-18 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-04-18 00:23:18] Production.INFO: count ==786 [2025-04-18 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:23:05 - End Time 2025-04-18 00:23:05 [2025-04-18 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931898', 'tblTempUsageDetail_20' ) start [2025-04-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931898', 'tblTempUsageDetail_20' ) end [2025-04-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931898', 'tblTempVendorCDR_20' ) start [2025-04-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931898', 'tblTempVendorCDR_20' ) end [2025-04-18 00:23:18] Production.INFO: ProcessCDR(1,14931898,1,1,2) [2025-04-18 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931898', 'tblTempUsageDetail_20' ) start [2025-04-18 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931898', 'tblTempUsageDetail_20' ) end [2025-04-18 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:23:22] Production.INFO: ==14023== Releasing lock... [2025-04-18 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:23:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:24:05 [end_date_ymd] => 2025-04-18 00:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:24:05' and `end` < '2025-04-18 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-04-18 00:24:18] Production.INFO: count ==780 [2025-04-18 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:24:05 - End Time 2025-04-18 00:24:05 [2025-04-18 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931903', 'tblTempUsageDetail_20' ) start [2025-04-18 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931903', 'tblTempUsageDetail_20' ) end [2025-04-18 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931903', 'tblTempVendorCDR_20' ) start [2025-04-18 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931903', 'tblTempVendorCDR_20' ) end [2025-04-18 00:24:18] Production.INFO: ProcessCDR(1,14931903,1,1,2) [2025-04-18 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931903', 'tblTempUsageDetail_20' ) start [2025-04-18 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931903', 'tblTempUsageDetail_20' ) end [2025-04-18 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:24:22] Production.INFO: ==14111== Releasing lock... [2025-04-18 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:24:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:25:05 [end_date_ymd] => 2025-04-18 00:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:25:05' and `end` < '2025-04-18 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-04-18 00:25:18] Production.INFO: count ==777 [2025-04-18 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:25:05 - End Time 2025-04-18 00:25:05 [2025-04-18 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931908', 'tblTempUsageDetail_20' ) start [2025-04-18 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931908', 'tblTempUsageDetail_20' ) end [2025-04-18 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931908', 'tblTempVendorCDR_20' ) start [2025-04-18 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931908', 'tblTempVendorCDR_20' ) end [2025-04-18 00:25:19] Production.INFO: ProcessCDR(1,14931908,1,1,2) [2025-04-18 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931908', 'tblTempUsageDetail_20' ) start [2025-04-18 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931908', 'tblTempUsageDetail_20' ) end [2025-04-18 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:25:22] Production.INFO: ==14241== Releasing lock... [2025-04-18 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:25:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:26:05 [end_date_ymd] => 2025-04-18 00:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:26:05' and `end` < '2025-04-18 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-04-18 00:26:17] Production.INFO: count ==776 [2025-04-18 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:26:05 - End Time 2025-04-18 00:26:05 [2025-04-18 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931913', 'tblTempUsageDetail_20' ) start [2025-04-18 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931913', 'tblTempUsageDetail_20' ) end [2025-04-18 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931913', 'tblTempVendorCDR_20' ) start [2025-04-18 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931913', 'tblTempVendorCDR_20' ) end [2025-04-18 00:26:18] Production.INFO: ProcessCDR(1,14931913,1,1,2) [2025-04-18 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931913', 'tblTempUsageDetail_20' ) start [2025-04-18 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931913', 'tblTempUsageDetail_20' ) end [2025-04-18 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:26:21] Production.INFO: ==14332== Releasing lock... [2025-04-18 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:26:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:27:05 [end_date_ymd] => 2025-04-18 00:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:27:05' and `end` < '2025-04-18 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-04-18 00:27:18] Production.INFO: count ==779 [2025-04-18 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:27:05 - End Time 2025-04-18 00:27:05 [2025-04-18 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931918', 'tblTempUsageDetail_20' ) start [2025-04-18 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931918', 'tblTempUsageDetail_20' ) end [2025-04-18 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931918', 'tblTempVendorCDR_20' ) start [2025-04-18 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931918', 'tblTempVendorCDR_20' ) end [2025-04-18 00:27:18] Production.INFO: ProcessCDR(1,14931918,1,1,2) [2025-04-18 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931918', 'tblTempUsageDetail_20' ) start [2025-04-18 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931918', 'tblTempUsageDetail_20' ) end [2025-04-18 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:27:22] Production.INFO: ==14431== Releasing lock... [2025-04-18 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:27:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:28:05 [end_date_ymd] => 2025-04-18 00:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:28:05' and `end` < '2025-04-18 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-04-18 00:28:17] Production.INFO: count ==772 [2025-04-18 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:28:05 - End Time 2025-04-18 00:28:05 [2025-04-18 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931923', 'tblTempUsageDetail_20' ) start [2025-04-18 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931923', 'tblTempUsageDetail_20' ) end [2025-04-18 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931923', 'tblTempVendorCDR_20' ) start [2025-04-18 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931923', 'tblTempVendorCDR_20' ) end [2025-04-18 00:28:18] Production.INFO: ProcessCDR(1,14931923,1,1,2) [2025-04-18 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931923', 'tblTempUsageDetail_20' ) start [2025-04-18 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931923', 'tblTempUsageDetail_20' ) end [2025-04-18 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:28:21] Production.INFO: ==14526== Releasing lock... [2025-04-18 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:28:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:29:05 [end_date_ymd] => 2025-04-18 00:29:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:29:05' and `end` < '2025-04-18 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-04-18 00:29:18] Production.INFO: count ==772 [2025-04-18 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:29:05 - End Time 2025-04-18 00:29:05 [2025-04-18 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931928', 'tblTempUsageDetail_20' ) start [2025-04-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931928', 'tblTempUsageDetail_20' ) end [2025-04-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931928', 'tblTempVendorCDR_20' ) start [2025-04-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931928', 'tblTempVendorCDR_20' ) end [2025-04-18 00:29:18] Production.INFO: ProcessCDR(1,14931928,1,1,2) [2025-04-18 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931928', 'tblTempUsageDetail_20' ) start [2025-04-18 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931928', 'tblTempUsageDetail_20' ) end [2025-04-18 00:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:29:23] Production.INFO: ==14617== Releasing lock... [2025-04-18 00:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:29:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:30:05 [end_date_ymd] => 2025-04-18 00:30:05 [RateCDR] => 1 ) [2025-04-18 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:30:05' and `end` < '2025-04-18 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:30:18] Production.INFO: count ==778 [2025-04-18 00:30:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:30:05 - End Time 2025-04-18 00:30:05 [2025-04-18 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931934', 'tblTempUsageDetail_20' ) start [2025-04-18 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931934', 'tblTempUsageDetail_20' ) end [2025-04-18 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931934', 'tblTempVendorCDR_20' ) start [2025-04-18 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931934', 'tblTempVendorCDR_20' ) end [2025-04-18 00:30:18] Production.INFO: ProcessCDR(1,14931934,1,1,2) [2025-04-18 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931934', 'tblTempUsageDetail_20' ) start [2025-04-18 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931934', 'tblTempUsageDetail_20' ) end [2025-04-18 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:30:22] Production.INFO: ==14713== Releasing lock... [2025-04-18 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:30:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:31:05 [end_date_ymd] => 2025-04-18 00:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:31:05' and `end` < '2025-04-18 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-04-18 00:31:18] Production.INFO: count ==784 [2025-04-18 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:31:05 - End Time 2025-04-18 00:31:05 [2025-04-18 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931939', 'tblTempUsageDetail_20' ) start [2025-04-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931939', 'tblTempUsageDetail_20' ) end [2025-04-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931939', 'tblTempVendorCDR_20' ) start [2025-04-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931939', 'tblTempVendorCDR_20' ) end [2025-04-18 00:31:18] Production.INFO: ProcessCDR(1,14931939,1,1,2) [2025-04-18 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931939', 'tblTempUsageDetail_20' ) start [2025-04-18 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931939', 'tblTempUsageDetail_20' ) end [2025-04-18 00:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:31:23] Production.INFO: ==14808== Releasing lock... [2025-04-18 00:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:31:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:32:05 [end_date_ymd] => 2025-04-18 00:32:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:32:05' and `end` < '2025-04-18 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-04-18 00:32:18] Production.INFO: count ==777 [2025-04-18 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:32:05 - End Time 2025-04-18 00:32:05 [2025-04-18 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931944', 'tblTempUsageDetail_20' ) start [2025-04-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931944', 'tblTempUsageDetail_20' ) end [2025-04-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931944', 'tblTempVendorCDR_20' ) start [2025-04-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931944', 'tblTempVendorCDR_20' ) end [2025-04-18 00:32:18] Production.INFO: ProcessCDR(1,14931944,1,1,2) [2025-04-18 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931944', 'tblTempUsageDetail_20' ) start [2025-04-18 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931944', 'tblTempUsageDetail_20' ) end [2025-04-18 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:32:21] Production.INFO: ==14897== Releasing lock... [2025-04-18 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:32:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:33:05 [end_date_ymd] => 2025-04-18 00:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:33:05' and `end` < '2025-04-18 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-04-18 00:33:18] Production.INFO: count ==777 [2025-04-18 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:33:05 - End Time 2025-04-18 00:33:05 [2025-04-18 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931949', 'tblTempUsageDetail_20' ) start [2025-04-18 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931949', 'tblTempUsageDetail_20' ) end [2025-04-18 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931949', 'tblTempVendorCDR_20' ) start [2025-04-18 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931949', 'tblTempVendorCDR_20' ) end [2025-04-18 00:33:18] Production.INFO: ProcessCDR(1,14931949,1,1,2) [2025-04-18 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931949', 'tblTempUsageDetail_20' ) start [2025-04-18 00:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931949', 'tblTempUsageDetail_20' ) end [2025-04-18 00:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:33:24] Production.INFO: ==14969== Releasing lock... [2025-04-18 00:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:33:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:34:05 [end_date_ymd] => 2025-04-18 00:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:34:05' and `end` < '2025-04-18 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-04-18 00:34:18] Production.INFO: count ==773 [2025-04-18 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:34:05 - End Time 2025-04-18 00:34:05 [2025-04-18 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931954', 'tblTempUsageDetail_20' ) start [2025-04-18 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931954', 'tblTempUsageDetail_20' ) end [2025-04-18 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931954', 'tblTempVendorCDR_20' ) start [2025-04-18 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931954', 'tblTempVendorCDR_20' ) end [2025-04-18 00:34:18] Production.INFO: ProcessCDR(1,14931954,1,1,2) [2025-04-18 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931954', 'tblTempUsageDetail_20' ) start [2025-04-18 00:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931954', 'tblTempUsageDetail_20' ) end [2025-04-18 00:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:34:23] Production.INFO: ==15040== Releasing lock... [2025-04-18 00:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:34:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:35:04 [end_date_ymd] => 2025-04-18 00:35:04 [RateCDR] => 1 ) [2025-04-18 00:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:35:04' and `end` < '2025-04-18 00:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:35:17] Production.INFO: count ==769 [2025-04-18 00:35:17] Production.ERROR: pbx CDR StartTime 2025-04-17 21:35:04 - End Time 2025-04-18 00:35:04 [2025-04-18 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931959', 'tblTempUsageDetail_20' ) start [2025-04-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931959', 'tblTempUsageDetail_20' ) end [2025-04-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931959', 'tblTempVendorCDR_20' ) start [2025-04-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931959', 'tblTempVendorCDR_20' ) end [2025-04-18 00:35:17] Production.INFO: ProcessCDR(1,14931959,1,1,2) [2025-04-18 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931959', 'tblTempUsageDetail_20' ) start [2025-04-18 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931959', 'tblTempUsageDetail_20' ) end [2025-04-18 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:35:21] Production.INFO: ==15110== Releasing lock... [2025-04-18 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:35:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:36:05 [end_date_ymd] => 2025-04-18 00:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:36:05' and `end` < '2025-04-18 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-04-18 00:36:18] Production.INFO: count ==765 [2025-04-18 00:36:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:36:05 - End Time 2025-04-18 00:36:05 [2025-04-18 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931964', 'tblTempUsageDetail_20' ) start [2025-04-18 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931964', 'tblTempUsageDetail_20' ) end [2025-04-18 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931964', 'tblTempVendorCDR_20' ) start [2025-04-18 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931964', 'tblTempVendorCDR_20' ) end [2025-04-18 00:36:19] Production.INFO: ProcessCDR(1,14931964,1,1,2) [2025-04-18 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931964', 'tblTempUsageDetail_20' ) start [2025-04-18 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931964', 'tblTempUsageDetail_20' ) end [2025-04-18 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:36:22] Production.INFO: ==15182== Releasing lock... [2025-04-18 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:36:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:37:05 [end_date_ymd] => 2025-04-18 00:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:37:05' and `end` < '2025-04-18 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-04-18 00:37:17] Production.INFO: count ==764 [2025-04-18 00:37:17] Production.ERROR: pbx CDR StartTime 2025-04-17 21:37:05 - End Time 2025-04-18 00:37:05 [2025-04-18 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931969', 'tblTempUsageDetail_20' ) start [2025-04-18 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931969', 'tblTempUsageDetail_20' ) end [2025-04-18 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931969', 'tblTempVendorCDR_20' ) start [2025-04-18 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931969', 'tblTempVendorCDR_20' ) end [2025-04-18 00:37:18] Production.INFO: ProcessCDR(1,14931969,1,1,2) [2025-04-18 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931969', 'tblTempUsageDetail_20' ) start [2025-04-18 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931969', 'tblTempUsageDetail_20' ) end [2025-04-18 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:37:21] Production.INFO: ==15251== Releasing lock... [2025-04-18 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:37:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:38:05 [end_date_ymd] => 2025-04-18 00:38:05 [RateCDR] => 1 ) [2025-04-18 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:38:05' and `end` < '2025-04-18 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:38:18] Production.INFO: count ==764 [2025-04-18 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:38:05 - End Time 2025-04-18 00:38:05 [2025-04-18 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931974', 'tblTempUsageDetail_20' ) start [2025-04-18 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931974', 'tblTempUsageDetail_20' ) end [2025-04-18 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931974', 'tblTempVendorCDR_20' ) start [2025-04-18 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931974', 'tblTempVendorCDR_20' ) end [2025-04-18 00:38:18] Production.INFO: ProcessCDR(1,14931974,1,1,2) [2025-04-18 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931974', 'tblTempUsageDetail_20' ) start [2025-04-18 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931974', 'tblTempUsageDetail_20' ) end [2025-04-18 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:38:21] Production.INFO: ==15320== Releasing lock... [2025-04-18 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:38:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:39:05 [end_date_ymd] => 2025-04-18 00:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:39:05' and `end` < '2025-04-18 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-04-18 00:39:17] Production.INFO: count ==760 [2025-04-18 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:39:05 - End Time 2025-04-18 00:39:05 [2025-04-18 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931979', 'tblTempUsageDetail_20' ) start [2025-04-18 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931979', 'tblTempUsageDetail_20' ) end [2025-04-18 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931979', 'tblTempVendorCDR_20' ) start [2025-04-18 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931979', 'tblTempVendorCDR_20' ) end [2025-04-18 00:39:18] Production.INFO: ProcessCDR(1,14931979,1,1,2) [2025-04-18 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931979', 'tblTempUsageDetail_20' ) start [2025-04-18 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931979', 'tblTempUsageDetail_20' ) end [2025-04-18 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:39:21] Production.INFO: ==15392== Releasing lock... [2025-04-18 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:39:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:40:06 [end_date_ymd] => 2025-04-18 00:40:06 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:40:06' and `end` < '2025-04-18 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-04-18 00:40:18] Production.INFO: count ==771 [2025-04-18 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-17 21:40:06 - End Time 2025-04-18 00:40:06 [2025-04-18 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931985', 'tblTempUsageDetail_20' ) start [2025-04-18 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931985', 'tblTempUsageDetail_20' ) end [2025-04-18 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931985', 'tblTempVendorCDR_20' ) start [2025-04-18 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931985', 'tblTempVendorCDR_20' ) end [2025-04-18 00:40:19] Production.INFO: ProcessCDR(1,14931985,1,1,2) [2025-04-18 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931985', 'tblTempUsageDetail_20' ) start [2025-04-18 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931985', 'tblTempUsageDetail_20' ) end [2025-04-18 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:40:22] Production.INFO: ==15466== Releasing lock... [2025-04-18 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:41:04 [end_date_ymd] => 2025-04-18 00:41:04 [RateCDR] => 1 ) [2025-04-18 00:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:41:04' and `end` < '2025-04-18 00:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:41:17] Production.INFO: count ==784 [2025-04-18 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:41:04 - End Time 2025-04-18 00:41:04 [2025-04-18 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931990', 'tblTempUsageDetail_20' ) start [2025-04-18 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931990', 'tblTempUsageDetail_20' ) end [2025-04-18 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931990', 'tblTempVendorCDR_20' ) start [2025-04-18 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931990', 'tblTempVendorCDR_20' ) end [2025-04-18 00:41:18] Production.INFO: ProcessCDR(1,14931990,1,1,2) [2025-04-18 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931990', 'tblTempUsageDetail_20' ) start [2025-04-18 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931990', 'tblTempUsageDetail_20' ) end [2025-04-18 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:41:21] Production.INFO: ==15582== Releasing lock... [2025-04-18 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:41:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:42:05 [end_date_ymd] => 2025-04-18 00:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:42:05' and `end` < '2025-04-18 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-04-18 00:42:17] Production.INFO: count ==780 [2025-04-18 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:42:05 - End Time 2025-04-18 00:42:05 [2025-04-18 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931995', 'tblTempUsageDetail_20' ) start [2025-04-18 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931995', 'tblTempUsageDetail_20' ) end [2025-04-18 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931995', 'tblTempVendorCDR_20' ) start [2025-04-18 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931995', 'tblTempVendorCDR_20' ) end [2025-04-18 00:42:18] Production.INFO: ProcessCDR(1,14931995,1,1,2) [2025-04-18 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931995', 'tblTempUsageDetail_20' ) start [2025-04-18 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931995', 'tblTempUsageDetail_20' ) end [2025-04-18 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:42:21] Production.INFO: ==15652== Releasing lock... [2025-04-18 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:42:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:43:05 [end_date_ymd] => 2025-04-18 00:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:43:05' and `end` < '2025-04-18 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-04-18 00:43:18] Production.INFO: count ==776 [2025-04-18 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:43:05 - End Time 2025-04-18 00:43:05 [2025-04-18 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932000', 'tblTempUsageDetail_20' ) start [2025-04-18 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932000', 'tblTempUsageDetail_20' ) end [2025-04-18 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932000', 'tblTempVendorCDR_20' ) start [2025-04-18 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932000', 'tblTempVendorCDR_20' ) end [2025-04-18 00:43:18] Production.INFO: ProcessCDR(1,14932000,1,1,2) [2025-04-18 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932000', 'tblTempUsageDetail_20' ) start [2025-04-18 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932000', 'tblTempUsageDetail_20' ) end [2025-04-18 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:43:22] Production.INFO: ==15723== Releasing lock... [2025-04-18 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:43:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:44:05 [end_date_ymd] => 2025-04-18 00:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:44:05' and `end` < '2025-04-18 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-04-18 00:44:18] Production.INFO: count ==760 [2025-04-18 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:44:05 - End Time 2025-04-18 00:44:05 [2025-04-18 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932005', 'tblTempUsageDetail_20' ) start [2025-04-18 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932005', 'tblTempUsageDetail_20' ) end [2025-04-18 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932005', 'tblTempVendorCDR_20' ) start [2025-04-18 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932005', 'tblTempVendorCDR_20' ) end [2025-04-18 00:44:18] Production.INFO: ProcessCDR(1,14932005,1,1,2) [2025-04-18 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932005', 'tblTempUsageDetail_20' ) start [2025-04-18 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932005', 'tblTempUsageDetail_20' ) end [2025-04-18 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:44:21] Production.INFO: ==15794== Releasing lock... [2025-04-18 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:44:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:45:05 [end_date_ymd] => 2025-04-18 00:45:05 [RateCDR] => 1 ) [2025-04-18 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:45:05' and `end` < '2025-04-18 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:45:18] Production.INFO: count ==755 [2025-04-18 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:45:05 - End Time 2025-04-18 00:45:05 [2025-04-18 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932010', 'tblTempUsageDetail_20' ) start [2025-04-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932010', 'tblTempUsageDetail_20' ) end [2025-04-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932010', 'tblTempVendorCDR_20' ) start [2025-04-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932010', 'tblTempVendorCDR_20' ) end [2025-04-18 00:45:18] Production.INFO: ProcessCDR(1,14932010,1,1,2) [2025-04-18 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932010', 'tblTempUsageDetail_20' ) start [2025-04-18 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932010', 'tblTempUsageDetail_20' ) end [2025-04-18 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:45:21] Production.INFO: ==15867== Releasing lock... [2025-04-18 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:45:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:46:05 [end_date_ymd] => 2025-04-18 00:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:46:05' and `end` < '2025-04-18 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-04-18 00:46:17] Production.INFO: count ==752 [2025-04-18 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:46:05 - End Time 2025-04-18 00:46:05 [2025-04-18 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932015', 'tblTempUsageDetail_20' ) start [2025-04-18 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932015', 'tblTempUsageDetail_20' ) end [2025-04-18 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932015', 'tblTempVendorCDR_20' ) start [2025-04-18 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932015', 'tblTempVendorCDR_20' ) end [2025-04-18 00:46:18] Production.INFO: ProcessCDR(1,14932015,1,1,2) [2025-04-18 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932015', 'tblTempUsageDetail_20' ) start [2025-04-18 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932015', 'tblTempUsageDetail_20' ) end [2025-04-18 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:46:21] Production.INFO: ==15940== Releasing lock... [2025-04-18 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:46:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:47:05 [end_date_ymd] => 2025-04-18 00:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:47:05' and `end` < '2025-04-18 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-04-18 00:47:18] Production.INFO: count ==750 [2025-04-18 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:47:05 - End Time 2025-04-18 00:47:05 [2025-04-18 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932020', 'tblTempUsageDetail_20' ) start [2025-04-18 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932020', 'tblTempUsageDetail_20' ) end [2025-04-18 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932020', 'tblTempVendorCDR_20' ) start [2025-04-18 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932020', 'tblTempVendorCDR_20' ) end [2025-04-18 00:47:18] Production.INFO: ProcessCDR(1,14932020,1,1,2) [2025-04-18 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932020', 'tblTempUsageDetail_20' ) start [2025-04-18 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932020', 'tblTempUsageDetail_20' ) end [2025-04-18 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:47:21] Production.INFO: ==16016== Releasing lock... [2025-04-18 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:47:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:48:05 [end_date_ymd] => 2025-04-18 00:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:48:05' and `end` < '2025-04-18 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-04-18 00:48:17] Production.INFO: count ==747 [2025-04-18 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:48:05 - End Time 2025-04-18 00:48:05 [2025-04-18 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932025', 'tblTempUsageDetail_20' ) start [2025-04-18 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932025', 'tblTempUsageDetail_20' ) end [2025-04-18 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932025', 'tblTempVendorCDR_20' ) start [2025-04-18 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932025', 'tblTempVendorCDR_20' ) end [2025-04-18 00:48:18] Production.INFO: ProcessCDR(1,14932025,1,1,2) [2025-04-18 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932025', 'tblTempUsageDetail_20' ) start [2025-04-18 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932025', 'tblTempUsageDetail_20' ) end [2025-04-18 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:48:21] Production.INFO: ==16087== Releasing lock... [2025-04-18 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:48:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:49:05 [end_date_ymd] => 2025-04-18 00:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:49:05' and `end` < '2025-04-18 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-04-18 00:49:18] Production.INFO: count ==746 [2025-04-18 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:49:05 - End Time 2025-04-18 00:49:05 [2025-04-18 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932030', 'tblTempUsageDetail_20' ) start [2025-04-18 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932030', 'tblTempUsageDetail_20' ) end [2025-04-18 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932030', 'tblTempVendorCDR_20' ) start [2025-04-18 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932030', 'tblTempVendorCDR_20' ) end [2025-04-18 00:49:18] Production.INFO: ProcessCDR(1,14932030,1,1,2) [2025-04-18 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932030', 'tblTempUsageDetail_20' ) start [2025-04-18 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932030', 'tblTempUsageDetail_20' ) end [2025-04-18 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:49:21] Production.INFO: ==16157== Releasing lock... [2025-04-18 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:49:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:50:06 [end_date_ymd] => 2025-04-18 00:50:06 [RateCDR] => 1 ) [2025-04-18 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:50:06' and `end` < '2025-04-18 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:50:18] Production.INFO: count ==766 [2025-04-18 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-17 21:50:06 - End Time 2025-04-18 00:50:06 [2025-04-18 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932036', 'tblTempUsageDetail_20' ) start [2025-04-18 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932036', 'tblTempUsageDetail_20' ) end [2025-04-18 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932036', 'tblTempVendorCDR_20' ) start [2025-04-18 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932036', 'tblTempVendorCDR_20' ) end [2025-04-18 00:50:19] Production.INFO: ProcessCDR(1,14932036,1,1,2) [2025-04-18 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932036', 'tblTempUsageDetail_20' ) start [2025-04-18 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932036', 'tblTempUsageDetail_20' ) end [2025-04-18 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:50:22] Production.INFO: ==16232== Releasing lock... [2025-04-18 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:50:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:51:05 [end_date_ymd] => 2025-04-18 00:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:51:05' and `end` < '2025-04-18 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-04-18 00:51:17] Production.INFO: count ==786 [2025-04-18 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:51:05 - End Time 2025-04-18 00:51:05 [2025-04-18 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932041', 'tblTempUsageDetail_20' ) start [2025-04-18 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932041', 'tblTempUsageDetail_20' ) end [2025-04-18 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932041', 'tblTempVendorCDR_20' ) start [2025-04-18 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932041', 'tblTempVendorCDR_20' ) end [2025-04-18 00:51:18] Production.INFO: ProcessCDR(1,14932041,1,1,2) [2025-04-18 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932041', 'tblTempUsageDetail_20' ) start [2025-04-18 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932041', 'tblTempUsageDetail_20' ) end [2025-04-18 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:51:21] Production.INFO: ==16307== Releasing lock... [2025-04-18 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:51:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:52:05 [end_date_ymd] => 2025-04-18 00:52:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:52:05' and `end` < '2025-04-18 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-04-18 00:52:18] Production.INFO: count ==780 [2025-04-18 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:52:05 - End Time 2025-04-18 00:52:05 [2025-04-18 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932046', 'tblTempUsageDetail_20' ) start [2025-04-18 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932046', 'tblTempUsageDetail_20' ) end [2025-04-18 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932046', 'tblTempVendorCDR_20' ) start [2025-04-18 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932046', 'tblTempVendorCDR_20' ) end [2025-04-18 00:52:18] Production.INFO: ProcessCDR(1,14932046,1,1,2) [2025-04-18 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932046', 'tblTempUsageDetail_20' ) start [2025-04-18 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932046', 'tblTempUsageDetail_20' ) end [2025-04-18 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:52:22] Production.INFO: ==16379== Releasing lock... [2025-04-18 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:53:05 [end_date_ymd] => 2025-04-18 00:53:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:53:05' and `end` < '2025-04-18 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-04-18 00:53:17] Production.INFO: count ==774 [2025-04-18 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:53:05 - End Time 2025-04-18 00:53:05 [2025-04-18 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932051', 'tblTempUsageDetail_20' ) start [2025-04-18 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932051', 'tblTempUsageDetail_20' ) end [2025-04-18 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932051', 'tblTempVendorCDR_20' ) start [2025-04-18 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932051', 'tblTempVendorCDR_20' ) end [2025-04-18 00:53:18] Production.INFO: ProcessCDR(1,14932051,1,1,2) [2025-04-18 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932051', 'tblTempUsageDetail_20' ) start [2025-04-18 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932051', 'tblTempUsageDetail_20' ) end [2025-04-18 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:53:21] Production.INFO: ==16452== Releasing lock... [2025-04-18 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:53:21] Production.INFO: 34 MB #Memory Used# [2025-04-18 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:54:05 [end_date_ymd] => 2025-04-18 00:54:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:54:05' and `end` < '2025-04-18 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-04-18 00:54:18] Production.INFO: count ==772 [2025-04-18 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:54:05 - End Time 2025-04-18 00:54:05 [2025-04-18 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932056', 'tblTempUsageDetail_20' ) start [2025-04-18 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932056', 'tblTempUsageDetail_20' ) end [2025-04-18 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932056', 'tblTempVendorCDR_20' ) start [2025-04-18 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932056', 'tblTempVendorCDR_20' ) end [2025-04-18 00:54:18] Production.INFO: ProcessCDR(1,14932056,1,1,2) [2025-04-18 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932056', 'tblTempUsageDetail_20' ) start [2025-04-18 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932056', 'tblTempUsageDetail_20' ) end [2025-04-18 00:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:54:23] Production.INFO: ==16528== Releasing lock... [2025-04-18 00:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:54:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:55:04 [end_date_ymd] => 2025-04-18 00:55:04 [RateCDR] => 1 ) [2025-04-18 00:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:55:04' and `end` < '2025-04-18 00:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:55:17] Production.INFO: count ==766 [2025-04-18 00:55:17] Production.ERROR: pbx CDR StartTime 2025-04-17 21:55:04 - End Time 2025-04-18 00:55:04 [2025-04-18 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932061', 'tblTempUsageDetail_20' ) start [2025-04-18 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932061', 'tblTempUsageDetail_20' ) end [2025-04-18 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932061', 'tblTempVendorCDR_20' ) start [2025-04-18 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932061', 'tblTempVendorCDR_20' ) end [2025-04-18 00:55:17] Production.INFO: ProcessCDR(1,14932061,1,1,2) [2025-04-18 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932061', 'tblTempUsageDetail_20' ) start [2025-04-18 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932061', 'tblTempUsageDetail_20' ) end [2025-04-18 00:55:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:55:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:55:20] Production.INFO: ==16599== Releasing lock... [2025-04-18 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:55:20] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:56:05 [end_date_ymd] => 2025-04-18 00:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:56:05' and `end` < '2025-04-18 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-04-18 00:56:18] Production.INFO: count ==761 [2025-04-18 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:56:05 - End Time 2025-04-18 00:56:05 [2025-04-18 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932066', 'tblTempUsageDetail_20' ) start [2025-04-18 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932066', 'tblTempUsageDetail_20' ) end [2025-04-18 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932066', 'tblTempVendorCDR_20' ) start [2025-04-18 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932066', 'tblTempVendorCDR_20' ) end [2025-04-18 00:56:18] Production.INFO: ProcessCDR(1,14932066,1,1,2) [2025-04-18 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932066', 'tblTempUsageDetail_20' ) start [2025-04-18 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932066', 'tblTempUsageDetail_20' ) end [2025-04-18 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:56:22] Production.INFO: ==16715== Releasing lock... [2025-04-18 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:56:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:57:05 [end_date_ymd] => 2025-04-18 00:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 21:57:05' and `end` < '2025-04-18 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-04-18 00:57:18] Production.INFO: count ==758 [2025-04-18 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:57:05 - End Time 2025-04-18 00:57:05 [2025-04-18 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932071', 'tblTempUsageDetail_20' ) start [2025-04-18 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932071', 'tblTempUsageDetail_20' ) end [2025-04-18 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932071', 'tblTempVendorCDR_20' ) start [2025-04-18 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932071', 'tblTempVendorCDR_20' ) end [2025-04-18 00:57:18] Production.INFO: ProcessCDR(1,14932071,1,1,2) [2025-04-18 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932071', 'tblTempUsageDetail_20' ) start [2025-04-18 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932071', 'tblTempUsageDetail_20' ) end [2025-04-18 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:57:21] Production.INFO: ==16793== Releasing lock... [2025-04-18 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:57:21] Production.INFO: 34 MB #Memory Used# [2025-04-18 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:58:04 [end_date_ymd] => 2025-04-18 00:58:04 [RateCDR] => 1 ) [2025-04-18 00: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-04-17 21:58:04' and `end` < '2025-04-18 00: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-04-18 00:58:17] Production.INFO: count ==758 [2025-04-18 00:58:17] Production.ERROR: pbx CDR StartTime 2025-04-17 21:58:04 - End Time 2025-04-18 00:58:04 [2025-04-18 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932076', 'tblTempUsageDetail_20' ) start [2025-04-18 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932076', 'tblTempUsageDetail_20' ) end [2025-04-18 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932076', 'tblTempVendorCDR_20' ) start [2025-04-18 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932076', 'tblTempVendorCDR_20' ) end [2025-04-18 00:58:17] Production.INFO: ProcessCDR(1,14932076,1,1,2) [2025-04-18 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932076', 'tblTempUsageDetail_20' ) start [2025-04-18 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932076', 'tblTempUsageDetail_20' ) end [2025-04-18 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:58:21] Production.INFO: ==16863== Releasing lock... [2025-04-18 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:58:21] Production.INFO: 34 MB #Memory Used# [2025-04-18 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 21:59:05 [end_date_ymd] => 2025-04-18 00:59:05 [RateCDR] => 1 ) [2025-04-18 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 21:59:05' and `end` < '2025-04-18 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 00:59:18] Production.INFO: count ==758 [2025-04-18 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-17 21:59:05 - End Time 2025-04-18 00:59:05 [2025-04-18 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932081', 'tblTempUsageDetail_20' ) start [2025-04-18 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932081', 'tblTempUsageDetail_20' ) end [2025-04-18 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932081', 'tblTempVendorCDR_20' ) start [2025-04-18 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932081', 'tblTempVendorCDR_20' ) end [2025-04-18 00:59:18] Production.INFO: ProcessCDR(1,14932081,1,1,2) [2025-04-18 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932081', 'tblTempUsageDetail_20' ) start [2025-04-18 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932081', 'tblTempUsageDetail_20' ) end [2025-04-18 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 00:59:21] Production.INFO: ==16935== Releasing lock... [2025-04-18 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 00:59:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:00:05 [end_date_ymd] => 2025-04-18 01:00:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:00:05' and `end` < '2025-04-18 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-04-18 01:00:18] Production.INFO: count ==761 [2025-04-18 01:00:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:00:05 - End Time 2025-04-18 01:00:05 [2025-04-18 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932087', 'tblTempUsageDetail_20' ) start [2025-04-18 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932087', 'tblTempUsageDetail_20' ) end [2025-04-18 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932087', 'tblTempVendorCDR_20' ) start [2025-04-18 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932087', 'tblTempVendorCDR_20' ) end [2025-04-18 01:00:18] Production.INFO: ProcessCDR(1,14932087,1,1,2) [2025-04-18 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932087', 'tblTempUsageDetail_20' ) start [2025-04-18 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932087', 'tblTempUsageDetail_20' ) end [2025-04-18 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:00:21] Production.INFO: ==17008== Releasing lock... [2025-04-18 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:00:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:01:06 [end_date_ymd] => 2025-04-18 01:01:06 [RateCDR] => 1 ) [2025-04-18 01: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-04-17 22:01:06' and `end` < '2025-04-18 01: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-04-18 01:01:18] Production.INFO: count ==769 [2025-04-18 01:01:19] Production.ERROR: pbx CDR StartTime 2025-04-17 22:01:06 - End Time 2025-04-18 01:01:06 [2025-04-18 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932092', 'tblTempUsageDetail_20' ) start [2025-04-18 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932092', 'tblTempUsageDetail_20' ) end [2025-04-18 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932092', 'tblTempVendorCDR_20' ) start [2025-04-18 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932092', 'tblTempVendorCDR_20' ) end [2025-04-18 01:01:19] Production.INFO: ProcessCDR(1,14932092,1,1,2) [2025-04-18 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932092', 'tblTempUsageDetail_20' ) start [2025-04-18 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932092', 'tblTempUsageDetail_20' ) end [2025-04-18 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:01:22] Production.INFO: ==17097== Releasing lock... [2025-04-18 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:01:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:02:04 [end_date_ymd] => 2025-04-18 01:02:04 [RateCDR] => 1 ) [2025-04-18 01:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:02:04' and `end` < '2025-04-18 01:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:02:17] Production.INFO: count ==767 [2025-04-18 01:02:17] Production.ERROR: pbx CDR StartTime 2025-04-17 22:02:04 - End Time 2025-04-18 01:02:04 [2025-04-18 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932097', 'tblTempUsageDetail_20' ) start [2025-04-18 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932097', 'tblTempUsageDetail_20' ) end [2025-04-18 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932097', 'tblTempVendorCDR_20' ) start [2025-04-18 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932097', 'tblTempVendorCDR_20' ) end [2025-04-18 01:02:17] Production.INFO: ProcessCDR(1,14932097,1,1,2) [2025-04-18 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932097', 'tblTempUsageDetail_20' ) start [2025-04-18 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932097', 'tblTempUsageDetail_20' ) end [2025-04-18 01:02:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:02:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:02:20] Production.INFO: ==17170== Releasing lock... [2025-04-18 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:02:20] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:03:05 [end_date_ymd] => 2025-04-18 01:03:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:03:05' and `end` < '2025-04-18 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-04-18 01:03:18] Production.INFO: count ==763 [2025-04-18 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:03:05 - End Time 2025-04-18 01:03:05 [2025-04-18 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932102', 'tblTempUsageDetail_20' ) start [2025-04-18 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932102', 'tblTempUsageDetail_20' ) end [2025-04-18 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932102', 'tblTempVendorCDR_20' ) start [2025-04-18 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932102', 'tblTempVendorCDR_20' ) end [2025-04-18 01:03:18] Production.INFO: ProcessCDR(1,14932102,1,1,2) [2025-04-18 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932102', 'tblTempUsageDetail_20' ) start [2025-04-18 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932102', 'tblTempUsageDetail_20' ) end [2025-04-18 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:03:21] Production.INFO: ==17241== Releasing lock... [2025-04-18 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:03:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:04:05 [end_date_ymd] => 2025-04-18 01:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:04:05' and `end` < '2025-04-18 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-04-18 01:04:18] Production.INFO: count ==819 [2025-04-18 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:04:05 - End Time 2025-04-18 01:04:05 [2025-04-18 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932107', 'tblTempUsageDetail_20' ) start [2025-04-18 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932107', 'tblTempUsageDetail_20' ) end [2025-04-18 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932107', 'tblTempVendorCDR_20' ) start [2025-04-18 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932107', 'tblTempVendorCDR_20' ) end [2025-04-18 01:04:18] Production.INFO: ProcessCDR(1,14932107,1,1,2) [2025-04-18 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932107', 'tblTempUsageDetail_20' ) start [2025-04-18 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932107', 'tblTempUsageDetail_20' ) end [2025-04-18 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:04:22] Production.INFO: ==17314== Releasing lock... [2025-04-18 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:04:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:05:05 [end_date_ymd] => 2025-04-18 01:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:05:05' and `end` < '2025-04-18 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-04-18 01:05:18] Production.INFO: count ==814 [2025-04-18 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:05:05 - End Time 2025-04-18 01:05:05 [2025-04-18 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932112', 'tblTempUsageDetail_20' ) start [2025-04-18 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932112', 'tblTempUsageDetail_20' ) end [2025-04-18 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932112', 'tblTempVendorCDR_20' ) start [2025-04-18 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932112', 'tblTempVendorCDR_20' ) end [2025-04-18 01:05:18] Production.INFO: ProcessCDR(1,14932112,1,1,2) [2025-04-18 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932112', 'tblTempUsageDetail_20' ) start [2025-04-18 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932112', 'tblTempUsageDetail_20' ) end [2025-04-18 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:05:21] Production.INFO: ==17385== Releasing lock... [2025-04-18 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:05:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:06:05 [end_date_ymd] => 2025-04-18 01:06:05 [RateCDR] => 1 ) [2025-04-18 01:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:06:05' and `end` < '2025-04-18 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-04-18 01:06:18] Production.INFO: count ==811 [2025-04-18 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:06:05 - End Time 2025-04-18 01:06:05 [2025-04-18 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932117', 'tblTempUsageDetail_20' ) start [2025-04-18 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932117', 'tblTempUsageDetail_20' ) end [2025-04-18 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932117', 'tblTempVendorCDR_20' ) start [2025-04-18 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932117', 'tblTempVendorCDR_20' ) end [2025-04-18 01:06:19] Production.INFO: ProcessCDR(1,14932117,1,1,2) [2025-04-18 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932117', 'tblTempUsageDetail_20' ) start [2025-04-18 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932117', 'tblTempUsageDetail_20' ) end [2025-04-18 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:06:22] Production.INFO: ==17455== Releasing lock... [2025-04-18 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:06:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:07:05 [end_date_ymd] => 2025-04-18 01:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:07:05' and `end` < '2025-04-18 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-04-18 01:07:18] Production.INFO: count ==800 [2025-04-18 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:07:05 - End Time 2025-04-18 01:07:05 [2025-04-18 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932122', 'tblTempUsageDetail_20' ) start [2025-04-18 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932122', 'tblTempUsageDetail_20' ) end [2025-04-18 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932122', 'tblTempVendorCDR_20' ) start [2025-04-18 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932122', 'tblTempVendorCDR_20' ) end [2025-04-18 01:07:18] Production.INFO: ProcessCDR(1,14932122,1,1,2) [2025-04-18 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932122', 'tblTempUsageDetail_20' ) start [2025-04-18 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932122', 'tblTempUsageDetail_20' ) end [2025-04-18 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:07:22] Production.INFO: ==17524== Releasing lock... [2025-04-18 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:07:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:08:05 [end_date_ymd] => 2025-04-18 01:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:08:05' and `end` < '2025-04-18 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-04-18 01:08:18] Production.INFO: count ==794 [2025-04-18 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:08:05 - End Time 2025-04-18 01:08:05 [2025-04-18 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932127', 'tblTempUsageDetail_20' ) start [2025-04-18 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932127', 'tblTempUsageDetail_20' ) end [2025-04-18 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932127', 'tblTempVendorCDR_20' ) start [2025-04-18 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932127', 'tblTempVendorCDR_20' ) end [2025-04-18 01:08:18] Production.INFO: ProcessCDR(1,14932127,1,1,2) [2025-04-18 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932127', 'tblTempUsageDetail_20' ) start [2025-04-18 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932127', 'tblTempUsageDetail_20' ) end [2025-04-18 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:08:22] Production.INFO: ==17604== Releasing lock... [2025-04-18 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:08:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:09:05 [end_date_ymd] => 2025-04-18 01:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:09:05' and `end` < '2025-04-18 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-04-18 01:09:18] Production.INFO: count ==787 [2025-04-18 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:09:05 - End Time 2025-04-18 01:09:05 [2025-04-18 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932132', 'tblTempUsageDetail_20' ) start [2025-04-18 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932132', 'tblTempUsageDetail_20' ) end [2025-04-18 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932132', 'tblTempVendorCDR_20' ) start [2025-04-18 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932132', 'tblTempVendorCDR_20' ) end [2025-04-18 01:09:18] Production.INFO: ProcessCDR(1,14932132,1,1,2) [2025-04-18 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932132', 'tblTempUsageDetail_20' ) start [2025-04-18 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932132', 'tblTempUsageDetail_20' ) end [2025-04-18 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:09:21] Production.INFO: ==17674== Releasing lock... [2025-04-18 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:09:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:10:06 [end_date_ymd] => 2025-04-18 01:10:06 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:10:06' and `end` < '2025-04-18 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-04-18 01:10:19] Production.INFO: count ==792 [2025-04-18 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-17 22:10:06 - End Time 2025-04-18 01:10:06 [2025-04-18 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932138', 'tblTempUsageDetail_20' ) start [2025-04-18 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932138', 'tblTempUsageDetail_20' ) end [2025-04-18 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932138', 'tblTempVendorCDR_20' ) start [2025-04-18 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932138', 'tblTempVendorCDR_20' ) end [2025-04-18 01:10:19] Production.INFO: ProcessCDR(1,14932138,1,1,2) [2025-04-18 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932138', 'tblTempUsageDetail_20' ) start [2025-04-18 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932138', 'tblTempUsageDetail_20' ) end [2025-04-18 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:10:22] Production.INFO: ==17752== Releasing lock... [2025-04-18 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:10:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:11:05 [end_date_ymd] => 2025-04-18 01:11:05 [RateCDR] => 1 ) [2025-04-18 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:11:05' and `end` < '2025-04-18 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:11:18] Production.INFO: count ==851 [2025-04-18 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:11:05 - End Time 2025-04-18 01:11:05 [2025-04-18 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932143', 'tblTempUsageDetail_20' ) start [2025-04-18 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932143', 'tblTempUsageDetail_20' ) end [2025-04-18 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932143', 'tblTempVendorCDR_20' ) start [2025-04-18 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932143', 'tblTempVendorCDR_20' ) end [2025-04-18 01:11:18] Production.INFO: ProcessCDR(1,14932143,1,1,2) [2025-04-18 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932143', 'tblTempUsageDetail_20' ) start [2025-04-18 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932143', 'tblTempUsageDetail_20' ) end [2025-04-18 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:11:22] Production.INFO: ==17825== Releasing lock... [2025-04-18 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:11:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:12:05 [end_date_ymd] => 2025-04-18 01:12:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:12:05' and `end` < '2025-04-18 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-04-18 01:12:18] Production.INFO: count ==908 [2025-04-18 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:12:05 - End Time 2025-04-18 01:12:05 [2025-04-18 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932148', 'tblTempUsageDetail_20' ) start [2025-04-18 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932148', 'tblTempUsageDetail_20' ) end [2025-04-18 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932148', 'tblTempVendorCDR_20' ) start [2025-04-18 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932148', 'tblTempVendorCDR_20' ) end [2025-04-18 01:12:18] Production.INFO: ProcessCDR(1,14932148,1,1,2) [2025-04-18 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932148', 'tblTempUsageDetail_20' ) start [2025-04-18 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932148', 'tblTempUsageDetail_20' ) end [2025-04-18 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:12:22] Production.INFO: ==17933== Releasing lock... [2025-04-18 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:12:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:13:05 [end_date_ymd] => 2025-04-18 01:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:13:05' and `end` < '2025-04-18 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-04-18 01:13:18] Production.INFO: count ==907 [2025-04-18 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:13:05 - End Time 2025-04-18 01:13:05 [2025-04-18 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932153', 'tblTempUsageDetail_20' ) start [2025-04-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932153', 'tblTempUsageDetail_20' ) end [2025-04-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932153', 'tblTempVendorCDR_20' ) start [2025-04-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932153', 'tblTempVendorCDR_20' ) end [2025-04-18 01:13:18] Production.INFO: ProcessCDR(1,14932153,1,1,2) [2025-04-18 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932153', 'tblTempUsageDetail_20' ) start [2025-04-18 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932153', 'tblTempUsageDetail_20' ) end [2025-04-18 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:13:22] Production.INFO: ==18008== Releasing lock... [2025-04-18 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:13:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:14:05 [end_date_ymd] => 2025-04-18 01:14:05 [RateCDR] => 1 ) [2025-04-18 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:14:05' and `end` < '2025-04-18 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:14:18] Production.INFO: count ==899 [2025-04-18 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:14:05 - End Time 2025-04-18 01:14:05 [2025-04-18 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932158', 'tblTempUsageDetail_20' ) start [2025-04-18 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932158', 'tblTempUsageDetail_20' ) end [2025-04-18 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932158', 'tblTempVendorCDR_20' ) start [2025-04-18 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932158', 'tblTempVendorCDR_20' ) end [2025-04-18 01:14:18] Production.INFO: ProcessCDR(1,14932158,1,1,2) [2025-04-18 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932158', 'tblTempUsageDetail_20' ) start [2025-04-18 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932158', 'tblTempUsageDetail_20' ) end [2025-04-18 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:14:21] Production.INFO: ==18080== Releasing lock... [2025-04-18 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:14:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:15:05 [end_date_ymd] => 2025-04-18 01:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:15:05' and `end` < '2025-04-18 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-04-18 01:15:18] Production.INFO: count ==890 [2025-04-18 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:15:05 - End Time 2025-04-18 01:15:05 [2025-04-18 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932163', 'tblTempUsageDetail_20' ) start [2025-04-18 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932163', 'tblTempUsageDetail_20' ) end [2025-04-18 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932163', 'tblTempVendorCDR_20' ) start [2025-04-18 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932163', 'tblTempVendorCDR_20' ) end [2025-04-18 01:15:18] Production.INFO: ProcessCDR(1,14932163,1,1,2) [2025-04-18 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932163', 'tblTempUsageDetail_20' ) start [2025-04-18 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932163', 'tblTempUsageDetail_20' ) end [2025-04-18 01:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:15:23] Production.INFO: ==18154== Releasing lock... [2025-04-18 01:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:15:23] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:16:05 [end_date_ymd] => 2025-04-18 01:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:16:05' and `end` < '2025-04-18 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-04-18 01:16:18] Production.INFO: count ==882 [2025-04-18 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:16:05 - End Time 2025-04-18 01:16:05 [2025-04-18 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932168', 'tblTempUsageDetail_20' ) start [2025-04-18 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932168', 'tblTempUsageDetail_20' ) end [2025-04-18 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932168', 'tblTempVendorCDR_20' ) start [2025-04-18 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932168', 'tblTempVendorCDR_20' ) end [2025-04-18 01:16:18] Production.INFO: ProcessCDR(1,14932168,1,1,2) [2025-04-18 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932168', 'tblTempUsageDetail_20' ) start [2025-04-18 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932168', 'tblTempUsageDetail_20' ) end [2025-04-18 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:16:21] Production.INFO: ==18231== Releasing lock... [2025-04-18 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:16:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:17:06 [end_date_ymd] => 2025-04-18 01:17:06 [RateCDR] => 1 ) [2025-04-18 01:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:17:06' and `end` < '2025-04-18 01:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:17:18] Production.INFO: count ==871 [2025-04-18 01:17:19] Production.ERROR: pbx CDR StartTime 2025-04-17 22:17:06 - End Time 2025-04-18 01:17:06 [2025-04-18 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932173', 'tblTempUsageDetail_20' ) start [2025-04-18 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932173', 'tblTempUsageDetail_20' ) end [2025-04-18 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932173', 'tblTempVendorCDR_20' ) start [2025-04-18 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932173', 'tblTempVendorCDR_20' ) end [2025-04-18 01:17:19] Production.INFO: ProcessCDR(1,14932173,1,1,2) [2025-04-18 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932173', 'tblTempUsageDetail_20' ) start [2025-04-18 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932173', 'tblTempUsageDetail_20' ) end [2025-04-18 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:17:22] Production.INFO: ==18302== Releasing lock... [2025-04-18 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:17:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:18:04 [end_date_ymd] => 2025-04-18 01:18:04 [RateCDR] => 1 ) [2025-04-18 01: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-04-17 22:18:04' and `end` < '2025-04-18 01: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-04-18 01:18:17] Production.INFO: count ==859 [2025-04-18 01:18:17] Production.ERROR: pbx CDR StartTime 2025-04-17 22:18:04 - End Time 2025-04-18 01:18:04 [2025-04-18 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932178', 'tblTempUsageDetail_20' ) start [2025-04-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932178', 'tblTempUsageDetail_20' ) end [2025-04-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932178', 'tblTempVendorCDR_20' ) start [2025-04-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932178', 'tblTempVendorCDR_20' ) end [2025-04-18 01:18:17] Production.INFO: ProcessCDR(1,14932178,1,1,2) [2025-04-18 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932178', 'tblTempUsageDetail_20' ) start [2025-04-18 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932178', 'tblTempUsageDetail_20' ) end [2025-04-18 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:18:22] Production.INFO: ==18385== Releasing lock... [2025-04-18 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:18:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:19:05 [end_date_ymd] => 2025-04-18 01:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:19:05' and `end` < '2025-04-18 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-04-18 01:19:18] Production.INFO: count ==858 [2025-04-18 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:19:05 - End Time 2025-04-18 01:19:05 [2025-04-18 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932183', 'tblTempUsageDetail_20' ) start [2025-04-18 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932183', 'tblTempUsageDetail_20' ) end [2025-04-18 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932183', 'tblTempVendorCDR_20' ) start [2025-04-18 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932183', 'tblTempVendorCDR_20' ) end [2025-04-18 01:19:18] Production.INFO: ProcessCDR(1,14932183,1,1,2) [2025-04-18 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932183', 'tblTempUsageDetail_20' ) start [2025-04-18 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932183', 'tblTempUsageDetail_20' ) end [2025-04-18 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:19:21] Production.INFO: ==18460== Releasing lock... [2025-04-18 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:19:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:20:06 [end_date_ymd] => 2025-04-18 01:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:20:06' and `end` < '2025-04-18 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-04-18 01:20:18] Production.INFO: count ==861 [2025-04-18 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-17 22:20:06 - End Time 2025-04-18 01:20:06 [2025-04-18 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932189', 'tblTempUsageDetail_20' ) start [2025-04-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932189', 'tblTempUsageDetail_20' ) end [2025-04-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932189', 'tblTempVendorCDR_20' ) start [2025-04-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932189', 'tblTempVendorCDR_20' ) end [2025-04-18 01:20:19] Production.INFO: ProcessCDR(1,14932189,1,1,2) [2025-04-18 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932189', 'tblTempUsageDetail_20' ) start [2025-04-18 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932189', 'tblTempUsageDetail_20' ) end [2025-04-18 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:20:23] Production.INFO: ==18538== Releasing lock... [2025-04-18 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:20:23] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:21:05 [end_date_ymd] => 2025-04-18 01:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:21:05' and `end` < '2025-04-18 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-04-18 01:21:17] Production.INFO: count ==855 [2025-04-18 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:21:05 - End Time 2025-04-18 01:21:05 [2025-04-18 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932194', 'tblTempUsageDetail_20' ) start [2025-04-18 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932194', 'tblTempUsageDetail_20' ) end [2025-04-18 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932194', 'tblTempVendorCDR_20' ) start [2025-04-18 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932194', 'tblTempVendorCDR_20' ) end [2025-04-18 01:21:18] Production.INFO: ProcessCDR(1,14932194,1,1,2) [2025-04-18 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932194', 'tblTempUsageDetail_20' ) start [2025-04-18 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932194', 'tblTempUsageDetail_20' ) end [2025-04-18 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:21:21] Production.INFO: ==18612== Releasing lock... [2025-04-18 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:21:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:22:05 [end_date_ymd] => 2025-04-18 01:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:22:05' and `end` < '2025-04-18 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-04-18 01:22:18] Production.INFO: count ==851 [2025-04-18 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:22:05 - End Time 2025-04-18 01:22:05 [2025-04-18 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932199', 'tblTempUsageDetail_20' ) start [2025-04-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932199', 'tblTempUsageDetail_20' ) end [2025-04-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932199', 'tblTempVendorCDR_20' ) start [2025-04-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932199', 'tblTempVendorCDR_20' ) end [2025-04-18 01:22:18] Production.INFO: ProcessCDR(1,14932199,1,1,2) [2025-04-18 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932199', 'tblTempUsageDetail_20' ) start [2025-04-18 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932199', 'tblTempUsageDetail_20' ) end [2025-04-18 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:22:22] Production.INFO: ==18692== Releasing lock... [2025-04-18 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:22:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:23:05 [end_date_ymd] => 2025-04-18 01:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:23:05' and `end` < '2025-04-18 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-04-18 01:23:18] Production.INFO: count ==846 [2025-04-18 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:23:05 - End Time 2025-04-18 01:23:05 [2025-04-18 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932204', 'tblTempUsageDetail_20' ) start [2025-04-18 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932204', 'tblTempUsageDetail_20' ) end [2025-04-18 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932204', 'tblTempVendorCDR_20' ) start [2025-04-18 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932204', 'tblTempVendorCDR_20' ) end [2025-04-18 01:23:18] Production.INFO: ProcessCDR(1,14932204,1,1,2) [2025-04-18 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932204', 'tblTempUsageDetail_20' ) start [2025-04-18 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932204', 'tblTempUsageDetail_20' ) end [2025-04-18 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:23:21] Production.INFO: ==18772== Releasing lock... [2025-04-18 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:23:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:24:05 [end_date_ymd] => 2025-04-18 01:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:24:05' and `end` < '2025-04-18 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-04-18 01:24:18] Production.INFO: count ==851 [2025-04-18 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:24:05 - End Time 2025-04-18 01:24:05 [2025-04-18 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932209', 'tblTempUsageDetail_20' ) start [2025-04-18 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932209', 'tblTempUsageDetail_20' ) end [2025-04-18 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932209', 'tblTempVendorCDR_20' ) start [2025-04-18 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932209', 'tblTempVendorCDR_20' ) end [2025-04-18 01:24:18] Production.INFO: ProcessCDR(1,14932209,1,1,2) [2025-04-18 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932209', 'tblTempUsageDetail_20' ) start [2025-04-18 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932209', 'tblTempUsageDetail_20' ) end [2025-04-18 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:24:21] Production.INFO: ==18846== Releasing lock... [2025-04-18 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:24:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:25:04 [end_date_ymd] => 2025-04-18 01:25:04 [RateCDR] => 1 ) [2025-04-18 01:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:25:04' and `end` < '2025-04-18 01:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:25:17] Production.INFO: count ==848 [2025-04-18 01:25:17] Production.ERROR: pbx CDR StartTime 2025-04-17 22:25:04 - End Time 2025-04-18 01:25:04 [2025-04-18 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932214', 'tblTempUsageDetail_20' ) start [2025-04-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932214', 'tblTempUsageDetail_20' ) end [2025-04-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932214', 'tblTempVendorCDR_20' ) start [2025-04-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932214', 'tblTempVendorCDR_20' ) end [2025-04-18 01:25:17] Production.INFO: ProcessCDR(1,14932214,1,1,2) [2025-04-18 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932214', 'tblTempUsageDetail_20' ) start [2025-04-18 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932214', 'tblTempUsageDetail_20' ) end [2025-04-18 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:25:20] Production.INFO: ==18924== Releasing lock... [2025-04-18 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:25:20] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:26:04 [end_date_ymd] => 2025-04-18 01:26:04 [RateCDR] => 1 ) [2025-04-18 01:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:26:04' and `end` < '2025-04-18 01:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:26:17] Production.INFO: count ==844 [2025-04-18 01:26:17] Production.ERROR: pbx CDR StartTime 2025-04-17 22:26:04 - End Time 2025-04-18 01:26:04 [2025-04-18 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932219', 'tblTempUsageDetail_20' ) start [2025-04-18 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932219', 'tblTempUsageDetail_20' ) end [2025-04-18 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932219', 'tblTempVendorCDR_20' ) start [2025-04-18 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932219', 'tblTempVendorCDR_20' ) end [2025-04-18 01:26:17] Production.INFO: ProcessCDR(1,14932219,1,1,2) [2025-04-18 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932219', 'tblTempUsageDetail_20' ) start [2025-04-18 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932219', 'tblTempUsageDetail_20' ) end [2025-04-18 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:26:21] Production.INFO: ==18999== Releasing lock... [2025-04-18 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:26:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:27:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:27:07 [end_date_ymd] => 2025-04-18 01:27:07 [RateCDR] => 1 ) [2025-04-18 01:27: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-04-17 22:27:07' and `end` < '2025-04-18 01:27: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-04-18 01:27:19] Production.INFO: count ==845 [2025-04-18 01:27:19] Production.ERROR: pbx CDR StartTime 2025-04-17 22:27:07 - End Time 2025-04-18 01:27:07 [2025-04-18 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932224', 'tblTempUsageDetail_20' ) start [2025-04-18 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932224', 'tblTempUsageDetail_20' ) end [2025-04-18 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932224', 'tblTempVendorCDR_20' ) start [2025-04-18 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932224', 'tblTempVendorCDR_20' ) end [2025-04-18 01:27:19] Production.INFO: ProcessCDR(1,14932224,1,1,2) [2025-04-18 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932224', 'tblTempUsageDetail_20' ) start [2025-04-18 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932224', 'tblTempUsageDetail_20' ) end [2025-04-18 01:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:27:23] Production.INFO: ==19113== Releasing lock... [2025-04-18 01:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:27:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:28:05 [end_date_ymd] => 2025-04-18 01:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:28:05' and `end` < '2025-04-18 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-04-18 01:28:18] Production.INFO: count ==849 [2025-04-18 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:28:05 - End Time 2025-04-18 01:28:05 [2025-04-18 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932229', 'tblTempUsageDetail_20' ) start [2025-04-18 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932229', 'tblTempUsageDetail_20' ) end [2025-04-18 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932229', 'tblTempVendorCDR_20' ) start [2025-04-18 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932229', 'tblTempVendorCDR_20' ) end [2025-04-18 01:28:18] Production.INFO: ProcessCDR(1,14932229,1,1,2) [2025-04-18 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932229', 'tblTempUsageDetail_20' ) start [2025-04-18 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932229', 'tblTempUsageDetail_20' ) end [2025-04-18 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:28:21] Production.INFO: ==19187== Releasing lock... [2025-04-18 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:28:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 01:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:29:06 [end_date_ymd] => 2025-04-18 01:29:06 [RateCDR] => 1 ) [2025-04-18 01: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-04-17 22:29:06' and `end` < '2025-04-18 01: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-04-18 01:29:18] Production.INFO: count ==847 [2025-04-18 01:29:19] Production.ERROR: pbx CDR StartTime 2025-04-17 22:29:06 - End Time 2025-04-18 01:29:06 [2025-04-18 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932234', 'tblTempUsageDetail_20' ) start [2025-04-18 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932234', 'tblTempUsageDetail_20' ) end [2025-04-18 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932234', 'tblTempVendorCDR_20' ) start [2025-04-18 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932234', 'tblTempVendorCDR_20' ) end [2025-04-18 01:29:19] Production.INFO: ProcessCDR(1,14932234,1,1,2) [2025-04-18 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932234', 'tblTempUsageDetail_20' ) start [2025-04-18 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932234', 'tblTempUsageDetail_20' ) end [2025-04-18 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:29:22] Production.INFO: ==19259== Releasing lock... [2025-04-18 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:29:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:30:06 [end_date_ymd] => 2025-04-18 01:30:06 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:30:06' and `end` < '2025-04-18 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-04-18 01:30:19] Production.INFO: count ==855 [2025-04-18 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-17 22:30:06 - End Time 2025-04-18 01:30:06 [2025-04-18 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932240', 'tblTempUsageDetail_20' ) start [2025-04-18 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932240', 'tblTempUsageDetail_20' ) end [2025-04-18 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932240', 'tblTempVendorCDR_20' ) start [2025-04-18 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932240', 'tblTempVendorCDR_20' ) end [2025-04-18 01:30:19] Production.INFO: ProcessCDR(1,14932240,1,1,2) [2025-04-18 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932240', 'tblTempUsageDetail_20' ) start [2025-04-18 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932240', 'tblTempUsageDetail_20' ) end [2025-04-18 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:30:22] Production.INFO: ==19333== Releasing lock... [2025-04-18 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:30:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:31:05 [end_date_ymd] => 2025-04-18 01:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:31:05' and `end` < '2025-04-18 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-04-18 01:31:18] Production.INFO: count ==870 [2025-04-18 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:31:05 - End Time 2025-04-18 01:31:05 [2025-04-18 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932245', 'tblTempUsageDetail_20' ) start [2025-04-18 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932245', 'tblTempUsageDetail_20' ) end [2025-04-18 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932245', 'tblTempVendorCDR_20' ) start [2025-04-18 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932245', 'tblTempVendorCDR_20' ) end [2025-04-18 01:31:18] Production.INFO: ProcessCDR(1,14932245,1,1,2) [2025-04-18 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932245', 'tblTempUsageDetail_20' ) start [2025-04-18 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932245', 'tblTempUsageDetail_20' ) end [2025-04-18 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:31:23] Production.INFO: ==19410== Releasing lock... [2025-04-18 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:31:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:32:05 [end_date_ymd] => 2025-04-18 01:32:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:32:05' and `end` < '2025-04-18 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-04-18 01:32:17] Production.INFO: count ==867 [2025-04-18 01:32:17] Production.ERROR: pbx CDR StartTime 2025-04-17 22:32:05 - End Time 2025-04-18 01:32:05 [2025-04-18 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932250', 'tblTempUsageDetail_20' ) start [2025-04-18 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932250', 'tblTempUsageDetail_20' ) end [2025-04-18 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932250', 'tblTempVendorCDR_20' ) start [2025-04-18 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932250', 'tblTempVendorCDR_20' ) end [2025-04-18 01:32:18] Production.INFO: ProcessCDR(1,14932250,1,1,2) [2025-04-18 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932250', 'tblTempUsageDetail_20' ) start [2025-04-18 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932250', 'tblTempUsageDetail_20' ) end [2025-04-18 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:32:21] Production.INFO: ==19483== Releasing lock... [2025-04-18 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:32:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:33:05 [end_date_ymd] => 2025-04-18 01:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:33:05' and `end` < '2025-04-18 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-04-18 01:33:18] Production.INFO: count ==863 [2025-04-18 01:33:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:33:05 - End Time 2025-04-18 01:33:05 [2025-04-18 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932255', 'tblTempUsageDetail_20' ) start [2025-04-18 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932255', 'tblTempUsageDetail_20' ) end [2025-04-18 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932255', 'tblTempVendorCDR_20' ) start [2025-04-18 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932255', 'tblTempVendorCDR_20' ) end [2025-04-18 01:33:18] Production.INFO: ProcessCDR(1,14932255,1,1,2) [2025-04-18 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932255', 'tblTempUsageDetail_20' ) start [2025-04-18 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932255', 'tblTempUsageDetail_20' ) end [2025-04-18 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:33:22] Production.INFO: ==19560== Releasing lock... [2025-04-18 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:33:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:34:05 [end_date_ymd] => 2025-04-18 01:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:34:05' and `end` < '2025-04-18 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-04-18 01:34:17] Production.INFO: count ==862 [2025-04-18 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:34:05 - End Time 2025-04-18 01:34:05 [2025-04-18 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932260', 'tblTempUsageDetail_20' ) start [2025-04-18 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932260', 'tblTempUsageDetail_20' ) end [2025-04-18 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932260', 'tblTempVendorCDR_20' ) start [2025-04-18 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932260', 'tblTempVendorCDR_20' ) end [2025-04-18 01:34:18] Production.INFO: ProcessCDR(1,14932260,1,1,2) [2025-04-18 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932260', 'tblTempUsageDetail_20' ) start [2025-04-18 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932260', 'tblTempUsageDetail_20' ) end [2025-04-18 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:34:21] Production.INFO: ==19638== Releasing lock... [2025-04-18 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:34:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:35:05 [end_date_ymd] => 2025-04-18 01:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:35:05' and `end` < '2025-04-18 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-04-18 01:35:17] Production.INFO: count ==859 [2025-04-18 01:35:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:35:05 - End Time 2025-04-18 01:35:05 [2025-04-18 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932265', 'tblTempUsageDetail_20' ) start [2025-04-18 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932265', 'tblTempUsageDetail_20' ) end [2025-04-18 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932265', 'tblTempVendorCDR_20' ) start [2025-04-18 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932265', 'tblTempVendorCDR_20' ) end [2025-04-18 01:35:18] Production.INFO: ProcessCDR(1,14932265,1,1,2) [2025-04-18 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932265', 'tblTempUsageDetail_20' ) start [2025-04-18 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932265', 'tblTempUsageDetail_20' ) end [2025-04-18 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:35:21] Production.INFO: ==19719== Releasing lock... [2025-04-18 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:35:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:36:05 [end_date_ymd] => 2025-04-18 01:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:36:05' and `end` < '2025-04-18 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-04-18 01:36:18] Production.INFO: count ==859 [2025-04-18 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:36:05 - End Time 2025-04-18 01:36:05 [2025-04-18 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932270', 'tblTempUsageDetail_20' ) start [2025-04-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932270', 'tblTempUsageDetail_20' ) end [2025-04-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932270', 'tblTempVendorCDR_20' ) start [2025-04-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932270', 'tblTempVendorCDR_20' ) end [2025-04-18 01:36:18] Production.INFO: ProcessCDR(1,14932270,1,1,2) [2025-04-18 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932270', 'tblTempUsageDetail_20' ) start [2025-04-18 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932270', 'tblTempUsageDetail_20' ) end [2025-04-18 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:36:22] Production.INFO: ==19794== Releasing lock... [2025-04-18 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:36:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:37:05 [end_date_ymd] => 2025-04-18 01:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:37:05' and `end` < '2025-04-18 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-04-18 01:37:18] Production.INFO: count ==889 [2025-04-18 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:37:05 - End Time 2025-04-18 01:37:05 [2025-04-18 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932275', 'tblTempUsageDetail_20' ) start [2025-04-18 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932275', 'tblTempUsageDetail_20' ) end [2025-04-18 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932275', 'tblTempVendorCDR_20' ) start [2025-04-18 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932275', 'tblTempVendorCDR_20' ) end [2025-04-18 01:37:18] Production.INFO: ProcessCDR(1,14932275,1,1,2) [2025-04-18 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932275', 'tblTempUsageDetail_20' ) start [2025-04-18 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932275', 'tblTempUsageDetail_20' ) end [2025-04-18 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:37:22] Production.INFO: ==19866== Releasing lock... [2025-04-18 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:37:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:38:05 [end_date_ymd] => 2025-04-18 01:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:38:05' and `end` < '2025-04-18 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-04-18 01:38:17] Production.INFO: count ==890 [2025-04-18 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:38:05 - End Time 2025-04-18 01:38:05 [2025-04-18 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932280', 'tblTempUsageDetail_20' ) start [2025-04-18 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932280', 'tblTempUsageDetail_20' ) end [2025-04-18 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932280', 'tblTempVendorCDR_20' ) start [2025-04-18 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932280', 'tblTempVendorCDR_20' ) end [2025-04-18 01:38:18] Production.INFO: ProcessCDR(1,14932280,1,1,2) [2025-04-18 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932280', 'tblTempUsageDetail_20' ) start [2025-04-18 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932280', 'tblTempUsageDetail_20' ) end [2025-04-18 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:38:21] Production.INFO: ==19940== Releasing lock... [2025-04-18 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:38:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:39:05 [end_date_ymd] => 2025-04-18 01:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:39:05' and `end` < '2025-04-18 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-04-18 01:39:18] Production.INFO: count ==890 [2025-04-18 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:39:05 - End Time 2025-04-18 01:39:05 [2025-04-18 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932285', 'tblTempUsageDetail_20' ) start [2025-04-18 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932285', 'tblTempUsageDetail_20' ) end [2025-04-18 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932285', 'tblTempVendorCDR_20' ) start [2025-04-18 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932285', 'tblTempVendorCDR_20' ) end [2025-04-18 01:39:18] Production.INFO: ProcessCDR(1,14932285,1,1,2) [2025-04-18 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932285', 'tblTempUsageDetail_20' ) start [2025-04-18 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932285', 'tblTempUsageDetail_20' ) end [2025-04-18 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:39:22] Production.INFO: ==20013== Releasing lock... [2025-04-18 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:39:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:40:06 [end_date_ymd] => 2025-04-18 01:40:06 [RateCDR] => 1 ) [2025-04-18 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:40:06' and `end` < '2025-04-18 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:40:18] Production.INFO: count ==897 [2025-04-18 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-17 22:40:06 - End Time 2025-04-18 01:40:06 [2025-04-18 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932290', 'tblTempUsageDetail_20' ) start [2025-04-18 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932290', 'tblTempUsageDetail_20' ) end [2025-04-18 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932290', 'tblTempVendorCDR_20' ) start [2025-04-18 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932290', 'tblTempVendorCDR_20' ) end [2025-04-18 01:40:19] Production.INFO: ProcessCDR(1,14932290,1,1,2) [2025-04-18 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932290', 'tblTempUsageDetail_20' ) start [2025-04-18 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932290', 'tblTempUsageDetail_20' ) end [2025-04-18 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:40:22] Production.INFO: ==20088== Releasing lock... [2025-04-18 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:40:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:41:04 [end_date_ymd] => 2025-04-18 01:41:04 [RateCDR] => 1 ) [2025-04-18 01:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:41:04' and `end` < '2025-04-18 01:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:41:17] Production.INFO: count ==905 [2025-04-18 01:41:17] Production.ERROR: pbx CDR StartTime 2025-04-17 22:41:04 - End Time 2025-04-18 01:41:04 [2025-04-18 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932296', 'tblTempUsageDetail_20' ) start [2025-04-18 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932296', 'tblTempUsageDetail_20' ) end [2025-04-18 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932296', 'tblTempVendorCDR_20' ) start [2025-04-18 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932296', 'tblTempVendorCDR_20' ) end [2025-04-18 01:41:17] Production.INFO: ProcessCDR(1,14932296,1,1,2) [2025-04-18 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932296', 'tblTempUsageDetail_20' ) start [2025-04-18 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932296', 'tblTempUsageDetail_20' ) end [2025-04-18 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:41:21] Production.INFO: ==20168== Releasing lock... [2025-04-18 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:41:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:42:06 [end_date_ymd] => 2025-04-18 01:42:06 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:42:06' and `end` < '2025-04-18 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-04-18 01:42:19] Production.INFO: count ==907 [2025-04-18 01:42:19] Production.ERROR: pbx CDR StartTime 2025-04-17 22:42:06 - End Time 2025-04-18 01:42:06 [2025-04-18 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932301', 'tblTempUsageDetail_20' ) start [2025-04-18 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932301', 'tblTempUsageDetail_20' ) end [2025-04-18 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932301', 'tblTempVendorCDR_20' ) start [2025-04-18 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932301', 'tblTempVendorCDR_20' ) end [2025-04-18 01:42:19] Production.INFO: ProcessCDR(1,14932301,1,1,2) [2025-04-18 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932301', 'tblTempUsageDetail_20' ) start [2025-04-18 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932301', 'tblTempUsageDetail_20' ) end [2025-04-18 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:42:22] Production.INFO: ==20243== Releasing lock... [2025-04-18 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:42:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:43:04 [end_date_ymd] => 2025-04-18 01:43:04 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:43:04' and `end` < '2025-04-18 01:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:43:17] Production.INFO: count ==904 [2025-04-18 01:43:17] Production.ERROR: pbx CDR StartTime 2025-04-17 22:43:04 - End Time 2025-04-18 01:43:04 [2025-04-18 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932306', 'tblTempUsageDetail_20' ) start [2025-04-18 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932306', 'tblTempUsageDetail_20' ) end [2025-04-18 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932306', 'tblTempVendorCDR_20' ) start [2025-04-18 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932306', 'tblTempVendorCDR_20' ) end [2025-04-18 01:43:18] Production.INFO: ProcessCDR(1,14932306,1,1,2) [2025-04-18 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932306', 'tblTempUsageDetail_20' ) start [2025-04-18 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932306', 'tblTempUsageDetail_20' ) end [2025-04-18 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:43:21] Production.INFO: ==20356== Releasing lock... [2025-04-18 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:43:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:44:05 [end_date_ymd] => 2025-04-18 01:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:44:05' and `end` < '2025-04-18 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-04-18 01:44:18] Production.INFO: count ==901 [2025-04-18 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:44:05 - End Time 2025-04-18 01:44:05 [2025-04-18 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932311', 'tblTempUsageDetail_20' ) start [2025-04-18 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932311', 'tblTempUsageDetail_20' ) end [2025-04-18 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932311', 'tblTempVendorCDR_20' ) start [2025-04-18 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932311', 'tblTempVendorCDR_20' ) end [2025-04-18 01:44:18] Production.INFO: ProcessCDR(1,14932311,1,1,2) [2025-04-18 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932311', 'tblTempUsageDetail_20' ) start [2025-04-18 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932311', 'tblTempUsageDetail_20' ) end [2025-04-18 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:44:21] Production.INFO: ==20429== Releasing lock... [2025-04-18 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:44:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:45:06 [end_date_ymd] => 2025-04-18 01:45:06 [RateCDR] => 1 ) [2025-04-18 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:45:06' and `end` < '2025-04-18 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:45:18] Production.INFO: count ==900 [2025-04-18 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:45:06 - End Time 2025-04-18 01:45:06 [2025-04-18 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932316', 'tblTempUsageDetail_20' ) start [2025-04-18 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932316', 'tblTempUsageDetail_20' ) end [2025-04-18 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932316', 'tblTempVendorCDR_20' ) start [2025-04-18 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932316', 'tblTempVendorCDR_20' ) end [2025-04-18 01:45:18] Production.INFO: ProcessCDR(1,14932316,1,1,2) [2025-04-18 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932316', 'tblTempUsageDetail_20' ) start [2025-04-18 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932316', 'tblTempUsageDetail_20' ) end [2025-04-18 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:45:22] Production.INFO: ==20510== Releasing lock... [2025-04-18 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:45:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:46:05 [end_date_ymd] => 2025-04-18 01:46:05 [RateCDR] => 1 ) [2025-04-18 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:46:05' and `end` < '2025-04-18 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-04-18 01:46:18] Production.INFO: count ==897 [2025-04-18 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:46:05 - End Time 2025-04-18 01:46:05 [2025-04-18 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932321', 'tblTempUsageDetail_20' ) start [2025-04-18 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932321', 'tblTempUsageDetail_20' ) end [2025-04-18 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932321', 'tblTempVendorCDR_20' ) start [2025-04-18 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932321', 'tblTempVendorCDR_20' ) end [2025-04-18 01:46:18] Production.INFO: ProcessCDR(1,14932321,1,1,2) [2025-04-18 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932321', 'tblTempUsageDetail_20' ) start [2025-04-18 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932321', 'tblTempUsageDetail_20' ) end [2025-04-18 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:46:22] Production.INFO: ==20585== Releasing lock... [2025-04-18 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:46:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:47:05 [end_date_ymd] => 2025-04-18 01:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:47:05' and `end` < '2025-04-18 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-04-18 01:47:18] Production.INFO: count ==916 [2025-04-18 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:47:05 - End Time 2025-04-18 01:47:05 [2025-04-18 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932326', 'tblTempUsageDetail_20' ) start [2025-04-18 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932326', 'tblTempUsageDetail_20' ) end [2025-04-18 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932326', 'tblTempVendorCDR_20' ) start [2025-04-18 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932326', 'tblTempVendorCDR_20' ) end [2025-04-18 01:47:19] Production.INFO: ProcessCDR(1,14932326,1,1,2) [2025-04-18 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932326', 'tblTempUsageDetail_20' ) start [2025-04-18 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932326', 'tblTempUsageDetail_20' ) end [2025-04-18 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:47:22] Production.INFO: ==20661== Releasing lock... [2025-04-18 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:47:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:48:05 [end_date_ymd] => 2025-04-18 01:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:48:05' and `end` < '2025-04-18 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-04-18 01:48:18] Production.INFO: count ==919 [2025-04-18 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:48:05 - End Time 2025-04-18 01:48:05 [2025-04-18 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932331', 'tblTempUsageDetail_20' ) start [2025-04-18 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932331', 'tblTempUsageDetail_20' ) end [2025-04-18 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932331', 'tblTempVendorCDR_20' ) start [2025-04-18 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932331', 'tblTempVendorCDR_20' ) end [2025-04-18 01:48:18] Production.INFO: ProcessCDR(1,14932331,1,1,2) [2025-04-18 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932331', 'tblTempUsageDetail_20' ) start [2025-04-18 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932331', 'tblTempUsageDetail_20' ) end [2025-04-18 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:48:22] Production.INFO: ==20735== Releasing lock... [2025-04-18 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:48:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:49:05 [end_date_ymd] => 2025-04-18 01:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:49:05' and `end` < '2025-04-18 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-04-18 01:49:18] Production.INFO: count ==919 [2025-04-18 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:49:05 - End Time 2025-04-18 01:49:05 [2025-04-18 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932336', 'tblTempUsageDetail_20' ) start [2025-04-18 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932336', 'tblTempUsageDetail_20' ) end [2025-04-18 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932336', 'tblTempVendorCDR_20' ) start [2025-04-18 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932336', 'tblTempVendorCDR_20' ) end [2025-04-18 01:49:18] Production.INFO: ProcessCDR(1,14932336,1,1,2) [2025-04-18 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932336', 'tblTempUsageDetail_20' ) start [2025-04-18 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932336', 'tblTempUsageDetail_20' ) end [2025-04-18 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:49:21] Production.INFO: ==20811== Releasing lock... [2025-04-18 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:49:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:50:05 [end_date_ymd] => 2025-04-18 01:50:05 [RateCDR] => 1 ) [2025-04-18 01: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-04-17 22:50:05' and `end` < '2025-04-18 01: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-04-18 01:50:18] Production.INFO: count ==923 [2025-04-18 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:50:05 - End Time 2025-04-18 01:50:05 [2025-04-18 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932342', 'tblTempUsageDetail_20' ) start [2025-04-18 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932342', 'tblTempUsageDetail_20' ) end [2025-04-18 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932342', 'tblTempVendorCDR_20' ) start [2025-04-18 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932342', 'tblTempVendorCDR_20' ) end [2025-04-18 01:50:18] Production.INFO: ProcessCDR(1,14932342,1,1,2) [2025-04-18 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932342', 'tblTempUsageDetail_20' ) start [2025-04-18 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932342', 'tblTempUsageDetail_20' ) end [2025-04-18 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:50:21] Production.INFO: ==20894== Releasing lock... [2025-04-18 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:50:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:51:05 [end_date_ymd] => 2025-04-18 01:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:51:05' and `end` < '2025-04-18 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-04-18 01:51:18] Production.INFO: count ==933 [2025-04-18 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:51:05 - End Time 2025-04-18 01:51:05 [2025-04-18 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932347', 'tblTempUsageDetail_20' ) start [2025-04-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932347', 'tblTempUsageDetail_20' ) end [2025-04-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932347', 'tblTempVendorCDR_20' ) start [2025-04-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932347', 'tblTempVendorCDR_20' ) end [2025-04-18 01:51:18] Production.INFO: ProcessCDR(1,14932347,1,1,2) [2025-04-18 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932347', 'tblTempUsageDetail_20' ) start [2025-04-18 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932347', 'tblTempUsageDetail_20' ) end [2025-04-18 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:51:21] Production.INFO: ==20976== Releasing lock... [2025-04-18 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:51:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 01:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:52:04 [end_date_ymd] => 2025-04-18 01:52:04 [RateCDR] => 1 ) [2025-04-18 01:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:52:04' and `end` < '2025-04-18 01:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:52:17] Production.INFO: count ==937 [2025-04-18 01:52:17] Production.ERROR: pbx CDR StartTime 2025-04-17 22:52:04 - End Time 2025-04-18 01:52:04 [2025-04-18 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932352', 'tblTempUsageDetail_20' ) start [2025-04-18 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932352', 'tblTempUsageDetail_20' ) end [2025-04-18 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932352', 'tblTempVendorCDR_20' ) start [2025-04-18 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932352', 'tblTempVendorCDR_20' ) end [2025-04-18 01:52:17] Production.INFO: ProcessCDR(1,14932352,1,1,2) [2025-04-18 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932352', 'tblTempUsageDetail_20' ) start [2025-04-18 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932352', 'tblTempUsageDetail_20' ) end [2025-04-18 01:52:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:52:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:52:20] Production.INFO: ==21050== Releasing lock... [2025-04-18 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:52:20] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:53:05 [end_date_ymd] => 2025-04-18 01:53:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:53:05' and `end` < '2025-04-18 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-04-18 01:53:18] Production.INFO: count ==938 [2025-04-18 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:53:05 - End Time 2025-04-18 01:53:05 [2025-04-18 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932357', 'tblTempUsageDetail_20' ) start [2025-04-18 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932357', 'tblTempUsageDetail_20' ) end [2025-04-18 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932357', 'tblTempVendorCDR_20' ) start [2025-04-18 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932357', 'tblTempVendorCDR_20' ) end [2025-04-18 01:53:18] Production.INFO: ProcessCDR(1,14932357,1,1,2) [2025-04-18 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932357', 'tblTempUsageDetail_20' ) start [2025-04-18 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932357', 'tblTempUsageDetail_20' ) end [2025-04-18 01:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:53:23] Production.INFO: ==21127== Releasing lock... [2025-04-18 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:53:23] Production.INFO: 36 MB #Memory Used# [2025-04-18 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:54:05 [end_date_ymd] => 2025-04-18 01:54:05 [RateCDR] => 1 ) [2025-04-18 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:54:05' and `end` < '2025-04-18 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:54:18] Production.INFO: count ==937 [2025-04-18 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:54:05 - End Time 2025-04-18 01:54:05 [2025-04-18 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932362', 'tblTempUsageDetail_20' ) start [2025-04-18 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932362', 'tblTempUsageDetail_20' ) end [2025-04-18 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932362', 'tblTempVendorCDR_20' ) start [2025-04-18 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932362', 'tblTempVendorCDR_20' ) end [2025-04-18 01:54:18] Production.INFO: ProcessCDR(1,14932362,1,1,2) [2025-04-18 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932362', 'tblTempUsageDetail_20' ) start [2025-04-18 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932362', 'tblTempUsageDetail_20' ) end [2025-04-18 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:54:21] Production.INFO: ==21199== Releasing lock... [2025-04-18 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:54:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:55:05 [end_date_ymd] => 2025-04-18 01:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:55:05' and `end` < '2025-04-18 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-04-18 01:55:18] Production.INFO: count ==935 [2025-04-18 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:55:05 - End Time 2025-04-18 01:55:05 [2025-04-18 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932367', 'tblTempUsageDetail_20' ) start [2025-04-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932367', 'tblTempUsageDetail_20' ) end [2025-04-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932367', 'tblTempVendorCDR_20' ) start [2025-04-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932367', 'tblTempVendorCDR_20' ) end [2025-04-18 01:55:18] Production.INFO: ProcessCDR(1,14932367,1,1,2) [2025-04-18 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932367', 'tblTempUsageDetail_20' ) start [2025-04-18 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932367', 'tblTempUsageDetail_20' ) end [2025-04-18 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:55:22] Production.INFO: ==21275== Releasing lock... [2025-04-18 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:55:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:56:06 [end_date_ymd] => 2025-04-18 01:56:06 [RateCDR] => 1 ) [2025-04-18 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 22:56:06' and `end` < '2025-04-18 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 01:56:19] Production.INFO: count ==937 [2025-04-18 01:56:19] Production.ERROR: pbx CDR StartTime 2025-04-17 22:56:06 - End Time 2025-04-18 01:56:06 [2025-04-18 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932372', 'tblTempUsageDetail_20' ) start [2025-04-18 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932372', 'tblTempUsageDetail_20' ) end [2025-04-18 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932372', 'tblTempVendorCDR_20' ) start [2025-04-18 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932372', 'tblTempVendorCDR_20' ) end [2025-04-18 01:56:19] Production.INFO: ProcessCDR(1,14932372,1,1,2) [2025-04-18 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932372', 'tblTempUsageDetail_20' ) start [2025-04-18 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932372', 'tblTempUsageDetail_20' ) end [2025-04-18 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:56:22] Production.INFO: ==21348== Releasing lock... [2025-04-18 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:56:22] Production.INFO: 36 MB #Memory Used# [2025-04-18 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:57:05 [end_date_ymd] => 2025-04-18 01:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:57:05' and `end` < '2025-04-18 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-04-18 01:57:17] Production.INFO: count ==936 [2025-04-18 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:57:05 - End Time 2025-04-18 01:57:05 [2025-04-18 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932377', 'tblTempUsageDetail_20' ) start [2025-04-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932377', 'tblTempUsageDetail_20' ) end [2025-04-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932377', 'tblTempVendorCDR_20' ) start [2025-04-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932377', 'tblTempVendorCDR_20' ) end [2025-04-18 01:57:18] Production.INFO: ProcessCDR(1,14932377,1,1,2) [2025-04-18 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932377', 'tblTempUsageDetail_20' ) start [2025-04-18 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932377', 'tblTempUsageDetail_20' ) end [2025-04-18 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:57:21] Production.INFO: ==21420== Releasing lock... [2025-04-18 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:57:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:58:05 [end_date_ymd] => 2025-04-18 01:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:58:05' and `end` < '2025-04-18 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-04-18 01:58:18] Production.INFO: count ==934 [2025-04-18 01:58:19] Production.ERROR: pbx CDR StartTime 2025-04-17 22:58:05 - End Time 2025-04-18 01:58:05 [2025-04-18 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932382', 'tblTempUsageDetail_20' ) start [2025-04-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932382', 'tblTempUsageDetail_20' ) end [2025-04-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932382', 'tblTempVendorCDR_20' ) start [2025-04-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932382', 'tblTempVendorCDR_20' ) end [2025-04-18 01:58:19] Production.INFO: ProcessCDR(1,14932382,1,1,2) [2025-04-18 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932382', 'tblTempUsageDetail_20' ) start [2025-04-18 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932382', 'tblTempUsageDetail_20' ) end [2025-04-18 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:58:22] Production.INFO: ==21533== Releasing lock... [2025-04-18 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:58:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 22:59:05 [end_date_ymd] => 2025-04-18 01:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 22:59:05' and `end` < '2025-04-18 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-04-18 01:59:18] Production.INFO: count ==932 [2025-04-18 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-17 22:59:05 - End Time 2025-04-18 01:59:05 [2025-04-18 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932387', 'tblTempUsageDetail_20' ) start [2025-04-18 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932387', 'tblTempUsageDetail_20' ) end [2025-04-18 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932387', 'tblTempVendorCDR_20' ) start [2025-04-18 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932387', 'tblTempVendorCDR_20' ) end [2025-04-18 01:59:18] Production.INFO: ProcessCDR(1,14932387,1,1,2) [2025-04-18 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932387', 'tblTempUsageDetail_20' ) start [2025-04-18 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932387', 'tblTempUsageDetail_20' ) end [2025-04-18 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 01:59:21] Production.INFO: ==21607== Releasing lock... [2025-04-18 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 01:59:21] Production.INFO: 36 MB #Memory Used# [2025-04-18 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:00:05 [end_date_ymd] => 2025-04-18 02:00:05 [RateCDR] => 1 ) [2025-04-18 02: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-04-17 23:00:05' and `end` < '2025-04-18 02: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-04-18 02:00:18] Production.INFO: count ==934 [2025-04-18 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-17 23:00:05 - End Time 2025-04-18 02:00:05 [2025-04-18 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932393', 'tblTempUsageDetail_20' ) start [2025-04-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932393', 'tblTempUsageDetail_20' ) end [2025-04-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932393', 'tblTempVendorCDR_20' ) start [2025-04-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932393', 'tblTempVendorCDR_20' ) end [2025-04-18 02:00:19] Production.INFO: ProcessCDR(1,14932393,1,1,2) [2025-04-18 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932393', 'tblTempUsageDetail_20' ) start [2025-04-18 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932393', 'tblTempUsageDetail_20' ) end [2025-04-18 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:00:22] Production.INFO: ==21686== Releasing lock... [2025-04-18 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:00:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:01:05 [end_date_ymd] => 2025-04-18 02:01:05 [RateCDR] => 1 ) [2025-04-18 02: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-04-17 23:01:05' and `end` < '2025-04-18 02: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-04-18 02:01:18] Production.INFO: count ==932 [2025-04-18 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:01:05 - End Time 2025-04-18 02:01:05 [2025-04-18 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932398', 'tblTempUsageDetail_20' ) start [2025-04-18 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932398', 'tblTempUsageDetail_20' ) end [2025-04-18 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932398', 'tblTempVendorCDR_20' ) start [2025-04-18 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932398', 'tblTempVendorCDR_20' ) end [2025-04-18 02:01:18] Production.INFO: ProcessCDR(1,14932398,1,1,2) [2025-04-18 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932398', 'tblTempUsageDetail_20' ) start [2025-04-18 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932398', 'tblTempUsageDetail_20' ) end [2025-04-18 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:01:22] Production.INFO: ==21777== Releasing lock... [2025-04-18 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:01:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:02:05 [end_date_ymd] => 2025-04-18 02:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:02:05' and `end` < '2025-04-18 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-04-18 02:02:18] Production.INFO: count ==930 [2025-04-18 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:02:05 - End Time 2025-04-18 02:02:05 [2025-04-18 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932403', 'tblTempUsageDetail_20' ) start [2025-04-18 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932403', 'tblTempUsageDetail_20' ) end [2025-04-18 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932403', 'tblTempVendorCDR_20' ) start [2025-04-18 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932403', 'tblTempVendorCDR_20' ) end [2025-04-18 02:02:18] Production.INFO: ProcessCDR(1,14932403,1,1,2) [2025-04-18 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932403', 'tblTempUsageDetail_20' ) start [2025-04-18 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932403', 'tblTempUsageDetail_20' ) end [2025-04-18 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:02:22] Production.INFO: ==21939== Releasing lock... [2025-04-18 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:02:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:03:05 [end_date_ymd] => 2025-04-18 02:03:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:03:05' and `end` < '2025-04-18 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-04-18 02:03:17] Production.INFO: count ==931 [2025-04-18 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:03:05 - End Time 2025-04-18 02:03:05 [2025-04-18 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932408', 'tblTempUsageDetail_20' ) start [2025-04-18 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932408', 'tblTempUsageDetail_20' ) end [2025-04-18 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932408', 'tblTempVendorCDR_20' ) start [2025-04-18 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932408', 'tblTempVendorCDR_20' ) end [2025-04-18 02:03:18] Production.INFO: ProcessCDR(1,14932408,1,1,2) [2025-04-18 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932408', 'tblTempUsageDetail_20' ) start [2025-04-18 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932408', 'tblTempUsageDetail_20' ) end [2025-04-18 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:03:21] Production.INFO: ==22011== Releasing lock... [2025-04-18 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:03:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:04:05 [end_date_ymd] => 2025-04-18 02:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:04:05' and `end` < '2025-04-18 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-04-18 02:04:18] Production.INFO: count ==931 [2025-04-18 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:04:05 - End Time 2025-04-18 02:04:05 [2025-04-18 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932413', 'tblTempUsageDetail_20' ) start [2025-04-18 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932413', 'tblTempUsageDetail_20' ) end [2025-04-18 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932413', 'tblTempVendorCDR_20' ) start [2025-04-18 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932413', 'tblTempVendorCDR_20' ) end [2025-04-18 02:04:18] Production.INFO: ProcessCDR(1,14932413,1,1,2) [2025-04-18 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932413', 'tblTempUsageDetail_20' ) start [2025-04-18 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932413', 'tblTempUsageDetail_20' ) end [2025-04-18 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:04:22] Production.INFO: ==22085== Releasing lock... [2025-04-18 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:04:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:05:05 [end_date_ymd] => 2025-04-18 02:05:05 [RateCDR] => 1 ) [2025-04-18 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:05:05' and `end` < '2025-04-18 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:05:18] Production.INFO: count ==934 [2025-04-18 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:05:05 - End Time 2025-04-18 02:05:05 [2025-04-18 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932418', 'tblTempUsageDetail_20' ) start [2025-04-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932418', 'tblTempUsageDetail_20' ) end [2025-04-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932418', 'tblTempVendorCDR_20' ) start [2025-04-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932418', 'tblTempVendorCDR_20' ) end [2025-04-18 02:05:18] Production.INFO: ProcessCDR(1,14932418,1,1,2) [2025-04-18 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932418', 'tblTempUsageDetail_20' ) start [2025-04-18 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932418', 'tblTempUsageDetail_20' ) end [2025-04-18 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:05:22] Production.INFO: ==22169== Releasing lock... [2025-04-18 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:05:22] Production.INFO: 36 MB #Memory Used# [2025-04-18 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:06:05 [end_date_ymd] => 2025-04-18 02:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:06:05' and `end` < '2025-04-18 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-04-18 02:06:18] Production.INFO: count ==935 [2025-04-18 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:06:05 - End Time 2025-04-18 02:06:05 [2025-04-18 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932423', 'tblTempUsageDetail_20' ) start [2025-04-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932423', 'tblTempUsageDetail_20' ) end [2025-04-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932423', 'tblTempVendorCDR_20' ) start [2025-04-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932423', 'tblTempVendorCDR_20' ) end [2025-04-18 02:06:18] Production.INFO: ProcessCDR(1,14932423,1,1,2) [2025-04-18 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932423', 'tblTempUsageDetail_20' ) start [2025-04-18 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932423', 'tblTempUsageDetail_20' ) end [2025-04-18 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:06:22] Production.INFO: ==22241== Releasing lock... [2025-04-18 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:06:22] Production.INFO: 36 MB #Memory Used# [2025-04-18 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:07:06 [end_date_ymd] => 2025-04-18 02:07:06 [RateCDR] => 1 ) [2025-04-18 02: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-04-17 23:07:06' and `end` < '2025-04-18 02: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-04-18 02:07:19] Production.INFO: count ==934 [2025-04-18 02:07:19] Production.ERROR: pbx CDR StartTime 2025-04-17 23:07:06 - End Time 2025-04-18 02:07:06 [2025-04-18 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932428', 'tblTempUsageDetail_20' ) start [2025-04-18 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932428', 'tblTempUsageDetail_20' ) end [2025-04-18 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932428', 'tblTempVendorCDR_20' ) start [2025-04-18 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932428', 'tblTempVendorCDR_20' ) end [2025-04-18 02:07:19] Production.INFO: ProcessCDR(1,14932428,1,1,2) [2025-04-18 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932428', 'tblTempUsageDetail_20' ) start [2025-04-18 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932428', 'tblTempUsageDetail_20' ) end [2025-04-18 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:07:22] Production.INFO: ==22316== Releasing lock... [2025-04-18 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:07:22] Production.INFO: 36 MB #Memory Used# [2025-04-18 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:08:05 [end_date_ymd] => 2025-04-18 02:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:08:05' and `end` < '2025-04-18 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-04-18 02:08:17] Production.INFO: count ==934 [2025-04-18 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:08:05 - End Time 2025-04-18 02:08:05 [2025-04-18 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932433', 'tblTempUsageDetail_20' ) start [2025-04-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932433', 'tblTempUsageDetail_20' ) end [2025-04-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932433', 'tblTempVendorCDR_20' ) start [2025-04-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932433', 'tblTempVendorCDR_20' ) end [2025-04-18 02:08:18] Production.INFO: ProcessCDR(1,14932433,1,1,2) [2025-04-18 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932433', 'tblTempUsageDetail_20' ) start [2025-04-18 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932433', 'tblTempUsageDetail_20' ) end [2025-04-18 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:08:21] Production.INFO: ==22388== Releasing lock... [2025-04-18 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:08:21] Production.INFO: 36 MB #Memory Used# [2025-04-18 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:09:05 [end_date_ymd] => 2025-04-18 02:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:09:05' and `end` < '2025-04-18 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-04-18 02:09:18] Production.INFO: count ==932 [2025-04-18 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:09:05 - End Time 2025-04-18 02:09:05 [2025-04-18 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932438', 'tblTempUsageDetail_20' ) start [2025-04-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932438', 'tblTempUsageDetail_20' ) end [2025-04-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932438', 'tblTempVendorCDR_20' ) start [2025-04-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932438', 'tblTempVendorCDR_20' ) end [2025-04-18 02:09:18] Production.INFO: ProcessCDR(1,14932438,1,1,2) [2025-04-18 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932438', 'tblTempUsageDetail_20' ) start [2025-04-18 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932438', 'tblTempUsageDetail_20' ) end [2025-04-18 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:09:21] Production.INFO: ==22463== Releasing lock... [2025-04-18 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:09:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:10:05 [end_date_ymd] => 2025-04-18 02:10:05 [RateCDR] => 1 ) [2025-04-18 02:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:10:05' and `end` < '2025-04-18 02:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:10:18] Production.INFO: count ==929 [2025-04-18 02:10:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:10:05 - End Time 2025-04-18 02:10:05 [2025-04-18 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932443', 'tblTempUsageDetail_20' ) start [2025-04-18 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932443', 'tblTempUsageDetail_20' ) end [2025-04-18 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932443', 'tblTempVendorCDR_20' ) start [2025-04-18 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932443', 'tblTempVendorCDR_20' ) end [2025-04-18 02:10:18] Production.INFO: ProcessCDR(1,14932443,1,1,2) [2025-04-18 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932443', 'tblTempUsageDetail_20' ) start [2025-04-18 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932443', 'tblTempUsageDetail_20' ) end [2025-04-18 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:10:21] Production.INFO: ==22540== Releasing lock... [2025-04-18 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:10:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:11:05 [end_date_ymd] => 2025-04-18 02:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:11:05' and `end` < '2025-04-18 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-04-18 02:11:18] Production.INFO: count ==926 [2025-04-18 02:11:19] Production.ERROR: pbx CDR StartTime 2025-04-17 23:11:05 - End Time 2025-04-18 02:11:05 [2025-04-18 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932449', 'tblTempUsageDetail_20' ) start [2025-04-18 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932449', 'tblTempUsageDetail_20' ) end [2025-04-18 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932449', 'tblTempVendorCDR_20' ) start [2025-04-18 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932449', 'tblTempVendorCDR_20' ) end [2025-04-18 02:11:19] Production.INFO: ProcessCDR(1,14932449,1,1,2) [2025-04-18 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932449', 'tblTempUsageDetail_20' ) start [2025-04-18 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932449', 'tblTempUsageDetail_20' ) end [2025-04-18 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:11:22] Production.INFO: ==22617== Releasing lock... [2025-04-18 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:11:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:12:04 [end_date_ymd] => 2025-04-18 02:12:04 [RateCDR] => 1 ) [2025-04-18 02:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:12:04' and `end` < '2025-04-18 02:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:12:17] Production.INFO: count ==921 [2025-04-18 02:12:17] Production.ERROR: pbx CDR StartTime 2025-04-17 23:12:04 - End Time 2025-04-18 02:12:04 [2025-04-18 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932454', 'tblTempUsageDetail_20' ) start [2025-04-18 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932454', 'tblTempUsageDetail_20' ) end [2025-04-18 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932454', 'tblTempVendorCDR_20' ) start [2025-04-18 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932454', 'tblTempVendorCDR_20' ) end [2025-04-18 02:12:17] Production.INFO: ProcessCDR(1,14932454,1,1,2) [2025-04-18 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932454', 'tblTempUsageDetail_20' ) start [2025-04-18 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932454', 'tblTempUsageDetail_20' ) end [2025-04-18 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:12:21] Production.INFO: ==22693== Releasing lock... [2025-04-18 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:12:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:13:05 [end_date_ymd] => 2025-04-18 02:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:13:05' and `end` < '2025-04-18 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-04-18 02:13:18] Production.INFO: count ==916 [2025-04-18 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:13:05 - End Time 2025-04-18 02:13:05 [2025-04-18 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932459', 'tblTempUsageDetail_20' ) start [2025-04-18 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932459', 'tblTempUsageDetail_20' ) end [2025-04-18 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932459', 'tblTempVendorCDR_20' ) start [2025-04-18 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932459', 'tblTempVendorCDR_20' ) end [2025-04-18 02:13:18] Production.INFO: ProcessCDR(1,14932459,1,1,2) [2025-04-18 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932459', 'tblTempUsageDetail_20' ) start [2025-04-18 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932459', 'tblTempUsageDetail_20' ) end [2025-04-18 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:13:21] Production.INFO: ==22764== Releasing lock... [2025-04-18 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:13:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:14:05 [end_date_ymd] => 2025-04-18 02:14:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:14:05' and `end` < '2025-04-18 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-04-18 02:14:17] Production.INFO: count ==913 [2025-04-18 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:14:05 - End Time 2025-04-18 02:14:05 [2025-04-18 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932464', 'tblTempUsageDetail_20' ) start [2025-04-18 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932464', 'tblTempUsageDetail_20' ) end [2025-04-18 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932464', 'tblTempVendorCDR_20' ) start [2025-04-18 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932464', 'tblTempVendorCDR_20' ) end [2025-04-18 02:14:18] Production.INFO: ProcessCDR(1,14932464,1,1,2) [2025-04-18 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932464', 'tblTempUsageDetail_20' ) start [2025-04-18 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932464', 'tblTempUsageDetail_20' ) end [2025-04-18 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:14:21] Production.INFO: ==22878== Releasing lock... [2025-04-18 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:14:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:15:05 [end_date_ymd] => 2025-04-18 02:15:05 [RateCDR] => 1 ) [2025-04-18 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:15:05' and `end` < '2025-04-18 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:15:18] Production.INFO: count ==906 [2025-04-18 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:15:05 - End Time 2025-04-18 02:15:05 [2025-04-18 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932469', 'tblTempUsageDetail_20' ) start [2025-04-18 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932469', 'tblTempUsageDetail_20' ) end [2025-04-18 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932469', 'tblTempVendorCDR_20' ) start [2025-04-18 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932469', 'tblTempVendorCDR_20' ) end [2025-04-18 02:15:18] Production.INFO: ProcessCDR(1,14932469,1,1,2) [2025-04-18 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932469', 'tblTempUsageDetail_20' ) start [2025-04-18 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932469', 'tblTempUsageDetail_20' ) end [2025-04-18 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:15:21] Production.INFO: ==22952== Releasing lock... [2025-04-18 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:15:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:16:05 [end_date_ymd] => 2025-04-18 02:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:16:05' and `end` < '2025-04-18 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-04-18 02:16:18] Production.INFO: count ==906 [2025-04-18 02:16:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:16:05 - End Time 2025-04-18 02:16:05 [2025-04-18 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932474', 'tblTempUsageDetail_20' ) start [2025-04-18 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932474', 'tblTempUsageDetail_20' ) end [2025-04-18 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932474', 'tblTempVendorCDR_20' ) start [2025-04-18 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932474', 'tblTempVendorCDR_20' ) end [2025-04-18 02:16:18] Production.INFO: ProcessCDR(1,14932474,1,1,2) [2025-04-18 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932474', 'tblTempUsageDetail_20' ) start [2025-04-18 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932474', 'tblTempUsageDetail_20' ) end [2025-04-18 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:16:21] Production.INFO: ==23030== Releasing lock... [2025-04-18 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:16:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:17:05 [end_date_ymd] => 2025-04-18 02:17:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:17:05' and `end` < '2025-04-18 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-04-18 02:17:17] Production.INFO: count ==905 [2025-04-18 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:17:05 - End Time 2025-04-18 02:17:05 [2025-04-18 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932479', 'tblTempUsageDetail_20' ) start [2025-04-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932479', 'tblTempUsageDetail_20' ) end [2025-04-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932479', 'tblTempVendorCDR_20' ) start [2025-04-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932479', 'tblTempVendorCDR_20' ) end [2025-04-18 02:17:18] Production.INFO: ProcessCDR(1,14932479,1,1,2) [2025-04-18 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932479', 'tblTempUsageDetail_20' ) start [2025-04-18 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932479', 'tblTempUsageDetail_20' ) end [2025-04-18 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:17:21] Production.INFO: ==23100== Releasing lock... [2025-04-18 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:17:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:18:05 [end_date_ymd] => 2025-04-18 02:18:05 [RateCDR] => 1 ) [2025-04-18 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:18:05' and `end` < '2025-04-18 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:18:18] Production.INFO: count ==903 [2025-04-18 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:18:05 - End Time 2025-04-18 02:18:05 [2025-04-18 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932484', 'tblTempUsageDetail_20' ) start [2025-04-18 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932484', 'tblTempUsageDetail_20' ) end [2025-04-18 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932484', 'tblTempVendorCDR_20' ) start [2025-04-18 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932484', 'tblTempVendorCDR_20' ) end [2025-04-18 02:18:18] Production.INFO: ProcessCDR(1,14932484,1,1,2) [2025-04-18 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932484', 'tblTempUsageDetail_20' ) start [2025-04-18 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932484', 'tblTempUsageDetail_20' ) end [2025-04-18 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:18:22] Production.INFO: ==23180== Releasing lock... [2025-04-18 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:18:22] Production.INFO: 36 MB #Memory Used# [2025-04-18 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:19:05 [end_date_ymd] => 2025-04-18 02:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:19:05' and `end` < '2025-04-18 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-04-18 02:19:17] Production.INFO: count ==900 [2025-04-18 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:19:05 - End Time 2025-04-18 02:19:05 [2025-04-18 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932489', 'tblTempUsageDetail_20' ) start [2025-04-18 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932489', 'tblTempUsageDetail_20' ) end [2025-04-18 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932489', 'tblTempVendorCDR_20' ) start [2025-04-18 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932489', 'tblTempVendorCDR_20' ) end [2025-04-18 02:19:18] Production.INFO: ProcessCDR(1,14932489,1,1,2) [2025-04-18 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932489', 'tblTempUsageDetail_20' ) start [2025-04-18 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932489', 'tblTempUsageDetail_20' ) end [2025-04-18 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:19:21] Production.INFO: ==23257== Releasing lock... [2025-04-18 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:19:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:20:05 [end_date_ymd] => 2025-04-18 02:20:05 [RateCDR] => 1 ) [2025-04-18 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:20:05' and `end` < '2025-04-18 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:20:18] Production.INFO: count ==903 [2025-04-18 02:20:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:20:05 - End Time 2025-04-18 02:20:05 [2025-04-18 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932495', 'tblTempUsageDetail_20' ) start [2025-04-18 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932495', 'tblTempUsageDetail_20' ) end [2025-04-18 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932495', 'tblTempVendorCDR_20' ) start [2025-04-18 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932495', 'tblTempVendorCDR_20' ) end [2025-04-18 02:20:18] Production.INFO: ProcessCDR(1,14932495,1,1,2) [2025-04-18 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932495', 'tblTempUsageDetail_20' ) start [2025-04-18 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932495', 'tblTempUsageDetail_20' ) end [2025-04-18 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:20:22] Production.INFO: ==23332== Releasing lock... [2025-04-18 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:20:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:21:05 [end_date_ymd] => 2025-04-18 02:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:21:05' and `end` < '2025-04-18 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-04-18 02:21:17] Production.INFO: count ==897 [2025-04-18 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:21:05 - End Time 2025-04-18 02:21:05 [2025-04-18 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932500', 'tblTempUsageDetail_20' ) start [2025-04-18 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932500', 'tblTempUsageDetail_20' ) end [2025-04-18 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932500', 'tblTempVendorCDR_20' ) start [2025-04-18 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932500', 'tblTempVendorCDR_20' ) end [2025-04-18 02:21:18] Production.INFO: ProcessCDR(1,14932500,1,1,2) [2025-04-18 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932500', 'tblTempUsageDetail_20' ) start [2025-04-18 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932500', 'tblTempUsageDetail_20' ) end [2025-04-18 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:21:21] Production.INFO: ==23406== Releasing lock... [2025-04-18 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:21:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:22:05 [end_date_ymd] => 2025-04-18 02:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:22:05' and `end` < '2025-04-18 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-04-18 02:22:18] Production.INFO: count ==894 [2025-04-18 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:22:05 - End Time 2025-04-18 02:22:05 [2025-04-18 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932505', 'tblTempUsageDetail_20' ) start [2025-04-18 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932505', 'tblTempUsageDetail_20' ) end [2025-04-18 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932505', 'tblTempVendorCDR_20' ) start [2025-04-18 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932505', 'tblTempVendorCDR_20' ) end [2025-04-18 02:22:18] Production.INFO: ProcessCDR(1,14932505,1,1,2) [2025-04-18 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932505', 'tblTempUsageDetail_20' ) start [2025-04-18 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932505', 'tblTempUsageDetail_20' ) end [2025-04-18 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:22:21] Production.INFO: ==23476== Releasing lock... [2025-04-18 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:22:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:23:05 [end_date_ymd] => 2025-04-18 02:23:05 [RateCDR] => 1 ) [2025-04-18 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:23:05' and `end` < '2025-04-18 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-04-18 02:23:18] Production.INFO: count ==890 [2025-04-18 02:23:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:23:05 - End Time 2025-04-18 02:23:05 [2025-04-18 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932510', 'tblTempUsageDetail_20' ) start [2025-04-18 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932510', 'tblTempUsageDetail_20' ) end [2025-04-18 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932510', 'tblTempVendorCDR_20' ) start [2025-04-18 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932510', 'tblTempVendorCDR_20' ) end [2025-04-18 02:23:19] Production.INFO: ProcessCDR(1,14932510,1,1,2) [2025-04-18 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932510', 'tblTempUsageDetail_20' ) start [2025-04-18 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932510', 'tblTempUsageDetail_20' ) end [2025-04-18 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:23:22] Production.INFO: ==23548== Releasing lock... [2025-04-18 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:23:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:24:05 [end_date_ymd] => 2025-04-18 02:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:24:05' and `end` < '2025-04-18 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-04-18 02:24:18] Production.INFO: count ==886 [2025-04-18 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:24:05 - End Time 2025-04-18 02:24:05 [2025-04-18 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932515', 'tblTempUsageDetail_20' ) start [2025-04-18 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932515', 'tblTempUsageDetail_20' ) end [2025-04-18 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932515', 'tblTempVendorCDR_20' ) start [2025-04-18 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932515', 'tblTempVendorCDR_20' ) end [2025-04-18 02:24:18] Production.INFO: ProcessCDR(1,14932515,1,1,2) [2025-04-18 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932515', 'tblTempUsageDetail_20' ) start [2025-04-18 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932515', 'tblTempUsageDetail_20' ) end [2025-04-18 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:24:21] Production.INFO: ==23629== Releasing lock... [2025-04-18 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:24:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:25:05 [end_date_ymd] => 2025-04-18 02:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:25:05' and `end` < '2025-04-18 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-04-18 02:25:18] Production.INFO: count ==873 [2025-04-18 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:25:05 - End Time 2025-04-18 02:25:05 [2025-04-18 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932520', 'tblTempUsageDetail_20' ) start [2025-04-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932520', 'tblTempUsageDetail_20' ) end [2025-04-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932520', 'tblTempVendorCDR_20' ) start [2025-04-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932520', 'tblTempVendorCDR_20' ) end [2025-04-18 02:25:18] Production.INFO: ProcessCDR(1,14932520,1,1,2) [2025-04-18 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932520', 'tblTempUsageDetail_20' ) start [2025-04-18 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932520', 'tblTempUsageDetail_20' ) end [2025-04-18 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:25:21] Production.INFO: ==23708== Releasing lock... [2025-04-18 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:25:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:26:05 [end_date_ymd] => 2025-04-18 02:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:26:05' and `end` < '2025-04-18 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-04-18 02:26:18] Production.INFO: count ==871 [2025-04-18 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:26:05 - End Time 2025-04-18 02:26:05 [2025-04-18 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932525', 'tblTempUsageDetail_20' ) start [2025-04-18 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932525', 'tblTempUsageDetail_20' ) end [2025-04-18 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932525', 'tblTempVendorCDR_20' ) start [2025-04-18 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932525', 'tblTempVendorCDR_20' ) end [2025-04-18 02:26:18] Production.INFO: ProcessCDR(1,14932525,1,1,2) [2025-04-18 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932525', 'tblTempUsageDetail_20' ) start [2025-04-18 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932525', 'tblTempUsageDetail_20' ) end [2025-04-18 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:26:21] Production.INFO: ==23781== Releasing lock... [2025-04-18 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:26:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:27:05 [end_date_ymd] => 2025-04-18 02:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:27:05' and `end` < '2025-04-18 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-04-18 02:27:18] Production.INFO: count ==870 [2025-04-18 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:27:05 - End Time 2025-04-18 02:27:05 [2025-04-18 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932530', 'tblTempUsageDetail_20' ) start [2025-04-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932530', 'tblTempUsageDetail_20' ) end [2025-04-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932530', 'tblTempVendorCDR_20' ) start [2025-04-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932530', 'tblTempVendorCDR_20' ) end [2025-04-18 02:27:18] Production.INFO: ProcessCDR(1,14932530,1,1,2) [2025-04-18 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932530', 'tblTempUsageDetail_20' ) start [2025-04-18 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932530', 'tblTempUsageDetail_20' ) end [2025-04-18 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:27:22] Production.INFO: ==23852== Releasing lock... [2025-04-18 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:27:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:28:05 [end_date_ymd] => 2025-04-18 02:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:28:05' and `end` < '2025-04-18 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-04-18 02:28:18] Production.INFO: count ==866 [2025-04-18 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:28:05 - End Time 2025-04-18 02:28:05 [2025-04-18 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932535', 'tblTempUsageDetail_20' ) start [2025-04-18 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932535', 'tblTempUsageDetail_20' ) end [2025-04-18 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932535', 'tblTempVendorCDR_20' ) start [2025-04-18 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932535', 'tblTempVendorCDR_20' ) end [2025-04-18 02:28:18] Production.INFO: ProcessCDR(1,14932535,1,1,2) [2025-04-18 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932535', 'tblTempUsageDetail_20' ) start [2025-04-18 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932535', 'tblTempUsageDetail_20' ) end [2025-04-18 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:28:21] Production.INFO: ==23926== Releasing lock... [2025-04-18 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:28:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:29:05 [end_date_ymd] => 2025-04-18 02:29:05 [RateCDR] => 1 ) [2025-04-18 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:29:05' and `end` < '2025-04-18 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:29:18] Production.INFO: count ==859 [2025-04-18 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:29:05 - End Time 2025-04-18 02:29:05 [2025-04-18 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932540', 'tblTempUsageDetail_20' ) start [2025-04-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932540', 'tblTempUsageDetail_20' ) end [2025-04-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932540', 'tblTempVendorCDR_20' ) start [2025-04-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932540', 'tblTempVendorCDR_20' ) end [2025-04-18 02:29:18] Production.INFO: ProcessCDR(1,14932540,1,1,2) [2025-04-18 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932540', 'tblTempUsageDetail_20' ) start [2025-04-18 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932540', 'tblTempUsageDetail_20' ) end [2025-04-18 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:29:22] Production.INFO: ==24039== Releasing lock... [2025-04-18 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:29:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:30:06 [end_date_ymd] => 2025-04-18 02:30:06 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:30:06' and `end` < '2025-04-18 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-04-18 02:30:18] Production.INFO: count ==866 [2025-04-18 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-17 23:30:06 - End Time 2025-04-18 02:30:06 [2025-04-18 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932545', 'tblTempUsageDetail_20' ) start [2025-04-18 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932545', 'tblTempUsageDetail_20' ) end [2025-04-18 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932545', 'tblTempVendorCDR_20' ) start [2025-04-18 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932545', 'tblTempVendorCDR_20' ) end [2025-04-18 02:30:19] Production.INFO: ProcessCDR(1,14932545,1,1,2) [2025-04-18 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932545', 'tblTempUsageDetail_20' ) start [2025-04-18 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932545', 'tblTempUsageDetail_20' ) end [2025-04-18 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:30:22] Production.INFO: ==24122== Releasing lock... [2025-04-18 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:30:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:31:05 [end_date_ymd] => 2025-04-18 02:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:31:05' and `end` < '2025-04-18 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-04-18 02:31:18] Production.INFO: count ==872 [2025-04-18 02:31:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:31:05 - End Time 2025-04-18 02:31:05 [2025-04-18 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932551', 'tblTempUsageDetail_20' ) start [2025-04-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932551', 'tblTempUsageDetail_20' ) end [2025-04-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932551', 'tblTempVendorCDR_20' ) start [2025-04-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932551', 'tblTempVendorCDR_20' ) end [2025-04-18 02:31:18] Production.INFO: ProcessCDR(1,14932551,1,1,2) [2025-04-18 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932551', 'tblTempUsageDetail_20' ) start [2025-04-18 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932551', 'tblTempUsageDetail_20' ) end [2025-04-18 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:31:22] Production.INFO: ==24201== Releasing lock... [2025-04-18 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:31:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:32:05 [end_date_ymd] => 2025-04-18 02:32:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:32:05' and `end` < '2025-04-18 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-04-18 02:32:18] Production.INFO: count ==871 [2025-04-18 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:32:05 - End Time 2025-04-18 02:32:05 [2025-04-18 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932556', 'tblTempUsageDetail_20' ) start [2025-04-18 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932556', 'tblTempUsageDetail_20' ) end [2025-04-18 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932556', 'tblTempVendorCDR_20' ) start [2025-04-18 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932556', 'tblTempVendorCDR_20' ) end [2025-04-18 02:32:18] Production.INFO: ProcessCDR(1,14932556,1,1,2) [2025-04-18 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932556', 'tblTempUsageDetail_20' ) start [2025-04-18 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932556', 'tblTempUsageDetail_20' ) end [2025-04-18 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:32:21] Production.INFO: ==24273== Releasing lock... [2025-04-18 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:32:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:33:05 [end_date_ymd] => 2025-04-18 02:33:05 [RateCDR] => 1 ) [2025-04-18 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:33:05' and `end` < '2025-04-18 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-04-18 02:33:18] Production.INFO: count ==868 [2025-04-18 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:33:05 - End Time 2025-04-18 02:33:05 [2025-04-18 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932561', 'tblTempUsageDetail_20' ) start [2025-04-18 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932561', 'tblTempUsageDetail_20' ) end [2025-04-18 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932561', 'tblTempVendorCDR_20' ) start [2025-04-18 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932561', 'tblTempVendorCDR_20' ) end [2025-04-18 02:33:18] Production.INFO: ProcessCDR(1,14932561,1,1,2) [2025-04-18 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932561', 'tblTempUsageDetail_20' ) start [2025-04-18 02:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932561', 'tblTempUsageDetail_20' ) end [2025-04-18 02:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:33:23] Production.INFO: ==24352== Releasing lock... [2025-04-18 02:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:33:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:34:05 [end_date_ymd] => 2025-04-18 02:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:34:05' and `end` < '2025-04-18 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-04-18 02:34:18] Production.INFO: count ==868 [2025-04-18 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:34:05 - End Time 2025-04-18 02:34:05 [2025-04-18 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932566', 'tblTempUsageDetail_20' ) start [2025-04-18 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932566', 'tblTempUsageDetail_20' ) end [2025-04-18 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932566', 'tblTempVendorCDR_20' ) start [2025-04-18 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932566', 'tblTempVendorCDR_20' ) end [2025-04-18 02:34:18] Production.INFO: ProcessCDR(1,14932566,1,1,2) [2025-04-18 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932566', 'tblTempUsageDetail_20' ) start [2025-04-18 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932566', 'tblTempUsageDetail_20' ) end [2025-04-18 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:34:22] Production.INFO: ==24423== Releasing lock... [2025-04-18 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:34:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:35:05 [end_date_ymd] => 2025-04-18 02:35:05 [RateCDR] => 1 ) [2025-04-18 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:35:05' and `end` < '2025-04-18 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:35:17] Production.INFO: count ==867 [2025-04-18 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:35:05 - End Time 2025-04-18 02:35:05 [2025-04-18 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932571', 'tblTempUsageDetail_20' ) start [2025-04-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932571', 'tblTempUsageDetail_20' ) end [2025-04-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932571', 'tblTempVendorCDR_20' ) start [2025-04-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932571', 'tblTempVendorCDR_20' ) end [2025-04-18 02:35:18] Production.INFO: ProcessCDR(1,14932571,1,1,2) [2025-04-18 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932571', 'tblTempUsageDetail_20' ) start [2025-04-18 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932571', 'tblTempUsageDetail_20' ) end [2025-04-18 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:35:21] Production.INFO: ==24495== Releasing lock... [2025-04-18 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:35:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-18 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:36:05 [end_date_ymd] => 2025-04-18 02:36:05 [RateCDR] => 1 ) [2025-04-18 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:36:05' and `end` < '2025-04-18 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:36:18] Production.INFO: count ==866 [2025-04-18 02:36:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:36:05 - End Time 2025-04-18 02:36:05 [2025-04-18 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932576', 'tblTempUsageDetail_20' ) start [2025-04-18 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932576', 'tblTempUsageDetail_20' ) end [2025-04-18 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932576', 'tblTempVendorCDR_20' ) start [2025-04-18 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932576', 'tblTempVendorCDR_20' ) end [2025-04-18 02:36:18] Production.INFO: ProcessCDR(1,14932576,1,1,2) [2025-04-18 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932576', 'tblTempUsageDetail_20' ) start [2025-04-18 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932576', 'tblTempUsageDetail_20' ) end [2025-04-18 02:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:36:24] Production.INFO: ==24575== Releasing lock... [2025-04-18 02:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:36:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:37:06 [end_date_ymd] => 2025-04-18 02:37:06 [RateCDR] => 1 ) [2025-04-18 02: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-04-17 23:37:06' and `end` < '2025-04-18 02: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-04-18 02:37:18] Production.INFO: count ==869 [2025-04-18 02:37:19] Production.ERROR: pbx CDR StartTime 2025-04-17 23:37:06 - End Time 2025-04-18 02:37:06 [2025-04-18 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932581', 'tblTempUsageDetail_20' ) start [2025-04-18 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932581', 'tblTempUsageDetail_20' ) end [2025-04-18 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932581', 'tblTempVendorCDR_20' ) start [2025-04-18 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932581', 'tblTempVendorCDR_20' ) end [2025-04-18 02:37:19] Production.INFO: ProcessCDR(1,14932581,1,1,2) [2025-04-18 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932581', 'tblTempUsageDetail_20' ) start [2025-04-18 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932581', 'tblTempUsageDetail_20' ) end [2025-04-18 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:37:22] Production.INFO: ==24646== Releasing lock... [2025-04-18 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:37:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:38:05 [end_date_ymd] => 2025-04-18 02:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:38:05' and `end` < '2025-04-18 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-04-18 02:38:18] Production.INFO: count ==868 [2025-04-18 02:38:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:38:05 - End Time 2025-04-18 02:38:05 [2025-04-18 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932586', 'tblTempUsageDetail_20' ) start [2025-04-18 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932586', 'tblTempUsageDetail_20' ) end [2025-04-18 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932586', 'tblTempVendorCDR_20' ) start [2025-04-18 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932586', 'tblTempVendorCDR_20' ) end [2025-04-18 02:38:18] Production.INFO: ProcessCDR(1,14932586,1,1,2) [2025-04-18 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932586', 'tblTempUsageDetail_20' ) start [2025-04-18 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932586', 'tblTempUsageDetail_20' ) end [2025-04-18 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:38:23] Production.INFO: ==24725== Releasing lock... [2025-04-18 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:38:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:39:05 [end_date_ymd] => 2025-04-18 02:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:39:05' and `end` < '2025-04-18 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-04-18 02:39:17] Production.INFO: count ==862 [2025-04-18 02:39:17] Production.ERROR: pbx CDR StartTime 2025-04-17 23:39:05 - End Time 2025-04-18 02:39:05 [2025-04-18 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932591', 'tblTempUsageDetail_20' ) start [2025-04-18 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932591', 'tblTempUsageDetail_20' ) end [2025-04-18 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932591', 'tblTempVendorCDR_20' ) start [2025-04-18 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932591', 'tblTempVendorCDR_20' ) end [2025-04-18 02:39:18] Production.INFO: ProcessCDR(1,14932591,1,1,2) [2025-04-18 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932591', 'tblTempUsageDetail_20' ) start [2025-04-18 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932591', 'tblTempUsageDetail_20' ) end [2025-04-18 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:39:22] Production.INFO: ==24800== Releasing lock... [2025-04-18 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:39:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:40:06 [end_date_ymd] => 2025-04-18 02:40:06 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:40:06' and `end` < '2025-04-18 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-04-18 02:40:18] Production.INFO: count ==869 [2025-04-18 02:40:19] Production.ERROR: pbx CDR StartTime 2025-04-17 23:40:06 - End Time 2025-04-18 02:40:06 [2025-04-18 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932597', 'tblTempUsageDetail_20' ) start [2025-04-18 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932597', 'tblTempUsageDetail_20' ) end [2025-04-18 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932597', 'tblTempVendorCDR_20' ) start [2025-04-18 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932597', 'tblTempVendorCDR_20' ) end [2025-04-18 02:40:19] Production.INFO: ProcessCDR(1,14932597,1,1,2) [2025-04-18 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932597', 'tblTempUsageDetail_20' ) start [2025-04-18 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932597', 'tblTempUsageDetail_20' ) end [2025-04-18 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:40:22] Production.INFO: ==24879== Releasing lock... [2025-04-18 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:41:05 [end_date_ymd] => 2025-04-18 02:41:05 [RateCDR] => 1 ) [2025-04-18 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:41:05' and `end` < '2025-04-18 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:41:17] Production.INFO: count ==871 [2025-04-18 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:41:05 - End Time 2025-04-18 02:41:05 [2025-04-18 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932602', 'tblTempUsageDetail_20' ) start [2025-04-18 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932602', 'tblTempUsageDetail_20' ) end [2025-04-18 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932602', 'tblTempVendorCDR_20' ) start [2025-04-18 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932602', 'tblTempVendorCDR_20' ) end [2025-04-18 02:41:18] Production.INFO: ProcessCDR(1,14932602,1,1,2) [2025-04-18 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932602', 'tblTempUsageDetail_20' ) start [2025-04-18 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932602', 'tblTempUsageDetail_20' ) end [2025-04-18 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:41:21] Production.INFO: ==24954== Releasing lock... [2025-04-18 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:41:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:42:05 [end_date_ymd] => 2025-04-18 02:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:42:05' and `end` < '2025-04-18 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-04-18 02:42:18] Production.INFO: count ==867 [2025-04-18 02:42:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:42:05 - End Time 2025-04-18 02:42:05 [2025-04-18 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932607', 'tblTempUsageDetail_20' ) start [2025-04-18 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932607', 'tblTempUsageDetail_20' ) end [2025-04-18 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932607', 'tblTempVendorCDR_20' ) start [2025-04-18 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932607', 'tblTempVendorCDR_20' ) end [2025-04-18 02:42:18] Production.INFO: ProcessCDR(1,14932607,1,1,2) [2025-04-18 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932607', 'tblTempUsageDetail_20' ) start [2025-04-18 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932607', 'tblTempUsageDetail_20' ) end [2025-04-18 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:42:21] Production.INFO: ==25026== Releasing lock... [2025-04-18 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:42:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:43:05 [end_date_ymd] => 2025-04-18 02:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:43:05' and `end` < '2025-04-18 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-04-18 02:43:17] Production.INFO: count ==861 [2025-04-18 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:43:05 - End Time 2025-04-18 02:43:05 [2025-04-18 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932612', 'tblTempUsageDetail_20' ) start [2025-04-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932612', 'tblTempUsageDetail_20' ) end [2025-04-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932612', 'tblTempVendorCDR_20' ) start [2025-04-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932612', 'tblTempVendorCDR_20' ) end [2025-04-18 02:43:18] Production.INFO: ProcessCDR(1,14932612,1,1,2) [2025-04-18 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932612', 'tblTempUsageDetail_20' ) start [2025-04-18 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932612', 'tblTempUsageDetail_20' ) end [2025-04-18 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:43:21] Production.INFO: ==25111== Releasing lock... [2025-04-18 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:43:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:44:05 [end_date_ymd] => 2025-04-18 02:44:05 [RateCDR] => 1 ) [2025-04-18 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:44:05' and `end` < '2025-04-18 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:44:17] Production.INFO: count ==855 [2025-04-18 02:44:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:44:05 - End Time 2025-04-18 02:44:05 [2025-04-18 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932617', 'tblTempUsageDetail_20' ) start [2025-04-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932617', 'tblTempUsageDetail_20' ) end [2025-04-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932617', 'tblTempVendorCDR_20' ) start [2025-04-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932617', 'tblTempVendorCDR_20' ) end [2025-04-18 02:44:18] Production.INFO: ProcessCDR(1,14932617,1,1,2) [2025-04-18 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932617', 'tblTempUsageDetail_20' ) start [2025-04-18 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932617', 'tblTempUsageDetail_20' ) end [2025-04-18 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:44:21] Production.INFO: ==25224== Releasing lock... [2025-04-18 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:44:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:45:05 [end_date_ymd] => 2025-04-18 02:45:05 [RateCDR] => 1 ) [2025-04-18 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:45:05' and `end` < '2025-04-18 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:45:17] Production.INFO: count ==850 [2025-04-18 02:45:17] Production.ERROR: pbx CDR StartTime 2025-04-17 23:45:05 - End Time 2025-04-18 02:45:05 [2025-04-18 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932622', 'tblTempUsageDetail_20' ) start [2025-04-18 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932622', 'tblTempUsageDetail_20' ) end [2025-04-18 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932622', 'tblTempVendorCDR_20' ) start [2025-04-18 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932622', 'tblTempVendorCDR_20' ) end [2025-04-18 02:45:18] Production.INFO: ProcessCDR(1,14932622,1,1,2) [2025-04-18 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932622', 'tblTempUsageDetail_20' ) start [2025-04-18 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932622', 'tblTempUsageDetail_20' ) end [2025-04-18 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:45:21] Production.INFO: ==25297== Releasing lock... [2025-04-18 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:45:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:46:05 [end_date_ymd] => 2025-04-18 02:46:05 [RateCDR] => 1 ) [2025-04-18 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:46:05' and `end` < '2025-04-18 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:46:17] Production.INFO: count ==846 [2025-04-18 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:46:05 - End Time 2025-04-18 02:46:05 [2025-04-18 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932627', 'tblTempUsageDetail_20' ) start [2025-04-18 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932627', 'tblTempUsageDetail_20' ) end [2025-04-18 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932627', 'tblTempVendorCDR_20' ) start [2025-04-18 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932627', 'tblTempVendorCDR_20' ) end [2025-04-18 02:46:18] Production.INFO: ProcessCDR(1,14932627,1,1,2) [2025-04-18 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932627', 'tblTempUsageDetail_20' ) start [2025-04-18 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932627', 'tblTempUsageDetail_20' ) end [2025-04-18 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:46:21] Production.INFO: ==25373== Releasing lock... [2025-04-18 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:46:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:47:05 [end_date_ymd] => 2025-04-18 02:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:47:05' and `end` < '2025-04-18 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-04-18 02:47:18] Production.INFO: count ==844 [2025-04-18 02:47:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:47:05 - End Time 2025-04-18 02:47:05 [2025-04-18 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932632', 'tblTempUsageDetail_20' ) start [2025-04-18 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932632', 'tblTempUsageDetail_20' ) end [2025-04-18 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932632', 'tblTempVendorCDR_20' ) start [2025-04-18 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932632', 'tblTempVendorCDR_20' ) end [2025-04-18 02:47:18] Production.INFO: ProcessCDR(1,14932632,1,1,2) [2025-04-18 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932632', 'tblTempUsageDetail_20' ) start [2025-04-18 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932632', 'tblTempUsageDetail_20' ) end [2025-04-18 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:47:22] Production.INFO: ==25455== Releasing lock... [2025-04-18 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:47:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:48:05 [end_date_ymd] => 2025-04-18 02:48:05 [RateCDR] => 1 ) [2025-04-18 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:48:05' and `end` < '2025-04-18 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:48:18] Production.INFO: count ==837 [2025-04-18 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:48:05 - End Time 2025-04-18 02:48:05 [2025-04-18 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932637', 'tblTempUsageDetail_20' ) start [2025-04-18 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932637', 'tblTempUsageDetail_20' ) end [2025-04-18 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932637', 'tblTempVendorCDR_20' ) start [2025-04-18 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932637', 'tblTempVendorCDR_20' ) end [2025-04-18 02:48:18] Production.INFO: ProcessCDR(1,14932637,1,1,2) [2025-04-18 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932637', 'tblTempUsageDetail_20' ) start [2025-04-18 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932637', 'tblTempUsageDetail_20' ) end [2025-04-18 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:48:21] Production.INFO: ==25531== Releasing lock... [2025-04-18 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:48:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:49:05 [end_date_ymd] => 2025-04-18 02:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:49:05' and `end` < '2025-04-18 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-04-18 02:49:18] Production.INFO: count ==834 [2025-04-18 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:49:05 - End Time 2025-04-18 02:49:05 [2025-04-18 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932642', 'tblTempUsageDetail_20' ) start [2025-04-18 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932642', 'tblTempUsageDetail_20' ) end [2025-04-18 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932642', 'tblTempVendorCDR_20' ) start [2025-04-18 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932642', 'tblTempVendorCDR_20' ) end [2025-04-18 02:49:18] Production.INFO: ProcessCDR(1,14932642,1,1,2) [2025-04-18 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932642', 'tblTempUsageDetail_20' ) start [2025-04-18 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932642', 'tblTempUsageDetail_20' ) end [2025-04-18 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:49:21] Production.INFO: ==25606== Releasing lock... [2025-04-18 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:49:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:50:05 [end_date_ymd] => 2025-04-18 02:50:05 [RateCDR] => 1 ) [2025-04-18 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:50:05' and `end` < '2025-04-18 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:50:18] Production.INFO: count ==839 [2025-04-18 02:50:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:50:05 - End Time 2025-04-18 02:50:05 [2025-04-18 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932648', 'tblTempUsageDetail_20' ) start [2025-04-18 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932648', 'tblTempUsageDetail_20' ) end [2025-04-18 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932648', 'tblTempVendorCDR_20' ) start [2025-04-18 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932648', 'tblTempVendorCDR_20' ) end [2025-04-18 02:50:18] Production.INFO: ProcessCDR(1,14932648,1,1,2) [2025-04-18 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932648', 'tblTempUsageDetail_20' ) start [2025-04-18 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932648', 'tblTempUsageDetail_20' ) end [2025-04-18 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:50:22] Production.INFO: ==25685== Releasing lock... [2025-04-18 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:50:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:51:05 [end_date_ymd] => 2025-04-18 02:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:51:05' and `end` < '2025-04-18 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-04-18 02:51:17] Production.INFO: count ==860 [2025-04-18 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:51:05 - End Time 2025-04-18 02:51:05 [2025-04-18 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932653', 'tblTempUsageDetail_20' ) start [2025-04-18 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932653', 'tblTempUsageDetail_20' ) end [2025-04-18 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932653', 'tblTempVendorCDR_20' ) start [2025-04-18 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932653', 'tblTempVendorCDR_20' ) end [2025-04-18 02:51:18] Production.INFO: ProcessCDR(1,14932653,1,1,2) [2025-04-18 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932653', 'tblTempUsageDetail_20' ) start [2025-04-18 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932653', 'tblTempUsageDetail_20' ) end [2025-04-18 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:51:21] Production.INFO: ==25763== Releasing lock... [2025-04-18 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:51:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:52:05 [end_date_ymd] => 2025-04-18 02:52:05 [RateCDR] => 1 ) [2025-04-18 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:52:05' and `end` < '2025-04-18 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:52:17] Production.INFO: count ==858 [2025-04-18 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:52:05 - End Time 2025-04-18 02:52:05 [2025-04-18 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932658', 'tblTempUsageDetail_20' ) start [2025-04-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932658', 'tblTempUsageDetail_20' ) end [2025-04-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932658', 'tblTempVendorCDR_20' ) start [2025-04-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932658', 'tblTempVendorCDR_20' ) end [2025-04-18 02:52:18] Production.INFO: ProcessCDR(1,14932658,1,1,2) [2025-04-18 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932658', 'tblTempUsageDetail_20' ) start [2025-04-18 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932658', 'tblTempUsageDetail_20' ) end [2025-04-18 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:52:21] Production.INFO: ==25836== Releasing lock... [2025-04-18 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:52:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-18 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:53:05 [end_date_ymd] => 2025-04-18 02:53:05 [RateCDR] => 1 ) [2025-04-18 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:53:05' and `end` < '2025-04-18 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:53:18] Production.INFO: count ==861 [2025-04-18 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:53:05 - End Time 2025-04-18 02:53:05 [2025-04-18 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932663', 'tblTempUsageDetail_20' ) start [2025-04-18 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932663', 'tblTempUsageDetail_20' ) end [2025-04-18 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932663', 'tblTempVendorCDR_20' ) start [2025-04-18 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932663', 'tblTempVendorCDR_20' ) end [2025-04-18 02:53:18] Production.INFO: ProcessCDR(1,14932663,1,1,2) [2025-04-18 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932663', 'tblTempUsageDetail_20' ) start [2025-04-18 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932663', 'tblTempUsageDetail_20' ) end [2025-04-18 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:53:21] Production.INFO: ==25909== Releasing lock... [2025-04-18 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:53:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:54:06 [end_date_ymd] => 2025-04-18 02:54:06 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:54:06' and `end` < '2025-04-18 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-04-18 02:54:18] Production.INFO: count ==859 [2025-04-18 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-17 23:54:06 - End Time 2025-04-18 02:54:06 [2025-04-18 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932668', 'tblTempUsageDetail_20' ) start [2025-04-18 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932668', 'tblTempUsageDetail_20' ) end [2025-04-18 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932668', 'tblTempVendorCDR_20' ) start [2025-04-18 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932668', 'tblTempVendorCDR_20' ) end [2025-04-18 02:54:19] Production.INFO: ProcessCDR(1,14932668,1,1,2) [2025-04-18 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932668', 'tblTempUsageDetail_20' ) start [2025-04-18 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932668', 'tblTempUsageDetail_20' ) end [2025-04-18 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:54:22] Production.INFO: ==25985== Releasing lock... [2025-04-18 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:54:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:55:05 [end_date_ymd] => 2025-04-18 02:55:05 [RateCDR] => 1 ) [2025-04-18 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:55:05' and `end` < '2025-04-18 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:55:18] Production.INFO: count ==866 [2025-04-18 02:55:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:55:05 - End Time 2025-04-18 02:55:05 [2025-04-18 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932673', 'tblTempUsageDetail_20' ) start [2025-04-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932673', 'tblTempUsageDetail_20' ) end [2025-04-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932673', 'tblTempVendorCDR_20' ) start [2025-04-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932673', 'tblTempVendorCDR_20' ) end [2025-04-18 02:55:18] Production.INFO: ProcessCDR(1,14932673,1,1,2) [2025-04-18 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932673', 'tblTempUsageDetail_20' ) start [2025-04-18 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932673', 'tblTempUsageDetail_20' ) end [2025-04-18 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:55:21] Production.INFO: ==26060== Releasing lock... [2025-04-18 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:55:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:56:06 [end_date_ymd] => 2025-04-18 02:56:06 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:56:06' and `end` < '2025-04-18 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-04-18 02:56:19] Production.INFO: count ==866 [2025-04-18 02:56:19] Production.ERROR: pbx CDR StartTime 2025-04-17 23:56:06 - End Time 2025-04-18 02:56:06 [2025-04-18 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932678', 'tblTempUsageDetail_20' ) start [2025-04-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932678', 'tblTempUsageDetail_20' ) end [2025-04-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932678', 'tblTempVendorCDR_20' ) start [2025-04-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932678', 'tblTempVendorCDR_20' ) end [2025-04-18 02:56:19] Production.INFO: ProcessCDR(1,14932678,1,1,2) [2025-04-18 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932678', 'tblTempUsageDetail_20' ) start [2025-04-18 02:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932678', 'tblTempUsageDetail_20' ) end [2025-04-18 02:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:56:24] Production.INFO: ==26140== Releasing lock... [2025-04-18 02:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:56:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:57:05 [end_date_ymd] => 2025-04-18 02:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:57:05' and `end` < '2025-04-18 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-04-18 02:57:17] Production.INFO: count ==864 [2025-04-18 02:57:17] Production.ERROR: pbx CDR StartTime 2025-04-17 23:57:05 - End Time 2025-04-18 02:57:05 [2025-04-18 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932683', 'tblTempUsageDetail_20' ) start [2025-04-18 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932683', 'tblTempUsageDetail_20' ) end [2025-04-18 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932683', 'tblTempVendorCDR_20' ) start [2025-04-18 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932683', 'tblTempVendorCDR_20' ) end [2025-04-18 02:57:17] Production.INFO: ProcessCDR(1,14932683,1,1,2) [2025-04-18 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932683', 'tblTempUsageDetail_20' ) start [2025-04-18 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932683', 'tblTempUsageDetail_20' ) end [2025-04-18 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:57:21] Production.INFO: ==26224== Releasing lock... [2025-04-18 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:57:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:58:05 [end_date_ymd] => 2025-04-18 02:58:05 [RateCDR] => 1 ) [2025-04-18 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 23:58:05' and `end` < '2025-04-18 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 02:58:18] Production.INFO: count ==862 [2025-04-18 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-17 23:58:05 - End Time 2025-04-18 02:58:05 [2025-04-18 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932688', 'tblTempUsageDetail_20' ) start [2025-04-18 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932688', 'tblTempUsageDetail_20' ) end [2025-04-18 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932688', 'tblTempVendorCDR_20' ) start [2025-04-18 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932688', 'tblTempVendorCDR_20' ) end [2025-04-18 02:58:18] Production.INFO: ProcessCDR(1,14932688,1,1,2) [2025-04-18 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932688', 'tblTempUsageDetail_20' ) start [2025-04-18 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932688', 'tblTempUsageDetail_20' ) end [2025-04-18 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:58:22] Production.INFO: ==26300== Releasing lock... [2025-04-18 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:58:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 23:59:05 [end_date_ymd] => 2025-04-18 02:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-17 23:59:05' and `end` < '2025-04-18 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-04-18 02:59:17] Production.INFO: count ==857 [2025-04-18 02:59:17] Production.ERROR: pbx CDR StartTime 2025-04-17 23:59:05 - End Time 2025-04-18 02:59:05 [2025-04-18 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932693', 'tblTempUsageDetail_20' ) start [2025-04-18 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932693', 'tblTempUsageDetail_20' ) end [2025-04-18 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932693', 'tblTempVendorCDR_20' ) start [2025-04-18 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932693', 'tblTempVendorCDR_20' ) end [2025-04-18 02:59:17] Production.INFO: ProcessCDR(1,14932693,1,1,2) [2025-04-18 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932693', 'tblTempUsageDetail_20' ) start [2025-04-18 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932693', 'tblTempUsageDetail_20' ) end [2025-04-18 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 02:59:21] Production.INFO: ==26370== Releasing lock... [2025-04-18 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 02:59:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:00:06 [end_date_ymd] => 2025-04-18 03:00:06 [RateCDR] => 1 ) [2025-04-18 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:00:06' and `end` < '2025-04-18 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:00:19] Production.INFO: count ==855 [2025-04-18 03:00:19] Production.ERROR: pbx CDR StartTime 2025-04-18 00:00:06 - End Time 2025-04-18 03:00:06 [2025-04-18 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932698', 'tblTempUsageDetail_20' ) start [2025-04-18 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932698', 'tblTempUsageDetail_20' ) end [2025-04-18 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932698', 'tblTempVendorCDR_20' ) start [2025-04-18 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932698', 'tblTempVendorCDR_20' ) end [2025-04-18 03:00:19] Production.INFO: ProcessCDR(1,14932698,1,1,2) [2025-04-18 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932698', 'tblTempUsageDetail_20' ) start [2025-04-18 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932698', 'tblTempUsageDetail_20' ) end [2025-04-18 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:00:22] Production.INFO: ==26485== Releasing lock... [2025-04-18 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:00:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:01:05 [end_date_ymd] => 2025-04-18 03:01:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:01:05' and `end` < '2025-04-18 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-04-18 03:01:18] Production.INFO: count ==853 [2025-04-18 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:01:05 - End Time 2025-04-18 03:01:05 [2025-04-18 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932704', 'tblTempUsageDetail_20' ) start [2025-04-18 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932704', 'tblTempUsageDetail_20' ) end [2025-04-18 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932704', 'tblTempVendorCDR_20' ) start [2025-04-18 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932704', 'tblTempVendorCDR_20' ) end [2025-04-18 03:01:18] Production.INFO: ProcessCDR(1,14932704,1,1,2) [2025-04-18 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932704', 'tblTempUsageDetail_20' ) start [2025-04-18 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932704', 'tblTempUsageDetail_20' ) end [2025-04-18 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:01:21] Production.INFO: ==26574== Releasing lock... [2025-04-18 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:01:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:02:05 [end_date_ymd] => 2025-04-18 03:02:05 [RateCDR] => 1 ) [2025-04-18 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:02:05' and `end` < '2025-04-18 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:02:18] Production.INFO: count ==849 [2025-04-18 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:02:05 - End Time 2025-04-18 03:02:05 [2025-04-18 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932709', 'tblTempUsageDetail_20' ) start [2025-04-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932709', 'tblTempUsageDetail_20' ) end [2025-04-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932709', 'tblTempVendorCDR_20' ) start [2025-04-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932709', 'tblTempVendorCDR_20' ) end [2025-04-18 03:02:18] Production.INFO: ProcessCDR(1,14932709,1,1,2) [2025-04-18 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932709', 'tblTempUsageDetail_20' ) start [2025-04-18 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932709', 'tblTempUsageDetail_20' ) end [2025-04-18 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:02:22] Production.INFO: ==26725== Releasing lock... [2025-04-18 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:02:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:03:06 [end_date_ymd] => 2025-04-18 03:03:06 [RateCDR] => 1 ) [2025-04-18 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:03:06' and `end` < '2025-04-18 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:03:18] Production.INFO: count ==841 [2025-04-18 03:03:19] Production.ERROR: pbx CDR StartTime 2025-04-18 00:03:06 - End Time 2025-04-18 03:03:06 [2025-04-18 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932714', 'tblTempUsageDetail_20' ) start [2025-04-18 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932714', 'tblTempUsageDetail_20' ) end [2025-04-18 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932714', 'tblTempVendorCDR_20' ) start [2025-04-18 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932714', 'tblTempVendorCDR_20' ) end [2025-04-18 03:03:19] Production.INFO: ProcessCDR(1,14932714,1,1,2) [2025-04-18 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932714', 'tblTempUsageDetail_20' ) start [2025-04-18 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932714', 'tblTempUsageDetail_20' ) end [2025-04-18 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:03:22] Production.INFO: ==26800== Releasing lock... [2025-04-18 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:03:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:04:05 [end_date_ymd] => 2025-04-18 03:04:05 [RateCDR] => 1 ) [2025-04-18 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:04:05' and `end` < '2025-04-18 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:04:18] Production.INFO: count ==838 [2025-04-18 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:04:05 - End Time 2025-04-18 03:04:05 [2025-04-18 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932719', 'tblTempUsageDetail_20' ) start [2025-04-18 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932719', 'tblTempUsageDetail_20' ) end [2025-04-18 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932719', 'tblTempVendorCDR_20' ) start [2025-04-18 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932719', 'tblTempVendorCDR_20' ) end [2025-04-18 03:04:18] Production.INFO: ProcessCDR(1,14932719,1,1,2) [2025-04-18 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932719', 'tblTempUsageDetail_20' ) start [2025-04-18 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932719', 'tblTempUsageDetail_20' ) end [2025-04-18 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:04:21] Production.INFO: ==26873== Releasing lock... [2025-04-18 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:04:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:05:05 [end_date_ymd] => 2025-04-18 03:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:05:05' and `end` < '2025-04-18 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-04-18 03:05:18] Production.INFO: count ==834 [2025-04-18 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:05:05 - End Time 2025-04-18 03:05:05 [2025-04-18 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932724', 'tblTempUsageDetail_20' ) start [2025-04-18 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932724', 'tblTempUsageDetail_20' ) end [2025-04-18 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932724', 'tblTempVendorCDR_20' ) start [2025-04-18 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932724', 'tblTempVendorCDR_20' ) end [2025-04-18 03:05:18] Production.INFO: ProcessCDR(1,14932724,1,1,2) [2025-04-18 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932724', 'tblTempUsageDetail_20' ) start [2025-04-18 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932724', 'tblTempUsageDetail_20' ) end [2025-04-18 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:05:22] Production.INFO: ==26959== Releasing lock... [2025-04-18 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:05:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:06:05 [end_date_ymd] => 2025-04-18 03:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:06:05' and `end` < '2025-04-18 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-04-18 03:06:17] Production.INFO: count ==828 [2025-04-18 03:06:17] Production.ERROR: pbx CDR StartTime 2025-04-18 00:06:05 - End Time 2025-04-18 03:06:05 [2025-04-18 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932729', 'tblTempUsageDetail_20' ) start [2025-04-18 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932729', 'tblTempUsageDetail_20' ) end [2025-04-18 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932729', 'tblTempVendorCDR_20' ) start [2025-04-18 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932729', 'tblTempVendorCDR_20' ) end [2025-04-18 03:06:18] Production.INFO: ProcessCDR(1,14932729,1,1,2) [2025-04-18 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932729', 'tblTempUsageDetail_20' ) start [2025-04-18 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932729', 'tblTempUsageDetail_20' ) end [2025-04-18 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:06:21] Production.INFO: ==27097== Releasing lock... [2025-04-18 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:06:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:07:06 [end_date_ymd] => 2025-04-18 03:07:06 [RateCDR] => 1 ) [2025-04-18 03: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-04-18 00:07:06' and `end` < '2025-04-18 03: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-04-18 03:07:18] Production.INFO: count ==823 [2025-04-18 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:07:06 - End Time 2025-04-18 03:07:06 [2025-04-18 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932734', 'tblTempUsageDetail_20' ) start [2025-04-18 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932734', 'tblTempUsageDetail_20' ) end [2025-04-18 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932734', 'tblTempVendorCDR_20' ) start [2025-04-18 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932734', 'tblTempVendorCDR_20' ) end [2025-04-18 03:07:18] Production.INFO: ProcessCDR(1,14932734,1,1,2) [2025-04-18 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932734', 'tblTempUsageDetail_20' ) start [2025-04-18 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932734', 'tblTempUsageDetail_20' ) end [2025-04-18 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:07:22] Production.INFO: ==27170== Releasing lock... [2025-04-18 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:07:22] Production.INFO: 34 MB #Memory Used# [2025-04-18 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:08:05 [end_date_ymd] => 2025-04-18 03:08:05 [RateCDR] => 1 ) [2025-04-18 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:08:05' and `end` < '2025-04-18 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:08:18] Production.INFO: count ==821 [2025-04-18 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:08:05 - End Time 2025-04-18 03:08:05 [2025-04-18 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932739', 'tblTempUsageDetail_20' ) start [2025-04-18 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932739', 'tblTempUsageDetail_20' ) end [2025-04-18 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932739', 'tblTempVendorCDR_20' ) start [2025-04-18 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932739', 'tblTempVendorCDR_20' ) end [2025-04-18 03:08:18] Production.INFO: ProcessCDR(1,14932739,1,1,2) [2025-04-18 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932739', 'tblTempUsageDetail_20' ) start [2025-04-18 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932739', 'tblTempUsageDetail_20' ) end [2025-04-18 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:08:21] Production.INFO: ==27242== Releasing lock... [2025-04-18 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:08:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:09:05 [end_date_ymd] => 2025-04-18 03:09:05 [RateCDR] => 1 ) [2025-04-18 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:09:05' and `end` < '2025-04-18 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:09:18] Production.INFO: count ==821 [2025-04-18 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:09:05 - End Time 2025-04-18 03:09:05 [2025-04-18 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932744', 'tblTempUsageDetail_20' ) start [2025-04-18 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932744', 'tblTempUsageDetail_20' ) end [2025-04-18 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932744', 'tblTempVendorCDR_20' ) start [2025-04-18 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932744', 'tblTempVendorCDR_20' ) end [2025-04-18 03:09:18] Production.INFO: ProcessCDR(1,14932744,1,1,2) [2025-04-18 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932744', 'tblTempUsageDetail_20' ) start [2025-04-18 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932744', 'tblTempUsageDetail_20' ) end [2025-04-18 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:09:22] Production.INFO: ==27392== Releasing lock... [2025-04-18 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:09:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:10:05 [end_date_ymd] => 2025-04-18 03:10:05 [RateCDR] => 1 ) [2025-04-18 03: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-04-18 00:10:05' and `end` < '2025-04-18 03: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-04-18 03:10:18] Production.INFO: count ==820 [2025-04-18 03:10:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:10:05 - End Time 2025-04-18 03:10:05 [2025-04-18 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932749', 'tblTempUsageDetail_20' ) start [2025-04-18 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932749', 'tblTempUsageDetail_20' ) end [2025-04-18 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932749', 'tblTempVendorCDR_20' ) start [2025-04-18 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932749', 'tblTempVendorCDR_20' ) end [2025-04-18 03:10:18] Production.INFO: ProcessCDR(1,14932749,1,1,2) [2025-04-18 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932749', 'tblTempUsageDetail_20' ) start [2025-04-18 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932749', 'tblTempUsageDetail_20' ) end [2025-04-18 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:10:21] Production.INFO: ==27490== Releasing lock... [2025-04-18 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:10:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:11:05 [end_date_ymd] => 2025-04-18 03:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:11:05' and `end` < '2025-04-18 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-04-18 03:11:18] Production.INFO: count ==818 [2025-04-18 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:11:05 - End Time 2025-04-18 03:11:05 [2025-04-18 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932755', 'tblTempUsageDetail_20' ) start [2025-04-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932755', 'tblTempUsageDetail_20' ) end [2025-04-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932755', 'tblTempVendorCDR_20' ) start [2025-04-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932755', 'tblTempVendorCDR_20' ) end [2025-04-18 03:11:18] Production.INFO: ProcessCDR(1,14932755,1,1,2) [2025-04-18 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932755', 'tblTempUsageDetail_20' ) start [2025-04-18 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932755', 'tblTempUsageDetail_20' ) end [2025-04-18 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:11:21] Production.INFO: ==27591== Releasing lock... [2025-04-18 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:11:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 03:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:12:04 [end_date_ymd] => 2025-04-18 03:12:04 [RateCDR] => 1 ) [2025-04-18 03:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:12:04' and `end` < '2025-04-18 03:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:12:17] Production.INFO: count ==818 [2025-04-18 03:12:17] Production.ERROR: pbx CDR StartTime 2025-04-18 00:12:04 - End Time 2025-04-18 03:12:04 [2025-04-18 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932760', 'tblTempUsageDetail_20' ) start [2025-04-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932760', 'tblTempUsageDetail_20' ) end [2025-04-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932760', 'tblTempVendorCDR_20' ) start [2025-04-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932760', 'tblTempVendorCDR_20' ) end [2025-04-18 03:12:17] Production.INFO: ProcessCDR(1,14932760,1,1,2) [2025-04-18 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932760', 'tblTempUsageDetail_20' ) start [2025-04-18 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932760', 'tblTempUsageDetail_20' ) end [2025-04-18 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:12:21] Production.INFO: ==27664== Releasing lock... [2025-04-18 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:12:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:13:05 [end_date_ymd] => 2025-04-18 03:13:05 [RateCDR] => 1 ) [2025-04-18 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:13:05' and `end` < '2025-04-18 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:13:17] Production.INFO: count ==818 [2025-04-18 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:13:05 - End Time 2025-04-18 03:13:05 [2025-04-18 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932765', 'tblTempUsageDetail_20' ) start [2025-04-18 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932765', 'tblTempUsageDetail_20' ) end [2025-04-18 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932765', 'tblTempVendorCDR_20' ) start [2025-04-18 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932765', 'tblTempVendorCDR_20' ) end [2025-04-18 03:13:18] Production.INFO: ProcessCDR(1,14932765,1,1,2) [2025-04-18 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932765', 'tblTempUsageDetail_20' ) start [2025-04-18 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932765', 'tblTempUsageDetail_20' ) end [2025-04-18 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:13:21] Production.INFO: ==27818== Releasing lock... [2025-04-18 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:13:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:14:05 [end_date_ymd] => 2025-04-18 03:14:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:14:05' and `end` < '2025-04-18 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-04-18 03:14:17] Production.INFO: count ==816 [2025-04-18 03:14:17] Production.ERROR: pbx CDR StartTime 2025-04-18 00:14:05 - End Time 2025-04-18 03:14:05 [2025-04-18 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932770', 'tblTempUsageDetail_20' ) start [2025-04-18 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932770', 'tblTempUsageDetail_20' ) end [2025-04-18 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932770', 'tblTempVendorCDR_20' ) start [2025-04-18 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932770', 'tblTempVendorCDR_20' ) end [2025-04-18 03:14:17] Production.INFO: ProcessCDR(1,14932770,1,1,2) [2025-04-18 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932770', 'tblTempUsageDetail_20' ) start [2025-04-18 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932770', 'tblTempUsageDetail_20' ) end [2025-04-18 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:14:21] Production.INFO: ==27890== Releasing lock... [2025-04-18 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:14:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:15:05 [end_date_ymd] => 2025-04-18 03:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:15:05' and `end` < '2025-04-18 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-04-18 03:15:17] Production.INFO: count ==814 [2025-04-18 03:15:17] Production.ERROR: pbx CDR StartTime 2025-04-18 00:15:05 - End Time 2025-04-18 03:15:05 [2025-04-18 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932775', 'tblTempUsageDetail_20' ) start [2025-04-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932775', 'tblTempUsageDetail_20' ) end [2025-04-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932775', 'tblTempVendorCDR_20' ) start [2025-04-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932775', 'tblTempVendorCDR_20' ) end [2025-04-18 03:15:17] Production.INFO: ProcessCDR(1,14932775,1,1,2) [2025-04-18 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932775', 'tblTempUsageDetail_20' ) start [2025-04-18 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932775', 'tblTempUsageDetail_20' ) end [2025-04-18 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:15:21] Production.INFO: ==28005== Releasing lock... [2025-04-18 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:15:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:16:05 [end_date_ymd] => 2025-04-18 03:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:16:05' and `end` < '2025-04-18 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-04-18 03:16:17] Production.INFO: count ==812 [2025-04-18 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:16:05 - End Time 2025-04-18 03:16:05 [2025-04-18 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932780', 'tblTempUsageDetail_20' ) start [2025-04-18 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932780', 'tblTempUsageDetail_20' ) end [2025-04-18 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932780', 'tblTempVendorCDR_20' ) start [2025-04-18 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932780', 'tblTempVendorCDR_20' ) end [2025-04-18 03:16:18] Production.INFO: ProcessCDR(1,14932780,1,1,2) [2025-04-18 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932780', 'tblTempUsageDetail_20' ) start [2025-04-18 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932780', 'tblTempUsageDetail_20' ) end [2025-04-18 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:16:21] Production.INFO: ==28088== Releasing lock... [2025-04-18 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:16:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:17:05 [end_date_ymd] => 2025-04-18 03:17:05 [RateCDR] => 1 ) [2025-04-18 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:17:05' and `end` < '2025-04-18 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:17:17] Production.INFO: count ==816 [2025-04-18 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:17:05 - End Time 2025-04-18 03:17:05 [2025-04-18 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932785', 'tblTempUsageDetail_20' ) start [2025-04-18 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932785', 'tblTempUsageDetail_20' ) end [2025-04-18 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932785', 'tblTempVendorCDR_20' ) start [2025-04-18 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932785', 'tblTempVendorCDR_20' ) end [2025-04-18 03:17:18] Production.INFO: ProcessCDR(1,14932785,1,1,2) [2025-04-18 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932785', 'tblTempUsageDetail_20' ) start [2025-04-18 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932785', 'tblTempUsageDetail_20' ) end [2025-04-18 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:17:21] Production.INFO: ==28244== Releasing lock... [2025-04-18 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:17:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:18:05 [end_date_ymd] => 2025-04-18 03:18:05 [RateCDR] => 1 ) [2025-04-18 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:18:05' and `end` < '2025-04-18 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:18:18] Production.INFO: count ==815 [2025-04-18 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:18:05 - End Time 2025-04-18 03:18:05 [2025-04-18 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932790', 'tblTempUsageDetail_20' ) start [2025-04-18 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932790', 'tblTempUsageDetail_20' ) end [2025-04-18 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932790', 'tblTempVendorCDR_20' ) start [2025-04-18 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932790', 'tblTempVendorCDR_20' ) end [2025-04-18 03:18:18] Production.INFO: ProcessCDR(1,14932790,1,1,2) [2025-04-18 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932790', 'tblTempUsageDetail_20' ) start [2025-04-18 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932790', 'tblTempUsageDetail_20' ) end [2025-04-18 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:18:21] Production.INFO: ==28318== Releasing lock... [2025-04-18 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:18:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:19:04 [end_date_ymd] => 2025-04-18 03:19:04 [RateCDR] => 1 ) [2025-04-18 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:19:04' and `end` < '2025-04-18 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:19:17] Production.INFO: count ==815 [2025-04-18 03:19:17] Production.ERROR: pbx CDR StartTime 2025-04-18 00:19:04 - End Time 2025-04-18 03:19:04 [2025-04-18 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932795', 'tblTempUsageDetail_20' ) start [2025-04-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932795', 'tblTempUsageDetail_20' ) end [2025-04-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932795', 'tblTempVendorCDR_20' ) start [2025-04-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932795', 'tblTempVendorCDR_20' ) end [2025-04-18 03:19:17] Production.INFO: ProcessCDR(1,14932795,1,1,2) [2025-04-18 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932795', 'tblTempUsageDetail_20' ) start [2025-04-18 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932795', 'tblTempUsageDetail_20' ) end [2025-04-18 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:19:20] Production.INFO: ==28387== Releasing lock... [2025-04-18 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:19:20] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:20:06 [end_date_ymd] => 2025-04-18 03:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:20:06' and `end` < '2025-04-18 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-04-18 03:20:19] Production.INFO: count ==816 [2025-04-18 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 00:20:06 - End Time 2025-04-18 03:20:06 [2025-04-18 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932801', 'tblTempUsageDetail_20' ) start [2025-04-18 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932801', 'tblTempUsageDetail_20' ) end [2025-04-18 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932801', 'tblTempVendorCDR_20' ) start [2025-04-18 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932801', 'tblTempVendorCDR_20' ) end [2025-04-18 03:20:19] Production.INFO: ProcessCDR(1,14932801,1,1,2) [2025-04-18 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932801', 'tblTempUsageDetail_20' ) start [2025-04-18 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932801', 'tblTempUsageDetail_20' ) end [2025-04-18 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:20:22] Production.INFO: ==28470== Releasing lock... [2025-04-18 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:20:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:21:05 [end_date_ymd] => 2025-04-18 03:21:05 [RateCDR] => 1 ) [2025-04-18 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:21:05' and `end` < '2025-04-18 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:21:17] Production.INFO: count ==816 [2025-04-18 03:21:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:21:05 - End Time 2025-04-18 03:21:05 [2025-04-18 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932806', 'tblTempUsageDetail_20' ) start [2025-04-18 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932806', 'tblTempUsageDetail_20' ) end [2025-04-18 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932806', 'tblTempVendorCDR_20' ) start [2025-04-18 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932806', 'tblTempVendorCDR_20' ) end [2025-04-18 03:21:18] Production.INFO: ProcessCDR(1,14932806,1,1,2) [2025-04-18 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932806', 'tblTempUsageDetail_20' ) start [2025-04-18 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932806', 'tblTempUsageDetail_20' ) end [2025-04-18 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:21:21] Production.INFO: ==28546== Releasing lock... [2025-04-18 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:21:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:22:05 [end_date_ymd] => 2025-04-18 03:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:22:05' and `end` < '2025-04-18 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-04-18 03:22:18] Production.INFO: count ==814 [2025-04-18 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:22:05 - End Time 2025-04-18 03:22:05 [2025-04-18 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932811', 'tblTempUsageDetail_20' ) start [2025-04-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932811', 'tblTempUsageDetail_20' ) end [2025-04-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932811', 'tblTempVendorCDR_20' ) start [2025-04-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932811', 'tblTempVendorCDR_20' ) end [2025-04-18 03:22:18] Production.INFO: ProcessCDR(1,14932811,1,1,2) [2025-04-18 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932811', 'tblTempUsageDetail_20' ) start [2025-04-18 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932811', 'tblTempUsageDetail_20' ) end [2025-04-18 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:22:21] Production.INFO: ==28623== Releasing lock... [2025-04-18 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:22:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:23:06 [end_date_ymd] => 2025-04-18 03:23:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:23:06' and `end` < '2025-04-18 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-04-18 03:23:18] Production.INFO: count ==811 [2025-04-18 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:23:06 - End Time 2025-04-18 03:23:06 [2025-04-18 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932816', 'tblTempUsageDetail_20' ) start [2025-04-18 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932816', 'tblTempUsageDetail_20' ) end [2025-04-18 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932816', 'tblTempVendorCDR_20' ) start [2025-04-18 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932816', 'tblTempVendorCDR_20' ) end [2025-04-18 03:23:18] Production.INFO: ProcessCDR(1,14932816,1,1,2) [2025-04-18 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932816', 'tblTempUsageDetail_20' ) start [2025-04-18 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932816', 'tblTempUsageDetail_20' ) end [2025-04-18 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:23:22] Production.INFO: ==28703== Releasing lock... [2025-04-18 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:23:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-18 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:24:05 [end_date_ymd] => 2025-04-18 03:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:24:05' and `end` < '2025-04-18 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-04-18 03:24:17] Production.INFO: count ==812 [2025-04-18 03:24:17] Production.ERROR: pbx CDR StartTime 2025-04-18 00:24:05 - End Time 2025-04-18 03:24:05 [2025-04-18 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932821', 'tblTempUsageDetail_20' ) start [2025-04-18 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932821', 'tblTempUsageDetail_20' ) end [2025-04-18 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932821', 'tblTempVendorCDR_20' ) start [2025-04-18 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932821', 'tblTempVendorCDR_20' ) end [2025-04-18 03:24:17] Production.INFO: ProcessCDR(1,14932821,1,1,2) [2025-04-18 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932821', 'tblTempUsageDetail_20' ) start [2025-04-18 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932821', 'tblTempUsageDetail_20' ) end [2025-04-18 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:24:21] Production.INFO: ==28779== Releasing lock... [2025-04-18 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:24:21] Production.INFO: 34 MB #Memory Used# [2025-04-18 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:25:05 [end_date_ymd] => 2025-04-18 03:25:05 [RateCDR] => 1 ) [2025-04-18 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:25:05' and `end` < '2025-04-18 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:25:18] Production.INFO: count ==811 [2025-04-18 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:25:05 - End Time 2025-04-18 03:25:05 [2025-04-18 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932825', 'tblTempUsageDetail_20' ) start [2025-04-18 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932825', 'tblTempUsageDetail_20' ) end [2025-04-18 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932825', 'tblTempVendorCDR_20' ) start [2025-04-18 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932825', 'tblTempVendorCDR_20' ) end [2025-04-18 03:25:18] Production.INFO: ProcessCDR(1,14932825,1,1,2) [2025-04-18 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932825', 'tblTempUsageDetail_20' ) start [2025-04-18 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932825', 'tblTempUsageDetail_20' ) end [2025-04-18 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:25:21] Production.INFO: ==28857== Releasing lock... [2025-04-18 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:25:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:26:05 [end_date_ymd] => 2025-04-18 03:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:26:05' and `end` < '2025-04-18 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-04-18 03:26:18] Production.INFO: count ==811 [2025-04-18 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:26:05 - End Time 2025-04-18 03:26:05 [2025-04-18 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932831', 'tblTempUsageDetail_20' ) start [2025-04-18 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932831', 'tblTempUsageDetail_20' ) end [2025-04-18 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932831', 'tblTempVendorCDR_20' ) start [2025-04-18 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932831', 'tblTempVendorCDR_20' ) end [2025-04-18 03:26:18] Production.INFO: ProcessCDR(1,14932831,1,1,2) [2025-04-18 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932831', 'tblTempUsageDetail_20' ) start [2025-04-18 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932831', 'tblTempUsageDetail_20' ) end [2025-04-18 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:26:22] Production.INFO: ==28933== Releasing lock... [2025-04-18 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:26:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:27:05 [end_date_ymd] => 2025-04-18 03:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:27:05' and `end` < '2025-04-18 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-04-18 03:27:18] Production.INFO: count ==807 [2025-04-18 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:27:05 - End Time 2025-04-18 03:27:05 [2025-04-18 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932836', 'tblTempUsageDetail_20' ) start [2025-04-18 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932836', 'tblTempUsageDetail_20' ) end [2025-04-18 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932836', 'tblTempVendorCDR_20' ) start [2025-04-18 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932836', 'tblTempVendorCDR_20' ) end [2025-04-18 03:27:18] Production.INFO: ProcessCDR(1,14932836,1,1,2) [2025-04-18 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932836', 'tblTempUsageDetail_20' ) start [2025-04-18 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932836', 'tblTempUsageDetail_20' ) end [2025-04-18 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:27:22] Production.INFO: ==29009== Releasing lock... [2025-04-18 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:27:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:28:05 [end_date_ymd] => 2025-04-18 03:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:28:05' and `end` < '2025-04-18 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-04-18 03:28:18] Production.INFO: count ==807 [2025-04-18 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:28:05 - End Time 2025-04-18 03:28:05 [2025-04-18 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932841', 'tblTempUsageDetail_20' ) start [2025-04-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932841', 'tblTempUsageDetail_20' ) end [2025-04-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932841', 'tblTempVendorCDR_20' ) start [2025-04-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932841', 'tblTempVendorCDR_20' ) end [2025-04-18 03:28:18] Production.INFO: ProcessCDR(1,14932841,1,1,2) [2025-04-18 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932841', 'tblTempUsageDetail_20' ) start [2025-04-18 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932841', 'tblTempUsageDetail_20' ) end [2025-04-18 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:28:21] Production.INFO: ==29086== Releasing lock... [2025-04-18 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:28:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:29:05 [end_date_ymd] => 2025-04-18 03:29:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:29:05' and `end` < '2025-04-18 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-04-18 03:29:17] Production.INFO: count ==805 [2025-04-18 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:29:05 - End Time 2025-04-18 03:29:05 [2025-04-18 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932846', 'tblTempUsageDetail_20' ) start [2025-04-18 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932846', 'tblTempUsageDetail_20' ) end [2025-04-18 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932846', 'tblTempVendorCDR_20' ) start [2025-04-18 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932846', 'tblTempVendorCDR_20' ) end [2025-04-18 03:29:18] Production.INFO: ProcessCDR(1,14932846,1,1,2) [2025-04-18 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932846', 'tblTempUsageDetail_20' ) start [2025-04-18 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932846', 'tblTempUsageDetail_20' ) end [2025-04-18 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:29:21] Production.INFO: ==29161== Releasing lock... [2025-04-18 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:29:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:30:06 [end_date_ymd] => 2025-04-18 03:30:06 [RateCDR] => 1 ) [2025-04-18 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:30:06' and `end` < '2025-04-18 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:30:18] Production.INFO: count ==795 [2025-04-18 03:30:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:30:06 - End Time 2025-04-18 03:30:06 [2025-04-18 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932852', 'tblTempUsageDetail_20' ) start [2025-04-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932852', 'tblTempUsageDetail_20' ) end [2025-04-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932852', 'tblTempVendorCDR_20' ) start [2025-04-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932852', 'tblTempVendorCDR_20' ) end [2025-04-18 03:30:18] Production.INFO: ProcessCDR(1,14932852,1,1,2) [2025-04-18 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932852', 'tblTempUsageDetail_20' ) start [2025-04-18 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932852', 'tblTempUsageDetail_20' ) end [2025-04-18 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:30:22] Production.INFO: ==29243== Releasing lock... [2025-04-18 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:30:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:31:05 [end_date_ymd] => 2025-04-18 03:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:31:05' and `end` < '2025-04-18 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-04-18 03:31:18] Production.INFO: count ==775 [2025-04-18 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:31:05 - End Time 2025-04-18 03:31:05 [2025-04-18 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932857', 'tblTempUsageDetail_20' ) start [2025-04-18 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932857', 'tblTempUsageDetail_20' ) end [2025-04-18 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932857', 'tblTempVendorCDR_20' ) start [2025-04-18 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932857', 'tblTempVendorCDR_20' ) end [2025-04-18 03:31:18] Production.INFO: ProcessCDR(1,14932857,1,1,2) [2025-04-18 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932857', 'tblTempUsageDetail_20' ) start [2025-04-18 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932857', 'tblTempUsageDetail_20' ) end [2025-04-18 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:31:21] Production.INFO: ==29325== Releasing lock... [2025-04-18 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:31:21] Production.INFO: 34 MB #Memory Used# [2025-04-18 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:32:05 [end_date_ymd] => 2025-04-18 03:32:05 [RateCDR] => 1 ) [2025-04-18 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:32:05' and `end` < '2025-04-18 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:32:17] Production.INFO: count ==775 [2025-04-18 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:32:05 - End Time 2025-04-18 03:32:05 [2025-04-18 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932862', 'tblTempUsageDetail_20' ) start [2025-04-18 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932862', 'tblTempUsageDetail_20' ) end [2025-04-18 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932862', 'tblTempVendorCDR_20' ) start [2025-04-18 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932862', 'tblTempVendorCDR_20' ) end [2025-04-18 03:32:18] Production.INFO: ProcessCDR(1,14932862,1,1,2) [2025-04-18 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932862', 'tblTempUsageDetail_20' ) start [2025-04-18 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932862', 'tblTempUsageDetail_20' ) end [2025-04-18 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:32:21] Production.INFO: ==29434== Releasing lock... [2025-04-18 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:32:21] Production.INFO: 34 MB #Memory Used# [2025-04-18 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:33:05 [end_date_ymd] => 2025-04-18 03:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:33:05' and `end` < '2025-04-18 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-04-18 03:33:17] Production.INFO: count ==772 [2025-04-18 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:33:05 - End Time 2025-04-18 03:33:05 [2025-04-18 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932867', 'tblTempUsageDetail_20' ) start [2025-04-18 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932867', 'tblTempUsageDetail_20' ) end [2025-04-18 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932867', 'tblTempVendorCDR_20' ) start [2025-04-18 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932867', 'tblTempVendorCDR_20' ) end [2025-04-18 03:33:18] Production.INFO: ProcessCDR(1,14932867,1,1,2) [2025-04-18 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932867', 'tblTempUsageDetail_20' ) start [2025-04-18 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932867', 'tblTempUsageDetail_20' ) end [2025-04-18 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:33:21] Production.INFO: ==29515== Releasing lock... [2025-04-18 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:33:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:34:05 [end_date_ymd] => 2025-04-18 03:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:34:05' and `end` < '2025-04-18 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-04-18 03:34:17] Production.INFO: count ==770 [2025-04-18 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:34:05 - End Time 2025-04-18 03:34:05 [2025-04-18 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932872', 'tblTempUsageDetail_20' ) start [2025-04-18 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932872', 'tblTempUsageDetail_20' ) end [2025-04-18 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932872', 'tblTempVendorCDR_20' ) start [2025-04-18 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932872', 'tblTempVendorCDR_20' ) end [2025-04-18 03:34:18] Production.INFO: ProcessCDR(1,14932872,1,1,2) [2025-04-18 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932872', 'tblTempUsageDetail_20' ) start [2025-04-18 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932872', 'tblTempUsageDetail_20' ) end [2025-04-18 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:34:21] Production.INFO: ==29587== Releasing lock... [2025-04-18 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:34:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:35:05 [end_date_ymd] => 2025-04-18 03:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:35:05' and `end` < '2025-04-18 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-04-18 03:35:18] Production.INFO: count ==768 [2025-04-18 03:35:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:35:05 - End Time 2025-04-18 03:35:05 [2025-04-18 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932877', 'tblTempUsageDetail_20' ) start [2025-04-18 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932877', 'tblTempUsageDetail_20' ) end [2025-04-18 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932877', 'tblTempVendorCDR_20' ) start [2025-04-18 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932877', 'tblTempVendorCDR_20' ) end [2025-04-18 03:35:18] Production.INFO: ProcessCDR(1,14932877,1,1,2) [2025-04-18 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932877', 'tblTempUsageDetail_20' ) start [2025-04-18 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932877', 'tblTempUsageDetail_20' ) end [2025-04-18 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:35:22] Production.INFO: ==29664== Releasing lock... [2025-04-18 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:35:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:36:06 [end_date_ymd] => 2025-04-18 03:36:06 [RateCDR] => 1 ) [2025-04-18 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:36:06' and `end` < '2025-04-18 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:36:19] Production.INFO: count ==765 [2025-04-18 03:36:19] Production.ERROR: pbx CDR StartTime 2025-04-18 00:36:06 - End Time 2025-04-18 03:36:06 [2025-04-18 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932882', 'tblTempUsageDetail_20' ) start [2025-04-18 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932882', 'tblTempUsageDetail_20' ) end [2025-04-18 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932882', 'tblTempVendorCDR_20' ) start [2025-04-18 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932882', 'tblTempVendorCDR_20' ) end [2025-04-18 03:36:19] Production.INFO: ProcessCDR(1,14932882,1,1,2) [2025-04-18 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932882', 'tblTempUsageDetail_20' ) start [2025-04-18 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932882', 'tblTempUsageDetail_20' ) end [2025-04-18 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:36:22] Production.INFO: ==29745== Releasing lock... [2025-04-18 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:36:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:37:05 [end_date_ymd] => 2025-04-18 03:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:37:05' and `end` < '2025-04-18 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-04-18 03:37:18] Production.INFO: count ==765 [2025-04-18 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:37:05 - End Time 2025-04-18 03:37:05 [2025-04-18 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932887', 'tblTempUsageDetail_20' ) start [2025-04-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932887', 'tblTempUsageDetail_20' ) end [2025-04-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932887', 'tblTempVendorCDR_20' ) start [2025-04-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932887', 'tblTempVendorCDR_20' ) end [2025-04-18 03:37:18] Production.INFO: ProcessCDR(1,14932887,1,1,2) [2025-04-18 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932887', 'tblTempUsageDetail_20' ) start [2025-04-18 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932887', 'tblTempUsageDetail_20' ) end [2025-04-18 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:37:23] Production.INFO: ==29815== Releasing lock... [2025-04-18 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:37:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:38:06 [end_date_ymd] => 2025-04-18 03:38:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:38:06' and `end` < '2025-04-18 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-04-18 03:38:19] Production.INFO: count ==763 [2025-04-18 03:38:19] Production.ERROR: pbx CDR StartTime 2025-04-18 00:38:06 - End Time 2025-04-18 03:38:06 [2025-04-18 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932892', 'tblTempUsageDetail_20' ) start [2025-04-18 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932892', 'tblTempUsageDetail_20' ) end [2025-04-18 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932892', 'tblTempVendorCDR_20' ) start [2025-04-18 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932892', 'tblTempVendorCDR_20' ) end [2025-04-18 03:38:19] Production.INFO: ProcessCDR(1,14932892,1,1,2) [2025-04-18 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932892', 'tblTempUsageDetail_20' ) start [2025-04-18 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932892', 'tblTempUsageDetail_20' ) end [2025-04-18 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:38:22] Production.INFO: ==29895== Releasing lock... [2025-04-18 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:38:22] Production.INFO: 34 MB #Memory Used# [2025-04-18 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:39:05 [end_date_ymd] => 2025-04-18 03:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:39:05' and `end` < '2025-04-18 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-04-18 03:39:18] Production.INFO: count ==761 [2025-04-18 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:39:05 - End Time 2025-04-18 03:39:05 [2025-04-18 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932897', 'tblTempUsageDetail_20' ) start [2025-04-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932897', 'tblTempUsageDetail_20' ) end [2025-04-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932897', 'tblTempVendorCDR_20' ) start [2025-04-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932897', 'tblTempVendorCDR_20' ) end [2025-04-18 03:39:18] Production.INFO: ProcessCDR(1,14932897,1,1,2) [2025-04-18 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932897', 'tblTempUsageDetail_20' ) start [2025-04-18 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932897', 'tblTempUsageDetail_20' ) end [2025-04-18 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:39:21] Production.INFO: ==29971== Releasing lock... [2025-04-18 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:39:21] Production.INFO: 34 MB #Memory Used# [2025-04-18 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:40:06 [end_date_ymd] => 2025-04-18 03:40:06 [RateCDR] => 1 ) [2025-04-18 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:40:06' and `end` < '2025-04-18 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:40:19] Production.INFO: count ==756 [2025-04-18 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-18 00:40:06 - End Time 2025-04-18 03:40:06 [2025-04-18 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932902', 'tblTempUsageDetail_20' ) start [2025-04-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932902', 'tblTempUsageDetail_20' ) end [2025-04-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932902', 'tblTempVendorCDR_20' ) start [2025-04-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932902', 'tblTempVendorCDR_20' ) end [2025-04-18 03:40:19] Production.INFO: ProcessCDR(1,14932902,1,1,2) [2025-04-18 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932902', 'tblTempUsageDetail_20' ) start [2025-04-18 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932902', 'tblTempUsageDetail_20' ) end [2025-04-18 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:40:22] Production.INFO: ==30048== Releasing lock... [2025-04-18 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:40:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:41:05 [end_date_ymd] => 2025-04-18 03:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:41:05' and `end` < '2025-04-18 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-04-18 03:41:18] Production.INFO: count ==737 [2025-04-18 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:41:05 - End Time 2025-04-18 03:41:05 [2025-04-18 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932908', 'tblTempUsageDetail_20' ) start [2025-04-18 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932908', 'tblTempUsageDetail_20' ) end [2025-04-18 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932908', 'tblTempVendorCDR_20' ) start [2025-04-18 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932908', 'tblTempVendorCDR_20' ) end [2025-04-18 03:41:18] Production.INFO: ProcessCDR(1,14932908,1,1,2) [2025-04-18 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932908', 'tblTempUsageDetail_20' ) start [2025-04-18 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932908', 'tblTempUsageDetail_20' ) end [2025-04-18 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:41:22] Production.INFO: ==30130== Releasing lock... [2025-04-18 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:41:22] Production.INFO: 34 MB #Memory Used# [2025-04-18 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:42:05 [end_date_ymd] => 2025-04-18 03:42:05 [RateCDR] => 1 ) [2025-04-18 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:42:05' and `end` < '2025-04-18 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:42:18] Production.INFO: count ==736 [2025-04-18 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:42:05 - End Time 2025-04-18 03:42:05 [2025-04-18 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932913', 'tblTempUsageDetail_20' ) start [2025-04-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932913', 'tblTempUsageDetail_20' ) end [2025-04-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932913', 'tblTempVendorCDR_20' ) start [2025-04-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932913', 'tblTempVendorCDR_20' ) end [2025-04-18 03:42:18] Production.INFO: ProcessCDR(1,14932913,1,1,2) [2025-04-18 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932913', 'tblTempUsageDetail_20' ) start [2025-04-18 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932913', 'tblTempUsageDetail_20' ) end [2025-04-18 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:42:21] Production.INFO: ==30202== Releasing lock... [2025-04-18 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:42:21] Production.INFO: 34 MB #Memory Used# [2025-04-18 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:43:05 [end_date_ymd] => 2025-04-18 03:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:43:05' and `end` < '2025-04-18 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-04-18 03:43:18] Production.INFO: count ==732 [2025-04-18 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:43:05 - End Time 2025-04-18 03:43:05 [2025-04-18 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932918', 'tblTempUsageDetail_20' ) start [2025-04-18 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932918', 'tblTempUsageDetail_20' ) end [2025-04-18 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932918', 'tblTempVendorCDR_20' ) start [2025-04-18 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932918', 'tblTempVendorCDR_20' ) end [2025-04-18 03:43:18] Production.INFO: ProcessCDR(1,14932918,1,1,2) [2025-04-18 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932918', 'tblTempUsageDetail_20' ) start [2025-04-18 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932918', 'tblTempUsageDetail_20' ) end [2025-04-18 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:43:22] Production.INFO: ==30280== Releasing lock... [2025-04-18 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:43:22] Production.INFO: 34 MB #Memory Used# [2025-04-18 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:44:06 [end_date_ymd] => 2025-04-18 03:44:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:44:06' and `end` < '2025-04-18 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-04-18 03:44:18] Production.INFO: count ==728 [2025-04-18 03:44:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:44:06 - End Time 2025-04-18 03:44:06 [2025-04-18 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932923', 'tblTempUsageDetail_20' ) start [2025-04-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932923', 'tblTempUsageDetail_20' ) end [2025-04-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932923', 'tblTempVendorCDR_20' ) start [2025-04-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932923', 'tblTempVendorCDR_20' ) end [2025-04-18 03:44:18] Production.INFO: ProcessCDR(1,14932923,1,1,2) [2025-04-18 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932923', 'tblTempUsageDetail_20' ) start [2025-04-18 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932923', 'tblTempUsageDetail_20' ) end [2025-04-18 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:44:22] Production.INFO: ==30359== Releasing lock... [2025-04-18 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-18 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:45:05 [end_date_ymd] => 2025-04-18 03:45:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:45:05' and `end` < '2025-04-18 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-04-18 03:45:17] Production.INFO: count ==726 [2025-04-18 03:45:17] Production.ERROR: pbx CDR StartTime 2025-04-18 00:45:05 - End Time 2025-04-18 03:45:05 [2025-04-18 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932928', 'tblTempUsageDetail_20' ) start [2025-04-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932928', 'tblTempUsageDetail_20' ) end [2025-04-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932928', 'tblTempVendorCDR_20' ) start [2025-04-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932928', 'tblTempVendorCDR_20' ) end [2025-04-18 03:45:17] Production.INFO: ProcessCDR(1,14932928,1,1,2) [2025-04-18 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932928', 'tblTempUsageDetail_20' ) start [2025-04-18 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932928', 'tblTempUsageDetail_20' ) end [2025-04-18 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:45:21] Production.INFO: ==30434== Releasing lock... [2025-04-18 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:45:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-18 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:46:05 [end_date_ymd] => 2025-04-18 03:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:46:05' and `end` < '2025-04-18 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-04-18 03:46:18] Production.INFO: count ==722 [2025-04-18 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:46:05 - End Time 2025-04-18 03:46:05 [2025-04-18 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932933', 'tblTempUsageDetail_20' ) start [2025-04-18 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932933', 'tblTempUsageDetail_20' ) end [2025-04-18 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932933', 'tblTempVendorCDR_20' ) start [2025-04-18 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932933', 'tblTempVendorCDR_20' ) end [2025-04-18 03:46:18] Production.INFO: ProcessCDR(1,14932933,1,1,2) [2025-04-18 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932933', 'tblTempUsageDetail_20' ) start [2025-04-18 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932933', 'tblTempUsageDetail_20' ) end [2025-04-18 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:46:21] Production.INFO: ==30517== Releasing lock... [2025-04-18 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:46:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-18 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:47:05 [end_date_ymd] => 2025-04-18 03:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:47:05' and `end` < '2025-04-18 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-04-18 03:47:18] Production.INFO: count ==719 [2025-04-18 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:47:05 - End Time 2025-04-18 03:47:05 [2025-04-18 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932938', 'tblTempUsageDetail_20' ) start [2025-04-18 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932938', 'tblTempUsageDetail_20' ) end [2025-04-18 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932938', 'tblTempVendorCDR_20' ) start [2025-04-18 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932938', 'tblTempVendorCDR_20' ) end [2025-04-18 03:47:18] Production.INFO: ProcessCDR(1,14932938,1,1,2) [2025-04-18 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932938', 'tblTempUsageDetail_20' ) start [2025-04-18 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932938', 'tblTempUsageDetail_20' ) end [2025-04-18 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:47:21] Production.INFO: ==30592== Releasing lock... [2025-04-18 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:47:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 03:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:48:04 [end_date_ymd] => 2025-04-18 03:48:04 [RateCDR] => 1 ) [2025-04-18 03: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-04-18 00:48:04' and `end` < '2025-04-18 03: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-04-18 03:48:17] Production.INFO: count ==716 [2025-04-18 03:48:17] Production.ERROR: pbx CDR StartTime 2025-04-18 00:48:04 - End Time 2025-04-18 03:48:04 [2025-04-18 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932943', 'tblTempUsageDetail_20' ) start [2025-04-18 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932943', 'tblTempUsageDetail_20' ) end [2025-04-18 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932943', 'tblTempVendorCDR_20' ) start [2025-04-18 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932943', 'tblTempVendorCDR_20' ) end [2025-04-18 03:48:17] Production.INFO: ProcessCDR(1,14932943,1,1,2) [2025-04-18 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932943', 'tblTempUsageDetail_20' ) start [2025-04-18 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932943', 'tblTempUsageDetail_20' ) end [2025-04-18 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:48:21] Production.INFO: ==30705== Releasing lock... [2025-04-18 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:48:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-18 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:49:05 [end_date_ymd] => 2025-04-18 03:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:49:05' and `end` < '2025-04-18 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-04-18 03:49:18] Production.INFO: count ==713 [2025-04-18 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:49:05 - End Time 2025-04-18 03:49:05 [2025-04-18 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932948', 'tblTempUsageDetail_20' ) start [2025-04-18 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932948', 'tblTempUsageDetail_20' ) end [2025-04-18 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932948', 'tblTempVendorCDR_20' ) start [2025-04-18 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932948', 'tblTempVendorCDR_20' ) end [2025-04-18 03:49:18] Production.INFO: ProcessCDR(1,14932948,1,1,2) [2025-04-18 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932948', 'tblTempUsageDetail_20' ) start [2025-04-18 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932948', 'tblTempUsageDetail_20' ) end [2025-04-18 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:49:21] Production.INFO: ==30783== Releasing lock... [2025-04-18 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:50:05 [end_date_ymd] => 2025-04-18 03:50:05 [RateCDR] => 1 ) [2025-04-18 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:50:05' and `end` < '2025-04-18 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:50:18] Production.INFO: count ==705 [2025-04-18 03:50:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:50:05 - End Time 2025-04-18 03:50:05 [2025-04-18 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932954', 'tblTempUsageDetail_20' ) start [2025-04-18 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932954', 'tblTempUsageDetail_20' ) end [2025-04-18 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932954', 'tblTempVendorCDR_20' ) start [2025-04-18 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932954', 'tblTempVendorCDR_20' ) end [2025-04-18 03:50:18] Production.INFO: ProcessCDR(1,14932954,1,1,2) [2025-04-18 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932954', 'tblTempUsageDetail_20' ) start [2025-04-18 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932954', 'tblTempUsageDetail_20' ) end [2025-04-18 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:50:22] Production.INFO: ==30861== Releasing lock... [2025-04-18 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:51:05 [end_date_ymd] => 2025-04-18 03:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:51:05' and `end` < '2025-04-18 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-04-18 03:51:18] Production.INFO: count ==678 [2025-04-18 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:51:05 - End Time 2025-04-18 03:51:05 [2025-04-18 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932959', 'tblTempUsageDetail_20' ) start [2025-04-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932959', 'tblTempUsageDetail_20' ) end [2025-04-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932959', 'tblTempVendorCDR_20' ) start [2025-04-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932959', 'tblTempVendorCDR_20' ) end [2025-04-18 03:51:18] Production.INFO: ProcessCDR(1,14932959,1,1,2) [2025-04-18 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932959', 'tblTempUsageDetail_20' ) start [2025-04-18 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932959', 'tblTempUsageDetail_20' ) end [2025-04-18 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:51:21] Production.INFO: ==30945== Releasing lock... [2025-04-18 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:51:21] Production.INFO: 34 MB #Memory Used# [2025-04-18 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:52:05 [end_date_ymd] => 2025-04-18 03:52:05 [RateCDR] => 1 ) [2025-04-18 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:52:05' and `end` < '2025-04-18 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:52:18] Production.INFO: count ==677 [2025-04-18 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:52:05 - End Time 2025-04-18 03:52:05 [2025-04-18 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932964', 'tblTempUsageDetail_20' ) start [2025-04-18 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932964', 'tblTempUsageDetail_20' ) end [2025-04-18 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932964', 'tblTempVendorCDR_20' ) start [2025-04-18 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932964', 'tblTempVendorCDR_20' ) end [2025-04-18 03:52:18] Production.INFO: ProcessCDR(1,14932964,1,1,2) [2025-04-18 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932964', 'tblTempUsageDetail_20' ) start [2025-04-18 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932964', 'tblTempUsageDetail_20' ) end [2025-04-18 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:52:21] Production.INFO: ==31017== Releasing lock... [2025-04-18 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-18 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:53:05 [end_date_ymd] => 2025-04-18 03:53:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:53:05' and `end` < '2025-04-18 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-04-18 03:53:17] Production.INFO: count ==675 [2025-04-18 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:53:05 - End Time 2025-04-18 03:53:05 [2025-04-18 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932969', 'tblTempUsageDetail_20' ) start [2025-04-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932969', 'tblTempUsageDetail_20' ) end [2025-04-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932969', 'tblTempVendorCDR_20' ) start [2025-04-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932969', 'tblTempVendorCDR_20' ) end [2025-04-18 03:53:18] Production.INFO: ProcessCDR(1,14932969,1,1,2) [2025-04-18 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932969', 'tblTempUsageDetail_20' ) start [2025-04-18 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932969', 'tblTempUsageDetail_20' ) end [2025-04-18 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:53:21] Production.INFO: ==31090== Releasing lock... [2025-04-18 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:53:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-18 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:54:05 [end_date_ymd] => 2025-04-18 03:54:05 [RateCDR] => 1 ) [2025-04-18 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:54:05' and `end` < '2025-04-18 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:54:18] Production.INFO: count ==670 [2025-04-18 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:54:05 - End Time 2025-04-18 03:54:05 [2025-04-18 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932974', 'tblTempUsageDetail_20' ) start [2025-04-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932974', 'tblTempUsageDetail_20' ) end [2025-04-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932974', 'tblTempVendorCDR_20' ) start [2025-04-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932974', 'tblTempVendorCDR_20' ) end [2025-04-18 03:54:18] Production.INFO: ProcessCDR(1,14932974,1,1,2) [2025-04-18 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932974', 'tblTempUsageDetail_20' ) start [2025-04-18 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932974', 'tblTempUsageDetail_20' ) end [2025-04-18 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:54:21] Production.INFO: ==31166== Releasing lock... [2025-04-18 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:54:21] Production.INFO: 34 MB #Memory Used# [2025-04-18 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:55:05 [end_date_ymd] => 2025-04-18 03:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:55:05' and `end` < '2025-04-18 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-04-18 03:55:17] Production.INFO: count ==671 [2025-04-18 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:55:05 - End Time 2025-04-18 03:55:05 [2025-04-18 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932979', 'tblTempUsageDetail_20' ) start [2025-04-18 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932979', 'tblTempUsageDetail_20' ) end [2025-04-18 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932979', 'tblTempVendorCDR_20' ) start [2025-04-18 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932979', 'tblTempVendorCDR_20' ) end [2025-04-18 03:55:18] Production.INFO: ProcessCDR(1,14932979,1,1,2) [2025-04-18 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932979', 'tblTempUsageDetail_20' ) start [2025-04-18 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932979', 'tblTempUsageDetail_20' ) end [2025-04-18 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:55:21] Production.INFO: ==31240== Releasing lock... [2025-04-18 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:56:06 [end_date_ymd] => 2025-04-18 03:56:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:56:06' and `end` < '2025-04-18 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-04-18 03:56:18] Production.INFO: count ==672 [2025-04-18 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:56:06 - End Time 2025-04-18 03:56:06 [2025-04-18 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932984', 'tblTempUsageDetail_20' ) start [2025-04-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932984', 'tblTempUsageDetail_20' ) end [2025-04-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932984', 'tblTempVendorCDR_20' ) start [2025-04-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932984', 'tblTempVendorCDR_20' ) end [2025-04-18 03:56:18] Production.INFO: ProcessCDR(1,14932984,1,1,2) [2025-04-18 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932984', 'tblTempUsageDetail_20' ) start [2025-04-18 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932984', 'tblTempUsageDetail_20' ) end [2025-04-18 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:56:22] Production.INFO: ==31318== Releasing lock... [2025-04-18 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:57:05 [end_date_ymd] => 2025-04-18 03:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 00:57:05' and `end` < '2025-04-18 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-04-18 03:57:17] Production.INFO: count ==672 [2025-04-18 03:57:17] Production.ERROR: pbx CDR StartTime 2025-04-18 00:57:05 - End Time 2025-04-18 03:57:05 [2025-04-18 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932989', 'tblTempUsageDetail_20' ) start [2025-04-18 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932989', 'tblTempUsageDetail_20' ) end [2025-04-18 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932989', 'tblTempVendorCDR_20' ) start [2025-04-18 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932989', 'tblTempVendorCDR_20' ) end [2025-04-18 03:57:17] Production.INFO: ProcessCDR(1,14932989,1,1,2) [2025-04-18 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932989', 'tblTempUsageDetail_20' ) start [2025-04-18 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932989', 'tblTempUsageDetail_20' ) end [2025-04-18 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:57:21] Production.INFO: ==31392== Releasing lock... [2025-04-18 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:57:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:58:05 [end_date_ymd] => 2025-04-18 03:58:05 [RateCDR] => 1 ) [2025-04-18 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:58:05' and `end` < '2025-04-18 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:58:18] Production.INFO: count ==666 [2025-04-18 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-18 00:58:05 - End Time 2025-04-18 03:58:05 [2025-04-18 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932994', 'tblTempUsageDetail_20' ) start [2025-04-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932994', 'tblTempUsageDetail_20' ) end [2025-04-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932994', 'tblTempVendorCDR_20' ) start [2025-04-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932994', 'tblTempVendorCDR_20' ) end [2025-04-18 03:58:18] Production.INFO: ProcessCDR(1,14932994,1,1,2) [2025-04-18 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932994', 'tblTempUsageDetail_20' ) start [2025-04-18 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932994', 'tblTempUsageDetail_20' ) end [2025-04-18 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:58:21] Production.INFO: ==31465== Releasing lock... [2025-04-18 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-18 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 00:59:04 [end_date_ymd] => 2025-04-18 03:59:04 [RateCDR] => 1 ) [2025-04-18 03:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 00:59:04' and `end` < '2025-04-18 03:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 03:59:17] Production.INFO: count ==653 [2025-04-18 03:59:17] Production.ERROR: pbx CDR StartTime 2025-04-18 00:59:04 - End Time 2025-04-18 03:59:04 [2025-04-18 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932999', 'tblTempUsageDetail_20' ) start [2025-04-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14932999', 'tblTempUsageDetail_20' ) end [2025-04-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932999', 'tblTempVendorCDR_20' ) start [2025-04-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14932999', 'tblTempVendorCDR_20' ) end [2025-04-18 03:59:17] Production.INFO: ProcessCDR(1,14932999,1,1,2) [2025-04-18 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14932999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14932999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14932999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14932999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932999', 'tblTempUsageDetail_20' ) start [2025-04-18 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14932999', 'tblTempUsageDetail_20' ) end [2025-04-18 03:59:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 03:59:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 03:59:20] Production.INFO: ==31540== Releasing lock... [2025-04-18 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 03:59:20] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:00:05 [end_date_ymd] => 2025-04-18 04:00:05 [RateCDR] => 1 ) [2025-04-18 04: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-04-18 01:00:05' and `end` < '2025-04-18 04: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-04-18 04:00:18] Production.INFO: count ==633 [2025-04-18 04:00:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:00:05 - End Time 2025-04-18 04:00:05 [2025-04-18 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933004', 'tblTempUsageDetail_20' ) start [2025-04-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933004', 'tblTempUsageDetail_20' ) end [2025-04-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933004', 'tblTempVendorCDR_20' ) start [2025-04-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933004', 'tblTempVendorCDR_20' ) end [2025-04-18 04:00:18] Production.INFO: ProcessCDR(1,14933004,1,1,2) [2025-04-18 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933004', 'tblTempUsageDetail_20' ) start [2025-04-18 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933004', 'tblTempUsageDetail_20' ) end [2025-04-18 04:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:00:21] Production.INFO: ==31617== Releasing lock... [2025-04-18 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:00:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-18 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:01:06 [end_date_ymd] => 2025-04-18 04:01:06 [RateCDR] => 1 ) [2025-04-18 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:01:06' and `end` < '2025-04-18 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:01:18] Production.INFO: count ==602 [2025-04-18 04:01:19] Production.ERROR: pbx CDR StartTime 2025-04-18 01:01:06 - End Time 2025-04-18 04:01:06 [2025-04-18 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933011', 'tblTempUsageDetail_20' ) start [2025-04-18 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933011', 'tblTempUsageDetail_20' ) end [2025-04-18 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933011', 'tblTempVendorCDR_20' ) start [2025-04-18 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933011', 'tblTempVendorCDR_20' ) end [2025-04-18 04:01:19] Production.INFO: ProcessCDR(1,14933011,1,1,2) [2025-04-18 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933011', 'tblTempUsageDetail_20' ) start [2025-04-18 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933011', 'tblTempUsageDetail_20' ) end [2025-04-18 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:01:22] Production.INFO: ==31712== Releasing lock... [2025-04-18 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:01:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-18 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:02:05 [end_date_ymd] => 2025-04-18 04:02:05 [RateCDR] => 1 ) [2025-04-18 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:02:05' and `end` < '2025-04-18 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:02:18] Production.INFO: count ==588 [2025-04-18 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:02:05 - End Time 2025-04-18 04:02:05 [2025-04-18 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933016', 'tblTempUsageDetail_20' ) start [2025-04-18 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933016', 'tblTempUsageDetail_20' ) end [2025-04-18 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933016', 'tblTempVendorCDR_20' ) start [2025-04-18 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933016', 'tblTempVendorCDR_20' ) end [2025-04-18 04:02:18] Production.INFO: ProcessCDR(1,14933016,1,1,2) [2025-04-18 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933016', 'tblTempUsageDetail_20' ) start [2025-04-18 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933016', 'tblTempUsageDetail_20' ) end [2025-04-18 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:02:21] Production.INFO: ==31788== Releasing lock... [2025-04-18 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:02:21] Production.INFO: 33 MB #Memory Used# [2025-04-18 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:03:06 [end_date_ymd] => 2025-04-18 04:03:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:03:06' and `end` < '2025-04-18 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-04-18 04:03:18] Production.INFO: count ==576 [2025-04-18 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:03:06 - End Time 2025-04-18 04:03:06 [2025-04-18 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933021', 'tblTempUsageDetail_20' ) start [2025-04-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933021', 'tblTempUsageDetail_20' ) end [2025-04-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933021', 'tblTempVendorCDR_20' ) start [2025-04-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933021', 'tblTempVendorCDR_20' ) end [2025-04-18 04:03:18] Production.INFO: ProcessCDR(1,14933021,1,1,2) [2025-04-18 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933021', 'tblTempUsageDetail_20' ) start [2025-04-18 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933021', 'tblTempUsageDetail_20' ) end [2025-04-18 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:03:22] Production.INFO: ==31903== Releasing lock... [2025-04-18 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-18 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:04:05 [end_date_ymd] => 2025-04-18 04:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:04:05' and `end` < '2025-04-18 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-04-18 04:04:18] Production.INFO: count ==571 [2025-04-18 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:04:05 - End Time 2025-04-18 04:04:05 [2025-04-18 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933026', 'tblTempUsageDetail_20' ) start [2025-04-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933026', 'tblTempUsageDetail_20' ) end [2025-04-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933026', 'tblTempVendorCDR_20' ) start [2025-04-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933026', 'tblTempVendorCDR_20' ) end [2025-04-18 04:04:18] Production.INFO: ProcessCDR(1,14933026,1,1,2) [2025-04-18 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933026', 'tblTempUsageDetail_20' ) start [2025-04-18 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933026', 'tblTempUsageDetail_20' ) end [2025-04-18 04:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:04:23] Production.INFO: ==31976== Releasing lock... [2025-04-18 04:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:04:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-18 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:05:05 [end_date_ymd] => 2025-04-18 04:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:05:05' and `end` < '2025-04-18 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-04-18 04:05:18] Production.INFO: count ==560 [2025-04-18 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:05:05 - End Time 2025-04-18 04:05:05 [2025-04-18 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933031', 'tblTempUsageDetail_20' ) start [2025-04-18 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933031', 'tblTempUsageDetail_20' ) end [2025-04-18 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933031', 'tblTempVendorCDR_20' ) start [2025-04-18 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933031', 'tblTempVendorCDR_20' ) end [2025-04-18 04:05:18] Production.INFO: ProcessCDR(1,14933031,1,1,2) [2025-04-18 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933031', 'tblTempUsageDetail_20' ) start [2025-04-18 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933031', 'tblTempUsageDetail_20' ) end [2025-04-18 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:05:21] Production.INFO: ==32054== Releasing lock... [2025-04-18 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:05:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-18 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:06:05 [end_date_ymd] => 2025-04-18 04:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:06:05' and `end` < '2025-04-18 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-04-18 04:06:17] Production.INFO: count ==546 [2025-04-18 04:06:17] Production.ERROR: pbx CDR StartTime 2025-04-18 01:06:05 - End Time 2025-04-18 04:06:05 [2025-04-18 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933036', 'tblTempUsageDetail_20' ) start [2025-04-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933036', 'tblTempUsageDetail_20' ) end [2025-04-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933036', 'tblTempVendorCDR_20' ) start [2025-04-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933036', 'tblTempVendorCDR_20' ) end [2025-04-18 04:06:17] Production.INFO: ProcessCDR(1,14933036,1,1,2) [2025-04-18 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933036', 'tblTempUsageDetail_20' ) start [2025-04-18 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933036', 'tblTempUsageDetail_20' ) end [2025-04-18 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:06:21] Production.INFO: ==32132== Releasing lock... [2025-04-18 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:06:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-18 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:07:05 [end_date_ymd] => 2025-04-18 04:07:05 [RateCDR] => 1 ) [2025-04-18 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:07:05' and `end` < '2025-04-18 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:07:18] Production.INFO: count ==532 [2025-04-18 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:07:05 - End Time 2025-04-18 04:07:05 [2025-04-18 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933041', 'tblTempUsageDetail_20' ) start [2025-04-18 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933041', 'tblTempUsageDetail_20' ) end [2025-04-18 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933041', 'tblTempVendorCDR_20' ) start [2025-04-18 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933041', 'tblTempVendorCDR_20' ) end [2025-04-18 04:07:18] Production.INFO: ProcessCDR(1,14933041,1,1,2) [2025-04-18 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933041', 'tblTempUsageDetail_20' ) start [2025-04-18 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933041', 'tblTempUsageDetail_20' ) end [2025-04-18 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:07:21] Production.INFO: ==32210== Releasing lock... [2025-04-18 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:07:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-18 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:08:05 [end_date_ymd] => 2025-04-18 04:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:08:05' and `end` < '2025-04-18 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-04-18 04:08:17] Production.INFO: count ==515 [2025-04-18 04:08:17] Production.ERROR: pbx CDR StartTime 2025-04-18 01:08:05 - End Time 2025-04-18 04:08:05 [2025-04-18 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933046', 'tblTempUsageDetail_20' ) start [2025-04-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933046', 'tblTempUsageDetail_20' ) end [2025-04-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933046', 'tblTempVendorCDR_20' ) start [2025-04-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933046', 'tblTempVendorCDR_20' ) end [2025-04-18 04:08:17] Production.INFO: ProcessCDR(1,14933046,1,1,2) [2025-04-18 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933046', 'tblTempUsageDetail_20' ) start [2025-04-18 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933046', 'tblTempUsageDetail_20' ) end [2025-04-18 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:08:21] Production.INFO: ==32283== Releasing lock... [2025-04-18 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:08:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-18 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:09:05 [end_date_ymd] => 2025-04-18 04:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:09:05' and `end` < '2025-04-18 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-04-18 04:09:18] Production.INFO: count ==494 [2025-04-18 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:09:05 - End Time 2025-04-18 04:09:05 [2025-04-18 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933051', 'tblTempUsageDetail_20' ) start [2025-04-18 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933051', 'tblTempUsageDetail_20' ) end [2025-04-18 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933051', 'tblTempVendorCDR_20' ) start [2025-04-18 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933051', 'tblTempVendorCDR_20' ) end [2025-04-18 04:09:18] Production.INFO: ProcessCDR(1,14933051,1,1,2) [2025-04-18 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933051', 'tblTempUsageDetail_20' ) start [2025-04-18 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933051', 'tblTempUsageDetail_20' ) end [2025-04-18 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:09:21] Production.INFO: ==32359== Releasing lock... [2025-04-18 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:09:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-18 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:10:05 [end_date_ymd] => 2025-04-18 04:10:05 [RateCDR] => 1 ) [2025-04-18 04: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-04-18 01:10:05' and `end` < '2025-04-18 04: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-04-18 04:10:18] Production.INFO: count ==479 [2025-04-18 04:10:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:10:05 - End Time 2025-04-18 04:10:05 [2025-04-18 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933056', 'tblTempUsageDetail_20' ) start [2025-04-18 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933056', 'tblTempUsageDetail_20' ) end [2025-04-18 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933056', 'tblTempVendorCDR_20' ) start [2025-04-18 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933056', 'tblTempVendorCDR_20' ) end [2025-04-18 04:10:18] Production.INFO: ProcessCDR(1,14933056,1,1,2) [2025-04-18 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933056', 'tblTempUsageDetail_20' ) start [2025-04-18 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933056', 'tblTempUsageDetail_20' ) end [2025-04-18 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:10:21] Production.INFO: ==32437== Releasing lock... [2025-04-18 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:10:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-18 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:11:05 [end_date_ymd] => 2025-04-18 04:11:05 [RateCDR] => 1 ) [2025-04-18 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:11:05' and `end` < '2025-04-18 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:11:18] Production.INFO: count ==427 [2025-04-18 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:11:05 - End Time 2025-04-18 04:11:05 [2025-04-18 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933062', 'tblTempUsageDetail_20' ) start [2025-04-18 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933062', 'tblTempUsageDetail_20' ) end [2025-04-18 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933062', 'tblTempVendorCDR_20' ) start [2025-04-18 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933062', 'tblTempVendorCDR_20' ) end [2025-04-18 04:11:18] Production.INFO: ProcessCDR(1,14933062,1,1,2) [2025-04-18 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933062', 'tblTempUsageDetail_20' ) start [2025-04-18 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933062', 'tblTempUsageDetail_20' ) end [2025-04-18 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:11:21] Production.INFO: ==32513== Releasing lock... [2025-04-18 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:11:21] Production.INFO: 32 MB #Memory Used# [2025-04-18 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:12:06 [end_date_ymd] => 2025-04-18 04:12:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:12:06' and `end` < '2025-04-18 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-04-18 04:12:18] Production.INFO: count ==424 [2025-04-18 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:12:06 - End Time 2025-04-18 04:12:06 [2025-04-18 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933067', 'tblTempUsageDetail_20' ) start [2025-04-18 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933067', 'tblTempUsageDetail_20' ) end [2025-04-18 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933067', 'tblTempVendorCDR_20' ) start [2025-04-18 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933067', 'tblTempVendorCDR_20' ) end [2025-04-18 04:12:18] Production.INFO: ProcessCDR(1,14933067,1,1,2) [2025-04-18 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933067', 'tblTempUsageDetail_20' ) start [2025-04-18 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933067', 'tblTempUsageDetail_20' ) end [2025-04-18 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:12:22] Production.INFO: ==32584== Releasing lock... [2025-04-18 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:12:22] Production.INFO: 32 MB #Memory Used# [2025-04-18 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:13:05 [end_date_ymd] => 2025-04-18 04:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:13:05' and `end` < '2025-04-18 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-04-18 04:13:17] Production.INFO: count ==422 [2025-04-18 04:13:17] Production.ERROR: pbx CDR StartTime 2025-04-18 01:13:05 - End Time 2025-04-18 04:13:05 [2025-04-18 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933072', 'tblTempUsageDetail_20' ) start [2025-04-18 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933072', 'tblTempUsageDetail_20' ) end [2025-04-18 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933072', 'tblTempVendorCDR_20' ) start [2025-04-18 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933072', 'tblTempVendorCDR_20' ) end [2025-04-18 04:13:17] Production.INFO: ProcessCDR(1,14933072,1,1,2) [2025-04-18 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933072', 'tblTempUsageDetail_20' ) start [2025-04-18 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933072', 'tblTempUsageDetail_20' ) end [2025-04-18 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:13:21] Production.INFO: ==32659== Releasing lock... [2025-04-18 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:14:06 [end_date_ymd] => 2025-04-18 04:14:06 [RateCDR] => 1 ) [2025-04-18 04:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:14:06' and `end` < '2025-04-18 04:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:14:18] Production.INFO: count ==419 [2025-04-18 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:14:06 - End Time 2025-04-18 04:14:06 [2025-04-18 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933077', 'tblTempUsageDetail_20' ) start [2025-04-18 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933077', 'tblTempUsageDetail_20' ) end [2025-04-18 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933077', 'tblTempVendorCDR_20' ) start [2025-04-18 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933077', 'tblTempVendorCDR_20' ) end [2025-04-18 04:14:18] Production.INFO: ProcessCDR(1,14933077,1,1,2) [2025-04-18 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933077', 'tblTempUsageDetail_20' ) start [2025-04-18 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933077', 'tblTempUsageDetail_20' ) end [2025-04-18 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:14:22] Production.INFO: ==32733== Releasing lock... [2025-04-18 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:14:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:15:05 [end_date_ymd] => 2025-04-18 04:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:15:05' and `end` < '2025-04-18 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-04-18 04:15:18] Production.INFO: count ==416 [2025-04-18 04:15:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:15:05 - End Time 2025-04-18 04:15:05 [2025-04-18 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933082', 'tblTempUsageDetail_20' ) start [2025-04-18 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933082', 'tblTempUsageDetail_20' ) end [2025-04-18 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933082', 'tblTempVendorCDR_20' ) start [2025-04-18 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933082', 'tblTempVendorCDR_20' ) end [2025-04-18 04:15:18] Production.INFO: ProcessCDR(1,14933082,1,1,2) [2025-04-18 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933082', 'tblTempUsageDetail_20' ) start [2025-04-18 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933082', 'tblTempUsageDetail_20' ) end [2025-04-18 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:15:21] Production.INFO: ==356== Releasing lock... [2025-04-18 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:15:21] Production.INFO: 32 MB #Memory Used# [2025-04-18 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:16:06 [end_date_ymd] => 2025-04-18 04:16:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:16:06' and `end` < '2025-04-18 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-04-18 04:16:18] Production.INFO: count ==414 [2025-04-18 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:16:06 - End Time 2025-04-18 04:16:06 [2025-04-18 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933087', 'tblTempUsageDetail_20' ) start [2025-04-18 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933087', 'tblTempUsageDetail_20' ) end [2025-04-18 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933087', 'tblTempVendorCDR_20' ) start [2025-04-18 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933087', 'tblTempVendorCDR_20' ) end [2025-04-18 04:16:18] Production.INFO: ProcessCDR(1,14933087,1,1,2) [2025-04-18 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933087', 'tblTempUsageDetail_20' ) start [2025-04-18 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933087', 'tblTempUsageDetail_20' ) end [2025-04-18 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:16:22] Production.INFO: ==430== Releasing lock... [2025-04-18 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:16:22] Production.INFO: 32 MB #Memory Used# [2025-04-18 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:17:05 [end_date_ymd] => 2025-04-18 04:17:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:17:05' and `end` < '2025-04-18 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-04-18 04:17:18] Production.INFO: count ==413 [2025-04-18 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:17:05 - End Time 2025-04-18 04:17:05 [2025-04-18 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933092', 'tblTempUsageDetail_20' ) start [2025-04-18 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933092', 'tblTempUsageDetail_20' ) end [2025-04-18 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933092', 'tblTempVendorCDR_20' ) start [2025-04-18 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933092', 'tblTempVendorCDR_20' ) end [2025-04-18 04:17:18] Production.INFO: ProcessCDR(1,14933092,1,1,2) [2025-04-18 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933092', 'tblTempUsageDetail_20' ) start [2025-04-18 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933092', 'tblTempUsageDetail_20' ) end [2025-04-18 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:17:22] Production.INFO: ==505== Releasing lock... [2025-04-18 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:17:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:18:05 [end_date_ymd] => 2025-04-18 04:18:05 [RateCDR] => 1 ) [2025-04-18 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:18:05' and `end` < '2025-04-18 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:18:18] Production.INFO: count ==413 [2025-04-18 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:18:05 - End Time 2025-04-18 04:18:05 [2025-04-18 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933097', 'tblTempUsageDetail_20' ) start [2025-04-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933097', 'tblTempUsageDetail_20' ) end [2025-04-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933097', 'tblTempVendorCDR_20' ) start [2025-04-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933097', 'tblTempVendorCDR_20' ) end [2025-04-18 04:18:18] Production.INFO: ProcessCDR(1,14933097,1,1,2) [2025-04-18 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933097', 'tblTempUsageDetail_20' ) start [2025-04-18 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933097', 'tblTempUsageDetail_20' ) end [2025-04-18 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:18:21] Production.INFO: ==577== Releasing lock... [2025-04-18 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:18:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:19:05 [end_date_ymd] => 2025-04-18 04:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:19:05' and `end` < '2025-04-18 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-04-18 04:19:18] Production.INFO: count ==412 [2025-04-18 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:19:05 - End Time 2025-04-18 04:19:05 [2025-04-18 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933102', 'tblTempUsageDetail_20' ) start [2025-04-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933102', 'tblTempUsageDetail_20' ) end [2025-04-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933102', 'tblTempVendorCDR_20' ) start [2025-04-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933102', 'tblTempVendorCDR_20' ) end [2025-04-18 04:19:18] Production.INFO: ProcessCDR(1,14933102,1,1,2) [2025-04-18 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933102', 'tblTempUsageDetail_20' ) start [2025-04-18 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933102', 'tblTempUsageDetail_20' ) end [2025-04-18 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:19:21] Production.INFO: ==733== Releasing lock... [2025-04-18 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:19:21] Production.INFO: 32 MB #Memory Used# [2025-04-18 04:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:20:07 [end_date_ymd] => 2025-04-18 04:20:07 [RateCDR] => 1 ) [2025-04-18 04: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-04-18 01:20:07' and `end` < '2025-04-18 04: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-04-18 04:20:19] Production.INFO: count ==403 [2025-04-18 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 01:20:07 - End Time 2025-04-18 04:20:07 [2025-04-18 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933107', 'tblTempUsageDetail_20' ) start [2025-04-18 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933107', 'tblTempUsageDetail_20' ) end [2025-04-18 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933107', 'tblTempVendorCDR_20' ) start [2025-04-18 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933107', 'tblTempVendorCDR_20' ) end [2025-04-18 04:20:19] Production.INFO: ProcessCDR(1,14933107,1,1,2) [2025-04-18 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933107', 'tblTempUsageDetail_20' ) start [2025-04-18 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933107', 'tblTempUsageDetail_20' ) end [2025-04-18 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:20:23] Production.INFO: ==813== Releasing lock... [2025-04-18 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:20:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-18 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:21:05 [end_date_ymd] => 2025-04-18 04:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:21:05' and `end` < '2025-04-18 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-04-18 04:21:18] Production.INFO: count ==401 [2025-04-18 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:21:05 - End Time 2025-04-18 04:21:05 [2025-04-18 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933113', 'tblTempUsageDetail_20' ) start [2025-04-18 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933113', 'tblTempUsageDetail_20' ) end [2025-04-18 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933113', 'tblTempVendorCDR_20' ) start [2025-04-18 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933113', 'tblTempVendorCDR_20' ) end [2025-04-18 04:21:18] Production.INFO: ProcessCDR(1,14933113,1,1,2) [2025-04-18 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933113', 'tblTempUsageDetail_20' ) start [2025-04-18 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933113', 'tblTempUsageDetail_20' ) end [2025-04-18 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:21:21] Production.INFO: ==888== Releasing lock... [2025-04-18 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:22:05 [end_date_ymd] => 2025-04-18 04:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:22:05' and `end` < '2025-04-18 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-04-18 04:22:18] Production.INFO: count ==396 [2025-04-18 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:22:05 - End Time 2025-04-18 04:22:05 [2025-04-18 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933118', 'tblTempUsageDetail_20' ) start [2025-04-18 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933118', 'tblTempUsageDetail_20' ) end [2025-04-18 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933118', 'tblTempVendorCDR_20' ) start [2025-04-18 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933118', 'tblTempVendorCDR_20' ) end [2025-04-18 04:22:18] Production.INFO: ProcessCDR(1,14933118,1,1,2) [2025-04-18 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933118', 'tblTempUsageDetail_20' ) start [2025-04-18 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933118', 'tblTempUsageDetail_20' ) end [2025-04-18 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:22:21] Production.INFO: ==961== Releasing lock... [2025-04-18 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:22:21] Production.INFO: 32 MB #Memory Used# [2025-04-18 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:23:05 [end_date_ymd] => 2025-04-18 04:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:23:05' and `end` < '2025-04-18 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-04-18 04:23:17] Production.INFO: count ==395 [2025-04-18 04:23:17] Production.ERROR: pbx CDR StartTime 2025-04-18 01:23:05 - End Time 2025-04-18 04:23:05 [2025-04-18 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933123', 'tblTempUsageDetail_20' ) start [2025-04-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933123', 'tblTempUsageDetail_20' ) end [2025-04-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933123', 'tblTempVendorCDR_20' ) start [2025-04-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933123', 'tblTempVendorCDR_20' ) end [2025-04-18 04:23:17] Production.INFO: ProcessCDR(1,14933123,1,1,2) [2025-04-18 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933123', 'tblTempUsageDetail_20' ) start [2025-04-18 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933123', 'tblTempUsageDetail_20' ) end [2025-04-18 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:23:21] Production.INFO: ==1033== Releasing lock... [2025-04-18 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:23:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:24:05 [end_date_ymd] => 2025-04-18 04:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:24:05' and `end` < '2025-04-18 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-04-18 04:24:17] Production.INFO: count ==394 [2025-04-18 04:24:17] Production.ERROR: pbx CDR StartTime 2025-04-18 01:24:05 - End Time 2025-04-18 04:24:05 [2025-04-18 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933128', 'tblTempUsageDetail_20' ) start [2025-04-18 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933128', 'tblTempUsageDetail_20' ) end [2025-04-18 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933128', 'tblTempVendorCDR_20' ) start [2025-04-18 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933128', 'tblTempVendorCDR_20' ) end [2025-04-18 04:24:18] Production.INFO: ProcessCDR(1,14933128,1,1,2) [2025-04-18 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933128', 'tblTempUsageDetail_20' ) start [2025-04-18 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933128', 'tblTempUsageDetail_20' ) end [2025-04-18 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:24:21] Production.INFO: ==1107== Releasing lock... [2025-04-18 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:25:04 [end_date_ymd] => 2025-04-18 04:25:04 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:25:04' and `end` < '2025-04-18 04:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:25:17] Production.INFO: count ==394 [2025-04-18 04:25:17] Production.ERROR: pbx CDR StartTime 2025-04-18 01:25:04 - End Time 2025-04-18 04:25:04 [2025-04-18 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933133', 'tblTempUsageDetail_20' ) start [2025-04-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933133', 'tblTempUsageDetail_20' ) end [2025-04-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933133', 'tblTempVendorCDR_20' ) start [2025-04-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933133', 'tblTempVendorCDR_20' ) end [2025-04-18 04:25:17] Production.INFO: ProcessCDR(1,14933133,1,1,2) [2025-04-18 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933133', 'tblTempUsageDetail_20' ) start [2025-04-18 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933133', 'tblTempUsageDetail_20' ) end [2025-04-18 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:25:21] Production.INFO: ==1186== Releasing lock... [2025-04-18 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:26:05 [end_date_ymd] => 2025-04-18 04:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:26:05' and `end` < '2025-04-18 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-04-18 04:26:18] Production.INFO: count ==395 [2025-04-18 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:26:05 - End Time 2025-04-18 04:26:05 [2025-04-18 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933138', 'tblTempUsageDetail_20' ) start [2025-04-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933138', 'tblTempUsageDetail_20' ) end [2025-04-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933138', 'tblTempVendorCDR_20' ) start [2025-04-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933138', 'tblTempVendorCDR_20' ) end [2025-04-18 04:26:18] Production.INFO: ProcessCDR(1,14933138,1,1,2) [2025-04-18 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933138', 'tblTempUsageDetail_20' ) start [2025-04-18 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933138', 'tblTempUsageDetail_20' ) end [2025-04-18 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:26:21] Production.INFO: ==1271== Releasing lock... [2025-04-18 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:27:05 [end_date_ymd] => 2025-04-18 04:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:27:05' and `end` < '2025-04-18 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-04-18 04:27:18] Production.INFO: count ==391 [2025-04-18 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:27:05 - End Time 2025-04-18 04:27:05 [2025-04-18 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933143', 'tblTempUsageDetail_20' ) start [2025-04-18 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933143', 'tblTempUsageDetail_20' ) end [2025-04-18 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933143', 'tblTempVendorCDR_20' ) start [2025-04-18 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933143', 'tblTempVendorCDR_20' ) end [2025-04-18 04:27:18] Production.INFO: ProcessCDR(1,14933143,1,1,2) [2025-04-18 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933143', 'tblTempUsageDetail_20' ) start [2025-04-18 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933143', 'tblTempUsageDetail_20' ) end [2025-04-18 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:27:21] Production.INFO: ==1346== Releasing lock... [2025-04-18 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:28:05 [end_date_ymd] => 2025-04-18 04:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:28:05' and `end` < '2025-04-18 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-04-18 04:28:17] Production.INFO: count ==385 [2025-04-18 04:28:17] Production.ERROR: pbx CDR StartTime 2025-04-18 01:28:05 - End Time 2025-04-18 04:28:05 [2025-04-18 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933148', 'tblTempUsageDetail_20' ) start [2025-04-18 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933148', 'tblTempUsageDetail_20' ) end [2025-04-18 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933148', 'tblTempVendorCDR_20' ) start [2025-04-18 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933148', 'tblTempVendorCDR_20' ) end [2025-04-18 04:28:18] Production.INFO: ProcessCDR(1,14933148,1,1,2) [2025-04-18 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933148', 'tblTempUsageDetail_20' ) start [2025-04-18 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933148', 'tblTempUsageDetail_20' ) end [2025-04-18 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:28:21] Production.INFO: ==1415== Releasing lock... [2025-04-18 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:29:05 [end_date_ymd] => 2025-04-18 04:29:05 [RateCDR] => 1 ) [2025-04-18 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:29:05' and `end` < '2025-04-18 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:29:18] Production.INFO: count ==383 [2025-04-18 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:29:05 - End Time 2025-04-18 04:29:05 [2025-04-18 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933153', 'tblTempUsageDetail_20' ) start [2025-04-18 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933153', 'tblTempUsageDetail_20' ) end [2025-04-18 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933153', 'tblTempVendorCDR_20' ) start [2025-04-18 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933153', 'tblTempVendorCDR_20' ) end [2025-04-18 04:29:18] Production.INFO: ProcessCDR(1,14933153,1,1,2) [2025-04-18 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933153', 'tblTempUsageDetail_20' ) start [2025-04-18 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933153', 'tblTempUsageDetail_20' ) end [2025-04-18 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:29:21] Production.INFO: ==1492== Releasing lock... [2025-04-18 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:30:06 [end_date_ymd] => 2025-04-18 04:30:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:30:06' and `end` < '2025-04-18 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-04-18 04:30:19] Production.INFO: count ==372 [2025-04-18 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-18 01:30:06 - End Time 2025-04-18 04:30:06 [2025-04-18 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933160', 'tblTempUsageDetail_20' ) start [2025-04-18 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933160', 'tblTempUsageDetail_20' ) end [2025-04-18 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933160', 'tblTempVendorCDR_20' ) start [2025-04-18 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933160', 'tblTempVendorCDR_20' ) end [2025-04-18 04:30:19] Production.INFO: ProcessCDR(1,14933160,1,1,2) [2025-04-18 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933160', 'tblTempUsageDetail_20' ) start [2025-04-18 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933160', 'tblTempUsageDetail_20' ) end [2025-04-18 04:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:30:24] Production.INFO: ==1603== Releasing lock... [2025-04-18 04:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:30:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:31:05 [end_date_ymd] => 2025-04-18 04:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:31:05' and `end` < '2025-04-18 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-04-18 04:31:18] Production.INFO: count ==354 [2025-04-18 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:31:05 - End Time 2025-04-18 04:31:05 [2025-04-18 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933165', 'tblTempUsageDetail_20' ) start [2025-04-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933165', 'tblTempUsageDetail_20' ) end [2025-04-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933165', 'tblTempVendorCDR_20' ) start [2025-04-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933165', 'tblTempVendorCDR_20' ) end [2025-04-18 04:31:18] Production.INFO: ProcessCDR(1,14933165,1,1,2) [2025-04-18 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933165', 'tblTempUsageDetail_20' ) start [2025-04-18 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933165', 'tblTempUsageDetail_20' ) end [2025-04-18 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:31:23] Production.INFO: ==1760== Releasing lock... [2025-04-18 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:31:23] Production.INFO: 31 MB #Memory Used# [2025-04-18 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:32:05 [end_date_ymd] => 2025-04-18 04:32:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:32:05' and `end` < '2025-04-18 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-04-18 04:32:18] Production.INFO: count ==351 [2025-04-18 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:32:05 - End Time 2025-04-18 04:32:05 [2025-04-18 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933170', 'tblTempUsageDetail_20' ) start [2025-04-18 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933170', 'tblTempUsageDetail_20' ) end [2025-04-18 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933170', 'tblTempVendorCDR_20' ) start [2025-04-18 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933170', 'tblTempVendorCDR_20' ) end [2025-04-18 04:32:18] Production.INFO: ProcessCDR(1,14933170,1,1,2) [2025-04-18 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933170', 'tblTempUsageDetail_20' ) start [2025-04-18 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933170', 'tblTempUsageDetail_20' ) end [2025-04-18 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:32:21] Production.INFO: ==1845== Releasing lock... [2025-04-18 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:33:05 [end_date_ymd] => 2025-04-18 04:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:33:05' and `end` < '2025-04-18 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-04-18 04:33:18] Production.INFO: count ==341 [2025-04-18 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:33:05 - End Time 2025-04-18 04:33:05 [2025-04-18 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933175', 'tblTempUsageDetail_20' ) start [2025-04-18 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933175', 'tblTempUsageDetail_20' ) end [2025-04-18 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933175', 'tblTempVendorCDR_20' ) start [2025-04-18 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933175', 'tblTempVendorCDR_20' ) end [2025-04-18 04:33:18] Production.INFO: ProcessCDR(1,14933175,1,1,2) [2025-04-18 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933175', 'tblTempUsageDetail_20' ) start [2025-04-18 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933175', 'tblTempUsageDetail_20' ) end [2025-04-18 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:33:22] Production.INFO: ==1917== Releasing lock... [2025-04-18 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:33:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-18 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:34:05 [end_date_ymd] => 2025-04-18 04:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:34:05' and `end` < '2025-04-18 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-04-18 04:34:18] Production.INFO: count ==330 [2025-04-18 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:34:05 - End Time 2025-04-18 04:34:05 [2025-04-18 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933180', 'tblTempUsageDetail_20' ) start [2025-04-18 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933180', 'tblTempUsageDetail_20' ) end [2025-04-18 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933180', 'tblTempVendorCDR_20' ) start [2025-04-18 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933180', 'tblTempVendorCDR_20' ) end [2025-04-18 04:34:18] Production.INFO: ProcessCDR(1,14933180,1,1,2) [2025-04-18 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933180', 'tblTempUsageDetail_20' ) start [2025-04-18 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933180', 'tblTempUsageDetail_20' ) end [2025-04-18 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:34:22] Production.INFO: ==2031== Releasing lock... [2025-04-18 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:34:22] Production.INFO: 31 MB #Memory Used# [2025-04-18 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:35:05 [end_date_ymd] => 2025-04-18 04:35:05 [RateCDR] => 1 ) [2025-04-18 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:35:05' and `end` < '2025-04-18 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:35:18] Production.INFO: count ==319 [2025-04-18 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:35:05 - End Time 2025-04-18 04:35:05 [2025-04-18 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933185', 'tblTempUsageDetail_20' ) start [2025-04-18 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933185', 'tblTempUsageDetail_20' ) end [2025-04-18 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933185', 'tblTempVendorCDR_20' ) start [2025-04-18 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933185', 'tblTempVendorCDR_20' ) end [2025-04-18 04:35:18] Production.INFO: ProcessCDR(1,14933185,1,1,2) [2025-04-18 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933185', 'tblTempUsageDetail_20' ) start [2025-04-18 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933185', 'tblTempUsageDetail_20' ) end [2025-04-18 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:35:21] Production.INFO: ==2105== Releasing lock... [2025-04-18 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-18 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:36:06 [end_date_ymd] => 2025-04-18 04:36:06 [RateCDR] => 1 ) [2025-04-18 04: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-04-18 01:36:06' and `end` < '2025-04-18 04: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-04-18 04:36:18] Production.INFO: count ==318 [2025-04-18 04:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:36:06 - End Time 2025-04-18 04:36:06 [2025-04-18 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933190', 'tblTempUsageDetail_20' ) start [2025-04-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933190', 'tblTempUsageDetail_20' ) end [2025-04-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933190', 'tblTempVendorCDR_20' ) start [2025-04-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933190', 'tblTempVendorCDR_20' ) end [2025-04-18 04:36:18] Production.INFO: ProcessCDR(1,14933190,1,1,2) [2025-04-18 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933190', 'tblTempUsageDetail_20' ) start [2025-04-18 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933190', 'tblTempUsageDetail_20' ) end [2025-04-18 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:36:22] Production.INFO: ==2185== Releasing lock... [2025-04-18 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:36:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-18 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:37:05 [end_date_ymd] => 2025-04-18 04:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:37:05' and `end` < '2025-04-18 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-04-18 04:37:18] Production.INFO: count ==316 [2025-04-18 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:37:05 - End Time 2025-04-18 04:37:05 [2025-04-18 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933195', 'tblTempUsageDetail_20' ) start [2025-04-18 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933195', 'tblTempUsageDetail_20' ) end [2025-04-18 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933195', 'tblTempVendorCDR_20' ) start [2025-04-18 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933195', 'tblTempVendorCDR_20' ) end [2025-04-18 04:37:18] Production.INFO: ProcessCDR(1,14933195,1,1,2) [2025-04-18 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933195', 'tblTempUsageDetail_20' ) start [2025-04-18 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933195', 'tblTempUsageDetail_20' ) end [2025-04-18 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:37:21] Production.INFO: ==2258== Releasing lock... [2025-04-18 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:37:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-18 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:38:05 [end_date_ymd] => 2025-04-18 04:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:38:05' and `end` < '2025-04-18 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-04-18 04:38:18] Production.INFO: count ==315 [2025-04-18 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:38:05 - End Time 2025-04-18 04:38:05 [2025-04-18 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933200', 'tblTempUsageDetail_20' ) start [2025-04-18 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933200', 'tblTempUsageDetail_20' ) end [2025-04-18 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933200', 'tblTempVendorCDR_20' ) start [2025-04-18 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933200', 'tblTempVendorCDR_20' ) end [2025-04-18 04:38:18] Production.INFO: ProcessCDR(1,14933200,1,1,2) [2025-04-18 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933200', 'tblTempUsageDetail_20' ) start [2025-04-18 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933200', 'tblTempUsageDetail_20' ) end [2025-04-18 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:38:21] Production.INFO: ==2332== Releasing lock... [2025-04-18 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-18 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:39:04 [end_date_ymd] => 2025-04-18 04:39:04 [RateCDR] => 1 ) [2025-04-18 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:39:04' and `end` < '2025-04-18 04:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:39:17] Production.INFO: count ==314 [2025-04-18 04:39:17] Production.ERROR: pbx CDR StartTime 2025-04-18 01:39:04 - End Time 2025-04-18 04:39:04 [2025-04-18 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933205', 'tblTempUsageDetail_20' ) start [2025-04-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933205', 'tblTempUsageDetail_20' ) end [2025-04-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933205', 'tblTempVendorCDR_20' ) start [2025-04-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933205', 'tblTempVendorCDR_20' ) end [2025-04-18 04:39:17] Production.INFO: ProcessCDR(1,14933205,1,1,2) [2025-04-18 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933205', 'tblTempUsageDetail_20' ) start [2025-04-18 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933205', 'tblTempUsageDetail_20' ) end [2025-04-18 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:39:20] Production.INFO: ==2411== Releasing lock... [2025-04-18 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:39:20] Production.INFO: 30.5 MB #Memory Used# [2025-04-18 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:40:06 [end_date_ymd] => 2025-04-18 04:40:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:40:06' and `end` < '2025-04-18 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-04-18 04:40:18] Production.INFO: count ==303 [2025-04-18 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-18 01:40:06 - End Time 2025-04-18 04:40:06 [2025-04-18 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933211', 'tblTempUsageDetail_20' ) start [2025-04-18 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933211', 'tblTempUsageDetail_20' ) end [2025-04-18 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933211', 'tblTempVendorCDR_20' ) start [2025-04-18 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933211', 'tblTempVendorCDR_20' ) end [2025-04-18 04:40:19] Production.INFO: ProcessCDR(1,14933211,1,1,2) [2025-04-18 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933211', 'tblTempUsageDetail_20' ) start [2025-04-18 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933211', 'tblTempUsageDetail_20' ) end [2025-04-18 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:40:22] Production.INFO: ==2485== Releasing lock... [2025-04-18 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-18 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:41:05 [end_date_ymd] => 2025-04-18 04:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:41:05' and `end` < '2025-04-18 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-04-18 04:41:17] Production.INFO: count ==292 [2025-04-18 04:41:17] Production.ERROR: pbx CDR StartTime 2025-04-18 01:41:05 - End Time 2025-04-18 04:41:05 [2025-04-18 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933216', 'tblTempUsageDetail_20' ) start [2025-04-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933216', 'tblTempUsageDetail_20' ) end [2025-04-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933216', 'tblTempVendorCDR_20' ) start [2025-04-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933216', 'tblTempVendorCDR_20' ) end [2025-04-18 04:41:17] Production.INFO: ProcessCDR(1,14933216,1,1,2) [2025-04-18 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933216', 'tblTempUsageDetail_20' ) start [2025-04-18 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933216', 'tblTempUsageDetail_20' ) end [2025-04-18 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:41:21] Production.INFO: ==2560== Releasing lock... [2025-04-18 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-18 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:42:05 [end_date_ymd] => 2025-04-18 04:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:42:05' and `end` < '2025-04-18 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-04-18 04:42:17] Production.INFO: count ==290 [2025-04-18 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:42:05 - End Time 2025-04-18 04:42:05 [2025-04-18 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933221', 'tblTempUsageDetail_20' ) start [2025-04-18 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933221', 'tblTempUsageDetail_20' ) end [2025-04-18 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933221', 'tblTempVendorCDR_20' ) start [2025-04-18 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933221', 'tblTempVendorCDR_20' ) end [2025-04-18 04:42:18] Production.INFO: ProcessCDR(1,14933221,1,1,2) [2025-04-18 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933221', 'tblTempUsageDetail_20' ) start [2025-04-18 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933221', 'tblTempUsageDetail_20' ) end [2025-04-18 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:42:21] Production.INFO: ==2635== Releasing lock... [2025-04-18 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-18 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:43:05 [end_date_ymd] => 2025-04-18 04:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:43:05' and `end` < '2025-04-18 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-04-18 04:43:18] Production.INFO: count ==289 [2025-04-18 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:43:05 - End Time 2025-04-18 04:43:05 [2025-04-18 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933226', 'tblTempUsageDetail_20' ) start [2025-04-18 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933226', 'tblTempUsageDetail_20' ) end [2025-04-18 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933226', 'tblTempVendorCDR_20' ) start [2025-04-18 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933226', 'tblTempVendorCDR_20' ) end [2025-04-18 04:43:18] Production.INFO: ProcessCDR(1,14933226,1,1,2) [2025-04-18 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933226', 'tblTempUsageDetail_20' ) start [2025-04-18 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933226', 'tblTempUsageDetail_20' ) end [2025-04-18 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:43:21] Production.INFO: ==2705== Releasing lock... [2025-04-18 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-18 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:44:05 [end_date_ymd] => 2025-04-18 04:44:05 [RateCDR] => 1 ) [2025-04-18 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:44:05' and `end` < '2025-04-18 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:44:18] Production.INFO: count ==287 [2025-04-18 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:44:05 - End Time 2025-04-18 04:44:05 [2025-04-18 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933231', 'tblTempUsageDetail_20' ) start [2025-04-18 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933231', 'tblTempUsageDetail_20' ) end [2025-04-18 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933231', 'tblTempVendorCDR_20' ) start [2025-04-18 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933231', 'tblTempVendorCDR_20' ) end [2025-04-18 04:44:18] Production.INFO: ProcessCDR(1,14933231,1,1,2) [2025-04-18 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933231', 'tblTempUsageDetail_20' ) start [2025-04-18 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933231', 'tblTempUsageDetail_20' ) end [2025-04-18 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:44:21] Production.INFO: ==2778== Releasing lock... [2025-04-18 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-18 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:45:05 [end_date_ymd] => 2025-04-18 04:45:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:45:05' and `end` < '2025-04-18 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-04-18 04:45:18] Production.INFO: count ==285 [2025-04-18 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:45:05 - End Time 2025-04-18 04:45:05 [2025-04-18 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933236', 'tblTempUsageDetail_20' ) start [2025-04-18 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933236', 'tblTempUsageDetail_20' ) end [2025-04-18 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933236', 'tblTempVendorCDR_20' ) start [2025-04-18 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933236', 'tblTempVendorCDR_20' ) end [2025-04-18 04:45:18] Production.INFO: ProcessCDR(1,14933236,1,1,2) [2025-04-18 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933236', 'tblTempUsageDetail_20' ) start [2025-04-18 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933236', 'tblTempUsageDetail_20' ) end [2025-04-18 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:45:21] Production.INFO: ==2857== Releasing lock... [2025-04-18 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-18 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:46:05 [end_date_ymd] => 2025-04-18 04:46:05 [RateCDR] => 1 ) [2025-04-18 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:46:05' and `end` < '2025-04-18 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:46:18] Production.INFO: count ==275 [2025-04-18 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:46:05 - End Time 2025-04-18 04:46:05 [2025-04-18 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933241', 'tblTempUsageDetail_20' ) start [2025-04-18 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933241', 'tblTempUsageDetail_20' ) end [2025-04-18 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933241', 'tblTempVendorCDR_20' ) start [2025-04-18 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933241', 'tblTempVendorCDR_20' ) end [2025-04-18 04:46:18] Production.INFO: ProcessCDR(1,14933241,1,1,2) [2025-04-18 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933241', 'tblTempUsageDetail_20' ) start [2025-04-18 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933241', 'tblTempUsageDetail_20' ) end [2025-04-18 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:46:22] Production.INFO: ==2951== Releasing lock... [2025-04-18 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:47:05 [end_date_ymd] => 2025-04-18 04:47:05 [RateCDR] => 1 ) [2025-04-18 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:47:05' and `end` < '2025-04-18 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:47:19] Production.INFO: count ==267 [2025-04-18 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-18 01:47:05 - End Time 2025-04-18 04:47:05 [2025-04-18 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933246', 'tblTempUsageDetail_20' ) start [2025-04-18 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933246', 'tblTempUsageDetail_20' ) end [2025-04-18 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933246', 'tblTempVendorCDR_20' ) start [2025-04-18 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933246', 'tblTempVendorCDR_20' ) end [2025-04-18 04:47:19] Production.INFO: ProcessCDR(1,14933246,1,1,2) [2025-04-18 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933246', 'tblTempUsageDetail_20' ) start [2025-04-18 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933246', 'tblTempUsageDetail_20' ) end [2025-04-18 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:47:22] Production.INFO: ==3034== Releasing lock... [2025-04-18 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:47:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-18 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:48:05 [end_date_ymd] => 2025-04-18 04:48:05 [RateCDR] => 1 ) [2025-04-18 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:48:05' and `end` < '2025-04-18 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:48:18] Production.INFO: count ==258 [2025-04-18 04:48:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:48:05 - End Time 2025-04-18 04:48:05 [2025-04-18 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933251', 'tblTempUsageDetail_20' ) start [2025-04-18 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933251', 'tblTempUsageDetail_20' ) end [2025-04-18 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933251', 'tblTempVendorCDR_20' ) start [2025-04-18 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933251', 'tblTempVendorCDR_20' ) end [2025-04-18 04:48:18] Production.INFO: ProcessCDR(1,14933251,1,1,2) [2025-04-18 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933251', 'tblTempUsageDetail_20' ) start [2025-04-18 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933251', 'tblTempUsageDetail_20' ) end [2025-04-18 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:48:21] Production.INFO: ==3110== Releasing lock... [2025-04-18 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:48:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:49:05 [end_date_ymd] => 2025-04-18 04:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:49:05' and `end` < '2025-04-18 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-04-18 04:49:18] Production.INFO: count ==256 [2025-04-18 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:49:05 - End Time 2025-04-18 04:49:05 [2025-04-18 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933256', 'tblTempUsageDetail_20' ) start [2025-04-18 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933256', 'tblTempUsageDetail_20' ) end [2025-04-18 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933256', 'tblTempVendorCDR_20' ) start [2025-04-18 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933256', 'tblTempVendorCDR_20' ) end [2025-04-18 04:49:18] Production.INFO: ProcessCDR(1,14933256,1,1,2) [2025-04-18 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933256', 'tblTempUsageDetail_20' ) start [2025-04-18 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933256', 'tblTempUsageDetail_20' ) end [2025-04-18 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:49:22] Production.INFO: ==3219== Releasing lock... [2025-04-18 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:49:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-18 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:50:06 [end_date_ymd] => 2025-04-18 04:50:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:50:06' and `end` < '2025-04-18 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-04-18 04:50:21] Production.INFO: count ==248 [2025-04-18 04:50:21] Production.ERROR: pbx CDR StartTime 2025-04-18 01:50:06 - End Time 2025-04-18 04:50:06 [2025-04-18 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933262', 'tblTempUsageDetail_20' ) start [2025-04-18 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933262', 'tblTempUsageDetail_20' ) end [2025-04-18 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933262', 'tblTempVendorCDR_20' ) start [2025-04-18 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933262', 'tblTempVendorCDR_20' ) end [2025-04-18 04:50:21] Production.INFO: ProcessCDR(1,14933262,1,1,2) [2025-04-18 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933262', 'tblTempUsageDetail_20' ) start [2025-04-18 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933262', 'tblTempUsageDetail_20' ) end [2025-04-18 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:50:24] Production.INFO: ==3296== Releasing lock... [2025-04-18 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:50:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:51:05 [end_date_ymd] => 2025-04-18 04:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:51:05' and `end` < '2025-04-18 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-04-18 04:51:18] Production.INFO: count ==240 [2025-04-18 04:51:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:51:05 - End Time 2025-04-18 04:51:05 [2025-04-18 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933267', 'tblTempUsageDetail_20' ) start [2025-04-18 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933267', 'tblTempUsageDetail_20' ) end [2025-04-18 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933267', 'tblTempVendorCDR_20' ) start [2025-04-18 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933267', 'tblTempVendorCDR_20' ) end [2025-04-18 04:51:18] Production.INFO: ProcessCDR(1,14933267,1,1,2) [2025-04-18 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933267', 'tblTempUsageDetail_20' ) start [2025-04-18 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933267', 'tblTempUsageDetail_20' ) end [2025-04-18 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:51:21] Production.INFO: ==3378== Releasing lock... [2025-04-18 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:51:21] Production.INFO: 30 MB #Memory Used# [2025-04-18 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:52:05 [end_date_ymd] => 2025-04-18 04:52:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:52:05' and `end` < '2025-04-18 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-04-18 04:52:18] Production.INFO: count ==236 [2025-04-18 04:52:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:52:05 - End Time 2025-04-18 04:52:05 [2025-04-18 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933272', 'tblTempUsageDetail_20' ) start [2025-04-18 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933272', 'tblTempUsageDetail_20' ) end [2025-04-18 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933272', 'tblTempVendorCDR_20' ) start [2025-04-18 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933272', 'tblTempVendorCDR_20' ) end [2025-04-18 04:52:18] Production.INFO: ProcessCDR(1,14933272,1,1,2) [2025-04-18 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933272', 'tblTempUsageDetail_20' ) start [2025-04-18 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933272', 'tblTempUsageDetail_20' ) end [2025-04-18 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:52:21] Production.INFO: ==3455== Releasing lock... [2025-04-18 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:52:21] Production.INFO: 30 MB #Memory Used# [2025-04-18 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:53:05 [end_date_ymd] => 2025-04-18 04:53:05 [RateCDR] => 1 ) [2025-04-18 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:53:05' and `end` < '2025-04-18 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:53:18] Production.INFO: count ==233 [2025-04-18 04:53:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:53:05 - End Time 2025-04-18 04:53:05 [2025-04-18 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933277', 'tblTempUsageDetail_20' ) start [2025-04-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933277', 'tblTempUsageDetail_20' ) end [2025-04-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933277', 'tblTempVendorCDR_20' ) start [2025-04-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933277', 'tblTempVendorCDR_20' ) end [2025-04-18 04:53:18] Production.INFO: ProcessCDR(1,14933277,1,1,2) [2025-04-18 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933277', 'tblTempUsageDetail_20' ) start [2025-04-18 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933277', 'tblTempUsageDetail_20' ) end [2025-04-18 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:53:22] Production.INFO: ==3525== Releasing lock... [2025-04-18 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:54:06 [end_date_ymd] => 2025-04-18 04:54:06 [RateCDR] => 1 ) [2025-04-18 04: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-04-18 01:54:06' and `end` < '2025-04-18 04: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-04-18 04:54:19] Production.INFO: count ==231 [2025-04-18 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-18 01:54:06 - End Time 2025-04-18 04:54:06 [2025-04-18 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933282', 'tblTempUsageDetail_20' ) start [2025-04-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933282', 'tblTempUsageDetail_20' ) end [2025-04-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933282', 'tblTempVendorCDR_20' ) start [2025-04-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933282', 'tblTempVendorCDR_20' ) end [2025-04-18 04:54:19] Production.INFO: ProcessCDR(1,14933282,1,1,2) [2025-04-18 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933282', 'tblTempUsageDetail_20' ) start [2025-04-18 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933282', 'tblTempUsageDetail_20' ) end [2025-04-18 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:54:22] Production.INFO: ==3599== Releasing lock... [2025-04-18 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:54:22] Production.INFO: 30 MB #Memory Used# [2025-04-18 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:55:05 [end_date_ymd] => 2025-04-18 04:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:55:05' and `end` < '2025-04-18 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-04-18 04:55:18] Production.INFO: count ==231 [2025-04-18 04:55:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:55:05 - End Time 2025-04-18 04:55:05 [2025-04-18 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933287', 'tblTempUsageDetail_20' ) start [2025-04-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933287', 'tblTempUsageDetail_20' ) end [2025-04-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933287', 'tblTempVendorCDR_20' ) start [2025-04-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933287', 'tblTempVendorCDR_20' ) end [2025-04-18 04:55:18] Production.INFO: ProcessCDR(1,14933287,1,1,2) [2025-04-18 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933287', 'tblTempUsageDetail_20' ) start [2025-04-18 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933287', 'tblTempUsageDetail_20' ) end [2025-04-18 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:55:21] Production.INFO: ==3670== Releasing lock... [2025-04-18 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:55:21] Production.INFO: 30 MB #Memory Used# [2025-04-18 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:56:05 [end_date_ymd] => 2025-04-18 04:56:05 [RateCDR] => 1 ) [2025-04-18 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:56:05' and `end` < '2025-04-18 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:56:19] Production.INFO: count ==228 [2025-04-18 04:56:19] Production.ERROR: pbx CDR StartTime 2025-04-18 01:56:05 - End Time 2025-04-18 04:56:05 [2025-04-18 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933292', 'tblTempUsageDetail_20' ) start [2025-04-18 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933292', 'tblTempUsageDetail_20' ) end [2025-04-18 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933292', 'tblTempVendorCDR_20' ) start [2025-04-18 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933292', 'tblTempVendorCDR_20' ) end [2025-04-18 04:56:19] Production.INFO: ProcessCDR(1,14933292,1,1,2) [2025-04-18 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933292', 'tblTempUsageDetail_20' ) start [2025-04-18 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933292', 'tblTempUsageDetail_20' ) end [2025-04-18 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:56:22] Production.INFO: ==3744== Releasing lock... [2025-04-18 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:56:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:57:05 [end_date_ymd] => 2025-04-18 04:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:57:05' and `end` < '2025-04-18 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-04-18 04:57:18] Production.INFO: count ==229 [2025-04-18 04:57:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:57:05 - End Time 2025-04-18 04:57:05 [2025-04-18 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933297', 'tblTempUsageDetail_20' ) start [2025-04-18 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933297', 'tblTempUsageDetail_20' ) end [2025-04-18 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933297', 'tblTempVendorCDR_20' ) start [2025-04-18 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933297', 'tblTempVendorCDR_20' ) end [2025-04-18 04:57:18] Production.INFO: ProcessCDR(1,14933297,1,1,2) [2025-04-18 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933297', 'tblTempUsageDetail_20' ) start [2025-04-18 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933297', 'tblTempUsageDetail_20' ) end [2025-04-18 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:57:21] Production.INFO: ==3821== Releasing lock... [2025-04-18 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:58:05 [end_date_ymd] => 2025-04-18 04:58:05 [RateCDR] => 1 ) [2025-04-18 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 01:58:05' and `end` < '2025-04-18 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 04:58:18] Production.INFO: count ==227 [2025-04-18 04:58:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:58:05 - End Time 2025-04-18 04:58:05 [2025-04-18 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933302', 'tblTempUsageDetail_20' ) start [2025-04-18 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933302', 'tblTempUsageDetail_20' ) end [2025-04-18 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933302', 'tblTempVendorCDR_20' ) start [2025-04-18 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933302', 'tblTempVendorCDR_20' ) end [2025-04-18 04:58:18] Production.INFO: ProcessCDR(1,14933302,1,1,2) [2025-04-18 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933302', 'tblTempUsageDetail_20' ) start [2025-04-18 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933302', 'tblTempUsageDetail_20' ) end [2025-04-18 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:58:21] Production.INFO: ==3897== Releasing lock... [2025-04-18 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:58:21] Production.INFO: 30 MB #Memory Used# [2025-04-18 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 01:59:05 [end_date_ymd] => 2025-04-18 04:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 01:59:05' and `end` < '2025-04-18 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-04-18 04:59:18] Production.INFO: count ==226 [2025-04-18 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-18 01:59:05 - End Time 2025-04-18 04:59:05 [2025-04-18 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933307', 'tblTempUsageDetail_20' ) start [2025-04-18 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933307', 'tblTempUsageDetail_20' ) end [2025-04-18 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933307', 'tblTempVendorCDR_20' ) start [2025-04-18 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933307', 'tblTempVendorCDR_20' ) end [2025-04-18 04:59:18] Production.INFO: ProcessCDR(1,14933307,1,1,2) [2025-04-18 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933307', 'tblTempUsageDetail_20' ) start [2025-04-18 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933307', 'tblTempUsageDetail_20' ) end [2025-04-18 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 04:59:21] Production.INFO: ==3973== Releasing lock... [2025-04-18 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 04:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:00:05 [end_date_ymd] => 2025-04-18 05:00:05 [RateCDR] => 1 ) [2025-04-18 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:00:05' and `end` < '2025-04-18 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:00:19] Production.INFO: count ==222 [2025-04-18 05:00:19] Production.ERROR: pbx CDR StartTime 2025-04-18 02:00:05 - End Time 2025-04-18 05:00:05 [2025-04-18 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933312', 'tblTempUsageDetail_20' ) start [2025-04-18 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933312', 'tblTempUsageDetail_20' ) end [2025-04-18 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933312', 'tblTempVendorCDR_20' ) start [2025-04-18 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933312', 'tblTempVendorCDR_20' ) end [2025-04-18 05:00:19] Production.INFO: ProcessCDR(1,14933312,1,1,2) [2025-04-18 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933312', 'tblTempUsageDetail_20' ) start [2025-04-18 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933312', 'tblTempUsageDetail_20' ) end [2025-04-18 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:00:22] Production.INFO: ==4047== Releasing lock... [2025-04-18 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:01:05 [end_date_ymd] => 2025-04-18 05:01:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:01:05' and `end` < '2025-04-18 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-04-18 05:01:17] Production.INFO: count ==222 [2025-04-18 05:01:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:01:05 - End Time 2025-04-18 05:01:05 [2025-04-18 05:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933318', 'tblTempUsageDetail_20' ) start [2025-04-18 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933318', 'tblTempUsageDetail_20' ) end [2025-04-18 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933318', 'tblTempVendorCDR_20' ) start [2025-04-18 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933318', 'tblTempVendorCDR_20' ) end [2025-04-18 05:01:17] Production.INFO: ProcessCDR(1,14933318,1,1,2) [2025-04-18 05:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933318', 'tblTempUsageDetail_20' ) start [2025-04-18 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933318', 'tblTempUsageDetail_20' ) end [2025-04-18 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:01:21] Production.INFO: ==4136== Releasing lock... [2025-04-18 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:01:21] Production.INFO: 30 MB #Memory Used# [2025-04-18 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:02:05 [end_date_ymd] => 2025-04-18 05:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:02:05' and `end` < '2025-04-18 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-04-18 05:02:17] Production.INFO: count ==220 [2025-04-18 05:02:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:02:05 - End Time 2025-04-18 05:02:05 [2025-04-18 05:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933323', 'tblTempUsageDetail_20' ) start [2025-04-18 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933323', 'tblTempUsageDetail_20' ) end [2025-04-18 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933323', 'tblTempVendorCDR_20' ) start [2025-04-18 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933323', 'tblTempVendorCDR_20' ) end [2025-04-18 05:02:17] Production.INFO: ProcessCDR(1,14933323,1,1,2) [2025-04-18 05:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933323', 'tblTempUsageDetail_20' ) start [2025-04-18 05:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933323', 'tblTempUsageDetail_20' ) end [2025-04-18 05:02:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:02:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:02:21] Production.INFO: ==4214== Releasing lock... [2025-04-18 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:02:21] Production.INFO: 30 MB #Memory Used# [2025-04-18 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:03:05 [end_date_ymd] => 2025-04-18 05:03:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:03:05' and `end` < '2025-04-18 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-04-18 05:03:19] Production.INFO: count ==216 [2025-04-18 05:03:19] Production.ERROR: pbx CDR StartTime 2025-04-18 02:03:05 - End Time 2025-04-18 05:03:05 [2025-04-18 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933328', 'tblTempUsageDetail_20' ) start [2025-04-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933328', 'tblTempUsageDetail_20' ) end [2025-04-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933328', 'tblTempVendorCDR_20' ) start [2025-04-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933328', 'tblTempVendorCDR_20' ) end [2025-04-18 05:03:19] Production.INFO: ProcessCDR(1,14933328,1,1,2) [2025-04-18 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933328', 'tblTempUsageDetail_20' ) start [2025-04-18 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933328', 'tblTempUsageDetail_20' ) end [2025-04-18 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:03:22] Production.INFO: ==4288== Releasing lock... [2025-04-18 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:03:22] Production.INFO: 30 MB #Memory Used# [2025-04-18 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:04:05 [end_date_ymd] => 2025-04-18 05:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:04:05' and `end` < '2025-04-18 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-04-18 05:04:18] Production.INFO: count ==215 [2025-04-18 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:04:05 - End Time 2025-04-18 05:04:05 [2025-04-18 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933333', 'tblTempUsageDetail_20' ) start [2025-04-18 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933333', 'tblTempUsageDetail_20' ) end [2025-04-18 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933333', 'tblTempVendorCDR_20' ) start [2025-04-18 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933333', 'tblTempVendorCDR_20' ) end [2025-04-18 05:04:18] Production.INFO: ProcessCDR(1,14933333,1,1,2) [2025-04-18 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933333', 'tblTempUsageDetail_20' ) start [2025-04-18 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933333', 'tblTempUsageDetail_20' ) end [2025-04-18 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:04:21] Production.INFO: ==4406== Releasing lock... [2025-04-18 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:05:05 [end_date_ymd] => 2025-04-18 05:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:05:05' and `end` < '2025-04-18 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-04-18 05:05:18] Production.INFO: count ==211 [2025-04-18 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:05:05 - End Time 2025-04-18 05:05:05 [2025-04-18 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933338', 'tblTempUsageDetail_20' ) start [2025-04-18 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933338', 'tblTempUsageDetail_20' ) end [2025-04-18 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933338', 'tblTempVendorCDR_20' ) start [2025-04-18 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933338', 'tblTempVendorCDR_20' ) end [2025-04-18 05:05:18] Production.INFO: ProcessCDR(1,14933338,1,1,2) [2025-04-18 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933338', 'tblTempUsageDetail_20' ) start [2025-04-18 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933338', 'tblTempUsageDetail_20' ) end [2025-04-18 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:05:22] Production.INFO: ==4781== Releasing lock... [2025-04-18 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:06:05 [end_date_ymd] => 2025-04-18 05:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:06:05' and `end` < '2025-04-18 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-04-18 05:06:18] Production.INFO: count ==210 [2025-04-18 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:06:05 - End Time 2025-04-18 05:06:05 [2025-04-18 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933343', 'tblTempUsageDetail_20' ) start [2025-04-18 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933343', 'tblTempUsageDetail_20' ) end [2025-04-18 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933343', 'tblTempVendorCDR_20' ) start [2025-04-18 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933343', 'tblTempVendorCDR_20' ) end [2025-04-18 05:06:18] Production.INFO: ProcessCDR(1,14933343,1,1,2) [2025-04-18 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933343', 'tblTempUsageDetail_20' ) start [2025-04-18 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933343', 'tblTempUsageDetail_20' ) end [2025-04-18 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:06:21] Production.INFO: ==5054== Releasing lock... [2025-04-18 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:07:05 [end_date_ymd] => 2025-04-18 05:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:07:05' and `end` < '2025-04-18 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-04-18 05:07:18] Production.INFO: count ==209 [2025-04-18 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:07:05 - End Time 2025-04-18 05:07:05 [2025-04-18 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933348', 'tblTempUsageDetail_20' ) start [2025-04-18 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933348', 'tblTempUsageDetail_20' ) end [2025-04-18 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933348', 'tblTempVendorCDR_20' ) start [2025-04-18 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933348', 'tblTempVendorCDR_20' ) end [2025-04-18 05:07:18] Production.INFO: ProcessCDR(1,14933348,1,1,2) [2025-04-18 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933348', 'tblTempUsageDetail_20' ) start [2025-04-18 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933348', 'tblTempUsageDetail_20' ) end [2025-04-18 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:07:21] Production.INFO: ==5129== Releasing lock... [2025-04-18 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 05:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:08:04 [end_date_ymd] => 2025-04-18 05:08:04 [RateCDR] => 1 ) [2025-04-18 05:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:08:04' and `end` < '2025-04-18 05:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:08:17] Production.INFO: count ==211 [2025-04-18 05:08:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:08:04 - End Time 2025-04-18 05:08:04 [2025-04-18 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933353', 'tblTempUsageDetail_20' ) start [2025-04-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933353', 'tblTempUsageDetail_20' ) end [2025-04-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933353', 'tblTempVendorCDR_20' ) start [2025-04-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933353', 'tblTempVendorCDR_20' ) end [2025-04-18 05:08:17] Production.INFO: ProcessCDR(1,14933353,1,1,2) [2025-04-18 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933353', 'tblTempUsageDetail_20' ) start [2025-04-18 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933353', 'tblTempUsageDetail_20' ) end [2025-04-18 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:08:20] Production.INFO: ==5208== Releasing lock... [2025-04-18 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:08:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:09:05 [end_date_ymd] => 2025-04-18 05:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:09:05' and `end` < '2025-04-18 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-04-18 05:09:17] Production.INFO: count ==209 [2025-04-18 05:09:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:09:05 - End Time 2025-04-18 05:09:05 [2025-04-18 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933358', 'tblTempUsageDetail_20' ) start [2025-04-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933358', 'tblTempUsageDetail_20' ) end [2025-04-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933358', 'tblTempVendorCDR_20' ) start [2025-04-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933358', 'tblTempVendorCDR_20' ) end [2025-04-18 05:09:17] Production.INFO: ProcessCDR(1,14933358,1,1,2) [2025-04-18 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933358', 'tblTempUsageDetail_20' ) start [2025-04-18 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933358', 'tblTempUsageDetail_20' ) end [2025-04-18 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:09:21] Production.INFO: ==5283== Releasing lock... [2025-04-18 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:10:07 [end_date_ymd] => 2025-04-18 05:10:07 [RateCDR] => 1 ) [2025-04-18 05: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-04-18 02:10:07' and `end` < '2025-04-18 05: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-04-18 05:10:19] Production.INFO: count ==207 [2025-04-18 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-18 02:10:07 - End Time 2025-04-18 05:10:07 [2025-04-18 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933364', 'tblTempUsageDetail_20' ) start [2025-04-18 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933364', 'tblTempUsageDetail_20' ) end [2025-04-18 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933364', 'tblTempVendorCDR_20' ) start [2025-04-18 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933364', 'tblTempVendorCDR_20' ) end [2025-04-18 05:10:19] Production.INFO: ProcessCDR(1,14933364,1,1,2) [2025-04-18 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933364', 'tblTempUsageDetail_20' ) start [2025-04-18 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933364', 'tblTempUsageDetail_20' ) end [2025-04-18 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:10:23] Production.INFO: ==5362== Releasing lock... [2025-04-18 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:11:05 [end_date_ymd] => 2025-04-18 05:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:11:05' and `end` < '2025-04-18 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-04-18 05:11:17] Production.INFO: count ==207 [2025-04-18 05:11:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:11:05 - End Time 2025-04-18 05:11:05 [2025-04-18 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933369', 'tblTempUsageDetail_20' ) start [2025-04-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933369', 'tblTempUsageDetail_20' ) end [2025-04-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933369', 'tblTempVendorCDR_20' ) start [2025-04-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933369', 'tblTempVendorCDR_20' ) end [2025-04-18 05:11:17] Production.INFO: ProcessCDR(1,14933369,1,1,2) [2025-04-18 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933369', 'tblTempUsageDetail_20' ) start [2025-04-18 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933369', 'tblTempUsageDetail_20' ) end [2025-04-18 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:11:21] Production.INFO: ==5439== Releasing lock... [2025-04-18 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:12:05 [end_date_ymd] => 2025-04-18 05:12:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:12:05' and `end` < '2025-04-18 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-04-18 05:12:18] Production.INFO: count ==207 [2025-04-18 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:12:05 - End Time 2025-04-18 05:12:05 [2025-04-18 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933374', 'tblTempUsageDetail_20' ) start [2025-04-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933374', 'tblTempUsageDetail_20' ) end [2025-04-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933374', 'tblTempVendorCDR_20' ) start [2025-04-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933374', 'tblTempVendorCDR_20' ) end [2025-04-18 05:12:18] Production.INFO: ProcessCDR(1,14933374,1,1,2) [2025-04-18 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933374', 'tblTempUsageDetail_20' ) start [2025-04-18 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933374', 'tblTempUsageDetail_20' ) end [2025-04-18 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:12:22] Production.INFO: ==5513== Releasing lock... [2025-04-18 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:12:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:13:05 [end_date_ymd] => 2025-04-18 05:13:05 [RateCDR] => 1 ) [2025-04-18 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:13:05' and `end` < '2025-04-18 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:13:17] Production.INFO: count ==207 [2025-04-18 05:13:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:13:05 - End Time 2025-04-18 05:13:05 [2025-04-18 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933379', 'tblTempUsageDetail_20' ) start [2025-04-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933379', 'tblTempUsageDetail_20' ) end [2025-04-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933379', 'tblTempVendorCDR_20' ) start [2025-04-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933379', 'tblTempVendorCDR_20' ) end [2025-04-18 05:13:17] Production.INFO: ProcessCDR(1,14933379,1,1,2) [2025-04-18 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933379', 'tblTempUsageDetail_20' ) start [2025-04-18 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933379', 'tblTempUsageDetail_20' ) end [2025-04-18 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:13:20] Production.INFO: ==5592== Releasing lock... [2025-04-18 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:13:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:14:05 [end_date_ymd] => 2025-04-18 05:14:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:14:05' and `end` < '2025-04-18 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-04-18 05:14:17] Production.INFO: count ==205 [2025-04-18 05:14:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:14:05 - End Time 2025-04-18 05:14:05 [2025-04-18 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933384', 'tblTempUsageDetail_20' ) start [2025-04-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933384', 'tblTempUsageDetail_20' ) end [2025-04-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933384', 'tblTempVendorCDR_20' ) start [2025-04-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933384', 'tblTempVendorCDR_20' ) end [2025-04-18 05:14:18] Production.INFO: ProcessCDR(1,14933384,1,1,2) [2025-04-18 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933384', 'tblTempUsageDetail_20' ) start [2025-04-18 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933384', 'tblTempUsageDetail_20' ) end [2025-04-18 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:14:21] Production.INFO: ==5667== Releasing lock... [2025-04-18 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:15:05 [end_date_ymd] => 2025-04-18 05:15:05 [RateCDR] => 1 ) [2025-04-18 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:15:05' and `end` < '2025-04-18 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:15:17] Production.INFO: count ==204 [2025-04-18 05:15:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:15:05 - End Time 2025-04-18 05:15:05 [2025-04-18 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933389', 'tblTempUsageDetail_20' ) start [2025-04-18 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933389', 'tblTempUsageDetail_20' ) end [2025-04-18 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933389', 'tblTempVendorCDR_20' ) start [2025-04-18 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933389', 'tblTempVendorCDR_20' ) end [2025-04-18 05:15:18] Production.INFO: ProcessCDR(1,14933389,1,1,2) [2025-04-18 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933389', 'tblTempUsageDetail_20' ) start [2025-04-18 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933389', 'tblTempUsageDetail_20' ) end [2025-04-18 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:15:21] Production.INFO: ==5739== Releasing lock... [2025-04-18 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:16:05 [end_date_ymd] => 2025-04-18 05:16:05 [RateCDR] => 1 ) [2025-04-18 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:16:05' and `end` < '2025-04-18 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:16:17] Production.INFO: count ==199 [2025-04-18 05:16:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:16:05 - End Time 2025-04-18 05:16:05 [2025-04-18 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933394', 'tblTempUsageDetail_20' ) start [2025-04-18 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933394', 'tblTempUsageDetail_20' ) end [2025-04-18 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933394', 'tblTempVendorCDR_20' ) start [2025-04-18 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933394', 'tblTempVendorCDR_20' ) end [2025-04-18 05:16:17] Production.INFO: ProcessCDR(1,14933394,1,1,2) [2025-04-18 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933394', 'tblTempUsageDetail_20' ) start [2025-04-18 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933394', 'tblTempUsageDetail_20' ) end [2025-04-18 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:16:21] Production.INFO: ==5812== Releasing lock... [2025-04-18 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:17:06 [end_date_ymd] => 2025-04-18 05:17:06 [RateCDR] => 1 ) [2025-04-18 05: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-04-18 02:17:06' and `end` < '2025-04-18 05: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-04-18 05:17:18] Production.INFO: count ==197 [2025-04-18 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:17:06 - End Time 2025-04-18 05:17:06 [2025-04-18 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933399', 'tblTempUsageDetail_20' ) start [2025-04-18 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933399', 'tblTempUsageDetail_20' ) end [2025-04-18 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933399', 'tblTempVendorCDR_20' ) start [2025-04-18 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933399', 'tblTempVendorCDR_20' ) end [2025-04-18 05:17:18] Production.INFO: ProcessCDR(1,14933399,1,1,2) [2025-04-18 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933399', 'tblTempUsageDetail_20' ) start [2025-04-18 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933399', 'tblTempUsageDetail_20' ) end [2025-04-18 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:17:22] Production.INFO: ==5892== Releasing lock... [2025-04-18 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:18:05 [end_date_ymd] => 2025-04-18 05:18:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:18:05' and `end` < '2025-04-18 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-04-18 05:18:17] Production.INFO: count ==197 [2025-04-18 05:18:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:18:05 - End Time 2025-04-18 05:18:05 [2025-04-18 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933404', 'tblTempUsageDetail_20' ) start [2025-04-18 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933404', 'tblTempUsageDetail_20' ) end [2025-04-18 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933404', 'tblTempVendorCDR_20' ) start [2025-04-18 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933404', 'tblTempVendorCDR_20' ) end [2025-04-18 05:18:17] Production.INFO: ProcessCDR(1,14933404,1,1,2) [2025-04-18 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933404', 'tblTempUsageDetail_20' ) start [2025-04-18 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933404', 'tblTempUsageDetail_20' ) end [2025-04-18 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:18:20] Production.INFO: ==5976== Releasing lock... [2025-04-18 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:18:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:19:06 [end_date_ymd] => 2025-04-18 05:19:06 [RateCDR] => 1 ) [2025-04-18 05: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-04-18 02:19:06' and `end` < '2025-04-18 05: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-04-18 05:19:18] Production.INFO: count ==195 [2025-04-18 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:19:06 - End Time 2025-04-18 05:19:06 [2025-04-18 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933409', 'tblTempUsageDetail_20' ) start [2025-04-18 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933409', 'tblTempUsageDetail_20' ) end [2025-04-18 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933409', 'tblTempVendorCDR_20' ) start [2025-04-18 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933409', 'tblTempVendorCDR_20' ) end [2025-04-18 05:19:18] Production.INFO: ProcessCDR(1,14933409,1,1,2) [2025-04-18 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933409', 'tblTempUsageDetail_20' ) start [2025-04-18 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933409', 'tblTempUsageDetail_20' ) end [2025-04-18 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:19:22] Production.INFO: ==6050== Releasing lock... [2025-04-18 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:19:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:20:06 [end_date_ymd] => 2025-04-18 05:20:06 [RateCDR] => 1 ) [2025-04-18 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:20:06' and `end` < '2025-04-18 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:20:19] Production.INFO: count ==192 [2025-04-18 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 02:20:06 - End Time 2025-04-18 05:20:06 [2025-04-18 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933415', 'tblTempUsageDetail_20' ) start [2025-04-18 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933415', 'tblTempUsageDetail_20' ) end [2025-04-18 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933415', 'tblTempVendorCDR_20' ) start [2025-04-18 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933415', 'tblTempVendorCDR_20' ) end [2025-04-18 05:20:19] Production.INFO: ProcessCDR(1,14933415,1,1,2) [2025-04-18 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933415', 'tblTempUsageDetail_20' ) start [2025-04-18 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933415', 'tblTempUsageDetail_20' ) end [2025-04-18 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:20:22] Production.INFO: ==6164== Releasing lock... [2025-04-18 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:21:05 [end_date_ymd] => 2025-04-18 05:21:05 [RateCDR] => 1 ) [2025-04-18 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:21:05' and `end` < '2025-04-18 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:21:18] Production.INFO: count ==194 [2025-04-18 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:21:05 - End Time 2025-04-18 05:21:05 [2025-04-18 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933420', 'tblTempUsageDetail_20' ) start [2025-04-18 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933420', 'tblTempUsageDetail_20' ) end [2025-04-18 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933420', 'tblTempVendorCDR_20' ) start [2025-04-18 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933420', 'tblTempVendorCDR_20' ) end [2025-04-18 05:21:18] Production.INFO: ProcessCDR(1,14933420,1,1,2) [2025-04-18 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933420', 'tblTempUsageDetail_20' ) start [2025-04-18 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933420', 'tblTempUsageDetail_20' ) end [2025-04-18 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:21:21] Production.INFO: ==6242== Releasing lock... [2025-04-18 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:21:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:22:05 [end_date_ymd] => 2025-04-18 05:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:22:05' and `end` < '2025-04-18 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-04-18 05:22:17] Production.INFO: count ==193 [2025-04-18 05:22:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:22:05 - End Time 2025-04-18 05:22:05 [2025-04-18 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933425', 'tblTempUsageDetail_20' ) start [2025-04-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933425', 'tblTempUsageDetail_20' ) end [2025-04-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933425', 'tblTempVendorCDR_20' ) start [2025-04-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933425', 'tblTempVendorCDR_20' ) end [2025-04-18 05:22:17] Production.INFO: ProcessCDR(1,14933425,1,1,2) [2025-04-18 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933425', 'tblTempUsageDetail_20' ) start [2025-04-18 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933425', 'tblTempUsageDetail_20' ) end [2025-04-18 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:22:21] Production.INFO: ==6321== Releasing lock... [2025-04-18 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:23:05 [end_date_ymd] => 2025-04-18 05:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:23:05' and `end` < '2025-04-18 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-04-18 05:23:18] Production.INFO: count ==193 [2025-04-18 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:23:05 - End Time 2025-04-18 05:23:05 [2025-04-18 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933430', 'tblTempUsageDetail_20' ) start [2025-04-18 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933430', 'tblTempUsageDetail_20' ) end [2025-04-18 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933430', 'tblTempVendorCDR_20' ) start [2025-04-18 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933430', 'tblTempVendorCDR_20' ) end [2025-04-18 05:23:18] Production.INFO: ProcessCDR(1,14933430,1,1,2) [2025-04-18 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933430', 'tblTempUsageDetail_20' ) start [2025-04-18 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933430', 'tblTempUsageDetail_20' ) end [2025-04-18 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:23:21] Production.INFO: ==6392== Releasing lock... [2025-04-18 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:24:05 [end_date_ymd] => 2025-04-18 05:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:24:05' and `end` < '2025-04-18 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-04-18 05:24:17] Production.INFO: count ==193 [2025-04-18 05:24:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:24:05 - End Time 2025-04-18 05:24:05 [2025-04-18 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933435', 'tblTempUsageDetail_20' ) start [2025-04-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933435', 'tblTempUsageDetail_20' ) end [2025-04-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933435', 'tblTempVendorCDR_20' ) start [2025-04-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933435', 'tblTempVendorCDR_20' ) end [2025-04-18 05:24:17] Production.INFO: ProcessCDR(1,14933435,1,1,2) [2025-04-18 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933435', 'tblTempUsageDetail_20' ) start [2025-04-18 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933435', 'tblTempUsageDetail_20' ) end [2025-04-18 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:24:21] Production.INFO: ==6467== Releasing lock... [2025-04-18 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:25:05 [end_date_ymd] => 2025-04-18 05:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:25:05' and `end` < '2025-04-18 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-04-18 05:25:18] Production.INFO: count ==193 [2025-04-18 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:25:05 - End Time 2025-04-18 05:25:05 [2025-04-18 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933440', 'tblTempUsageDetail_20' ) start [2025-04-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933440', 'tblTempUsageDetail_20' ) end [2025-04-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933440', 'tblTempVendorCDR_20' ) start [2025-04-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933440', 'tblTempVendorCDR_20' ) end [2025-04-18 05:25:18] Production.INFO: ProcessCDR(1,14933440,1,1,2) [2025-04-18 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933440', 'tblTempUsageDetail_20' ) start [2025-04-18 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933440', 'tblTempUsageDetail_20' ) end [2025-04-18 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:25:21] Production.INFO: ==6545== Releasing lock... [2025-04-18 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:26:05 [end_date_ymd] => 2025-04-18 05:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:26:05' and `end` < '2025-04-18 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-04-18 05:26:18] Production.INFO: count ==192 [2025-04-18 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:26:05 - End Time 2025-04-18 05:26:05 [2025-04-18 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933445', 'tblTempUsageDetail_20' ) start [2025-04-18 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933445', 'tblTempUsageDetail_20' ) end [2025-04-18 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933445', 'tblTempVendorCDR_20' ) start [2025-04-18 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933445', 'tblTempVendorCDR_20' ) end [2025-04-18 05:26:18] Production.INFO: ProcessCDR(1,14933445,1,1,2) [2025-04-18 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933445', 'tblTempUsageDetail_20' ) start [2025-04-18 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933445', 'tblTempUsageDetail_20' ) end [2025-04-18 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:26:21] Production.INFO: ==6621== Releasing lock... [2025-04-18 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:27:05 [end_date_ymd] => 2025-04-18 05:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:27:05' and `end` < '2025-04-18 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-04-18 05:27:17] Production.INFO: count ==190 [2025-04-18 05:27:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:27:05 - End Time 2025-04-18 05:27:05 [2025-04-18 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933450', 'tblTempUsageDetail_20' ) start [2025-04-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933450', 'tblTempUsageDetail_20' ) end [2025-04-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933450', 'tblTempVendorCDR_20' ) start [2025-04-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933450', 'tblTempVendorCDR_20' ) end [2025-04-18 05:27:17] Production.INFO: ProcessCDR(1,14933450,1,1,2) [2025-04-18 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933450', 'tblTempUsageDetail_20' ) start [2025-04-18 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933450', 'tblTempUsageDetail_20' ) end [2025-04-18 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:27:21] Production.INFO: ==6699== Releasing lock... [2025-04-18 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:28:05 [end_date_ymd] => 2025-04-18 05:28:05 [RateCDR] => 1 ) [2025-04-18 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:28:05' and `end` < '2025-04-18 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:28:18] Production.INFO: count ==189 [2025-04-18 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:28:05 - End Time 2025-04-18 05:28:05 [2025-04-18 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933455', 'tblTempUsageDetail_20' ) start [2025-04-18 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933455', 'tblTempUsageDetail_20' ) end [2025-04-18 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933455', 'tblTempVendorCDR_20' ) start [2025-04-18 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933455', 'tblTempVendorCDR_20' ) end [2025-04-18 05:28:18] Production.INFO: ProcessCDR(1,14933455,1,1,2) [2025-04-18 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933455', 'tblTempUsageDetail_20' ) start [2025-04-18 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933455', 'tblTempUsageDetail_20' ) end [2025-04-18 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:28:21] Production.INFO: ==6778== Releasing lock... [2025-04-18 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:29:05 [end_date_ymd] => 2025-04-18 05:29:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:29:05' and `end` < '2025-04-18 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-04-18 05:29:17] Production.INFO: count ==191 [2025-04-18 05:29:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:29:05 - End Time 2025-04-18 05:29:05 [2025-04-18 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933460', 'tblTempUsageDetail_20' ) start [2025-04-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933460', 'tblTempUsageDetail_20' ) end [2025-04-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933460', 'tblTempVendorCDR_20' ) start [2025-04-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933460', 'tblTempVendorCDR_20' ) end [2025-04-18 05:29:17] Production.INFO: ProcessCDR(1,14933460,1,1,2) [2025-04-18 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933460', 'tblTempUsageDetail_20' ) start [2025-04-18 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933460', 'tblTempUsageDetail_20' ) end [2025-04-18 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:29:21] Production.INFO: ==6865== Releasing lock... [2025-04-18 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:30:06 [end_date_ymd] => 2025-04-18 05:30:06 [RateCDR] => 1 ) [2025-04-18 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:30:06' and `end` < '2025-04-18 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:30:18] Production.INFO: count ==180 [2025-04-18 05:30:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:30:06 - End Time 2025-04-18 05:30:06 [2025-04-18 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933465', 'tblTempUsageDetail_20' ) start [2025-04-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933465', 'tblTempUsageDetail_20' ) end [2025-04-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933465', 'tblTempVendorCDR_20' ) start [2025-04-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933465', 'tblTempVendorCDR_20' ) end [2025-04-18 05:30:18] Production.INFO: ProcessCDR(1,14933465,1,1,2) [2025-04-18 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933465', 'tblTempUsageDetail_20' ) start [2025-04-18 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933465', 'tblTempUsageDetail_20' ) end [2025-04-18 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:30:22] Production.INFO: ==6955== Releasing lock... [2025-04-18 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:31:04 [end_date_ymd] => 2025-04-18 05:31:04 [RateCDR] => 1 ) [2025-04-18 05:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:31:04' and `end` < '2025-04-18 05:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:31:17] Production.INFO: count ==172 [2025-04-18 05:31:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:31:04 - End Time 2025-04-18 05:31:04 [2025-04-18 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933471', 'tblTempUsageDetail_20' ) start [2025-04-18 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933471', 'tblTempUsageDetail_20' ) end [2025-04-18 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933471', 'tblTempVendorCDR_20' ) start [2025-04-18 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933471', 'tblTempVendorCDR_20' ) end [2025-04-18 05:31:17] Production.INFO: ProcessCDR(1,14933471,1,1,2) [2025-04-18 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933471', 'tblTempUsageDetail_20' ) start [2025-04-18 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933471', 'tblTempUsageDetail_20' ) end [2025-04-18 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:31:20] Production.INFO: ==7049== Releasing lock... [2025-04-18 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:31:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:32:05 [end_date_ymd] => 2025-04-18 05:32:05 [RateCDR] => 1 ) [2025-04-18 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:32:05' and `end` < '2025-04-18 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:32:18] Production.INFO: count ==171 [2025-04-18 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:32:05 - End Time 2025-04-18 05:32:05 [2025-04-18 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933476', 'tblTempUsageDetail_20' ) start [2025-04-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933476', 'tblTempUsageDetail_20' ) end [2025-04-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933476', 'tblTempVendorCDR_20' ) start [2025-04-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933476', 'tblTempVendorCDR_20' ) end [2025-04-18 05:32:18] Production.INFO: ProcessCDR(1,14933476,1,1,2) [2025-04-18 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933476', 'tblTempUsageDetail_20' ) start [2025-04-18 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933476', 'tblTempUsageDetail_20' ) end [2025-04-18 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:32:21] Production.INFO: ==7140== Releasing lock... [2025-04-18 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:33:04 [end_date_ymd] => 2025-04-18 05:33:04 [RateCDR] => 1 ) [2025-04-18 05:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:33:04' and `end` < '2025-04-18 05:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:33:17] Production.INFO: count ==169 [2025-04-18 05:33:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:33:04 - End Time 2025-04-18 05:33:04 [2025-04-18 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933481', 'tblTempUsageDetail_20' ) start [2025-04-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933481', 'tblTempUsageDetail_20' ) end [2025-04-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933481', 'tblTempVendorCDR_20' ) start [2025-04-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933481', 'tblTempVendorCDR_20' ) end [2025-04-18 05:33:17] Production.INFO: ProcessCDR(1,14933481,1,1,2) [2025-04-18 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933481', 'tblTempUsageDetail_20' ) start [2025-04-18 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933481', 'tblTempUsageDetail_20' ) end [2025-04-18 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:33:20] Production.INFO: ==7227== Releasing lock... [2025-04-18 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:34:06 [end_date_ymd] => 2025-04-18 05:34:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:34:06' and `end` < '2025-04-18 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-04-18 05:34:18] Production.INFO: count ==168 [2025-04-18 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:34:06 - End Time 2025-04-18 05:34:06 [2025-04-18 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933486', 'tblTempUsageDetail_20' ) start [2025-04-18 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933486', 'tblTempUsageDetail_20' ) end [2025-04-18 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933486', 'tblTempVendorCDR_20' ) start [2025-04-18 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933486', 'tblTempVendorCDR_20' ) end [2025-04-18 05:34:18] Production.INFO: ProcessCDR(1,14933486,1,1,2) [2025-04-18 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933486', 'tblTempUsageDetail_20' ) start [2025-04-18 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933486', 'tblTempUsageDetail_20' ) end [2025-04-18 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:34:22] Production.INFO: ==7303== Releasing lock... [2025-04-18 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:35:05 [end_date_ymd] => 2025-04-18 05:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:35:05' and `end` < '2025-04-18 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-04-18 05:35:18] Production.INFO: count ==167 [2025-04-18 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:35:05 - End Time 2025-04-18 05:35:05 [2025-04-18 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933491', 'tblTempUsageDetail_20' ) start [2025-04-18 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933491', 'tblTempUsageDetail_20' ) end [2025-04-18 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933491', 'tblTempVendorCDR_20' ) start [2025-04-18 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933491', 'tblTempVendorCDR_20' ) end [2025-04-18 05:35:18] Production.INFO: ProcessCDR(1,14933491,1,1,2) [2025-04-18 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933491', 'tblTempUsageDetail_20' ) start [2025-04-18 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933491', 'tblTempUsageDetail_20' ) end [2025-04-18 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:35:21] Production.INFO: ==7373== Releasing lock... [2025-04-18 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:36:05 [end_date_ymd] => 2025-04-18 05:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:36:05' and `end` < '2025-04-18 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-04-18 05:36:18] Production.INFO: count ==165 [2025-04-18 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:36:05 - End Time 2025-04-18 05:36:05 [2025-04-18 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933496', 'tblTempUsageDetail_20' ) start [2025-04-18 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933496', 'tblTempUsageDetail_20' ) end [2025-04-18 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933496', 'tblTempVendorCDR_20' ) start [2025-04-18 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933496', 'tblTempVendorCDR_20' ) end [2025-04-18 05:36:18] Production.INFO: ProcessCDR(1,14933496,1,1,2) [2025-04-18 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933496', 'tblTempUsageDetail_20' ) start [2025-04-18 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933496', 'tblTempUsageDetail_20' ) end [2025-04-18 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:36:21] Production.INFO: ==7489== Releasing lock... [2025-04-18 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:37:05 [end_date_ymd] => 2025-04-18 05:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:37:05' and `end` < '2025-04-18 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-04-18 05:37:18] Production.INFO: count ==163 [2025-04-18 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:37:05 - End Time 2025-04-18 05:37:05 [2025-04-18 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933501', 'tblTempUsageDetail_20' ) start [2025-04-18 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933501', 'tblTempUsageDetail_20' ) end [2025-04-18 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933501', 'tblTempVendorCDR_20' ) start [2025-04-18 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933501', 'tblTempVendorCDR_20' ) end [2025-04-18 05:37:18] Production.INFO: ProcessCDR(1,14933501,1,1,2) [2025-04-18 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933501', 'tblTempUsageDetail_20' ) start [2025-04-18 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933501', 'tblTempUsageDetail_20' ) end [2025-04-18 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:37:21] Production.INFO: ==7566== Releasing lock... [2025-04-18 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:37:21] Production.INFO: 29 MB #Memory Used# [2025-04-18 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:38:05 [end_date_ymd] => 2025-04-18 05:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:38:05' and `end` < '2025-04-18 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-04-18 05:38:18] Production.INFO: count ==161 [2025-04-18 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:38:05 - End Time 2025-04-18 05:38:05 [2025-04-18 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933506', 'tblTempUsageDetail_20' ) start [2025-04-18 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933506', 'tblTempUsageDetail_20' ) end [2025-04-18 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933506', 'tblTempVendorCDR_20' ) start [2025-04-18 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933506', 'tblTempVendorCDR_20' ) end [2025-04-18 05:38:18] Production.INFO: ProcessCDR(1,14933506,1,1,2) [2025-04-18 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933506', 'tblTempUsageDetail_20' ) start [2025-04-18 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933506', 'tblTempUsageDetail_20' ) end [2025-04-18 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:38:21] Production.INFO: ==7639== Releasing lock... [2025-04-18 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:39:05 [end_date_ymd] => 2025-04-18 05:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:39:05' and `end` < '2025-04-18 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-04-18 05:39:18] Production.INFO: count ==158 [2025-04-18 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:39:05 - End Time 2025-04-18 05:39:05 [2025-04-18 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933511', 'tblTempUsageDetail_20' ) start [2025-04-18 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933511', 'tblTempUsageDetail_20' ) end [2025-04-18 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933511', 'tblTempVendorCDR_20' ) start [2025-04-18 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933511', 'tblTempVendorCDR_20' ) end [2025-04-18 05:39:18] Production.INFO: ProcessCDR(1,14933511,1,1,2) [2025-04-18 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933511', 'tblTempUsageDetail_20' ) start [2025-04-18 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933511', 'tblTempUsageDetail_20' ) end [2025-04-18 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:39:22] Production.INFO: ==7714== Releasing lock... [2025-04-18 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:39:22] Production.INFO: 29 MB #Memory Used# [2025-04-18 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:40:05 [end_date_ymd] => 2025-04-18 05:40:05 [RateCDR] => 1 ) [2025-04-18 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:40:05' and `end` < '2025-04-18 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:40:18] Production.INFO: count ==152 [2025-04-18 05:40:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:40:05 - End Time 2025-04-18 05:40:05 [2025-04-18 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933517', 'tblTempUsageDetail_20' ) start [2025-04-18 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933517', 'tblTempUsageDetail_20' ) end [2025-04-18 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933517', 'tblTempVendorCDR_20' ) start [2025-04-18 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933517', 'tblTempVendorCDR_20' ) end [2025-04-18 05:40:18] Production.INFO: ProcessCDR(1,14933517,1,1,2) [2025-04-18 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933517', 'tblTempUsageDetail_20' ) start [2025-04-18 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933517', 'tblTempUsageDetail_20' ) end [2025-04-18 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:40:23] Production.INFO: ==7791== Releasing lock... [2025-04-18 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:40:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:41:05 [end_date_ymd] => 2025-04-18 05:41:05 [RateCDR] => 1 ) [2025-04-18 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:41:05' and `end` < '2025-04-18 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:41:18] Production.INFO: count ==148 [2025-04-18 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:41:05 - End Time 2025-04-18 05:41:05 [2025-04-18 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933522', 'tblTempUsageDetail_20' ) start [2025-04-18 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933522', 'tblTempUsageDetail_20' ) end [2025-04-18 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933522', 'tblTempVendorCDR_20' ) start [2025-04-18 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933522', 'tblTempVendorCDR_20' ) end [2025-04-18 05:41:18] Production.INFO: ProcessCDR(1,14933522,1,1,2) [2025-04-18 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933522', 'tblTempUsageDetail_20' ) start [2025-04-18 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933522', 'tblTempUsageDetail_20' ) end [2025-04-18 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:41:21] Production.INFO: ==7870== Releasing lock... [2025-04-18 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:42:05 [end_date_ymd] => 2025-04-18 05:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:42:05' and `end` < '2025-04-18 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-04-18 05:42:17] Production.INFO: count ==148 [2025-04-18 05:42:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:42:05 - End Time 2025-04-18 05:42:05 [2025-04-18 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933527', 'tblTempUsageDetail_20' ) start [2025-04-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933527', 'tblTempUsageDetail_20' ) end [2025-04-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933527', 'tblTempVendorCDR_20' ) start [2025-04-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933527', 'tblTempVendorCDR_20' ) end [2025-04-18 05:42:17] Production.INFO: ProcessCDR(1,14933527,1,1,2) [2025-04-18 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933527', 'tblTempUsageDetail_20' ) start [2025-04-18 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933527', 'tblTempUsageDetail_20' ) end [2025-04-18 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:42:21] Production.INFO: ==7943== Releasing lock... [2025-04-18 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:43:05 [end_date_ymd] => 2025-04-18 05:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:43:05' and `end` < '2025-04-18 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-04-18 05:43:18] Production.INFO: count ==146 [2025-04-18 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:43:05 - End Time 2025-04-18 05:43:05 [2025-04-18 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933532', 'tblTempUsageDetail_20' ) start [2025-04-18 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933532', 'tblTempUsageDetail_20' ) end [2025-04-18 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933532', 'tblTempVendorCDR_20' ) start [2025-04-18 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933532', 'tblTempVendorCDR_20' ) end [2025-04-18 05:43:18] Production.INFO: ProcessCDR(1,14933532,1,1,2) [2025-04-18 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933532', 'tblTempUsageDetail_20' ) start [2025-04-18 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933532', 'tblTempUsageDetail_20' ) end [2025-04-18 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:43:21] Production.INFO: ==8017== Releasing lock... [2025-04-18 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:43:21] Production.INFO: 29 MB #Memory Used# [2025-04-18 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:44:06 [end_date_ymd] => 2025-04-18 05:44:06 [RateCDR] => 1 ) [2025-04-18 05: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-04-18 02:44:06' and `end` < '2025-04-18 05: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-04-18 05:44:18] Production.INFO: count ==145 [2025-04-18 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:44:06 - End Time 2025-04-18 05:44:06 [2025-04-18 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933537', 'tblTempUsageDetail_20' ) start [2025-04-18 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933537', 'tblTempUsageDetail_20' ) end [2025-04-18 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933537', 'tblTempVendorCDR_20' ) start [2025-04-18 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933537', 'tblTempVendorCDR_20' ) end [2025-04-18 05:44:18] Production.INFO: ProcessCDR(1,14933537,1,1,2) [2025-04-18 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933537', 'tblTempUsageDetail_20' ) start [2025-04-18 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933537', 'tblTempUsageDetail_20' ) end [2025-04-18 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:44:22] Production.INFO: ==8090== Releasing lock... [2025-04-18 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:44:22] Production.INFO: 29 MB #Memory Used# [2025-04-18 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:45:05 [end_date_ymd] => 2025-04-18 05:45:05 [RateCDR] => 1 ) [2025-04-18 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:45:05' and `end` < '2025-04-18 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:45:17] Production.INFO: count ==145 [2025-04-18 05:45:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:45:05 - End Time 2025-04-18 05:45:05 [2025-04-18 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933542', 'tblTempUsageDetail_20' ) start [2025-04-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933542', 'tblTempUsageDetail_20' ) end [2025-04-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933542', 'tblTempVendorCDR_20' ) start [2025-04-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933542', 'tblTempVendorCDR_20' ) end [2025-04-18 05:45:17] Production.INFO: ProcessCDR(1,14933542,1,1,2) [2025-04-18 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933542', 'tblTempUsageDetail_20' ) start [2025-04-18 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933542', 'tblTempUsageDetail_20' ) end [2025-04-18 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:45:21] Production.INFO: ==8165== Releasing lock... [2025-04-18 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:45:21] Production.INFO: 29 MB #Memory Used# [2025-04-18 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:46:06 [end_date_ymd] => 2025-04-18 05:46:06 [RateCDR] => 1 ) [2025-04-18 05: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-04-18 02:46:06' and `end` < '2025-04-18 05: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-04-18 05:46:18] Production.INFO: count ==145 [2025-04-18 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:46:06 - End Time 2025-04-18 05:46:06 [2025-04-18 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933547', 'tblTempUsageDetail_20' ) start [2025-04-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933547', 'tblTempUsageDetail_20' ) end [2025-04-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933547', 'tblTempVendorCDR_20' ) start [2025-04-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933547', 'tblTempVendorCDR_20' ) end [2025-04-18 05:46:18] Production.INFO: ProcessCDR(1,14933547,1,1,2) [2025-04-18 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933547', 'tblTempUsageDetail_20' ) start [2025-04-18 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933547', 'tblTempUsageDetail_20' ) end [2025-04-18 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:46:22] Production.INFO: ==8238== Releasing lock... [2025-04-18 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:46:22] Production.INFO: 29 MB #Memory Used# [2025-04-18 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:47:05 [end_date_ymd] => 2025-04-18 05:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:47:05' and `end` < '2025-04-18 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-04-18 05:47:17] Production.INFO: count ==145 [2025-04-18 05:47:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:47:05 - End Time 2025-04-18 05:47:05 [2025-04-18 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933552', 'tblTempUsageDetail_20' ) start [2025-04-18 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933552', 'tblTempUsageDetail_20' ) end [2025-04-18 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933552', 'tblTempVendorCDR_20' ) start [2025-04-18 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933552', 'tblTempVendorCDR_20' ) end [2025-04-18 05:47:17] Production.INFO: ProcessCDR(1,14933552,1,1,2) [2025-04-18 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933552', 'tblTempUsageDetail_20' ) start [2025-04-18 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933552', 'tblTempUsageDetail_20' ) end [2025-04-18 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:47:21] Production.INFO: ==8312== Releasing lock... [2025-04-18 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:47:21] Production.INFO: 29 MB #Memory Used# [2025-04-18 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:48:05 [end_date_ymd] => 2025-04-18 05:48:05 [RateCDR] => 1 ) [2025-04-18 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:48:05' and `end` < '2025-04-18 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:48:18] Production.INFO: count ==145 [2025-04-18 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:48:05 - End Time 2025-04-18 05:48:05 [2025-04-18 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933557', 'tblTempUsageDetail_20' ) start [2025-04-18 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933557', 'tblTempUsageDetail_20' ) end [2025-04-18 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933557', 'tblTempVendorCDR_20' ) start [2025-04-18 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933557', 'tblTempVendorCDR_20' ) end [2025-04-18 05:48:18] Production.INFO: ProcessCDR(1,14933557,1,1,2) [2025-04-18 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933557', 'tblTempUsageDetail_20' ) start [2025-04-18 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933557', 'tblTempUsageDetail_20' ) end [2025-04-18 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:48:21] Production.INFO: ==8383== Releasing lock... [2025-04-18 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:48:21] Production.INFO: 29 MB #Memory Used# [2025-04-18 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:49:05 [end_date_ymd] => 2025-04-18 05:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:49:05' and `end` < '2025-04-18 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-04-18 05:49:17] Production.INFO: count ==145 [2025-04-18 05:49:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:49:05 - End Time 2025-04-18 05:49:05 [2025-04-18 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933562', 'tblTempUsageDetail_20' ) start [2025-04-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933562', 'tblTempUsageDetail_20' ) end [2025-04-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933562', 'tblTempVendorCDR_20' ) start [2025-04-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933562', 'tblTempVendorCDR_20' ) end [2025-04-18 05:49:17] Production.INFO: ProcessCDR(1,14933562,1,1,2) [2025-04-18 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933562', 'tblTempUsageDetail_20' ) start [2025-04-18 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933562', 'tblTempUsageDetail_20' ) end [2025-04-18 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:49:21] Production.INFO: ==8459== Releasing lock... [2025-04-18 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:49:21] Production.INFO: 29 MB #Memory Used# [2025-04-18 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:50:05 [end_date_ymd] => 2025-04-18 05:50:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:50:05' and `end` < '2025-04-18 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-04-18 05:50:18] Production.INFO: count ==136 [2025-04-18 05:50:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:50:05 - End Time 2025-04-18 05:50:05 [2025-04-18 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933568', 'tblTempUsageDetail_20' ) start [2025-04-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933568', 'tblTempUsageDetail_20' ) end [2025-04-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933568', 'tblTempVendorCDR_20' ) start [2025-04-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933568', 'tblTempVendorCDR_20' ) end [2025-04-18 05:50:18] Production.INFO: ProcessCDR(1,14933568,1,1,2) [2025-04-18 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933568', 'tblTempUsageDetail_20' ) start [2025-04-18 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933568', 'tblTempUsageDetail_20' ) end [2025-04-18 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:50:21] Production.INFO: ==8531== Releasing lock... [2025-04-18 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:50:21] Production.INFO: 29 MB #Memory Used# [2025-04-18 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:51:05 [end_date_ymd] => 2025-04-18 05:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:51:05' and `end` < '2025-04-18 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-04-18 05:51:17] Production.INFO: count ==109 [2025-04-18 05:51:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:51:05 - End Time 2025-04-18 05:51:05 [2025-04-18 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933573', 'tblTempUsageDetail_20' ) start [2025-04-18 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933573', 'tblTempUsageDetail_20' ) end [2025-04-18 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933573', 'tblTempVendorCDR_20' ) start [2025-04-18 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933573', 'tblTempVendorCDR_20' ) end [2025-04-18 05:51:18] Production.INFO: ProcessCDR(1,14933573,1,1,2) [2025-04-18 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933573', 'tblTempUsageDetail_20' ) start [2025-04-18 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933573', 'tblTempUsageDetail_20' ) end [2025-04-18 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:51:21] Production.INFO: ==8649== Releasing lock... [2025-04-18 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-18 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:52:05 [end_date_ymd] => 2025-04-18 05:52:05 [RateCDR] => 1 ) [2025-04-18 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:52:05' and `end` < '2025-04-18 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:52:18] Production.INFO: count ==104 [2025-04-18 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:52:05 - End Time 2025-04-18 05:52:05 [2025-04-18 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933578', 'tblTempUsageDetail_20' ) start [2025-04-18 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933578', 'tblTempUsageDetail_20' ) end [2025-04-18 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933578', 'tblTempVendorCDR_20' ) start [2025-04-18 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933578', 'tblTempVendorCDR_20' ) end [2025-04-18 05:52:18] Production.INFO: ProcessCDR(1,14933578,1,1,2) [2025-04-18 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933578', 'tblTempUsageDetail_20' ) start [2025-04-18 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933578', 'tblTempUsageDetail_20' ) end [2025-04-18 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:52:21] Production.INFO: ==8723== Releasing lock... [2025-04-18 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-18 05:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:53:06 [end_date_ymd] => 2025-04-18 05:53:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:53:06' and `end` < '2025-04-18 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-04-18 05:53:18] Production.INFO: count ==97 [2025-04-18 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:53:06 - End Time 2025-04-18 05:53:06 [2025-04-18 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933583', 'tblTempUsageDetail_20' ) start [2025-04-18 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933583', 'tblTempUsageDetail_20' ) end [2025-04-18 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933583', 'tblTempVendorCDR_20' ) start [2025-04-18 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933583', 'tblTempVendorCDR_20' ) end [2025-04-18 05:53:18] Production.INFO: ProcessCDR(1,14933583,1,1,2) [2025-04-18 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933583', 'tblTempUsageDetail_20' ) start [2025-04-18 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933583', 'tblTempUsageDetail_20' ) end [2025-04-18 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:53:22] Production.INFO: ==8794== Releasing lock... [2025-04-18 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:53:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 05:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:54:04 [end_date_ymd] => 2025-04-18 05:54:04 [RateCDR] => 1 ) [2025-04-18 05:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:54:04' and `end` < '2025-04-18 05:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:54:17] Production.INFO: count ==96 [2025-04-18 05:54:17] Production.ERROR: pbx CDR StartTime 2025-04-18 02:54:04 - End Time 2025-04-18 05:54:04 [2025-04-18 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933588', 'tblTempUsageDetail_20' ) start [2025-04-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933588', 'tblTempUsageDetail_20' ) end [2025-04-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933588', 'tblTempVendorCDR_20' ) start [2025-04-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933588', 'tblTempVendorCDR_20' ) end [2025-04-18 05:54:17] Production.INFO: ProcessCDR(1,14933588,1,1,2) [2025-04-18 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933588', 'tblTempUsageDetail_20' ) start [2025-04-18 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933588', 'tblTempUsageDetail_20' ) end [2025-04-18 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:54:20] Production.INFO: ==8872== Releasing lock... [2025-04-18 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:54:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:55:06 [end_date_ymd] => 2025-04-18 05:55:06 [RateCDR] => 1 ) [2025-04-18 05: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-04-18 02:55:06' and `end` < '2025-04-18 05: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-04-18 05:55:18] Production.INFO: count ==90 [2025-04-18 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:55:06 - End Time 2025-04-18 05:55:06 [2025-04-18 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933593', 'tblTempUsageDetail_20' ) start [2025-04-18 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933593', 'tblTempUsageDetail_20' ) end [2025-04-18 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933593', 'tblTempVendorCDR_20' ) start [2025-04-18 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933593', 'tblTempVendorCDR_20' ) end [2025-04-18 05:55:18] Production.INFO: ProcessCDR(1,14933593,1,1,2) [2025-04-18 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933593', 'tblTempUsageDetail_20' ) start [2025-04-18 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933593', 'tblTempUsageDetail_20' ) end [2025-04-18 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:55:22] Production.INFO: ==8946== Releasing lock... [2025-04-18 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:56:05 [end_date_ymd] => 2025-04-18 05:56:05 [RateCDR] => 1 ) [2025-04-18 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:56:05' and `end` < '2025-04-18 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:56:18] Production.INFO: count ==88 [2025-04-18 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:56:05 - End Time 2025-04-18 05:56:05 [2025-04-18 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933598', 'tblTempUsageDetail_20' ) start [2025-04-18 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933598', 'tblTempUsageDetail_20' ) end [2025-04-18 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933598', 'tblTempVendorCDR_20' ) start [2025-04-18 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933598', 'tblTempVendorCDR_20' ) end [2025-04-18 05:56:18] Production.INFO: ProcessCDR(1,14933598,1,1,2) [2025-04-18 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933598', 'tblTempUsageDetail_20' ) start [2025-04-18 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933598', 'tblTempUsageDetail_20' ) end [2025-04-18 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:56:22] Production.INFO: ==9020== Releasing lock... [2025-04-18 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:57:06 [end_date_ymd] => 2025-04-18 05:57:06 [RateCDR] => 1 ) [2025-04-18 05: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-04-18 02:57:06' and `end` < '2025-04-18 05: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-04-18 05:57:18] Production.INFO: count ==87 [2025-04-18 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:57:06 - End Time 2025-04-18 05:57:06 [2025-04-18 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933603', 'tblTempUsageDetail_20' ) start [2025-04-18 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933603', 'tblTempUsageDetail_20' ) end [2025-04-18 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933603', 'tblTempVendorCDR_20' ) start [2025-04-18 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933603', 'tblTempVendorCDR_20' ) end [2025-04-18 05:57:18] Production.INFO: ProcessCDR(1,14933603,1,1,2) [2025-04-18 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933603', 'tblTempUsageDetail_20' ) start [2025-04-18 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933603', 'tblTempUsageDetail_20' ) end [2025-04-18 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:57:21] Production.INFO: ==9098== Releasing lock... [2025-04-18 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:58:05 [end_date_ymd] => 2025-04-18 05:58:05 [RateCDR] => 1 ) [2025-04-18 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 02:58:05' and `end` < '2025-04-18 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 05:58:18] Production.INFO: count ==87 [2025-04-18 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:58:05 - End Time 2025-04-18 05:58:05 [2025-04-18 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933608', 'tblTempUsageDetail_20' ) start [2025-04-18 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933608', 'tblTempUsageDetail_20' ) end [2025-04-18 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933608', 'tblTempVendorCDR_20' ) start [2025-04-18 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933608', 'tblTempVendorCDR_20' ) end [2025-04-18 05:58:18] Production.INFO: ProcessCDR(1,14933608,1,1,2) [2025-04-18 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933608', 'tblTempUsageDetail_20' ) start [2025-04-18 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933608', 'tblTempUsageDetail_20' ) end [2025-04-18 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:58:22] Production.INFO: ==9172== Releasing lock... [2025-04-18 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 02:59:05 [end_date_ymd] => 2025-04-18 05:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 02:59:05' and `end` < '2025-04-18 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-04-18 05:59:18] Production.INFO: count ==86 [2025-04-18 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-18 02:59:05 - End Time 2025-04-18 05:59:05 [2025-04-18 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933613', 'tblTempUsageDetail_20' ) start [2025-04-18 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933613', 'tblTempUsageDetail_20' ) end [2025-04-18 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933613', 'tblTempVendorCDR_20' ) start [2025-04-18 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933613', 'tblTempVendorCDR_20' ) end [2025-04-18 05:59:18] Production.INFO: ProcessCDR(1,14933613,1,1,2) [2025-04-18 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933613', 'tblTempUsageDetail_20' ) start [2025-04-18 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933613', 'tblTempUsageDetail_20' ) end [2025-04-18 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 05:59:22] Production.INFO: ==9244== Releasing lock... [2025-04-18 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 05:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:00:06 [end_date_ymd] => 2025-04-18 06:00:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:00:06' and `end` < '2025-04-18 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-04-18 06:00:18] Production.INFO: count ==85 [2025-04-18 06:00:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:00:06 - End Time 2025-04-18 06:00:06 [2025-04-18 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933619', 'tblTempUsageDetail_20' ) start [2025-04-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933619', 'tblTempUsageDetail_20' ) end [2025-04-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933619', 'tblTempVendorCDR_20' ) start [2025-04-18 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933619', 'tblTempVendorCDR_20' ) end [2025-04-18 06:00:19] Production.INFO: ProcessCDR(1,14933619,1,1,2) [2025-04-18 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933619', 'tblTempUsageDetail_20' ) start [2025-04-18 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933619', 'tblTempUsageDetail_20' ) end [2025-04-18 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:00:22] Production.INFO: ==9321== Releasing lock... [2025-04-18 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:01:06 [end_date_ymd] => 2025-04-18 06:01:06 [RateCDR] => 1 ) [2025-04-18 06: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-04-18 03:01:06' and `end` < '2025-04-18 06: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-04-18 06:01:18] Production.INFO: count ==85 [2025-04-18 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:01:06 - End Time 2025-04-18 06:01:06 [2025-04-18 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933624', 'tblTempUsageDetail_20' ) start [2025-04-18 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933624', 'tblTempUsageDetail_20' ) end [2025-04-18 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933624', 'tblTempVendorCDR_20' ) start [2025-04-18 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933624', 'tblTempVendorCDR_20' ) end [2025-04-18 06:01:18] Production.INFO: ProcessCDR(1,14933624,1,1,2) [2025-04-18 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933624', 'tblTempUsageDetail_20' ) start [2025-04-18 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933624', 'tblTempUsageDetail_20' ) end [2025-04-18 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:01:22] Production.INFO: ==9409== Releasing lock... [2025-04-18 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:02:05 [end_date_ymd] => 2025-04-18 06:02:05 [RateCDR] => 1 ) [2025-04-18 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 03:02:05' and `end` < '2025-04-18 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 06:02:18] Production.INFO: count ==85 [2025-04-18 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:02:05 - End Time 2025-04-18 06:02:05 [2025-04-18 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933629', 'tblTempUsageDetail_20' ) start [2025-04-18 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933629', 'tblTempUsageDetail_20' ) end [2025-04-18 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933629', 'tblTempVendorCDR_20' ) start [2025-04-18 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933629', 'tblTempVendorCDR_20' ) end [2025-04-18 06:02:18] Production.INFO: ProcessCDR(1,14933629,1,1,2) [2025-04-18 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933629', 'tblTempUsageDetail_20' ) start [2025-04-18 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933629', 'tblTempUsageDetail_20' ) end [2025-04-18 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:02:21] Production.INFO: ==9486== Releasing lock... [2025-04-18 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:03:05 [end_date_ymd] => 2025-04-18 06:03:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:03:05' and `end` < '2025-04-18 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-04-18 06:03:18] Production.INFO: count ==85 [2025-04-18 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:03:05 - End Time 2025-04-18 06:03:05 [2025-04-18 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933634', 'tblTempUsageDetail_20' ) start [2025-04-18 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933634', 'tblTempUsageDetail_20' ) end [2025-04-18 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933634', 'tblTempVendorCDR_20' ) start [2025-04-18 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933634', 'tblTempVendorCDR_20' ) end [2025-04-18 06:03:18] Production.INFO: ProcessCDR(1,14933634,1,1,2) [2025-04-18 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933634', 'tblTempUsageDetail_20' ) start [2025-04-18 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933634', 'tblTempUsageDetail_20' ) end [2025-04-18 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:03:21] Production.INFO: ==9558== Releasing lock... [2025-04-18 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:04:05 [end_date_ymd] => 2025-04-18 06:04:05 [RateCDR] => 1 ) [2025-04-18 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 03:04:05' and `end` < '2025-04-18 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 06:04:18] Production.INFO: count ==85 [2025-04-18 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:04:05 - End Time 2025-04-18 06:04:05 [2025-04-18 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933639', 'tblTempUsageDetail_20' ) start [2025-04-18 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933639', 'tblTempUsageDetail_20' ) end [2025-04-18 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933639', 'tblTempVendorCDR_20' ) start [2025-04-18 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933639', 'tblTempVendorCDR_20' ) end [2025-04-18 06:04:18] Production.INFO: ProcessCDR(1,14933639,1,1,2) [2025-04-18 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933639', 'tblTempUsageDetail_20' ) start [2025-04-18 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933639', 'tblTempUsageDetail_20' ) end [2025-04-18 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:04:21] Production.INFO: ==9629== Releasing lock... [2025-04-18 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:05:05 [end_date_ymd] => 2025-04-18 06:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:05:05' and `end` < '2025-04-18 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-04-18 06:05:18] Production.INFO: count ==85 [2025-04-18 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:05:05 - End Time 2025-04-18 06:05:05 [2025-04-18 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933644', 'tblTempUsageDetail_20' ) start [2025-04-18 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933644', 'tblTempUsageDetail_20' ) end [2025-04-18 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933644', 'tblTempVendorCDR_20' ) start [2025-04-18 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933644', 'tblTempVendorCDR_20' ) end [2025-04-18 06:05:18] Production.INFO: ProcessCDR(1,14933644,1,1,2) [2025-04-18 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933644', 'tblTempUsageDetail_20' ) start [2025-04-18 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933644', 'tblTempUsageDetail_20' ) end [2025-04-18 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:05:21] Production.INFO: ==9701== Releasing lock... [2025-04-18 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:06:06 [end_date_ymd] => 2025-04-18 06:06:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:06:06' and `end` < '2025-04-18 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-04-18 06:06:19] Production.INFO: count ==85 [2025-04-18 06:06:19] Production.ERROR: pbx CDR StartTime 2025-04-18 03:06:06 - End Time 2025-04-18 06:06:06 [2025-04-18 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933649', 'tblTempUsageDetail_20' ) start [2025-04-18 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933649', 'tblTempUsageDetail_20' ) end [2025-04-18 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933649', 'tblTempVendorCDR_20' ) start [2025-04-18 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933649', 'tblTempVendorCDR_20' ) end [2025-04-18 06:06:19] Production.INFO: ProcessCDR(1,14933649,1,1,2) [2025-04-18 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933649', 'tblTempUsageDetail_20' ) start [2025-04-18 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933649', 'tblTempUsageDetail_20' ) end [2025-04-18 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:06:22] Production.INFO: ==9777== Releasing lock... [2025-04-18 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:07:05 [end_date_ymd] => 2025-04-18 06:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:07:05' and `end` < '2025-04-18 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-04-18 06:07:18] Production.INFO: count ==87 [2025-04-18 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:07:05 - End Time 2025-04-18 06:07:05 [2025-04-18 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933654', 'tblTempUsageDetail_20' ) start [2025-04-18 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933654', 'tblTempUsageDetail_20' ) end [2025-04-18 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933654', 'tblTempVendorCDR_20' ) start [2025-04-18 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933654', 'tblTempVendorCDR_20' ) end [2025-04-18 06:07:18] Production.INFO: ProcessCDR(1,14933654,1,1,2) [2025-04-18 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933654', 'tblTempUsageDetail_20' ) start [2025-04-18 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933654', 'tblTempUsageDetail_20' ) end [2025-04-18 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:07:21] Production.INFO: ==9897== Releasing lock... [2025-04-18 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:08:05 [end_date_ymd] => 2025-04-18 06:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:08:05' and `end` < '2025-04-18 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-04-18 06:08:18] Production.INFO: count ==89 [2025-04-18 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:08:05 - End Time 2025-04-18 06:08:05 [2025-04-18 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933659', 'tblTempUsageDetail_20' ) start [2025-04-18 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933659', 'tblTempUsageDetail_20' ) end [2025-04-18 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933659', 'tblTempVendorCDR_20' ) start [2025-04-18 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933659', 'tblTempVendorCDR_20' ) end [2025-04-18 06:08:18] Production.INFO: ProcessCDR(1,14933659,1,1,2) [2025-04-18 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933659', 'tblTempUsageDetail_20' ) start [2025-04-18 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933659', 'tblTempUsageDetail_20' ) end [2025-04-18 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:08:21] Production.INFO: ==9973== Releasing lock... [2025-04-18 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:09:05 [end_date_ymd] => 2025-04-18 06:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:09:05' and `end` < '2025-04-18 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-04-18 06:09:17] Production.INFO: count ==90 [2025-04-18 06:09:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:09:05 - End Time 2025-04-18 06:09:05 [2025-04-18 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933664', 'tblTempUsageDetail_20' ) start [2025-04-18 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933664', 'tblTempUsageDetail_20' ) end [2025-04-18 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933664', 'tblTempVendorCDR_20' ) start [2025-04-18 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933664', 'tblTempVendorCDR_20' ) end [2025-04-18 06:09:17] Production.INFO: ProcessCDR(1,14933664,1,1,2) [2025-04-18 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933664', 'tblTempUsageDetail_20' ) start [2025-04-18 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933664', 'tblTempUsageDetail_20' ) end [2025-04-18 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:09:21] Production.INFO: ==10047== Releasing lock... [2025-04-18 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:10:06 [end_date_ymd] => 2025-04-18 06:10:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:10:06' and `end` < '2025-04-18 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-04-18 06:10:19] Production.INFO: count ==82 [2025-04-18 06:10:19] Production.ERROR: pbx CDR StartTime 2025-04-18 03:10:06 - End Time 2025-04-18 06:10:06 [2025-04-18 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933669', 'tblTempUsageDetail_20' ) start [2025-04-18 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933669', 'tblTempUsageDetail_20' ) end [2025-04-18 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933669', 'tblTempVendorCDR_20' ) start [2025-04-18 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933669', 'tblTempVendorCDR_20' ) end [2025-04-18 06:10:19] Production.INFO: ProcessCDR(1,14933669,1,1,2) [2025-04-18 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933669', 'tblTempUsageDetail_20' ) start [2025-04-18 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933669', 'tblTempUsageDetail_20' ) end [2025-04-18 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:10:22] Production.INFO: ==10119== Releasing lock... [2025-04-18 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:11:05 [end_date_ymd] => 2025-04-18 06:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:11:05' and `end` < '2025-04-18 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-04-18 06:11:17] Production.INFO: count ==81 [2025-04-18 06:11:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:11:05 - End Time 2025-04-18 06:11:05 [2025-04-18 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933675', 'tblTempUsageDetail_20' ) start [2025-04-18 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933675', 'tblTempUsageDetail_20' ) end [2025-04-18 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933675', 'tblTempVendorCDR_20' ) start [2025-04-18 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933675', 'tblTempVendorCDR_20' ) end [2025-04-18 06:11:17] Production.INFO: ProcessCDR(1,14933675,1,1,2) [2025-04-18 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933675', 'tblTempUsageDetail_20' ) start [2025-04-18 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933675', 'tblTempUsageDetail_20' ) end [2025-04-18 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:11:21] Production.INFO: ==10193== Releasing lock... [2025-04-18 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:12:05 [end_date_ymd] => 2025-04-18 06:12:05 [RateCDR] => 1 ) [2025-04-18 06:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 03:12:05' and `end` < '2025-04-18 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-04-18 06:12:18] Production.INFO: count ==81 [2025-04-18 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:12:05 - End Time 2025-04-18 06:12:05 [2025-04-18 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933680', 'tblTempUsageDetail_20' ) start [2025-04-18 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933680', 'tblTempUsageDetail_20' ) end [2025-04-18 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933680', 'tblTempVendorCDR_20' ) start [2025-04-18 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933680', 'tblTempVendorCDR_20' ) end [2025-04-18 06:12:18] Production.INFO: ProcessCDR(1,14933680,1,1,2) [2025-04-18 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933680', 'tblTempUsageDetail_20' ) start [2025-04-18 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933680', 'tblTempUsageDetail_20' ) end [2025-04-18 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:12:21] Production.INFO: ==10268== Releasing lock... [2025-04-18 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:13:05 [end_date_ymd] => 2025-04-18 06:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:13:05' and `end` < '2025-04-18 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-04-18 06:13:17] Production.INFO: count ==80 [2025-04-18 06:13:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:13:05 - End Time 2025-04-18 06:13:05 [2025-04-18 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933685', 'tblTempUsageDetail_20' ) start [2025-04-18 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933685', 'tblTempUsageDetail_20' ) end [2025-04-18 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933685', 'tblTempVendorCDR_20' ) start [2025-04-18 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933685', 'tblTempVendorCDR_20' ) end [2025-04-18 06:13:17] Production.INFO: ProcessCDR(1,14933685,1,1,2) [2025-04-18 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933685', 'tblTempUsageDetail_20' ) start [2025-04-18 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933685', 'tblTempUsageDetail_20' ) end [2025-04-18 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:13:21] Production.INFO: ==10344== Releasing lock... [2025-04-18 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:14:05 [end_date_ymd] => 2025-04-18 06:14:05 [RateCDR] => 1 ) [2025-04-18 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 03:14:05' and `end` < '2025-04-18 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 06:14:18] Production.INFO: count ==80 [2025-04-18 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:14:05 - End Time 2025-04-18 06:14:05 [2025-04-18 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933690', 'tblTempUsageDetail_20' ) start [2025-04-18 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933690', 'tblTempUsageDetail_20' ) end [2025-04-18 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933690', 'tblTempVendorCDR_20' ) start [2025-04-18 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933690', 'tblTempVendorCDR_20' ) end [2025-04-18 06:14:18] Production.INFO: ProcessCDR(1,14933690,1,1,2) [2025-04-18 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933690', 'tblTempUsageDetail_20' ) start [2025-04-18 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933690', 'tblTempUsageDetail_20' ) end [2025-04-18 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:14:21] Production.INFO: ==10424== Releasing lock... [2025-04-18 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:15:05 [end_date_ymd] => 2025-04-18 06:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:15:05' and `end` < '2025-04-18 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-04-18 06:15:17] Production.INFO: count ==80 [2025-04-18 06:15:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:15:05 - End Time 2025-04-18 06:15:05 [2025-04-18 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933695', 'tblTempUsageDetail_20' ) start [2025-04-18 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933695', 'tblTempUsageDetail_20' ) end [2025-04-18 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933695', 'tblTempVendorCDR_20' ) start [2025-04-18 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933695', 'tblTempVendorCDR_20' ) end [2025-04-18 06:15:17] Production.INFO: ProcessCDR(1,14933695,1,1,2) [2025-04-18 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933695', 'tblTempUsageDetail_20' ) start [2025-04-18 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933695', 'tblTempUsageDetail_20' ) end [2025-04-18 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:15:21] Production.INFO: ==10493== Releasing lock... [2025-04-18 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:16:05 [end_date_ymd] => 2025-04-18 06:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:16:05' and `end` < '2025-04-18 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-04-18 06:16:18] Production.INFO: count ==79 [2025-04-18 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:16:05 - End Time 2025-04-18 06:16:05 [2025-04-18 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933700', 'tblTempUsageDetail_20' ) start [2025-04-18 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933700', 'tblTempUsageDetail_20' ) end [2025-04-18 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933700', 'tblTempVendorCDR_20' ) start [2025-04-18 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933700', 'tblTempVendorCDR_20' ) end [2025-04-18 06:16:18] Production.INFO: ProcessCDR(1,14933700,1,1,2) [2025-04-18 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933700', 'tblTempUsageDetail_20' ) start [2025-04-18 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933700', 'tblTempUsageDetail_20' ) end [2025-04-18 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:16:21] Production.INFO: ==10568== Releasing lock... [2025-04-18 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:17:04 [end_date_ymd] => 2025-04-18 06:17:04 [RateCDR] => 1 ) [2025-04-18 06: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-04-18 03:17:04' and `end` < '2025-04-18 06: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-04-18 06:17:17] Production.INFO: count ==73 [2025-04-18 06:17:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:17:04 - End Time 2025-04-18 06:17:04 [2025-04-18 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933705', 'tblTempUsageDetail_20' ) start [2025-04-18 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933705', 'tblTempUsageDetail_20' ) end [2025-04-18 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933705', 'tblTempVendorCDR_20' ) start [2025-04-18 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933705', 'tblTempVendorCDR_20' ) end [2025-04-18 06:17:17] Production.INFO: ProcessCDR(1,14933705,1,1,2) [2025-04-18 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933705', 'tblTempUsageDetail_20' ) start [2025-04-18 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933705', 'tblTempUsageDetail_20' ) end [2025-04-18 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:17:20] Production.INFO: ==10643== Releasing lock... [2025-04-18 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:18:05 [end_date_ymd] => 2025-04-18 06:18:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:18:05' and `end` < '2025-04-18 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-04-18 06:18:18] Production.INFO: count ==73 [2025-04-18 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:18:05 - End Time 2025-04-18 06:18:05 [2025-04-18 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933710', 'tblTempUsageDetail_20' ) start [2025-04-18 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933710', 'tblTempUsageDetail_20' ) end [2025-04-18 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933710', 'tblTempVendorCDR_20' ) start [2025-04-18 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933710', 'tblTempVendorCDR_20' ) end [2025-04-18 06:18:18] Production.INFO: ProcessCDR(1,14933710,1,1,2) [2025-04-18 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933710', 'tblTempUsageDetail_20' ) start [2025-04-18 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933710', 'tblTempUsageDetail_20' ) end [2025-04-18 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:18:21] Production.INFO: ==10714== Releasing lock... [2025-04-18 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:19:05 [end_date_ymd] => 2025-04-18 06:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:19:05' and `end` < '2025-04-18 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-04-18 06:19:18] Production.INFO: count ==73 [2025-04-18 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:19:05 - End Time 2025-04-18 06:19:05 [2025-04-18 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933715', 'tblTempUsageDetail_20' ) start [2025-04-18 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933715', 'tblTempUsageDetail_20' ) end [2025-04-18 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933715', 'tblTempVendorCDR_20' ) start [2025-04-18 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933715', 'tblTempVendorCDR_20' ) end [2025-04-18 06:19:18] Production.INFO: ProcessCDR(1,14933715,1,1,2) [2025-04-18 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933715', 'tblTempUsageDetail_20' ) start [2025-04-18 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933715', 'tblTempUsageDetail_20' ) end [2025-04-18 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:19:21] Production.INFO: ==10793== Releasing lock... [2025-04-18 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:20:06 [end_date_ymd] => 2025-04-18 06:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:20:06' and `end` < '2025-04-18 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-04-18 06:20:18] Production.INFO: count ==63 [2025-04-18 06:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 03:20:06 - End Time 2025-04-18 06:20:06 [2025-04-18 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933721', 'tblTempUsageDetail_20' ) start [2025-04-18 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933721', 'tblTempUsageDetail_20' ) end [2025-04-18 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933721', 'tblTempVendorCDR_20' ) start [2025-04-18 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933721', 'tblTempVendorCDR_20' ) end [2025-04-18 06:20:19] Production.INFO: ProcessCDR(1,14933721,1,1,2) [2025-04-18 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933721', 'tblTempUsageDetail_20' ) start [2025-04-18 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933721', 'tblTempUsageDetail_20' ) end [2025-04-18 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:20:22] Production.INFO: ==10865== Releasing lock... [2025-04-18 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:21:05 [end_date_ymd] => 2025-04-18 06:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:21:05' and `end` < '2025-04-18 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-04-18 06:21:18] Production.INFO: count ==61 [2025-04-18 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:21:05 - End Time 2025-04-18 06:21:05 [2025-04-18 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933726', 'tblTempUsageDetail_20' ) start [2025-04-18 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933726', 'tblTempUsageDetail_20' ) end [2025-04-18 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933726', 'tblTempVendorCDR_20' ) start [2025-04-18 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933726', 'tblTempVendorCDR_20' ) end [2025-04-18 06:21:18] Production.INFO: ProcessCDR(1,14933726,1,1,2) [2025-04-18 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933726', 'tblTempUsageDetail_20' ) start [2025-04-18 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933726', 'tblTempUsageDetail_20' ) end [2025-04-18 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:21:21] Production.INFO: ==10948== Releasing lock... [2025-04-18 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:22:05 [end_date_ymd] => 2025-04-18 06:22:05 [RateCDR] => 1 ) [2025-04-18 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 03:22:05' and `end` < '2025-04-18 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 06:22:18] Production.INFO: count ==60 [2025-04-18 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:22:05 - End Time 2025-04-18 06:22:05 [2025-04-18 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933731', 'tblTempUsageDetail_20' ) start [2025-04-18 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933731', 'tblTempUsageDetail_20' ) end [2025-04-18 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933731', 'tblTempVendorCDR_20' ) start [2025-04-18 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933731', 'tblTempVendorCDR_20' ) end [2025-04-18 06:22:18] Production.INFO: ProcessCDR(1,14933731,1,1,2) [2025-04-18 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933731', 'tblTempUsageDetail_20' ) start [2025-04-18 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933731', 'tblTempUsageDetail_20' ) end [2025-04-18 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:22:21] Production.INFO: ==11058== Releasing lock... [2025-04-18 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:23:06 [end_date_ymd] => 2025-04-18 06:23:06 [RateCDR] => 1 ) [2025-04-18 06: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-04-18 03:23:06' and `end` < '2025-04-18 06: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-04-18 06:23:18] Production.INFO: count ==59 [2025-04-18 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:23:06 - End Time 2025-04-18 06:23:06 [2025-04-18 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933736', 'tblTempUsageDetail_20' ) start [2025-04-18 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933736', 'tblTempUsageDetail_20' ) end [2025-04-18 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933736', 'tblTempVendorCDR_20' ) start [2025-04-18 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933736', 'tblTempVendorCDR_20' ) end [2025-04-18 06:23:18] Production.INFO: ProcessCDR(1,14933736,1,1,2) [2025-04-18 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933736', 'tblTempUsageDetail_20' ) start [2025-04-18 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933736', 'tblTempUsageDetail_20' ) end [2025-04-18 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:23:22] Production.INFO: ==11133== Releasing lock... [2025-04-18 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:24:05 [end_date_ymd] => 2025-04-18 06:24:05 [RateCDR] => 1 ) [2025-04-18 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 03:24:05' and `end` < '2025-04-18 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 06:24:18] Production.INFO: count ==58 [2025-04-18 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:24:05 - End Time 2025-04-18 06:24:05 [2025-04-18 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933741', 'tblTempUsageDetail_20' ) start [2025-04-18 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933741', 'tblTempUsageDetail_20' ) end [2025-04-18 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933741', 'tblTempVendorCDR_20' ) start [2025-04-18 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933741', 'tblTempVendorCDR_20' ) end [2025-04-18 06:24:18] Production.INFO: ProcessCDR(1,14933741,1,1,2) [2025-04-18 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933741', 'tblTempUsageDetail_20' ) start [2025-04-18 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933741', 'tblTempUsageDetail_20' ) end [2025-04-18 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:24:21] Production.INFO: ==11209== Releasing lock... [2025-04-18 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:25:05 [end_date_ymd] => 2025-04-18 06:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:25:05' and `end` < '2025-04-18 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-04-18 06:25:18] Production.INFO: count ==57 [2025-04-18 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:25:05 - End Time 2025-04-18 06:25:05 [2025-04-18 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933746', 'tblTempUsageDetail_20' ) start [2025-04-18 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933746', 'tblTempUsageDetail_20' ) end [2025-04-18 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933746', 'tblTempVendorCDR_20' ) start [2025-04-18 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933746', 'tblTempVendorCDR_20' ) end [2025-04-18 06:25:18] Production.INFO: ProcessCDR(1,14933746,1,1,2) [2025-04-18 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933746', 'tblTempUsageDetail_20' ) start [2025-04-18 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933746', 'tblTempUsageDetail_20' ) end [2025-04-18 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:25:21] Production.INFO: ==11281== Releasing lock... [2025-04-18 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:26:05 [end_date_ymd] => 2025-04-18 06:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:26:05' and `end` < '2025-04-18 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-04-18 06:26:17] Production.INFO: count ==55 [2025-04-18 06:26:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:26:05 - End Time 2025-04-18 06:26:05 [2025-04-18 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933751', 'tblTempUsageDetail_20' ) start [2025-04-18 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933751', 'tblTempUsageDetail_20' ) end [2025-04-18 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933751', 'tblTempVendorCDR_20' ) start [2025-04-18 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933751', 'tblTempVendorCDR_20' ) end [2025-04-18 06:26:17] Production.INFO: ProcessCDR(1,14933751,1,1,2) [2025-04-18 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933751', 'tblTempUsageDetail_20' ) start [2025-04-18 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933751', 'tblTempUsageDetail_20' ) end [2025-04-18 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:26:21] Production.INFO: ==11355== Releasing lock... [2025-04-18 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:27:05 [end_date_ymd] => 2025-04-18 06:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:27:05' and `end` < '2025-04-18 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-04-18 06:27:18] Production.INFO: count ==54 [2025-04-18 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:27:05 - End Time 2025-04-18 06:27:05 [2025-04-18 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933756', 'tblTempUsageDetail_20' ) start [2025-04-18 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933756', 'tblTempUsageDetail_20' ) end [2025-04-18 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933756', 'tblTempVendorCDR_20' ) start [2025-04-18 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933756', 'tblTempVendorCDR_20' ) end [2025-04-18 06:27:18] Production.INFO: ProcessCDR(1,14933756,1,1,2) [2025-04-18 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933756', 'tblTempUsageDetail_20' ) start [2025-04-18 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933756', 'tblTempUsageDetail_20' ) end [2025-04-18 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:27:22] Production.INFO: ==11431== Releasing lock... [2025-04-18 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:28:05 [end_date_ymd] => 2025-04-18 06:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:28:05' and `end` < '2025-04-18 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-04-18 06:28:18] Production.INFO: count ==56 [2025-04-18 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:28:05 - End Time 2025-04-18 06:28:05 [2025-04-18 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933761', 'tblTempUsageDetail_20' ) start [2025-04-18 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933761', 'tblTempUsageDetail_20' ) end [2025-04-18 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933761', 'tblTempVendorCDR_20' ) start [2025-04-18 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933761', 'tblTempVendorCDR_20' ) end [2025-04-18 06:28:18] Production.INFO: ProcessCDR(1,14933761,1,1,2) [2025-04-18 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933761', 'tblTempUsageDetail_20' ) start [2025-04-18 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933761', 'tblTempUsageDetail_20' ) end [2025-04-18 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:28:21] Production.INFO: ==11503== Releasing lock... [2025-04-18 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:29:05 [end_date_ymd] => 2025-04-18 06:29:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:29:05' and `end` < '2025-04-18 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-04-18 06:29:18] Production.INFO: count ==56 [2025-04-18 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:29:05 - End Time 2025-04-18 06:29:05 [2025-04-18 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933766', 'tblTempUsageDetail_20' ) start [2025-04-18 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933766', 'tblTempUsageDetail_20' ) end [2025-04-18 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933766', 'tblTempVendorCDR_20' ) start [2025-04-18 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933766', 'tblTempVendorCDR_20' ) end [2025-04-18 06:29:18] Production.INFO: ProcessCDR(1,14933766,1,1,2) [2025-04-18 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933766', 'tblTempUsageDetail_20' ) start [2025-04-18 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933766', 'tblTempUsageDetail_20' ) end [2025-04-18 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:29:21] Production.INFO: ==11579== Releasing lock... [2025-04-18 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:30:05 [end_date_ymd] => 2025-04-18 06:30:05 [RateCDR] => 1 ) [2025-04-18 06: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-04-18 03:30:05' and `end` < '2025-04-18 06: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-04-18 06:30:18] Production.INFO: count ==58 [2025-04-18 06:30:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:30:05 - End Time 2025-04-18 06:30:05 [2025-04-18 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933772', 'tblTempUsageDetail_20' ) start [2025-04-18 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933772', 'tblTempUsageDetail_20' ) end [2025-04-18 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933772', 'tblTempVendorCDR_20' ) start [2025-04-18 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933772', 'tblTempVendorCDR_20' ) end [2025-04-18 06:30:18] Production.INFO: ProcessCDR(1,14933772,1,1,2) [2025-04-18 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933772', 'tblTempUsageDetail_20' ) start [2025-04-18 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933772', 'tblTempUsageDetail_20' ) end [2025-04-18 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:30:22] Production.INFO: ==11660== Releasing lock... [2025-04-18 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:31:05 [end_date_ymd] => 2025-04-18 06:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:31:05' and `end` < '2025-04-18 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-04-18 06:31:18] Production.INFO: count ==58 [2025-04-18 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:31:05 - End Time 2025-04-18 06:31:05 [2025-04-18 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933777', 'tblTempUsageDetail_20' ) start [2025-04-18 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933777', 'tblTempUsageDetail_20' ) end [2025-04-18 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933777', 'tblTempVendorCDR_20' ) start [2025-04-18 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933777', 'tblTempVendorCDR_20' ) end [2025-04-18 06:31:18] Production.INFO: ProcessCDR(1,14933777,1,1,2) [2025-04-18 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933777', 'tblTempUsageDetail_20' ) start [2025-04-18 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933777', 'tblTempUsageDetail_20' ) end [2025-04-18 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:31:21] Production.INFO: ==11735== Releasing lock... [2025-04-18 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:32:05 [end_date_ymd] => 2025-04-18 06:32:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:32:05' and `end` < '2025-04-18 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-04-18 06:32:18] Production.INFO: count ==57 [2025-04-18 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:32:05 - End Time 2025-04-18 06:32:05 [2025-04-18 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933782', 'tblTempUsageDetail_20' ) start [2025-04-18 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933782', 'tblTempUsageDetail_20' ) end [2025-04-18 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933782', 'tblTempVendorCDR_20' ) start [2025-04-18 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933782', 'tblTempVendorCDR_20' ) end [2025-04-18 06:32:18] Production.INFO: ProcessCDR(1,14933782,1,1,2) [2025-04-18 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933782', 'tblTempUsageDetail_20' ) start [2025-04-18 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933782', 'tblTempUsageDetail_20' ) end [2025-04-18 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:32:21] Production.INFO: ==11808== Releasing lock... [2025-04-18 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:33:05 [end_date_ymd] => 2025-04-18 06:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:33:05' and `end` < '2025-04-18 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-04-18 06:33:17] Production.INFO: count ==57 [2025-04-18 06:33:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:33:05 - End Time 2025-04-18 06:33:05 [2025-04-18 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933787', 'tblTempUsageDetail_20' ) start [2025-04-18 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933787', 'tblTempUsageDetail_20' ) end [2025-04-18 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933787', 'tblTempVendorCDR_20' ) start [2025-04-18 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933787', 'tblTempVendorCDR_20' ) end [2025-04-18 06:33:17] Production.INFO: ProcessCDR(1,14933787,1,1,2) [2025-04-18 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933787', 'tblTempUsageDetail_20' ) start [2025-04-18 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933787', 'tblTempUsageDetail_20' ) end [2025-04-18 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:33:21] Production.INFO: ==11881== Releasing lock... [2025-04-18 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:34:05 [end_date_ymd] => 2025-04-18 06:34:05 [RateCDR] => 1 ) [2025-04-18 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 03:34:05' and `end` < '2025-04-18 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 06:34:18] Production.INFO: count ==57 [2025-04-18 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:34:05 - End Time 2025-04-18 06:34:05 [2025-04-18 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933792', 'tblTempUsageDetail_20' ) start [2025-04-18 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933792', 'tblTempUsageDetail_20' ) end [2025-04-18 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933792', 'tblTempVendorCDR_20' ) start [2025-04-18 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933792', 'tblTempVendorCDR_20' ) end [2025-04-18 06:34:18] Production.INFO: ProcessCDR(1,14933792,1,1,2) [2025-04-18 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933792', 'tblTempUsageDetail_20' ) start [2025-04-18 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933792', 'tblTempUsageDetail_20' ) end [2025-04-18 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:34:21] Production.INFO: ==11955== Releasing lock... [2025-04-18 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:35:05 [end_date_ymd] => 2025-04-18 06:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:35:05' and `end` < '2025-04-18 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-04-18 06:35:18] Production.INFO: count ==56 [2025-04-18 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:35:05 - End Time 2025-04-18 06:35:05 [2025-04-18 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933797', 'tblTempUsageDetail_20' ) start [2025-04-18 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933797', 'tblTempUsageDetail_20' ) end [2025-04-18 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933797', 'tblTempVendorCDR_20' ) start [2025-04-18 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933797', 'tblTempVendorCDR_20' ) end [2025-04-18 06:35:18] Production.INFO: ProcessCDR(1,14933797,1,1,2) [2025-04-18 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933797', 'tblTempUsageDetail_20' ) start [2025-04-18 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933797', 'tblTempUsageDetail_20' ) end [2025-04-18 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:35:21] Production.INFO: ==12032== Releasing lock... [2025-04-18 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:36:05 [end_date_ymd] => 2025-04-18 06:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:36:05' and `end` < '2025-04-18 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-04-18 06:36:18] Production.INFO: count ==56 [2025-04-18 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:36:05 - End Time 2025-04-18 06:36:05 [2025-04-18 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933802', 'tblTempUsageDetail_20' ) start [2025-04-18 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933802', 'tblTempUsageDetail_20' ) end [2025-04-18 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933802', 'tblTempVendorCDR_20' ) start [2025-04-18 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933802', 'tblTempVendorCDR_20' ) end [2025-04-18 06:36:18] Production.INFO: ProcessCDR(1,14933802,1,1,2) [2025-04-18 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933802', 'tblTempUsageDetail_20' ) start [2025-04-18 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933802', 'tblTempUsageDetail_20' ) end [2025-04-18 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:36:21] Production.INFO: ==12107== Releasing lock... [2025-04-18 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:37:04 [end_date_ymd] => 2025-04-18 06:37:04 [RateCDR] => 1 ) [2025-04-18 06: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-04-18 03:37:04' and `end` < '2025-04-18 06: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-04-18 06:37:17] Production.INFO: count ==55 [2025-04-18 06:37:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:37:04 - End Time 2025-04-18 06:37:04 [2025-04-18 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933807', 'tblTempUsageDetail_20' ) start [2025-04-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933807', 'tblTempUsageDetail_20' ) end [2025-04-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933807', 'tblTempVendorCDR_20' ) start [2025-04-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933807', 'tblTempVendorCDR_20' ) end [2025-04-18 06:37:17] Production.INFO: ProcessCDR(1,14933807,1,1,2) [2025-04-18 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933807', 'tblTempUsageDetail_20' ) start [2025-04-18 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933807', 'tblTempUsageDetail_20' ) end [2025-04-18 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:37:20] Production.INFO: ==12179== Releasing lock... [2025-04-18 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:38:05 [end_date_ymd] => 2025-04-18 06:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:38:05' and `end` < '2025-04-18 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-04-18 06:38:18] Production.INFO: count ==55 [2025-04-18 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:38:05 - End Time 2025-04-18 06:38:05 [2025-04-18 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933812', 'tblTempUsageDetail_20' ) start [2025-04-18 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933812', 'tblTempUsageDetail_20' ) end [2025-04-18 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933812', 'tblTempVendorCDR_20' ) start [2025-04-18 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933812', 'tblTempVendorCDR_20' ) end [2025-04-18 06:38:18] Production.INFO: ProcessCDR(1,14933812,1,1,2) [2025-04-18 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933812', 'tblTempUsageDetail_20' ) start [2025-04-18 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933812', 'tblTempUsageDetail_20' ) end [2025-04-18 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:38:21] Production.INFO: ==12289== Releasing lock... [2025-04-18 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:39:05 [end_date_ymd] => 2025-04-18 06:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:39:05' and `end` < '2025-04-18 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-04-18 06:39:18] Production.INFO: count ==55 [2025-04-18 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:39:05 - End Time 2025-04-18 06:39:05 [2025-04-18 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933817', 'tblTempUsageDetail_20' ) start [2025-04-18 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933817', 'tblTempUsageDetail_20' ) end [2025-04-18 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933817', 'tblTempVendorCDR_20' ) start [2025-04-18 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933817', 'tblTempVendorCDR_20' ) end [2025-04-18 06:39:18] Production.INFO: ProcessCDR(1,14933817,1,1,2) [2025-04-18 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933817', 'tblTempUsageDetail_20' ) start [2025-04-18 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933817', 'tblTempUsageDetail_20' ) end [2025-04-18 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:39:21] Production.INFO: ==12363== Releasing lock... [2025-04-18 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:40:06 [end_date_ymd] => 2025-04-18 06:40:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:40:06' and `end` < '2025-04-18 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-04-18 06:40:18] Production.INFO: count ==47 [2025-04-18 06:40:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:40:06 - End Time 2025-04-18 06:40:06 [2025-04-18 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933822', 'tblTempUsageDetail_20' ) start [2025-04-18 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933822', 'tblTempUsageDetail_20' ) end [2025-04-18 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933822', 'tblTempVendorCDR_20' ) start [2025-04-18 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933822', 'tblTempVendorCDR_20' ) end [2025-04-18 06:40:18] Production.INFO: ProcessCDR(1,14933822,1,1,2) [2025-04-18 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933822', 'tblTempUsageDetail_20' ) start [2025-04-18 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933822', 'tblTempUsageDetail_20' ) end [2025-04-18 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:40:22] Production.INFO: ==12440== Releasing lock... [2025-04-18 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:40:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:41:06 [end_date_ymd] => 2025-04-18 06:41:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:41:06' and `end` < '2025-04-18 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-04-18 06:41:18] Production.INFO: count ==47 [2025-04-18 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:41:06 - End Time 2025-04-18 06:41:06 [2025-04-18 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933828', 'tblTempUsageDetail_20' ) start [2025-04-18 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933828', 'tblTempUsageDetail_20' ) end [2025-04-18 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933828', 'tblTempVendorCDR_20' ) start [2025-04-18 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933828', 'tblTempVendorCDR_20' ) end [2025-04-18 06:41:18] Production.INFO: ProcessCDR(1,14933828,1,1,2) [2025-04-18 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933828', 'tblTempUsageDetail_20' ) start [2025-04-18 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933828', 'tblTempUsageDetail_20' ) end [2025-04-18 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:41:22] Production.INFO: ==12520== Releasing lock... [2025-04-18 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:41:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:42:05 [end_date_ymd] => 2025-04-18 06:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:42:05' and `end` < '2025-04-18 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-04-18 06:42:17] Production.INFO: count ==46 [2025-04-18 06:42:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:42:05 - End Time 2025-04-18 06:42:05 [2025-04-18 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933833', 'tblTempUsageDetail_20' ) start [2025-04-18 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933833', 'tblTempUsageDetail_20' ) end [2025-04-18 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933833', 'tblTempVendorCDR_20' ) start [2025-04-18 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933833', 'tblTempVendorCDR_20' ) end [2025-04-18 06:42:17] Production.INFO: ProcessCDR(1,14933833,1,1,2) [2025-04-18 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933833', 'tblTempUsageDetail_20' ) start [2025-04-18 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933833', 'tblTempUsageDetail_20' ) end [2025-04-18 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:42:21] Production.INFO: ==12592== Releasing lock... [2025-04-18 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:42:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:43:05 [end_date_ymd] => 2025-04-18 06:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:43:05' and `end` < '2025-04-18 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-04-18 06:43:17] Production.INFO: count ==46 [2025-04-18 06:43:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:43:05 - End Time 2025-04-18 06:43:05 [2025-04-18 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933838', 'tblTempUsageDetail_20' ) start [2025-04-18 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933838', 'tblTempUsageDetail_20' ) end [2025-04-18 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933838', 'tblTempVendorCDR_20' ) start [2025-04-18 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933838', 'tblTempVendorCDR_20' ) end [2025-04-18 06:43:17] Production.INFO: ProcessCDR(1,14933838,1,1,2) [2025-04-18 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933838', 'tblTempUsageDetail_20' ) start [2025-04-18 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933838', 'tblTempUsageDetail_20' ) end [2025-04-18 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:43:21] Production.INFO: ==12664== Releasing lock... [2025-04-18 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:43:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:44:05 [end_date_ymd] => 2025-04-18 06:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:44:05' and `end` < '2025-04-18 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-04-18 06:44:18] Production.INFO: count ==46 [2025-04-18 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:44:05 - End Time 2025-04-18 06:44:05 [2025-04-18 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933843', 'tblTempUsageDetail_20' ) start [2025-04-18 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933843', 'tblTempUsageDetail_20' ) end [2025-04-18 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933843', 'tblTempVendorCDR_20' ) start [2025-04-18 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933843', 'tblTempVendorCDR_20' ) end [2025-04-18 06:44:18] Production.INFO: ProcessCDR(1,14933843,1,1,2) [2025-04-18 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933843', 'tblTempUsageDetail_20' ) start [2025-04-18 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933843', 'tblTempUsageDetail_20' ) end [2025-04-18 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:44:21] Production.INFO: ==12736== Releasing lock... [2025-04-18 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:45:05 [end_date_ymd] => 2025-04-18 06:45:05 [RateCDR] => 1 ) [2025-04-18 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 03:45:05' and `end` < '2025-04-18 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 06:45:18] Production.INFO: count ==46 [2025-04-18 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:45:05 - End Time 2025-04-18 06:45:05 [2025-04-18 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933848', 'tblTempUsageDetail_20' ) start [2025-04-18 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933848', 'tblTempUsageDetail_20' ) end [2025-04-18 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933848', 'tblTempVendorCDR_20' ) start [2025-04-18 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933848', 'tblTempVendorCDR_20' ) end [2025-04-18 06:45:18] Production.INFO: ProcessCDR(1,14933848,1,1,2) [2025-04-18 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933848', 'tblTempUsageDetail_20' ) start [2025-04-18 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933848', 'tblTempUsageDetail_20' ) end [2025-04-18 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:45:21] Production.INFO: ==12812== Releasing lock... [2025-04-18 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:46:05 [end_date_ymd] => 2025-04-18 06:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:46:05' and `end` < '2025-04-18 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-04-18 06:46:18] Production.INFO: count ==44 [2025-04-18 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:46:05 - End Time 2025-04-18 06:46:05 [2025-04-18 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933853', 'tblTempUsageDetail_20' ) start [2025-04-18 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933853', 'tblTempUsageDetail_20' ) end [2025-04-18 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933853', 'tblTempVendorCDR_20' ) start [2025-04-18 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933853', 'tblTempVendorCDR_20' ) end [2025-04-18 06:46:18] Production.INFO: ProcessCDR(1,14933853,1,1,2) [2025-04-18 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933853', 'tblTempUsageDetail_20' ) start [2025-04-18 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933853', 'tblTempUsageDetail_20' ) end [2025-04-18 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:46:21] Production.INFO: ==12886== Releasing lock... [2025-04-18 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:47:05 [end_date_ymd] => 2025-04-18 06:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:47:05' and `end` < '2025-04-18 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-04-18 06:47:18] Production.INFO: count ==44 [2025-04-18 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:47:05 - End Time 2025-04-18 06:47:05 [2025-04-18 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933858', 'tblTempUsageDetail_20' ) start [2025-04-18 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933858', 'tblTempUsageDetail_20' ) end [2025-04-18 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933858', 'tblTempVendorCDR_20' ) start [2025-04-18 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933858', 'tblTempVendorCDR_20' ) end [2025-04-18 06:47:18] Production.INFO: ProcessCDR(1,14933858,1,1,2) [2025-04-18 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933858', 'tblTempUsageDetail_20' ) start [2025-04-18 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933858', 'tblTempUsageDetail_20' ) end [2025-04-18 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:47:21] Production.INFO: ==12962== Releasing lock... [2025-04-18 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:47:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:48:05 [end_date_ymd] => 2025-04-18 06:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:48:05' and `end` < '2025-04-18 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-04-18 06:48:18] Production.INFO: count ==44 [2025-04-18 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:48:05 - End Time 2025-04-18 06:48:05 [2025-04-18 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933863', 'tblTempUsageDetail_20' ) start [2025-04-18 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933863', 'tblTempUsageDetail_20' ) end [2025-04-18 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933863', 'tblTempVendorCDR_20' ) start [2025-04-18 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933863', 'tblTempVendorCDR_20' ) end [2025-04-18 06:48:18] Production.INFO: ProcessCDR(1,14933863,1,1,2) [2025-04-18 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933863', 'tblTempUsageDetail_20' ) start [2025-04-18 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933863', 'tblTempUsageDetail_20' ) end [2025-04-18 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:48:21] Production.INFO: ==13039== Releasing lock... [2025-04-18 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:49:05 [end_date_ymd] => 2025-04-18 06:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:49:05' and `end` < '2025-04-18 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-04-18 06:49:18] Production.INFO: count ==44 [2025-04-18 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:49:05 - End Time 2025-04-18 06:49:05 [2025-04-18 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933868', 'tblTempUsageDetail_20' ) start [2025-04-18 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933868', 'tblTempUsageDetail_20' ) end [2025-04-18 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933868', 'tblTempVendorCDR_20' ) start [2025-04-18 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933868', 'tblTempVendorCDR_20' ) end [2025-04-18 06:49:18] Production.INFO: ProcessCDR(1,14933868,1,1,2) [2025-04-18 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933868', 'tblTempUsageDetail_20' ) start [2025-04-18 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933868', 'tblTempUsageDetail_20' ) end [2025-04-18 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:49:21] Production.INFO: ==13111== Releasing lock... [2025-04-18 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:49:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:50:06 [end_date_ymd] => 2025-04-18 06:50:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:50:06' and `end` < '2025-04-18 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-04-18 06:50:19] Production.INFO: count ==44 [2025-04-18 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 03:50:06 - End Time 2025-04-18 06:50:06 [2025-04-18 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933874', 'tblTempUsageDetail_20' ) start [2025-04-18 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933874', 'tblTempUsageDetail_20' ) end [2025-04-18 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933874', 'tblTempVendorCDR_20' ) start [2025-04-18 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933874', 'tblTempVendorCDR_20' ) end [2025-04-18 06:50:19] Production.INFO: ProcessCDR(1,14933874,1,1,2) [2025-04-18 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933874', 'tblTempUsageDetail_20' ) start [2025-04-18 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933874', 'tblTempUsageDetail_20' ) end [2025-04-18 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:50:22] Production.INFO: ==13184== Releasing lock... [2025-04-18 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:50:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:51:05 [end_date_ymd] => 2025-04-18 06:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:51:05' and `end` < '2025-04-18 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-04-18 06:51:17] Production.INFO: count ==44 [2025-04-18 06:51:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:51:05 - End Time 2025-04-18 06:51:05 [2025-04-18 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933879', 'tblTempUsageDetail_20' ) start [2025-04-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933879', 'tblTempUsageDetail_20' ) end [2025-04-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933879', 'tblTempVendorCDR_20' ) start [2025-04-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933879', 'tblTempVendorCDR_20' ) end [2025-04-18 06:51:17] Production.INFO: ProcessCDR(1,14933879,1,1,2) [2025-04-18 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933879', 'tblTempUsageDetail_20' ) start [2025-04-18 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933879', 'tblTempUsageDetail_20' ) end [2025-04-18 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:51:21] Production.INFO: ==13263== Releasing lock... [2025-04-18 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:51:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:52:06 [end_date_ymd] => 2025-04-18 06:52:06 [RateCDR] => 1 ) [2025-04-18 06: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-04-18 03:52:06' and `end` < '2025-04-18 06: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-04-18 06:52:18] Production.INFO: count ==43 [2025-04-18 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:52:06 - End Time 2025-04-18 06:52:06 [2025-04-18 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933884', 'tblTempUsageDetail_20' ) start [2025-04-18 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933884', 'tblTempUsageDetail_20' ) end [2025-04-18 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933884', 'tblTempVendorCDR_20' ) start [2025-04-18 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933884', 'tblTempVendorCDR_20' ) end [2025-04-18 06:52:18] Production.INFO: ProcessCDR(1,14933884,1,1,2) [2025-04-18 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933884', 'tblTempUsageDetail_20' ) start [2025-04-18 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933884', 'tblTempUsageDetail_20' ) end [2025-04-18 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:52:21] Production.INFO: ==13336== Releasing lock... [2025-04-18 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:52:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:53:05 [end_date_ymd] => 2025-04-18 06:53:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:53:05' and `end` < '2025-04-18 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-04-18 06:53:17] Production.INFO: count ==43 [2025-04-18 06:53:17] Production.ERROR: pbx CDR StartTime 2025-04-18 03:53:05 - End Time 2025-04-18 06:53:05 [2025-04-18 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933889', 'tblTempUsageDetail_20' ) start [2025-04-18 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933889', 'tblTempUsageDetail_20' ) end [2025-04-18 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933889', 'tblTempVendorCDR_20' ) start [2025-04-18 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933889', 'tblTempVendorCDR_20' ) end [2025-04-18 06:53:17] Production.INFO: ProcessCDR(1,14933889,1,1,2) [2025-04-18 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933889', 'tblTempUsageDetail_20' ) start [2025-04-18 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933889', 'tblTempUsageDetail_20' ) end [2025-04-18 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:53:21] Production.INFO: ==13448== Releasing lock... [2025-04-18 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:54:05 [end_date_ymd] => 2025-04-18 06:54:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:54:05' and `end` < '2025-04-18 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-04-18 06:54:18] Production.INFO: count ==43 [2025-04-18 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:54:05 - End Time 2025-04-18 06:54:05 [2025-04-18 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933894', 'tblTempUsageDetail_20' ) start [2025-04-18 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933894', 'tblTempUsageDetail_20' ) end [2025-04-18 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933894', 'tblTempVendorCDR_20' ) start [2025-04-18 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933894', 'tblTempVendorCDR_20' ) end [2025-04-18 06:54:18] Production.INFO: ProcessCDR(1,14933894,1,1,2) [2025-04-18 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933894', 'tblTempUsageDetail_20' ) start [2025-04-18 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933894', 'tblTempUsageDetail_20' ) end [2025-04-18 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:54:21] Production.INFO: ==13520== Releasing lock... [2025-04-18 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:55:05 [end_date_ymd] => 2025-04-18 06:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:55:05' and `end` < '2025-04-18 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-04-18 06:55:18] Production.INFO: count ==42 [2025-04-18 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:55:05 - End Time 2025-04-18 06:55:05 [2025-04-18 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933899', 'tblTempUsageDetail_20' ) start [2025-04-18 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933899', 'tblTempUsageDetail_20' ) end [2025-04-18 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933899', 'tblTempVendorCDR_20' ) start [2025-04-18 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933899', 'tblTempVendorCDR_20' ) end [2025-04-18 06:55:18] Production.INFO: ProcessCDR(1,14933899,1,1,2) [2025-04-18 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933899', 'tblTempUsageDetail_20' ) start [2025-04-18 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933899', 'tblTempUsageDetail_20' ) end [2025-04-18 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:55:21] Production.INFO: ==13592== Releasing lock... [2025-04-18 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:55:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:56:05 [end_date_ymd] => 2025-04-18 06:56:05 [RateCDR] => 1 ) [2025-04-18 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 03:56:05' and `end` < '2025-04-18 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-04-18 06:56:18] Production.INFO: count ==41 [2025-04-18 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:56:05 - End Time 2025-04-18 06:56:05 [2025-04-18 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933904', 'tblTempUsageDetail_20' ) start [2025-04-18 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933904', 'tblTempUsageDetail_20' ) end [2025-04-18 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933904', 'tblTempVendorCDR_20' ) start [2025-04-18 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933904', 'tblTempVendorCDR_20' ) end [2025-04-18 06:56:18] Production.INFO: ProcessCDR(1,14933904,1,1,2) [2025-04-18 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933904', 'tblTempUsageDetail_20' ) start [2025-04-18 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933904', 'tblTempUsageDetail_20' ) end [2025-04-18 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:56:21] Production.INFO: ==13665== Releasing lock... [2025-04-18 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:57:05 [end_date_ymd] => 2025-04-18 06:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:57:05' and `end` < '2025-04-18 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-04-18 06:57:18] Production.INFO: count ==41 [2025-04-18 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:57:05 - End Time 2025-04-18 06:57:05 [2025-04-18 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933909', 'tblTempUsageDetail_20' ) start [2025-04-18 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933909', 'tblTempUsageDetail_20' ) end [2025-04-18 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933909', 'tblTempVendorCDR_20' ) start [2025-04-18 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933909', 'tblTempVendorCDR_20' ) end [2025-04-18 06:57:18] Production.INFO: ProcessCDR(1,14933909,1,1,2) [2025-04-18 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933909', 'tblTempUsageDetail_20' ) start [2025-04-18 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933909', 'tblTempUsageDetail_20' ) end [2025-04-18 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:57:21] Production.INFO: ==13743== Releasing lock... [2025-04-18 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:57:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:58:05 [end_date_ymd] => 2025-04-18 06:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:58:05' and `end` < '2025-04-18 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-04-18 06:58:18] Production.INFO: count ==40 [2025-04-18 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:58:05 - End Time 2025-04-18 06:58:05 [2025-04-18 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933914', 'tblTempUsageDetail_20' ) start [2025-04-18 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933914', 'tblTempUsageDetail_20' ) end [2025-04-18 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933914', 'tblTempVendorCDR_20' ) start [2025-04-18 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933914', 'tblTempVendorCDR_20' ) end [2025-04-18 06:58:18] Production.INFO: ProcessCDR(1,14933914,1,1,2) [2025-04-18 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933914', 'tblTempUsageDetail_20' ) start [2025-04-18 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933914', 'tblTempUsageDetail_20' ) end [2025-04-18 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:58:21] Production.INFO: ==13819== Releasing lock... [2025-04-18 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:58:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 03:59:05 [end_date_ymd] => 2025-04-18 06:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 03:59:05' and `end` < '2025-04-18 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-04-18 06:59:18] Production.INFO: count ==42 [2025-04-18 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-18 03:59:05 - End Time 2025-04-18 06:59:05 [2025-04-18 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933919', 'tblTempUsageDetail_20' ) start [2025-04-18 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933919', 'tblTempUsageDetail_20' ) end [2025-04-18 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933919', 'tblTempVendorCDR_20' ) start [2025-04-18 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933919', 'tblTempVendorCDR_20' ) end [2025-04-18 06:59:18] Production.INFO: ProcessCDR(1,14933919,1,1,2) [2025-04-18 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933919', 'tblTempUsageDetail_20' ) start [2025-04-18 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933919', 'tblTempUsageDetail_20' ) end [2025-04-18 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 06:59:21] Production.INFO: ==13893== Releasing lock... [2025-04-18 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:00:06 [end_date_ymd] => 2025-04-18 07:00:06 [RateCDR] => 1 ) [2025-04-18 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:00:06' and `end` < '2025-04-18 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-04-18 07:00:18] Production.INFO: count ==42 [2025-04-18 07:00:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:00:06 - End Time 2025-04-18 07:00:06 [2025-04-18 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933925', 'tblTempUsageDetail_20' ) start [2025-04-18 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933925', 'tblTempUsageDetail_20' ) end [2025-04-18 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933925', 'tblTempVendorCDR_20' ) start [2025-04-18 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933925', 'tblTempVendorCDR_20' ) end [2025-04-18 07:00:18] Production.INFO: ProcessCDR(1,14933925,1,1,2) [2025-04-18 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933925', 'tblTempUsageDetail_20' ) start [2025-04-18 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933925', 'tblTempUsageDetail_20' ) end [2025-04-18 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:00:21] Production.INFO: ==13969== Releasing lock... [2025-04-18 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:00:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:01:05 [end_date_ymd] => 2025-04-18 07:01:05 [RateCDR] => 1 ) [2025-04-18 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:01:05' and `end` < '2025-04-18 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:01:18] Production.INFO: count ==42 [2025-04-18 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:01:05 - End Time 2025-04-18 07:01:05 [2025-04-18 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933930', 'tblTempUsageDetail_20' ) start [2025-04-18 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933930', 'tblTempUsageDetail_20' ) end [2025-04-18 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933930', 'tblTempVendorCDR_20' ) start [2025-04-18 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933930', 'tblTempVendorCDR_20' ) end [2025-04-18 07:01:18] Production.INFO: ProcessCDR(1,14933930,1,1,2) [2025-04-18 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933930', 'tblTempUsageDetail_20' ) start [2025-04-18 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933930', 'tblTempUsageDetail_20' ) end [2025-04-18 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:01:21] Production.INFO: ==14097== Releasing lock... [2025-04-18 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:01:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:02:05 [end_date_ymd] => 2025-04-18 07:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:02:05' and `end` < '2025-04-18 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-04-18 07:02:18] Production.INFO: count ==42 [2025-04-18 07:02:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:02:05 - End Time 2025-04-18 07:02:05 [2025-04-18 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933935', 'tblTempUsageDetail_20' ) start [2025-04-18 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933935', 'tblTempUsageDetail_20' ) end [2025-04-18 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933935', 'tblTempVendorCDR_20' ) start [2025-04-18 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933935', 'tblTempVendorCDR_20' ) end [2025-04-18 07:02:18] Production.INFO: ProcessCDR(1,14933935,1,1,2) [2025-04-18 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933935', 'tblTempUsageDetail_20' ) start [2025-04-18 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933935', 'tblTempUsageDetail_20' ) end [2025-04-18 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:02:21] Production.INFO: ==14217== Releasing lock... [2025-04-18 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:02:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:03:05 [end_date_ymd] => 2025-04-18 07:03:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:03:05' and `end` < '2025-04-18 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-04-18 07:03:19] Production.INFO: count ==44 [2025-04-18 07:03:19] Production.ERROR: pbx CDR StartTime 2025-04-18 04:03:05 - End Time 2025-04-18 07:03:05 [2025-04-18 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933940', 'tblTempUsageDetail_20' ) start [2025-04-18 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933940', 'tblTempUsageDetail_20' ) end [2025-04-18 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933940', 'tblTempVendorCDR_20' ) start [2025-04-18 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933940', 'tblTempVendorCDR_20' ) end [2025-04-18 07:03:19] Production.INFO: ProcessCDR(1,14933940,1,1,2) [2025-04-18 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933940', 'tblTempUsageDetail_20' ) start [2025-04-18 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933940', 'tblTempUsageDetail_20' ) end [2025-04-18 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:03:22] Production.INFO: ==14294== Releasing lock... [2025-04-18 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:03:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:04:05 [end_date_ymd] => 2025-04-18 07:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:04:05' and `end` < '2025-04-18 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-04-18 07:04:19] Production.INFO: count ==42 [2025-04-18 07:04:19] Production.ERROR: pbx CDR StartTime 2025-04-18 04:04:05 - End Time 2025-04-18 07:04:05 [2025-04-18 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933945', 'tblTempUsageDetail_20' ) start [2025-04-18 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933945', 'tblTempUsageDetail_20' ) end [2025-04-18 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933945', 'tblTempVendorCDR_20' ) start [2025-04-18 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933945', 'tblTempVendorCDR_20' ) end [2025-04-18 07:04:19] Production.INFO: ProcessCDR(1,14933945,1,1,2) [2025-04-18 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933945', 'tblTempUsageDetail_20' ) start [2025-04-18 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933945', 'tblTempUsageDetail_20' ) end [2025-04-18 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:04:22] Production.INFO: ==14367== Releasing lock... [2025-04-18 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:04:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:05:05 [end_date_ymd] => 2025-04-18 07:05:05 [RateCDR] => 1 ) [2025-04-18 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:05:05' and `end` < '2025-04-18 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:05:18] Production.INFO: count ==42 [2025-04-18 07:05:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:05:05 - End Time 2025-04-18 07:05:05 [2025-04-18 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933950', 'tblTempUsageDetail_20' ) start [2025-04-18 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933950', 'tblTempUsageDetail_20' ) end [2025-04-18 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933950', 'tblTempVendorCDR_20' ) start [2025-04-18 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933950', 'tblTempVendorCDR_20' ) end [2025-04-18 07:05:18] Production.INFO: ProcessCDR(1,14933950,1,1,2) [2025-04-18 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933950', 'tblTempUsageDetail_20' ) start [2025-04-18 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933950', 'tblTempUsageDetail_20' ) end [2025-04-18 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:05:21] Production.INFO: ==14523== Releasing lock... [2025-04-18 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:05:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:06:05 [end_date_ymd] => 2025-04-18 07:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:06:05' and `end` < '2025-04-18 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-04-18 07:06:17] Production.INFO: count ==44 [2025-04-18 07:06:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:06:05 - End Time 2025-04-18 07:06:05 [2025-04-18 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933955', 'tblTempUsageDetail_20' ) start [2025-04-18 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933955', 'tblTempUsageDetail_20' ) end [2025-04-18 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933955', 'tblTempVendorCDR_20' ) start [2025-04-18 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933955', 'tblTempVendorCDR_20' ) end [2025-04-18 07:06:17] Production.INFO: ProcessCDR(1,14933955,1,1,2) [2025-04-18 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933955', 'tblTempUsageDetail_20' ) start [2025-04-18 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933955', 'tblTempUsageDetail_20' ) end [2025-04-18 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:06:21] Production.INFO: ==14601== Releasing lock... [2025-04-18 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:06:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:07:04 [end_date_ymd] => 2025-04-18 07:07:04 [RateCDR] => 1 ) [2025-04-18 07:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:07:04' and `end` < '2025-04-18 07:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:07:18] Production.INFO: count ==44 [2025-04-18 07:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:07:04 - End Time 2025-04-18 07:07:04 [2025-04-18 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933960', 'tblTempUsageDetail_20' ) start [2025-04-18 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933960', 'tblTempUsageDetail_20' ) end [2025-04-18 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933960', 'tblTempVendorCDR_20' ) start [2025-04-18 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933960', 'tblTempVendorCDR_20' ) end [2025-04-18 07:07:18] Production.INFO: ProcessCDR(1,14933960,1,1,2) [2025-04-18 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933960', 'tblTempUsageDetail_20' ) start [2025-04-18 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933960', 'tblTempUsageDetail_20' ) end [2025-04-18 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:07:21] Production.INFO: ==14679== Releasing lock... [2025-04-18 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:07:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:08:06 [end_date_ymd] => 2025-04-18 07:08:06 [RateCDR] => 1 ) [2025-04-18 07: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-04-18 04:08:06' and `end` < '2025-04-18 07: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-04-18 07:08:20] Production.INFO: count ==44 [2025-04-18 07:08:20] Production.ERROR: pbx CDR StartTime 2025-04-18 04:08:06 - End Time 2025-04-18 07:08:06 [2025-04-18 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933965', 'tblTempUsageDetail_20' ) start [2025-04-18 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933965', 'tblTempUsageDetail_20' ) end [2025-04-18 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933965', 'tblTempVendorCDR_20' ) start [2025-04-18 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933965', 'tblTempVendorCDR_20' ) end [2025-04-18 07:08:20] Production.INFO: ProcessCDR(1,14933965,1,1,2) [2025-04-18 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933965', 'tblTempUsageDetail_20' ) start [2025-04-18 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933965', 'tblTempUsageDetail_20' ) end [2025-04-18 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:08:23] Production.INFO: ==14872== Releasing lock... [2025-04-18 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:08:23] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:09:05 [end_date_ymd] => 2025-04-18 07:09:05 [RateCDR] => 1 ) [2025-04-18 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:09:05' and `end` < '2025-04-18 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:09:18] Production.INFO: count ==44 [2025-04-18 07:09:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:09:05 - End Time 2025-04-18 07:09:05 [2025-04-18 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933970', 'tblTempUsageDetail_20' ) start [2025-04-18 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933970', 'tblTempUsageDetail_20' ) end [2025-04-18 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933970', 'tblTempVendorCDR_20' ) start [2025-04-18 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933970', 'tblTempVendorCDR_20' ) end [2025-04-18 07:09:18] Production.INFO: ProcessCDR(1,14933970,1,1,2) [2025-04-18 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933970', 'tblTempUsageDetail_20' ) start [2025-04-18 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933970', 'tblTempUsageDetail_20' ) end [2025-04-18 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:09:21] Production.INFO: ==14943== Releasing lock... [2025-04-18 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:09:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:10:06 [end_date_ymd] => 2025-04-18 07:10:06 [RateCDR] => 1 ) [2025-04-18 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:10:06' and `end` < '2025-04-18 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:10:18] Production.INFO: count ==44 [2025-04-18 07:10:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:10:06 - End Time 2025-04-18 07:10:06 [2025-04-18 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933975', 'tblTempUsageDetail_20' ) start [2025-04-18 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933975', 'tblTempUsageDetail_20' ) end [2025-04-18 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933975', 'tblTempVendorCDR_20' ) start [2025-04-18 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933975', 'tblTempVendorCDR_20' ) end [2025-04-18 07:10:18] Production.INFO: ProcessCDR(1,14933975,1,1,2) [2025-04-18 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933975', 'tblTempUsageDetail_20' ) start [2025-04-18 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933975', 'tblTempUsageDetail_20' ) end [2025-04-18 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:10:21] Production.INFO: ==15022== Releasing lock... [2025-04-18 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:10:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:11:04 [end_date_ymd] => 2025-04-18 07:11:04 [RateCDR] => 1 ) [2025-04-18 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:11:04' and `end` < '2025-04-18 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:11:17] Production.INFO: count ==44 [2025-04-18 07:11:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:11:04 - End Time 2025-04-18 07:11:04 [2025-04-18 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933981', 'tblTempUsageDetail_20' ) start [2025-04-18 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933981', 'tblTempUsageDetail_20' ) end [2025-04-18 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933981', 'tblTempVendorCDR_20' ) start [2025-04-18 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933981', 'tblTempVendorCDR_20' ) end [2025-04-18 07:11:17] Production.INFO: ProcessCDR(1,14933981,1,1,2) [2025-04-18 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933981', 'tblTempUsageDetail_20' ) start [2025-04-18 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933981', 'tblTempUsageDetail_20' ) end [2025-04-18 07:11:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:11:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:11:20] Production.INFO: ==15098== Releasing lock... [2025-04-18 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:11:20] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:12:05 [end_date_ymd] => 2025-04-18 07:12:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:12:05' and `end` < '2025-04-18 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-04-18 07:12:18] Production.INFO: count ==44 [2025-04-18 07:12:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:12:05 - End Time 2025-04-18 07:12:05 [2025-04-18 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933986', 'tblTempUsageDetail_20' ) start [2025-04-18 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933986', 'tblTempUsageDetail_20' ) end [2025-04-18 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933986', 'tblTempVendorCDR_20' ) start [2025-04-18 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933986', 'tblTempVendorCDR_20' ) end [2025-04-18 07:12:18] Production.INFO: ProcessCDR(1,14933986,1,1,2) [2025-04-18 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933986', 'tblTempUsageDetail_20' ) start [2025-04-18 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933986', 'tblTempUsageDetail_20' ) end [2025-04-18 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:12:21] Production.INFO: ==15252== Releasing lock... [2025-04-18 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:12:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:13:05 [end_date_ymd] => 2025-04-18 07:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:13:05' and `end` < '2025-04-18 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-04-18 07:13:18] Production.INFO: count ==44 [2025-04-18 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:13:05 - End Time 2025-04-18 07:13:05 [2025-04-18 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933991', 'tblTempUsageDetail_20' ) start [2025-04-18 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933991', 'tblTempUsageDetail_20' ) end [2025-04-18 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933991', 'tblTempVendorCDR_20' ) start [2025-04-18 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933991', 'tblTempVendorCDR_20' ) end [2025-04-18 07:13:18] Production.INFO: ProcessCDR(1,14933991,1,1,2) [2025-04-18 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933991', 'tblTempUsageDetail_20' ) start [2025-04-18 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933991', 'tblTempUsageDetail_20' ) end [2025-04-18 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:13:21] Production.INFO: ==15330== Releasing lock... [2025-04-18 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:13:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:14:05 [end_date_ymd] => 2025-04-18 07:14:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:14:05' and `end` < '2025-04-18 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-04-18 07:14:19] Production.INFO: count ==44 [2025-04-18 07:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 04:14:05 - End Time 2025-04-18 07:14:05 [2025-04-18 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933996', 'tblTempUsageDetail_20' ) start [2025-04-18 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14933996', 'tblTempUsageDetail_20' ) end [2025-04-18 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933996', 'tblTempVendorCDR_20' ) start [2025-04-18 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14933996', 'tblTempVendorCDR_20' ) end [2025-04-18 07:14:19] Production.INFO: ProcessCDR(1,14933996,1,1,2) [2025-04-18 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14933996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14933996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14933996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14933996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933996', 'tblTempUsageDetail_20' ) start [2025-04-18 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14933996', 'tblTempUsageDetail_20' ) end [2025-04-18 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:14:22] Production.INFO: ==15400== Releasing lock... [2025-04-18 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:14:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:15:05 [end_date_ymd] => 2025-04-18 07:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:15:05' and `end` < '2025-04-18 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-04-18 07:15:18] Production.INFO: count ==44 [2025-04-18 07:15:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:15:05 - End Time 2025-04-18 07:15:05 [2025-04-18 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934001', 'tblTempUsageDetail_20' ) start [2025-04-18 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934001', 'tblTempUsageDetail_20' ) end [2025-04-18 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934001', 'tblTempVendorCDR_20' ) start [2025-04-18 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934001', 'tblTempVendorCDR_20' ) end [2025-04-18 07:15:18] Production.INFO: ProcessCDR(1,14934001,1,1,2) [2025-04-18 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934001', 'tblTempUsageDetail_20' ) start [2025-04-18 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934001', 'tblTempUsageDetail_20' ) end [2025-04-18 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:15:22] Production.INFO: ==15555== Releasing lock... [2025-04-18 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:15:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:16:05 [end_date_ymd] => 2025-04-18 07:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:16:05' and `end` < '2025-04-18 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-04-18 07:16:18] Production.INFO: count ==44 [2025-04-18 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:16:05 - End Time 2025-04-18 07:16:05 [2025-04-18 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934006', 'tblTempUsageDetail_20' ) start [2025-04-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934006', 'tblTempUsageDetail_20' ) end [2025-04-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934006', 'tblTempVendorCDR_20' ) start [2025-04-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934006', 'tblTempVendorCDR_20' ) end [2025-04-18 07:16:18] Production.INFO: ProcessCDR(1,14934006,1,1,2) [2025-04-18 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934006', 'tblTempUsageDetail_20' ) start [2025-04-18 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934006', 'tblTempUsageDetail_20' ) end [2025-04-18 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:16:21] Production.INFO: ==15636== Releasing lock... [2025-04-18 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:16:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:17:05 [end_date_ymd] => 2025-04-18 07:17:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:17:05' and `end` < '2025-04-18 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-04-18 07:17:19] Production.INFO: count ==44 [2025-04-18 07:17:19] Production.ERROR: pbx CDR StartTime 2025-04-18 04:17:05 - End Time 2025-04-18 07:17:05 [2025-04-18 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934011', 'tblTempUsageDetail_20' ) start [2025-04-18 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934011', 'tblTempUsageDetail_20' ) end [2025-04-18 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934011', 'tblTempVendorCDR_20' ) start [2025-04-18 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934011', 'tblTempVendorCDR_20' ) end [2025-04-18 07:17:19] Production.INFO: ProcessCDR(1,14934011,1,1,2) [2025-04-18 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934011', 'tblTempUsageDetail_20' ) start [2025-04-18 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934011', 'tblTempUsageDetail_20' ) end [2025-04-18 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:17:22] Production.INFO: ==15716== Releasing lock... [2025-04-18 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:17:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:18:05 [end_date_ymd] => 2025-04-18 07:18:05 [RateCDR] => 1 ) [2025-04-18 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:18:05' and `end` < '2025-04-18 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:18:18] Production.INFO: count ==46 [2025-04-18 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:18:05 - End Time 2025-04-18 07:18:05 [2025-04-18 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934016', 'tblTempUsageDetail_20' ) start [2025-04-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934016', 'tblTempUsageDetail_20' ) end [2025-04-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934016', 'tblTempVendorCDR_20' ) start [2025-04-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934016', 'tblTempVendorCDR_20' ) end [2025-04-18 07:18:18] Production.INFO: ProcessCDR(1,14934016,1,1,2) [2025-04-18 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934016', 'tblTempUsageDetail_20' ) start [2025-04-18 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934016', 'tblTempUsageDetail_20' ) end [2025-04-18 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:18:21] Production.INFO: ==15791== Releasing lock... [2025-04-18 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:18:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:19:05 [end_date_ymd] => 2025-04-18 07:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:19:05' and `end` < '2025-04-18 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-04-18 07:19:19] Production.INFO: count ==46 [2025-04-18 07:19:19] Production.ERROR: pbx CDR StartTime 2025-04-18 04:19:05 - End Time 2025-04-18 07:19:05 [2025-04-18 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934021', 'tblTempUsageDetail_20' ) start [2025-04-18 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934021', 'tblTempUsageDetail_20' ) end [2025-04-18 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934021', 'tblTempVendorCDR_20' ) start [2025-04-18 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934021', 'tblTempVendorCDR_20' ) end [2025-04-18 07:19:19] Production.INFO: ProcessCDR(1,14934021,1,1,2) [2025-04-18 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934021', 'tblTempUsageDetail_20' ) start [2025-04-18 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934021', 'tblTempUsageDetail_20' ) end [2025-04-18 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:19:22] Production.INFO: ==15863== Releasing lock... [2025-04-18 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:19:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:20:06 [end_date_ymd] => 2025-04-18 07:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:20:06' and `end` < '2025-04-18 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-04-18 07:20:19] Production.INFO: count ==46 [2025-04-18 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 04:20:06 - End Time 2025-04-18 07:20:06 [2025-04-18 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934027', 'tblTempUsageDetail_20' ) start [2025-04-18 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934027', 'tblTempUsageDetail_20' ) end [2025-04-18 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934027', 'tblTempVendorCDR_20' ) start [2025-04-18 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934027', 'tblTempVendorCDR_20' ) end [2025-04-18 07:20:19] Production.INFO: ProcessCDR(1,14934027,1,1,2) [2025-04-18 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934027', 'tblTempUsageDetail_20' ) start [2025-04-18 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934027', 'tblTempUsageDetail_20' ) end [2025-04-18 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:20:22] Production.INFO: ==15945== Releasing lock... [2025-04-18 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:21:05 [end_date_ymd] => 2025-04-18 07:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:21:05' and `end` < '2025-04-18 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-04-18 07:21:18] Production.INFO: count ==46 [2025-04-18 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:21:05 - End Time 2025-04-18 07:21:05 [2025-04-18 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934032', 'tblTempUsageDetail_20' ) start [2025-04-18 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934032', 'tblTempUsageDetail_20' ) end [2025-04-18 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934032', 'tblTempVendorCDR_20' ) start [2025-04-18 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934032', 'tblTempVendorCDR_20' ) end [2025-04-18 07:21:18] Production.INFO: ProcessCDR(1,14934032,1,1,2) [2025-04-18 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934032', 'tblTempUsageDetail_20' ) start [2025-04-18 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934032', 'tblTempUsageDetail_20' ) end [2025-04-18 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:21:22] Production.INFO: ==16022== Releasing lock... [2025-04-18 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:21:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:22:05 [end_date_ymd] => 2025-04-18 07:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:22:05' and `end` < '2025-04-18 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-04-18 07:22:19] Production.INFO: count ==46 [2025-04-18 07:22:19] Production.ERROR: pbx CDR StartTime 2025-04-18 04:22:05 - End Time 2025-04-18 07:22:05 [2025-04-18 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934037', 'tblTempUsageDetail_20' ) start [2025-04-18 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934037', 'tblTempUsageDetail_20' ) end [2025-04-18 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934037', 'tblTempVendorCDR_20' ) start [2025-04-18 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934037', 'tblTempVendorCDR_20' ) end [2025-04-18 07:22:19] Production.INFO: ProcessCDR(1,14934037,1,1,2) [2025-04-18 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934037', 'tblTempUsageDetail_20' ) start [2025-04-18 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934037', 'tblTempUsageDetail_20' ) end [2025-04-18 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:22:22] Production.INFO: ==16102== Releasing lock... [2025-04-18 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:22:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:23:05 [end_date_ymd] => 2025-04-18 07:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:23:05' and `end` < '2025-04-18 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-04-18 07:23:17] Production.INFO: count ==46 [2025-04-18 07:23:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:23:05 - End Time 2025-04-18 07:23:05 [2025-04-18 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934042', 'tblTempUsageDetail_20' ) start [2025-04-18 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934042', 'tblTempUsageDetail_20' ) end [2025-04-18 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934042', 'tblTempVendorCDR_20' ) start [2025-04-18 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934042', 'tblTempVendorCDR_20' ) end [2025-04-18 07:23:17] Production.INFO: ProcessCDR(1,14934042,1,1,2) [2025-04-18 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934042', 'tblTempUsageDetail_20' ) start [2025-04-18 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934042', 'tblTempUsageDetail_20' ) end [2025-04-18 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:23:21] Production.INFO: ==16178== Releasing lock... [2025-04-18 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:23:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:24:05 [end_date_ymd] => 2025-04-18 07:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:24:05' and `end` < '2025-04-18 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-04-18 07:24:18] Production.INFO: count ==46 [2025-04-18 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:24:05 - End Time 2025-04-18 07:24:05 [2025-04-18 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934047', 'tblTempUsageDetail_20' ) start [2025-04-18 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934047', 'tblTempUsageDetail_20' ) end [2025-04-18 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934047', 'tblTempVendorCDR_20' ) start [2025-04-18 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934047', 'tblTempVendorCDR_20' ) end [2025-04-18 07:24:18] Production.INFO: ProcessCDR(1,14934047,1,1,2) [2025-04-18 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934047', 'tblTempUsageDetail_20' ) start [2025-04-18 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934047', 'tblTempUsageDetail_20' ) end [2025-04-18 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:24:21] Production.INFO: ==16288== Releasing lock... [2025-04-18 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:25:05 [end_date_ymd] => 2025-04-18 07:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:25:05' and `end` < '2025-04-18 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-04-18 07:25:18] Production.INFO: count ==46 [2025-04-18 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:25:05 - End Time 2025-04-18 07:25:05 [2025-04-18 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934052', 'tblTempUsageDetail_20' ) start [2025-04-18 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934052', 'tblTempUsageDetail_20' ) end [2025-04-18 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934052', 'tblTempVendorCDR_20' ) start [2025-04-18 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934052', 'tblTempVendorCDR_20' ) end [2025-04-18 07:25:18] Production.INFO: ProcessCDR(1,14934052,1,1,2) [2025-04-18 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934052', 'tblTempUsageDetail_20' ) start [2025-04-18 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934052', 'tblTempUsageDetail_20' ) end [2025-04-18 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:25:21] Production.INFO: ==16364== Releasing lock... [2025-04-18 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:25:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:26:05 [end_date_ymd] => 2025-04-18 07:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:26:05' and `end` < '2025-04-18 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-04-18 07:26:18] Production.INFO: count ==44 [2025-04-18 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:26:05 - End Time 2025-04-18 07:26:05 [2025-04-18 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934057', 'tblTempUsageDetail_20' ) start [2025-04-18 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934057', 'tblTempUsageDetail_20' ) end [2025-04-18 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934057', 'tblTempVendorCDR_20' ) start [2025-04-18 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934057', 'tblTempVendorCDR_20' ) end [2025-04-18 07:26:18] Production.INFO: ProcessCDR(1,14934057,1,1,2) [2025-04-18 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934057', 'tblTempUsageDetail_20' ) start [2025-04-18 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934057', 'tblTempUsageDetail_20' ) end [2025-04-18 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:26:21] Production.INFO: ==16442== Releasing lock... [2025-04-18 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:26:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:27:05 [end_date_ymd] => 2025-04-18 07:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:27:05' and `end` < '2025-04-18 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-04-18 07:27:18] Production.INFO: count ==44 [2025-04-18 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:27:05 - End Time 2025-04-18 07:27:05 [2025-04-18 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934062', 'tblTempUsageDetail_20' ) start [2025-04-18 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934062', 'tblTempUsageDetail_20' ) end [2025-04-18 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934062', 'tblTempVendorCDR_20' ) start [2025-04-18 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934062', 'tblTempVendorCDR_20' ) end [2025-04-18 07:27:18] Production.INFO: ProcessCDR(1,14934062,1,1,2) [2025-04-18 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934062', 'tblTempUsageDetail_20' ) start [2025-04-18 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934062', 'tblTempUsageDetail_20' ) end [2025-04-18 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:27:21] Production.INFO: ==16518== Releasing lock... [2025-04-18 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:27:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:28:05 [end_date_ymd] => 2025-04-18 07:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:28:05' and `end` < '2025-04-18 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-04-18 07:28:18] Production.INFO: count ==44 [2025-04-18 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:28:05 - End Time 2025-04-18 07:28:05 [2025-04-18 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934067', 'tblTempUsageDetail_20' ) start [2025-04-18 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934067', 'tblTempUsageDetail_20' ) end [2025-04-18 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934067', 'tblTempVendorCDR_20' ) start [2025-04-18 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934067', 'tblTempVendorCDR_20' ) end [2025-04-18 07:28:18] Production.INFO: ProcessCDR(1,14934067,1,1,2) [2025-04-18 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934067', 'tblTempUsageDetail_20' ) start [2025-04-18 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934067', 'tblTempUsageDetail_20' ) end [2025-04-18 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:28:21] Production.INFO: ==16598== Releasing lock... [2025-04-18 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:28:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:29:05 [end_date_ymd] => 2025-04-18 07:29:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:29:05' and `end` < '2025-04-18 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-04-18 07:29:17] Production.INFO: count ==44 [2025-04-18 07:29:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:29:05 - End Time 2025-04-18 07:29:05 [2025-04-18 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934072', 'tblTempUsageDetail_20' ) start [2025-04-18 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934072', 'tblTempUsageDetail_20' ) end [2025-04-18 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934072', 'tblTempVendorCDR_20' ) start [2025-04-18 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934072', 'tblTempVendorCDR_20' ) end [2025-04-18 07:29:17] Production.INFO: ProcessCDR(1,14934072,1,1,2) [2025-04-18 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934072', 'tblTempUsageDetail_20' ) start [2025-04-18 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934072', 'tblTempUsageDetail_20' ) end [2025-04-18 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:29:21] Production.INFO: ==16680== Releasing lock... [2025-04-18 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:29:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:30:05 [end_date_ymd] => 2025-04-18 07:30:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:30:05' and `end` < '2025-04-18 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-04-18 07:30:18] Production.INFO: count ==42 [2025-04-18 07:30:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:30:05 - End Time 2025-04-18 07:30:05 [2025-04-18 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934077', 'tblTempUsageDetail_20' ) start [2025-04-18 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934077', 'tblTempUsageDetail_20' ) end [2025-04-18 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934077', 'tblTempVendorCDR_20' ) start [2025-04-18 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934077', 'tblTempVendorCDR_20' ) end [2025-04-18 07:30:18] Production.INFO: ProcessCDR(1,14934077,1,1,2) [2025-04-18 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934077', 'tblTempUsageDetail_20' ) start [2025-04-18 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934077', 'tblTempUsageDetail_20' ) end [2025-04-18 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:30:21] Production.INFO: ==16761== Releasing lock... [2025-04-18 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:30:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:31:05 [end_date_ymd] => 2025-04-18 07:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:31:05' and `end` < '2025-04-18 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-04-18 07:31:18] Production.INFO: count ==42 [2025-04-18 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:31:05 - End Time 2025-04-18 07:31:05 [2025-04-18 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934083', 'tblTempUsageDetail_20' ) start [2025-04-18 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934083', 'tblTempUsageDetail_20' ) end [2025-04-18 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934083', 'tblTempVendorCDR_20' ) start [2025-04-18 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934083', 'tblTempVendorCDR_20' ) end [2025-04-18 07:31:18] Production.INFO: ProcessCDR(1,14934083,1,1,2) [2025-04-18 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934083', 'tblTempUsageDetail_20' ) start [2025-04-18 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934083', 'tblTempUsageDetail_20' ) end [2025-04-18 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:31:21] Production.INFO: ==16845== Releasing lock... [2025-04-18 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:31:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:32:06 [end_date_ymd] => 2025-04-18 07:32:06 [RateCDR] => 1 ) [2025-04-18 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:32:06' and `end` < '2025-04-18 07:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:32:19] Production.INFO: count ==42 [2025-04-18 07:32:19] Production.ERROR: pbx CDR StartTime 2025-04-18 04:32:06 - End Time 2025-04-18 07:32:06 [2025-04-18 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934088', 'tblTempUsageDetail_20' ) start [2025-04-18 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934088', 'tblTempUsageDetail_20' ) end [2025-04-18 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934088', 'tblTempVendorCDR_20' ) start [2025-04-18 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934088', 'tblTempVendorCDR_20' ) end [2025-04-18 07:32:19] Production.INFO: ProcessCDR(1,14934088,1,1,2) [2025-04-18 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934088', 'tblTempUsageDetail_20' ) start [2025-04-18 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934088', 'tblTempUsageDetail_20' ) end [2025-04-18 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:32:22] Production.INFO: ==16928== Releasing lock... [2025-04-18 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:32:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:33:05 [end_date_ymd] => 2025-04-18 07:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:33:05' and `end` < '2025-04-18 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-04-18 07:33:17] Production.INFO: count ==42 [2025-04-18 07:33:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:33:05 - End Time 2025-04-18 07:33:05 [2025-04-18 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934093', 'tblTempUsageDetail_20' ) start [2025-04-18 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934093', 'tblTempUsageDetail_20' ) end [2025-04-18 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934093', 'tblTempVendorCDR_20' ) start [2025-04-18 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934093', 'tblTempVendorCDR_20' ) end [2025-04-18 07:33:17] Production.INFO: ProcessCDR(1,14934093,1,1,2) [2025-04-18 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934093', 'tblTempUsageDetail_20' ) start [2025-04-18 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934093', 'tblTempUsageDetail_20' ) end [2025-04-18 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:33:21] Production.INFO: ==17003== Releasing lock... [2025-04-18 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:33:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:34:05 [end_date_ymd] => 2025-04-18 07:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:34:05' and `end` < '2025-04-18 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-04-18 07:34:18] Production.INFO: count ==42 [2025-04-18 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:34:05 - End Time 2025-04-18 07:34:05 [2025-04-18 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934098', 'tblTempUsageDetail_20' ) start [2025-04-18 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934098', 'tblTempUsageDetail_20' ) end [2025-04-18 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934098', 'tblTempVendorCDR_20' ) start [2025-04-18 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934098', 'tblTempVendorCDR_20' ) end [2025-04-18 07:34:18] Production.INFO: ProcessCDR(1,14934098,1,1,2) [2025-04-18 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934098', 'tblTempUsageDetail_20' ) start [2025-04-18 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934098', 'tblTempUsageDetail_20' ) end [2025-04-18 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:34:21] Production.INFO: ==17077== Releasing lock... [2025-04-18 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:34:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:35:05 [end_date_ymd] => 2025-04-18 07:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:35:05' and `end` < '2025-04-18 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-04-18 07:35:17] Production.INFO: count ==42 [2025-04-18 07:35:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:35:05 - End Time 2025-04-18 07:35:05 [2025-04-18 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934103', 'tblTempUsageDetail_20' ) start [2025-04-18 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934103', 'tblTempUsageDetail_20' ) end [2025-04-18 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934103', 'tblTempVendorCDR_20' ) start [2025-04-18 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934103', 'tblTempVendorCDR_20' ) end [2025-04-18 07:35:17] Production.INFO: ProcessCDR(1,14934103,1,1,2) [2025-04-18 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934103', 'tblTempUsageDetail_20' ) start [2025-04-18 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934103', 'tblTempUsageDetail_20' ) end [2025-04-18 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:35:20] Production.INFO: ==17149== Releasing lock... [2025-04-18 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:35:20] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:36:05 [end_date_ymd] => 2025-04-18 07:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:36:05' and `end` < '2025-04-18 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-04-18 07:36:18] Production.INFO: count ==42 [2025-04-18 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:36:05 - End Time 2025-04-18 07:36:05 [2025-04-18 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934108', 'tblTempUsageDetail_20' ) start [2025-04-18 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934108', 'tblTempUsageDetail_20' ) end [2025-04-18 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934108', 'tblTempVendorCDR_20' ) start [2025-04-18 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934108', 'tblTempVendorCDR_20' ) end [2025-04-18 07:36:18] Production.INFO: ProcessCDR(1,14934108,1,1,2) [2025-04-18 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934108', 'tblTempUsageDetail_20' ) start [2025-04-18 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934108', 'tblTempUsageDetail_20' ) end [2025-04-18 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:36:21] Production.INFO: ==17230== Releasing lock... [2025-04-18 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:36:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:37:05 [end_date_ymd] => 2025-04-18 07:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:37:05' and `end` < '2025-04-18 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-04-18 07:37:17] Production.INFO: count ==42 [2025-04-18 07:37:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:37:05 - End Time 2025-04-18 07:37:05 [2025-04-18 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934113', 'tblTempUsageDetail_20' ) start [2025-04-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934113', 'tblTempUsageDetail_20' ) end [2025-04-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934113', 'tblTempVendorCDR_20' ) start [2025-04-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934113', 'tblTempVendorCDR_20' ) end [2025-04-18 07:37:17] Production.INFO: ProcessCDR(1,14934113,1,1,2) [2025-04-18 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934113', 'tblTempUsageDetail_20' ) start [2025-04-18 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934113', 'tblTempUsageDetail_20' ) end [2025-04-18 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:37:21] Production.INFO: ==17310== Releasing lock... [2025-04-18 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:37:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:38:05 [end_date_ymd] => 2025-04-18 07:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:38:05' and `end` < '2025-04-18 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-04-18 07:38:18] Production.INFO: count ==42 [2025-04-18 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:38:05 - End Time 2025-04-18 07:38:05 [2025-04-18 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934118', 'tblTempUsageDetail_20' ) start [2025-04-18 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934118', 'tblTempUsageDetail_20' ) end [2025-04-18 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934118', 'tblTempVendorCDR_20' ) start [2025-04-18 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934118', 'tblTempVendorCDR_20' ) end [2025-04-18 07:38:18] Production.INFO: ProcessCDR(1,14934118,1,1,2) [2025-04-18 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934118', 'tblTempUsageDetail_20' ) start [2025-04-18 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934118', 'tblTempUsageDetail_20' ) end [2025-04-18 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:38:21] Production.INFO: ==17388== Releasing lock... [2025-04-18 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:38:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:39:06 [end_date_ymd] => 2025-04-18 07:39:06 [RateCDR] => 1 ) [2025-04-18 07:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:39:06' and `end` < '2025-04-18 07:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:39:18] Production.INFO: count ==42 [2025-04-18 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:39:06 - End Time 2025-04-18 07:39:06 [2025-04-18 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934123', 'tblTempUsageDetail_20' ) start [2025-04-18 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934123', 'tblTempUsageDetail_20' ) end [2025-04-18 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934123', 'tblTempVendorCDR_20' ) start [2025-04-18 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934123', 'tblTempVendorCDR_20' ) end [2025-04-18 07:39:18] Production.INFO: ProcessCDR(1,14934123,1,1,2) [2025-04-18 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934123', 'tblTempUsageDetail_20' ) start [2025-04-18 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934123', 'tblTempUsageDetail_20' ) end [2025-04-18 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:39:21] Production.INFO: ==17499== Releasing lock... [2025-04-18 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:39:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:40:05 [end_date_ymd] => 2025-04-18 07:40:05 [RateCDR] => 1 ) [2025-04-18 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:40:05' and `end` < '2025-04-18 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:40:18] Production.INFO: count ==42 [2025-04-18 07:40:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:40:05 - End Time 2025-04-18 07:40:05 [2025-04-18 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934128', 'tblTempUsageDetail_20' ) start [2025-04-18 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934128', 'tblTempUsageDetail_20' ) end [2025-04-18 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934128', 'tblTempVendorCDR_20' ) start [2025-04-18 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934128', 'tblTempVendorCDR_20' ) end [2025-04-18 07:40:18] Production.INFO: ProcessCDR(1,14934128,1,1,2) [2025-04-18 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934128', 'tblTempUsageDetail_20' ) start [2025-04-18 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934128', 'tblTempUsageDetail_20' ) end [2025-04-18 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:40:21] Production.INFO: ==17574== Releasing lock... [2025-04-18 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:40:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:41:05 [end_date_ymd] => 2025-04-18 07:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:41:05' and `end` < '2025-04-18 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-04-18 07:41:18] Production.INFO: count ==42 [2025-04-18 07:41:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:41:05 - End Time 2025-04-18 07:41:05 [2025-04-18 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934134', 'tblTempUsageDetail_20' ) start [2025-04-18 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934134', 'tblTempUsageDetail_20' ) end [2025-04-18 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934134', 'tblTempVendorCDR_20' ) start [2025-04-18 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934134', 'tblTempVendorCDR_20' ) end [2025-04-18 07:41:18] Production.INFO: ProcessCDR(1,14934134,1,1,2) [2025-04-18 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934134', 'tblTempUsageDetail_20' ) start [2025-04-18 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934134', 'tblTempUsageDetail_20' ) end [2025-04-18 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:41:21] Production.INFO: ==17654== Releasing lock... [2025-04-18 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:41:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:42:05 [end_date_ymd] => 2025-04-18 07:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:42:05' and `end` < '2025-04-18 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-04-18 07:42:18] Production.INFO: count ==42 [2025-04-18 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:42:05 - End Time 2025-04-18 07:42:05 [2025-04-18 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934139', 'tblTempUsageDetail_20' ) start [2025-04-18 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934139', 'tblTempUsageDetail_20' ) end [2025-04-18 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934139', 'tblTempVendorCDR_20' ) start [2025-04-18 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934139', 'tblTempVendorCDR_20' ) end [2025-04-18 07:42:18] Production.INFO: ProcessCDR(1,14934139,1,1,2) [2025-04-18 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934139', 'tblTempUsageDetail_20' ) start [2025-04-18 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934139', 'tblTempUsageDetail_20' ) end [2025-04-18 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:42:22] Production.INFO: ==17735== Releasing lock... [2025-04-18 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:42:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:43:05 [end_date_ymd] => 2025-04-18 07:43:05 [RateCDR] => 1 ) [2025-04-18 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:43:05' and `end` < '2025-04-18 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:43:18] Production.INFO: count ==43 [2025-04-18 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:43:05 - End Time 2025-04-18 07:43:05 [2025-04-18 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934144', 'tblTempUsageDetail_20' ) start [2025-04-18 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934144', 'tblTempUsageDetail_20' ) end [2025-04-18 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934144', 'tblTempVendorCDR_20' ) start [2025-04-18 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934144', 'tblTempVendorCDR_20' ) end [2025-04-18 07:43:18] Production.INFO: ProcessCDR(1,14934144,1,1,2) [2025-04-18 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934144', 'tblTempUsageDetail_20' ) start [2025-04-18 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934144', 'tblTempUsageDetail_20' ) end [2025-04-18 07:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:43:23] Production.INFO: ==17817== Releasing lock... [2025-04-18 07:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:43:23] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:44:05 [end_date_ymd] => 2025-04-18 07:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:44:05' and `end` < '2025-04-18 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-04-18 07:44:17] Production.INFO: count ==43 [2025-04-18 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:44:05 - End Time 2025-04-18 07:44:05 [2025-04-18 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934149', 'tblTempUsageDetail_20' ) start [2025-04-18 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934149', 'tblTempUsageDetail_20' ) end [2025-04-18 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934149', 'tblTempVendorCDR_20' ) start [2025-04-18 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934149', 'tblTempVendorCDR_20' ) end [2025-04-18 07:44:18] Production.INFO: ProcessCDR(1,14934149,1,1,2) [2025-04-18 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934149', 'tblTempUsageDetail_20' ) start [2025-04-18 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934149', 'tblTempUsageDetail_20' ) end [2025-04-18 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:44:21] Production.INFO: ==17890== Releasing lock... [2025-04-18 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:44:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:45:05 [end_date_ymd] => 2025-04-18 07:45:05 [RateCDR] => 1 ) [2025-04-18 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:45:05' and `end` < '2025-04-18 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:45:18] Production.INFO: count ==44 [2025-04-18 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:45:05 - End Time 2025-04-18 07:45:05 [2025-04-18 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934154', 'tblTempUsageDetail_20' ) start [2025-04-18 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934154', 'tblTempUsageDetail_20' ) end [2025-04-18 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934154', 'tblTempVendorCDR_20' ) start [2025-04-18 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934154', 'tblTempVendorCDR_20' ) end [2025-04-18 07:45:18] Production.INFO: ProcessCDR(1,14934154,1,1,2) [2025-04-18 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934154', 'tblTempUsageDetail_20' ) start [2025-04-18 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934154', 'tblTempUsageDetail_20' ) end [2025-04-18 07:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:45:23] Production.INFO: ==17962== Releasing lock... [2025-04-18 07:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:45:23] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:46:05 [end_date_ymd] => 2025-04-18 07:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:46:05' and `end` < '2025-04-18 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-04-18 07:46:18] Production.INFO: count ==45 [2025-04-18 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:46:05 - End Time 2025-04-18 07:46:05 [2025-04-18 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934159', 'tblTempUsageDetail_20' ) start [2025-04-18 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934159', 'tblTempUsageDetail_20' ) end [2025-04-18 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934159', 'tblTempVendorCDR_20' ) start [2025-04-18 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934159', 'tblTempVendorCDR_20' ) end [2025-04-18 07:46:18] Production.INFO: ProcessCDR(1,14934159,1,1,2) [2025-04-18 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934159', 'tblTempUsageDetail_20' ) start [2025-04-18 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934159', 'tblTempUsageDetail_20' ) end [2025-04-18 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:46:22] Production.INFO: ==18032== Releasing lock... [2025-04-18 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:46:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:47:05 [end_date_ymd] => 2025-04-18 07:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:47:05' and `end` < '2025-04-18 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-04-18 07:47:18] Production.INFO: count ==45 [2025-04-18 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:47:05 - End Time 2025-04-18 07:47:05 [2025-04-18 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934164', 'tblTempUsageDetail_20' ) start [2025-04-18 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934164', 'tblTempUsageDetail_20' ) end [2025-04-18 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934164', 'tblTempVendorCDR_20' ) start [2025-04-18 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934164', 'tblTempVendorCDR_20' ) end [2025-04-18 07:47:18] Production.INFO: ProcessCDR(1,14934164,1,1,2) [2025-04-18 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934164', 'tblTempUsageDetail_20' ) start [2025-04-18 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934164', 'tblTempUsageDetail_20' ) end [2025-04-18 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:47:21] Production.INFO: ==18107== Releasing lock... [2025-04-18 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:47:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:48:04 [end_date_ymd] => 2025-04-18 07:48:04 [RateCDR] => 1 ) [2025-04-18 07: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-04-18 04:48:04' and `end` < '2025-04-18 07: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-04-18 07:48:17] Production.INFO: count ==45 [2025-04-18 07:48:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:48:04 - End Time 2025-04-18 07:48:04 [2025-04-18 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934169', 'tblTempUsageDetail_20' ) start [2025-04-18 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934169', 'tblTempUsageDetail_20' ) end [2025-04-18 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934169', 'tblTempVendorCDR_20' ) start [2025-04-18 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934169', 'tblTempVendorCDR_20' ) end [2025-04-18 07:48:17] Production.INFO: ProcessCDR(1,14934169,1,1,2) [2025-04-18 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934169', 'tblTempUsageDetail_20' ) start [2025-04-18 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934169', 'tblTempUsageDetail_20' ) end [2025-04-18 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:48:20] Production.INFO: ==18181== Releasing lock... [2025-04-18 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:48:20] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:49:05 [end_date_ymd] => 2025-04-18 07:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:49:05' and `end` < '2025-04-18 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-04-18 07:49:17] Production.INFO: count ==44 [2025-04-18 07:49:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:49:05 - End Time 2025-04-18 07:49:05 [2025-04-18 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934174', 'tblTempUsageDetail_20' ) start [2025-04-18 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934174', 'tblTempUsageDetail_20' ) end [2025-04-18 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934174', 'tblTempVendorCDR_20' ) start [2025-04-18 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934174', 'tblTempVendorCDR_20' ) end [2025-04-18 07:49:17] Production.INFO: ProcessCDR(1,14934174,1,1,2) [2025-04-18 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934174', 'tblTempUsageDetail_20' ) start [2025-04-18 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934174', 'tblTempUsageDetail_20' ) end [2025-04-18 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:49:21] Production.INFO: ==18255== Releasing lock... [2025-04-18 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:49:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:50:06 [end_date_ymd] => 2025-04-18 07:50:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:50:06' and `end` < '2025-04-18 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-04-18 07:50:19] Production.INFO: count ==44 [2025-04-18 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 04:50:06 - End Time 2025-04-18 07:50:06 [2025-04-18 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934180', 'tblTempUsageDetail_20' ) start [2025-04-18 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934180', 'tblTempUsageDetail_20' ) end [2025-04-18 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934180', 'tblTempVendorCDR_20' ) start [2025-04-18 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934180', 'tblTempVendorCDR_20' ) end [2025-04-18 07:50:19] Production.INFO: ProcessCDR(1,14934180,1,1,2) [2025-04-18 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934180', 'tblTempUsageDetail_20' ) start [2025-04-18 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934180', 'tblTempUsageDetail_20' ) end [2025-04-18 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:50:22] Production.INFO: ==18333== Releasing lock... [2025-04-18 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:50:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:51:04 [end_date_ymd] => 2025-04-18 07:51:04 [RateCDR] => 1 ) [2025-04-18 07:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:51:04' and `end` < '2025-04-18 07:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:51:17] Production.INFO: count ==45 [2025-04-18 07:51:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:51:04 - End Time 2025-04-18 07:51:04 [2025-04-18 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934185', 'tblTempUsageDetail_20' ) start [2025-04-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934185', 'tblTempUsageDetail_20' ) end [2025-04-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934185', 'tblTempVendorCDR_20' ) start [2025-04-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934185', 'tblTempVendorCDR_20' ) end [2025-04-18 07:51:17] Production.INFO: ProcessCDR(1,14934185,1,1,2) [2025-04-18 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934185', 'tblTempUsageDetail_20' ) start [2025-04-18 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934185', 'tblTempUsageDetail_20' ) end [2025-04-18 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:51:22] Production.INFO: ==18408== Releasing lock... [2025-04-18 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:51:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:52:05 [end_date_ymd] => 2025-04-18 07:52:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:52:05' and `end` < '2025-04-18 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-04-18 07:52:18] Production.INFO: count ==46 [2025-04-18 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:52:05 - End Time 2025-04-18 07:52:05 [2025-04-18 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934190', 'tblTempUsageDetail_20' ) start [2025-04-18 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934190', 'tblTempUsageDetail_20' ) end [2025-04-18 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934190', 'tblTempVendorCDR_20' ) start [2025-04-18 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934190', 'tblTempVendorCDR_20' ) end [2025-04-18 07:52:18] Production.INFO: ProcessCDR(1,14934190,1,1,2) [2025-04-18 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934190', 'tblTempUsageDetail_20' ) start [2025-04-18 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934190', 'tblTempUsageDetail_20' ) end [2025-04-18 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:52:23] Production.INFO: ==18483== Releasing lock... [2025-04-18 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:52:23] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:53:05 [end_date_ymd] => 2025-04-18 07:53:05 [RateCDR] => 1 ) [2025-04-18 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:53:05' and `end` < '2025-04-18 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:53:17] Production.INFO: count ==46 [2025-04-18 07:53:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:53:05 - End Time 2025-04-18 07:53:05 [2025-04-18 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934195', 'tblTempUsageDetail_20' ) start [2025-04-18 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934195', 'tblTempUsageDetail_20' ) end [2025-04-18 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934195', 'tblTempVendorCDR_20' ) start [2025-04-18 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934195', 'tblTempVendorCDR_20' ) end [2025-04-18 07:53:17] Production.INFO: ProcessCDR(1,14934195,1,1,2) [2025-04-18 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934195', 'tblTempUsageDetail_20' ) start [2025-04-18 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934195', 'tblTempUsageDetail_20' ) end [2025-04-18 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:53:20] Production.INFO: ==18560== Releasing lock... [2025-04-18 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:53:20] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:54:06 [end_date_ymd] => 2025-04-18 07:54:06 [RateCDR] => 1 ) [2025-04-18 07: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-04-18 04:54:06' and `end` < '2025-04-18 07: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-04-18 07:54:18] Production.INFO: count ==46 [2025-04-18 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:54:06 - End Time 2025-04-18 07:54:06 [2025-04-18 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934200', 'tblTempUsageDetail_20' ) start [2025-04-18 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934200', 'tblTempUsageDetail_20' ) end [2025-04-18 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934200', 'tblTempVendorCDR_20' ) start [2025-04-18 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934200', 'tblTempVendorCDR_20' ) end [2025-04-18 07:54:18] Production.INFO: ProcessCDR(1,14934200,1,1,2) [2025-04-18 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934200', 'tblTempUsageDetail_20' ) start [2025-04-18 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934200', 'tblTempUsageDetail_20' ) end [2025-04-18 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:54:21] Production.INFO: ==18640== Releasing lock... [2025-04-18 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:54:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:55:06 [end_date_ymd] => 2025-04-18 07:55:06 [RateCDR] => 1 ) [2025-04-18 07: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-04-18 04:55:06' and `end` < '2025-04-18 07: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-04-18 07:55:18] Production.INFO: count ==46 [2025-04-18 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:55:06 - End Time 2025-04-18 07:55:06 [2025-04-18 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934205', 'tblTempUsageDetail_20' ) start [2025-04-18 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934205', 'tblTempUsageDetail_20' ) end [2025-04-18 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934205', 'tblTempVendorCDR_20' ) start [2025-04-18 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934205', 'tblTempVendorCDR_20' ) end [2025-04-18 07:55:18] Production.INFO: ProcessCDR(1,14934205,1,1,2) [2025-04-18 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934205', 'tblTempUsageDetail_20' ) start [2025-04-18 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934205', 'tblTempUsageDetail_20' ) end [2025-04-18 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:55:22] Production.INFO: ==18751== Releasing lock... [2025-04-18 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:55:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:56:05 [end_date_ymd] => 2025-04-18 07:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:56:05' and `end` < '2025-04-18 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-04-18 07:56:18] Production.INFO: count ==45 [2025-04-18 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:56:05 - End Time 2025-04-18 07:56:05 [2025-04-18 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934210', 'tblTempUsageDetail_20' ) start [2025-04-18 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934210', 'tblTempUsageDetail_20' ) end [2025-04-18 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934210', 'tblTempVendorCDR_20' ) start [2025-04-18 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934210', 'tblTempVendorCDR_20' ) end [2025-04-18 07:56:18] Production.INFO: ProcessCDR(1,14934210,1,1,2) [2025-04-18 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934210', 'tblTempUsageDetail_20' ) start [2025-04-18 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934210', 'tblTempUsageDetail_20' ) end [2025-04-18 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:56:21] Production.INFO: ==18832== Releasing lock... [2025-04-18 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:56:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:57:05 [end_date_ymd] => 2025-04-18 07:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:57:05' and `end` < '2025-04-18 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-04-18 07:57:17] Production.INFO: count ==44 [2025-04-18 07:57:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:57:05 - End Time 2025-04-18 07:57:05 [2025-04-18 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934215', 'tblTempUsageDetail_20' ) start [2025-04-18 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934215', 'tblTempUsageDetail_20' ) end [2025-04-18 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934215', 'tblTempVendorCDR_20' ) start [2025-04-18 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934215', 'tblTempVendorCDR_20' ) end [2025-04-18 07:57:17] Production.INFO: ProcessCDR(1,14934215,1,1,2) [2025-04-18 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934215', 'tblTempUsageDetail_20' ) start [2025-04-18 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934215', 'tblTempUsageDetail_20' ) end [2025-04-18 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:57:21] Production.INFO: ==18910== Releasing lock... [2025-04-18 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:57:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:58:05 [end_date_ymd] => 2025-04-18 07:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 04:58:05' and `end` < '2025-04-18 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-04-18 07:58:18] Production.INFO: count ==44 [2025-04-18 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-18 04:58:05 - End Time 2025-04-18 07:58:05 [2025-04-18 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934220', 'tblTempUsageDetail_20' ) start [2025-04-18 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934220', 'tblTempUsageDetail_20' ) end [2025-04-18 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934220', 'tblTempVendorCDR_20' ) start [2025-04-18 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934220', 'tblTempVendorCDR_20' ) end [2025-04-18 07:58:18] Production.INFO: ProcessCDR(1,14934220,1,1,2) [2025-04-18 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934220', 'tblTempUsageDetail_20' ) start [2025-04-18 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934220', 'tblTempUsageDetail_20' ) end [2025-04-18 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:58:21] Production.INFO: ==18988== Releasing lock... [2025-04-18 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:58:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 04:59:05 [end_date_ymd] => 2025-04-18 07:59:05 [RateCDR] => 1 ) [2025-04-18 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 04:59:05' and `end` < '2025-04-18 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 07:59:17] Production.INFO: count ==44 [2025-04-18 07:59:17] Production.ERROR: pbx CDR StartTime 2025-04-18 04:59:05 - End Time 2025-04-18 07:59:05 [2025-04-18 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934225', 'tblTempUsageDetail_20' ) start [2025-04-18 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934225', 'tblTempUsageDetail_20' ) end [2025-04-18 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934225', 'tblTempVendorCDR_20' ) start [2025-04-18 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934225', 'tblTempVendorCDR_20' ) end [2025-04-18 07:59:18] Production.INFO: ProcessCDR(1,14934225,1,1,2) [2025-04-18 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934225', 'tblTempUsageDetail_20' ) start [2025-04-18 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934225', 'tblTempUsageDetail_20' ) end [2025-04-18 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 07:59:21] Production.INFO: ==19059== Releasing lock... [2025-04-18 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 07:59:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:00:06 [end_date_ymd] => 2025-04-18 08:00:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:00:06' and `end` < '2025-04-18 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-04-18 08:00:19] Production.INFO: count ==44 [2025-04-18 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-18 05:00:06 - End Time 2025-04-18 08:00:06 [2025-04-18 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934231', 'tblTempUsageDetail_20' ) start [2025-04-18 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934231', 'tblTempUsageDetail_20' ) end [2025-04-18 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934231', 'tblTempVendorCDR_20' ) start [2025-04-18 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934231', 'tblTempVendorCDR_20' ) end [2025-04-18 08:00:19] Production.INFO: ProcessCDR(1,14934231,1,1,2) [2025-04-18 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934231', 'tblTempUsageDetail_20' ) start [2025-04-18 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934231', 'tblTempUsageDetail_20' ) end [2025-04-18 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:00:22] Production.INFO: ==19137== Releasing lock... [2025-04-18 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:00:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:01:05 [end_date_ymd] => 2025-04-18 08:01:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:01:05' and `end` < '2025-04-18 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-04-18 08:01:18] Production.INFO: count ==42 [2025-04-18 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:01:05 - End Time 2025-04-18 08:01:05 [2025-04-18 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934236', 'tblTempUsageDetail_20' ) start [2025-04-18 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934236', 'tblTempUsageDetail_20' ) end [2025-04-18 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934236', 'tblTempVendorCDR_20' ) start [2025-04-18 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934236', 'tblTempVendorCDR_20' ) end [2025-04-18 08:01:18] Production.INFO: ProcessCDR(1,14934236,1,1,2) [2025-04-18 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934236', 'tblTempUsageDetail_20' ) start [2025-04-18 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934236', 'tblTempUsageDetail_20' ) end [2025-04-18 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:01:21] Production.INFO: ==19226== Releasing lock... [2025-04-18 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:01:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:02:05 [end_date_ymd] => 2025-04-18 08:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:02:05' and `end` < '2025-04-18 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-04-18 08:02:17] Production.INFO: count ==42 [2025-04-18 08:02:17] Production.ERROR: pbx CDR StartTime 2025-04-18 05:02:05 - End Time 2025-04-18 08:02:05 [2025-04-18 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934241', 'tblTempUsageDetail_20' ) start [2025-04-18 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934241', 'tblTempUsageDetail_20' ) end [2025-04-18 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934241', 'tblTempVendorCDR_20' ) start [2025-04-18 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934241', 'tblTempVendorCDR_20' ) end [2025-04-18 08:02:17] Production.INFO: ProcessCDR(1,14934241,1,1,2) [2025-04-18 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934241', 'tblTempUsageDetail_20' ) start [2025-04-18 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934241', 'tblTempUsageDetail_20' ) end [2025-04-18 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:02:21] Production.INFO: ==19300== Releasing lock... [2025-04-18 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:02:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:03:06 [end_date_ymd] => 2025-04-18 08:03:06 [RateCDR] => 1 ) [2025-04-18 08: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-04-18 05:03:06' and `end` < '2025-04-18 08: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-04-18 08:03:18] Production.INFO: count ==48 [2025-04-18 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:03:06 - End Time 2025-04-18 08:03:06 [2025-04-18 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934246', 'tblTempUsageDetail_20' ) start [2025-04-18 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934246', 'tblTempUsageDetail_20' ) end [2025-04-18 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934246', 'tblTempVendorCDR_20' ) start [2025-04-18 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934246', 'tblTempVendorCDR_20' ) end [2025-04-18 08:03:18] Production.INFO: ProcessCDR(1,14934246,1,1,2) [2025-04-18 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934246', 'tblTempUsageDetail_20' ) start [2025-04-18 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934246', 'tblTempUsageDetail_20' ) end [2025-04-18 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:03:22] Production.INFO: ==19380== Releasing lock... [2025-04-18 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:03:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:04:05 [end_date_ymd] => 2025-04-18 08:04:05 [RateCDR] => 1 ) [2025-04-18 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:04:05' and `end` < '2025-04-18 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:04:17] Production.INFO: count ==48 [2025-04-18 08:04:17] Production.ERROR: pbx CDR StartTime 2025-04-18 05:04:05 - End Time 2025-04-18 08:04:05 [2025-04-18 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934251', 'tblTempUsageDetail_20' ) start [2025-04-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934251', 'tblTempUsageDetail_20' ) end [2025-04-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934251', 'tblTempVendorCDR_20' ) start [2025-04-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934251', 'tblTempVendorCDR_20' ) end [2025-04-18 08:04:17] Production.INFO: ProcessCDR(1,14934251,1,1,2) [2025-04-18 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934251', 'tblTempUsageDetail_20' ) start [2025-04-18 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934251', 'tblTempUsageDetail_20' ) end [2025-04-18 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:04:21] Production.INFO: ==19450== Releasing lock... [2025-04-18 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:04:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:05:05 [end_date_ymd] => 2025-04-18 08:05:05 [RateCDR] => 1 ) [2025-04-18 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:05:05' and `end` < '2025-04-18 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:05:18] Production.INFO: count ==48 [2025-04-18 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:05:05 - End Time 2025-04-18 08:05:05 [2025-04-18 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934256', 'tblTempUsageDetail_20' ) start [2025-04-18 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934256', 'tblTempUsageDetail_20' ) end [2025-04-18 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934256', 'tblTempVendorCDR_20' ) start [2025-04-18 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934256', 'tblTempVendorCDR_20' ) end [2025-04-18 08:05:18] Production.INFO: ProcessCDR(1,14934256,1,1,2) [2025-04-18 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934256', 'tblTempUsageDetail_20' ) start [2025-04-18 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934256', 'tblTempUsageDetail_20' ) end [2025-04-18 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:05:21] Production.INFO: ==19525== Releasing lock... [2025-04-18 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:05:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:06:05 [end_date_ymd] => 2025-04-18 08:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:06:05' and `end` < '2025-04-18 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-04-18 08:06:17] Production.INFO: count ==48 [2025-04-18 08:06:17] Production.ERROR: pbx CDR StartTime 2025-04-18 05:06:05 - End Time 2025-04-18 08:06:05 [2025-04-18 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934261', 'tblTempUsageDetail_20' ) start [2025-04-18 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934261', 'tblTempUsageDetail_20' ) end [2025-04-18 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934261', 'tblTempVendorCDR_20' ) start [2025-04-18 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934261', 'tblTempVendorCDR_20' ) end [2025-04-18 08:06:17] Production.INFO: ProcessCDR(1,14934261,1,1,2) [2025-04-18 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934261', 'tblTempUsageDetail_20' ) start [2025-04-18 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934261', 'tblTempUsageDetail_20' ) end [2025-04-18 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:06:21] Production.INFO: ==19598== Releasing lock... [2025-04-18 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:06:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:07:05 [end_date_ymd] => 2025-04-18 08:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:07:05' and `end` < '2025-04-18 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-04-18 08:07:18] Production.INFO: count ==48 [2025-04-18 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:07:05 - End Time 2025-04-18 08:07:05 [2025-04-18 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934266', 'tblTempUsageDetail_20' ) start [2025-04-18 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934266', 'tblTempUsageDetail_20' ) end [2025-04-18 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934266', 'tblTempVendorCDR_20' ) start [2025-04-18 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934266', 'tblTempVendorCDR_20' ) end [2025-04-18 08:07:18] Production.INFO: ProcessCDR(1,14934266,1,1,2) [2025-04-18 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934266', 'tblTempUsageDetail_20' ) start [2025-04-18 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934266', 'tblTempUsageDetail_20' ) end [2025-04-18 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:07:21] Production.INFO: ==19673== Releasing lock... [2025-04-18 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:07:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:08:05 [end_date_ymd] => 2025-04-18 08:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:08:05' and `end` < '2025-04-18 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-04-18 08:08:17] Production.INFO: count ==46 [2025-04-18 08:08:17] Production.ERROR: pbx CDR StartTime 2025-04-18 05:08:05 - End Time 2025-04-18 08:08:05 [2025-04-18 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934271', 'tblTempUsageDetail_20' ) start [2025-04-18 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934271', 'tblTempUsageDetail_20' ) end [2025-04-18 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934271', 'tblTempVendorCDR_20' ) start [2025-04-18 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934271', 'tblTempVendorCDR_20' ) end [2025-04-18 08:08:17] Production.INFO: ProcessCDR(1,14934271,1,1,2) [2025-04-18 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934271', 'tblTempUsageDetail_20' ) start [2025-04-18 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934271', 'tblTempUsageDetail_20' ) end [2025-04-18 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:08:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:08:20] Production.INFO: ==19752== Releasing lock... [2025-04-18 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:08:20] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:09:05 [end_date_ymd] => 2025-04-18 08:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:09:05' and `end` < '2025-04-18 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-04-18 08:09:17] Production.INFO: count ==47 [2025-04-18 08:09:17] Production.ERROR: pbx CDR StartTime 2025-04-18 05:09:05 - End Time 2025-04-18 08:09:05 [2025-04-18 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934276', 'tblTempUsageDetail_20' ) start [2025-04-18 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934276', 'tblTempUsageDetail_20' ) end [2025-04-18 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934276', 'tblTempVendorCDR_20' ) start [2025-04-18 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934276', 'tblTempVendorCDR_20' ) end [2025-04-18 08:09:17] Production.INFO: ProcessCDR(1,14934276,1,1,2) [2025-04-18 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934276', 'tblTempUsageDetail_20' ) start [2025-04-18 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934276', 'tblTempUsageDetail_20' ) end [2025-04-18 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:09:20] Production.INFO: ==19827== Releasing lock... [2025-04-18 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:09:20] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:10:06 [end_date_ymd] => 2025-04-18 08:10:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:10:06' and `end` < '2025-04-18 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-04-18 08:10:19] Production.INFO: count ==47 [2025-04-18 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-18 05:10:06 - End Time 2025-04-18 08:10:06 [2025-04-18 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934282', 'tblTempUsageDetail_20' ) start [2025-04-18 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934282', 'tblTempUsageDetail_20' ) end [2025-04-18 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934282', 'tblTempVendorCDR_20' ) start [2025-04-18 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934282', 'tblTempVendorCDR_20' ) end [2025-04-18 08:10:19] Production.INFO: ProcessCDR(1,14934282,1,1,2) [2025-04-18 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934282', 'tblTempUsageDetail_20' ) start [2025-04-18 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934282', 'tblTempUsageDetail_20' ) end [2025-04-18 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:10:22] Production.INFO: ==19954== Releasing lock... [2025-04-18 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:10:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:11:05 [end_date_ymd] => 2025-04-18 08:11:05 [RateCDR] => 1 ) [2025-04-18 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:11:05' and `end` < '2025-04-18 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:11:18] Production.INFO: count ==47 [2025-04-18 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:11:05 - End Time 2025-04-18 08:11:05 [2025-04-18 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934287', 'tblTempUsageDetail_20' ) start [2025-04-18 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934287', 'tblTempUsageDetail_20' ) end [2025-04-18 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934287', 'tblTempVendorCDR_20' ) start [2025-04-18 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934287', 'tblTempVendorCDR_20' ) end [2025-04-18 08:11:18] Production.INFO: ProcessCDR(1,14934287,1,1,2) [2025-04-18 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934287', 'tblTempUsageDetail_20' ) start [2025-04-18 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934287', 'tblTempUsageDetail_20' ) end [2025-04-18 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:11:21] Production.INFO: ==20052== Releasing lock... [2025-04-18 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:11:21] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:12:05 [end_date_ymd] => 2025-04-18 08:12:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:12:05' and `end` < '2025-04-18 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-04-18 08:12:18] Production.INFO: count ==47 [2025-04-18 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:12:05 - End Time 2025-04-18 08:12:05 [2025-04-18 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934292', 'tblTempUsageDetail_20' ) start [2025-04-18 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934292', 'tblTempUsageDetail_20' ) end [2025-04-18 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934292', 'tblTempVendorCDR_20' ) start [2025-04-18 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934292', 'tblTempVendorCDR_20' ) end [2025-04-18 08:12:18] Production.INFO: ProcessCDR(1,14934292,1,1,2) [2025-04-18 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934292', 'tblTempUsageDetail_20' ) start [2025-04-18 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934292', 'tblTempUsageDetail_20' ) end [2025-04-18 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:12:22] Production.INFO: ==20147== Releasing lock... [2025-04-18 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:12:22] Production.INFO: 28 MB #Memory Used# [2025-04-18 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:13:05 [end_date_ymd] => 2025-04-18 08:13:05 [RateCDR] => 1 ) [2025-04-18 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:13:05' and `end` < '2025-04-18 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:13:18] Production.INFO: count ==49 [2025-04-18 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:13:05 - End Time 2025-04-18 08:13:05 [2025-04-18 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934297', 'tblTempUsageDetail_20' ) start [2025-04-18 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934297', 'tblTempUsageDetail_20' ) end [2025-04-18 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934297', 'tblTempVendorCDR_20' ) start [2025-04-18 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934297', 'tblTempVendorCDR_20' ) end [2025-04-18 08:13:18] Production.INFO: ProcessCDR(1,14934297,1,1,2) [2025-04-18 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934297', 'tblTempUsageDetail_20' ) start [2025-04-18 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934297', 'tblTempUsageDetail_20' ) end [2025-04-18 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:13:21] Production.INFO: ==20239== Releasing lock... [2025-04-18 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:14:05 [end_date_ymd] => 2025-04-18 08:14:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:14:05' and `end` < '2025-04-18 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-04-18 08:14:18] Production.INFO: count ==50 [2025-04-18 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:14:05 - End Time 2025-04-18 08:14:05 [2025-04-18 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934302', 'tblTempUsageDetail_20' ) start [2025-04-18 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934302', 'tblTempUsageDetail_20' ) end [2025-04-18 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934302', 'tblTempVendorCDR_20' ) start [2025-04-18 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934302', 'tblTempVendorCDR_20' ) end [2025-04-18 08:14:18] Production.INFO: ProcessCDR(1,14934302,1,1,2) [2025-04-18 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934302', 'tblTempUsageDetail_20' ) start [2025-04-18 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934302', 'tblTempUsageDetail_20' ) end [2025-04-18 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:14:21] Production.INFO: ==20336== Releasing lock... [2025-04-18 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:15:05 [end_date_ymd] => 2025-04-18 08:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:15:05' and `end` < '2025-04-18 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-04-18 08:15:18] Production.INFO: count ==57 [2025-04-18 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:15:05 - End Time 2025-04-18 08:15:05 [2025-04-18 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934307', 'tblTempUsageDetail_20' ) start [2025-04-18 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934307', 'tblTempUsageDetail_20' ) end [2025-04-18 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934307', 'tblTempVendorCDR_20' ) start [2025-04-18 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934307', 'tblTempVendorCDR_20' ) end [2025-04-18 08:15:18] Production.INFO: ProcessCDR(1,14934307,1,1,2) [2025-04-18 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934307', 'tblTempUsageDetail_20' ) start [2025-04-18 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934307', 'tblTempUsageDetail_20' ) end [2025-04-18 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:15:21] Production.INFO: ==20433== Releasing lock... [2025-04-18 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:16:05 [end_date_ymd] => 2025-04-18 08:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:16:05' and `end` < '2025-04-18 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-04-18 08:16:18] Production.INFO: count ==57 [2025-04-18 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:16:05 - End Time 2025-04-18 08:16:05 [2025-04-18 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934312', 'tblTempUsageDetail_20' ) start [2025-04-18 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934312', 'tblTempUsageDetail_20' ) end [2025-04-18 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934312', 'tblTempVendorCDR_20' ) start [2025-04-18 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934312', 'tblTempVendorCDR_20' ) end [2025-04-18 08:16:18] Production.INFO: ProcessCDR(1,14934312,1,1,2) [2025-04-18 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934312', 'tblTempUsageDetail_20' ) start [2025-04-18 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934312', 'tblTempUsageDetail_20' ) end [2025-04-18 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:16:22] Production.INFO: ==20532== Releasing lock... [2025-04-18 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:17:06 [end_date_ymd] => 2025-04-18 08:17:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:17:06' and `end` < '2025-04-18 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-04-18 08:17:18] Production.INFO: count ==57 [2025-04-18 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:17:06 - End Time 2025-04-18 08:17:06 [2025-04-18 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934317', 'tblTempUsageDetail_20' ) start [2025-04-18 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934317', 'tblTempUsageDetail_20' ) end [2025-04-18 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934317', 'tblTempVendorCDR_20' ) start [2025-04-18 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934317', 'tblTempVendorCDR_20' ) end [2025-04-18 08:17:18] Production.INFO: ProcessCDR(1,14934317,1,1,2) [2025-04-18 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934317', 'tblTempUsageDetail_20' ) start [2025-04-18 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934317', 'tblTempUsageDetail_20' ) end [2025-04-18 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:17:22] Production.INFO: ==20622== Releasing lock... [2025-04-18 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:18:05 [end_date_ymd] => 2025-04-18 08:18:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:18:05' and `end` < '2025-04-18 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-04-18 08:18:18] Production.INFO: count ==57 [2025-04-18 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:18:05 - End Time 2025-04-18 08:18:05 [2025-04-18 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934322', 'tblTempUsageDetail_20' ) start [2025-04-18 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934322', 'tblTempUsageDetail_20' ) end [2025-04-18 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934322', 'tblTempVendorCDR_20' ) start [2025-04-18 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934322', 'tblTempVendorCDR_20' ) end [2025-04-18 08:18:18] Production.INFO: ProcessCDR(1,14934322,1,1,2) [2025-04-18 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934322', 'tblTempUsageDetail_20' ) start [2025-04-18 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934322', 'tblTempUsageDetail_20' ) end [2025-04-18 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:18:21] Production.INFO: ==20715== Releasing lock... [2025-04-18 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:19:05 [end_date_ymd] => 2025-04-18 08:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:19:05' and `end` < '2025-04-18 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-04-18 08:19:18] Production.INFO: count ==57 [2025-04-18 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:19:05 - End Time 2025-04-18 08:19:05 [2025-04-18 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934327', 'tblTempUsageDetail_20' ) start [2025-04-18 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934327', 'tblTempUsageDetail_20' ) end [2025-04-18 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934327', 'tblTempVendorCDR_20' ) start [2025-04-18 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934327', 'tblTempVendorCDR_20' ) end [2025-04-18 08:19:18] Production.INFO: ProcessCDR(1,14934327,1,1,2) [2025-04-18 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934327', 'tblTempUsageDetail_20' ) start [2025-04-18 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934327', 'tblTempUsageDetail_20' ) end [2025-04-18 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:19:21] Production.INFO: ==20808== Releasing lock... [2025-04-18 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:20:06 [end_date_ymd] => 2025-04-18 08:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:20:06' and `end` < '2025-04-18 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-04-18 08:20:19] Production.INFO: count ==59 [2025-04-18 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 05:20:06 - End Time 2025-04-18 08:20:06 [2025-04-18 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934333', 'tblTempUsageDetail_20' ) start [2025-04-18 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934333', 'tblTempUsageDetail_20' ) end [2025-04-18 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934333', 'tblTempVendorCDR_20' ) start [2025-04-18 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934333', 'tblTempVendorCDR_20' ) end [2025-04-18 08:20:19] Production.INFO: ProcessCDR(1,14934333,1,1,2) [2025-04-18 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934333', 'tblTempUsageDetail_20' ) start [2025-04-18 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934333', 'tblTempUsageDetail_20' ) end [2025-04-18 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:20:22] Production.INFO: ==20905== Releasing lock... [2025-04-18 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:21:06 [end_date_ymd] => 2025-04-18 08:21:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:21:06' and `end` < '2025-04-18 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-04-18 08:21:19] Production.INFO: count ==57 [2025-04-18 08:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 05:21:06 - End Time 2025-04-18 08:21:06 [2025-04-18 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934338', 'tblTempUsageDetail_20' ) start [2025-04-18 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934338', 'tblTempUsageDetail_20' ) end [2025-04-18 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934338', 'tblTempVendorCDR_20' ) start [2025-04-18 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934338', 'tblTempVendorCDR_20' ) end [2025-04-18 08:21:19] Production.INFO: ProcessCDR(1,14934338,1,1,2) [2025-04-18 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934338', 'tblTempUsageDetail_20' ) start [2025-04-18 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934338', 'tblTempUsageDetail_20' ) end [2025-04-18 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:21:22] Production.INFO: ==21004== Releasing lock... [2025-04-18 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:22:05 [end_date_ymd] => 2025-04-18 08:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:22:05' and `end` < '2025-04-18 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-04-18 08:22:18] Production.INFO: count ==57 [2025-04-18 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:22:05 - End Time 2025-04-18 08:22:05 [2025-04-18 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934343', 'tblTempUsageDetail_20' ) start [2025-04-18 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934343', 'tblTempUsageDetail_20' ) end [2025-04-18 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934343', 'tblTempVendorCDR_20' ) start [2025-04-18 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934343', 'tblTempVendorCDR_20' ) end [2025-04-18 08:22:18] Production.INFO: ProcessCDR(1,14934343,1,1,2) [2025-04-18 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934343', 'tblTempUsageDetail_20' ) start [2025-04-18 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934343', 'tblTempUsageDetail_20' ) end [2025-04-18 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:22:22] Production.INFO: ==21093== Releasing lock... [2025-04-18 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:23:05 [end_date_ymd] => 2025-04-18 08:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:23:05' and `end` < '2025-04-18 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-04-18 08:23:18] Production.INFO: count ==57 [2025-04-18 08:23:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:23:05 - End Time 2025-04-18 08:23:05 [2025-04-18 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934348', 'tblTempUsageDetail_20' ) start [2025-04-18 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934348', 'tblTempUsageDetail_20' ) end [2025-04-18 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934348', 'tblTempVendorCDR_20' ) start [2025-04-18 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934348', 'tblTempVendorCDR_20' ) end [2025-04-18 08:23:18] Production.INFO: ProcessCDR(1,14934348,1,1,2) [2025-04-18 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934348', 'tblTempUsageDetail_20' ) start [2025-04-18 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934348', 'tblTempUsageDetail_20' ) end [2025-04-18 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:23:22] Production.INFO: ==21185== Releasing lock... [2025-04-18 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:24:05 [end_date_ymd] => 2025-04-18 08:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:24:05' and `end` < '2025-04-18 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-04-18 08:24:17] Production.INFO: count ==57 [2025-04-18 08:24:17] Production.ERROR: pbx CDR StartTime 2025-04-18 05:24:05 - End Time 2025-04-18 08:24:05 [2025-04-18 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934352', 'tblTempUsageDetail_20' ) start [2025-04-18 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934352', 'tblTempUsageDetail_20' ) end [2025-04-18 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934352', 'tblTempVendorCDR_20' ) start [2025-04-18 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934352', 'tblTempVendorCDR_20' ) end [2025-04-18 08:24:17] Production.INFO: ProcessCDR(1,14934352,1,1,2) [2025-04-18 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934352', 'tblTempUsageDetail_20' ) start [2025-04-18 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934352', 'tblTempUsageDetail_20' ) end [2025-04-18 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:24:21] Production.INFO: ==21281== Releasing lock... [2025-04-18 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:25:05 [end_date_ymd] => 2025-04-18 08:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:25:05' and `end` < '2025-04-18 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-04-18 08:25:18] Production.INFO: count ==57 [2025-04-18 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:25:05 - End Time 2025-04-18 08:25:05 [2025-04-18 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934358', 'tblTempUsageDetail_20' ) start [2025-04-18 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934358', 'tblTempUsageDetail_20' ) end [2025-04-18 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934358', 'tblTempVendorCDR_20' ) start [2025-04-18 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934358', 'tblTempVendorCDR_20' ) end [2025-04-18 08:25:18] Production.INFO: ProcessCDR(1,14934358,1,1,2) [2025-04-18 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934358', 'tblTempUsageDetail_20' ) start [2025-04-18 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934358', 'tblTempUsageDetail_20' ) end [2025-04-18 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:25:21] Production.INFO: ==21375== Releasing lock... [2025-04-18 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:26:05 [end_date_ymd] => 2025-04-18 08:26:05 [RateCDR] => 1 ) [2025-04-18 08: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-04-18 05:26:05' and `end` < '2025-04-18 08: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-04-18 08:26:18] Production.INFO: count ==58 [2025-04-18 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:26:05 - End Time 2025-04-18 08:26:05 [2025-04-18 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934363', 'tblTempUsageDetail_20' ) start [2025-04-18 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934363', 'tblTempUsageDetail_20' ) end [2025-04-18 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934363', 'tblTempVendorCDR_20' ) start [2025-04-18 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934363', 'tblTempVendorCDR_20' ) end [2025-04-18 08:26:18] Production.INFO: ProcessCDR(1,14934363,1,1,2) [2025-04-18 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934363', 'tblTempUsageDetail_20' ) start [2025-04-18 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934363', 'tblTempUsageDetail_20' ) end [2025-04-18 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:26:21] Production.INFO: ==21513== Releasing lock... [2025-04-18 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:27:05 [end_date_ymd] => 2025-04-18 08:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:27:05' and `end` < '2025-04-18 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-04-18 08:27:18] Production.INFO: count ==58 [2025-04-18 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:27:05 - End Time 2025-04-18 08:27:05 [2025-04-18 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934368', 'tblTempUsageDetail_20' ) start [2025-04-18 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934368', 'tblTempUsageDetail_20' ) end [2025-04-18 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934368', 'tblTempVendorCDR_20' ) start [2025-04-18 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934368', 'tblTempVendorCDR_20' ) end [2025-04-18 08:27:18] Production.INFO: ProcessCDR(1,14934368,1,1,2) [2025-04-18 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934368', 'tblTempUsageDetail_20' ) start [2025-04-18 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934368', 'tblTempUsageDetail_20' ) end [2025-04-18 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:27:21] Production.INFO: ==21604== Releasing lock... [2025-04-18 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:28:05 [end_date_ymd] => 2025-04-18 08:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:28:05' and `end` < '2025-04-18 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-04-18 08:28:18] Production.INFO: count ==57 [2025-04-18 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:28:05 - End Time 2025-04-18 08:28:05 [2025-04-18 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934373', 'tblTempUsageDetail_20' ) start [2025-04-18 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934373', 'tblTempUsageDetail_20' ) end [2025-04-18 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934373', 'tblTempVendorCDR_20' ) start [2025-04-18 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934373', 'tblTempVendorCDR_20' ) end [2025-04-18 08:28:18] Production.INFO: ProcessCDR(1,14934373,1,1,2) [2025-04-18 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934373', 'tblTempUsageDetail_20' ) start [2025-04-18 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934373', 'tblTempUsageDetail_20' ) end [2025-04-18 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:28:21] Production.INFO: ==21699== Releasing lock... [2025-04-18 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:29:05 [end_date_ymd] => 2025-04-18 08:29:05 [RateCDR] => 1 ) [2025-04-18 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:29:05' and `end` < '2025-04-18 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-04-18 08:29:18] Production.INFO: count ==56 [2025-04-18 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:29:05 - End Time 2025-04-18 08:29:05 [2025-04-18 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934378', 'tblTempUsageDetail_20' ) start [2025-04-18 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934378', 'tblTempUsageDetail_20' ) end [2025-04-18 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934378', 'tblTempVendorCDR_20' ) start [2025-04-18 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934378', 'tblTempVendorCDR_20' ) end [2025-04-18 08:29:18] Production.INFO: ProcessCDR(1,14934378,1,1,2) [2025-04-18 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934378', 'tblTempUsageDetail_20' ) start [2025-04-18 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934378', 'tblTempUsageDetail_20' ) end [2025-04-18 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:29:22] Production.INFO: ==21789== Releasing lock... [2025-04-18 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:29:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:30:06 [end_date_ymd] => 2025-04-18 08:30:06 [RateCDR] => 1 ) [2025-04-18 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:30:06' and `end` < '2025-04-18 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:30:19] Production.INFO: count ==66 [2025-04-18 08:30:19] Production.ERROR: pbx CDR StartTime 2025-04-18 05:30:06 - End Time 2025-04-18 08:30:06 [2025-04-18 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934384', 'tblTempUsageDetail_20' ) start [2025-04-18 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934384', 'tblTempUsageDetail_20' ) end [2025-04-18 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934384', 'tblTempVendorCDR_20' ) start [2025-04-18 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934384', 'tblTempVendorCDR_20' ) end [2025-04-18 08:30:19] Production.INFO: ProcessCDR(1,14934384,1,1,2) [2025-04-18 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934384', 'tblTempUsageDetail_20' ) start [2025-04-18 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934384', 'tblTempUsageDetail_20' ) end [2025-04-18 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:30:22] Production.INFO: ==21885== Releasing lock... [2025-04-18 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-18 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:31:05 [end_date_ymd] => 2025-04-18 08:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:31:05' and `end` < '2025-04-18 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-04-18 08:31:18] Production.INFO: count ==81 [2025-04-18 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:31:05 - End Time 2025-04-18 08:31:05 [2025-04-18 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934389', 'tblTempUsageDetail_20' ) start [2025-04-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934389', 'tblTempUsageDetail_20' ) end [2025-04-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934389', 'tblTempVendorCDR_20' ) start [2025-04-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934389', 'tblTempVendorCDR_20' ) end [2025-04-18 08:31:18] Production.INFO: ProcessCDR(1,14934389,1,1,2) [2025-04-18 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934389', 'tblTempUsageDetail_20' ) start [2025-04-18 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934389', 'tblTempUsageDetail_20' ) end [2025-04-18 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:31:21] Production.INFO: ==21979== Releasing lock... [2025-04-18 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:32:06 [end_date_ymd] => 2025-04-18 08:32:06 [RateCDR] => 1 ) [2025-04-18 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:32:06' and `end` < '2025-04-18 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:32:19] Production.INFO: count ==81 [2025-04-18 08:32:19] Production.ERROR: pbx CDR StartTime 2025-04-18 05:32:06 - End Time 2025-04-18 08:32:06 [2025-04-18 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934394', 'tblTempUsageDetail_20' ) start [2025-04-18 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934394', 'tblTempUsageDetail_20' ) end [2025-04-18 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934394', 'tblTempVendorCDR_20' ) start [2025-04-18 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934394', 'tblTempVendorCDR_20' ) end [2025-04-18 08:32:19] Production.INFO: ProcessCDR(1,14934394,1,1,2) [2025-04-18 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934394', 'tblTempUsageDetail_20' ) start [2025-04-18 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934394', 'tblTempUsageDetail_20' ) end [2025-04-18 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:32:22] Production.INFO: ==22077== Releasing lock... [2025-04-18 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:32:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:33:05 [end_date_ymd] => 2025-04-18 08:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:33:05' and `end` < '2025-04-18 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-04-18 08:33:18] Production.INFO: count ==81 [2025-04-18 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:33:05 - End Time 2025-04-18 08:33:05 [2025-04-18 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934399', 'tblTempUsageDetail_20' ) start [2025-04-18 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934399', 'tblTempUsageDetail_20' ) end [2025-04-18 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934399', 'tblTempVendorCDR_20' ) start [2025-04-18 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934399', 'tblTempVendorCDR_20' ) end [2025-04-18 08:33:18] Production.INFO: ProcessCDR(1,14934399,1,1,2) [2025-04-18 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934399', 'tblTempUsageDetail_20' ) start [2025-04-18 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934399', 'tblTempUsageDetail_20' ) end [2025-04-18 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:33:21] Production.INFO: ==22172== Releasing lock... [2025-04-18 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:34:06 [end_date_ymd] => 2025-04-18 08:34:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:34:06' and `end` < '2025-04-18 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-04-18 08:34:18] Production.INFO: count ==81 [2025-04-18 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:34:06 - End Time 2025-04-18 08:34:06 [2025-04-18 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934404', 'tblTempUsageDetail_20' ) start [2025-04-18 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934404', 'tblTempUsageDetail_20' ) end [2025-04-18 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934404', 'tblTempVendorCDR_20' ) start [2025-04-18 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934404', 'tblTempVendorCDR_20' ) end [2025-04-18 08:34:18] Production.INFO: ProcessCDR(1,14934404,1,1,2) [2025-04-18 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934404', 'tblTempUsageDetail_20' ) start [2025-04-18 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934404', 'tblTempUsageDetail_20' ) end [2025-04-18 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:34:22] Production.INFO: ==22264== Releasing lock... [2025-04-18 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:35:05 [end_date_ymd] => 2025-04-18 08:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:35:05' and `end` < '2025-04-18 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-04-18 08:35:18] Production.INFO: count ==83 [2025-04-18 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:35:05 - End Time 2025-04-18 08:35:05 [2025-04-18 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934409', 'tblTempUsageDetail_20' ) start [2025-04-18 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934409', 'tblTempUsageDetail_20' ) end [2025-04-18 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934409', 'tblTempVendorCDR_20' ) start [2025-04-18 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934409', 'tblTempVendorCDR_20' ) end [2025-04-18 08:35:18] Production.INFO: ProcessCDR(1,14934409,1,1,2) [2025-04-18 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934409', 'tblTempUsageDetail_20' ) start [2025-04-18 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934409', 'tblTempUsageDetail_20' ) end [2025-04-18 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:35:23] Production.INFO: ==22360== Releasing lock... [2025-04-18 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:35:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-18 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:36:05 [end_date_ymd] => 2025-04-18 08:36:05 [RateCDR] => 1 ) [2025-04-18 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:36:05' and `end` < '2025-04-18 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:36:18] Production.INFO: count ==86 [2025-04-18 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:36:05 - End Time 2025-04-18 08:36:05 [2025-04-18 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934414', 'tblTempUsageDetail_20' ) start [2025-04-18 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934414', 'tblTempUsageDetail_20' ) end [2025-04-18 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934414', 'tblTempVendorCDR_20' ) start [2025-04-18 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934414', 'tblTempVendorCDR_20' ) end [2025-04-18 08:36:18] Production.INFO: ProcessCDR(1,14934414,1,1,2) [2025-04-18 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934414', 'tblTempUsageDetail_20' ) start [2025-04-18 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934414', 'tblTempUsageDetail_20' ) end [2025-04-18 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:36:22] Production.INFO: ==22446== Releasing lock... [2025-04-18 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-18 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:37:05 [end_date_ymd] => 2025-04-18 08:37:05 [RateCDR] => 1 ) [2025-04-18 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:37:05' and `end` < '2025-04-18 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:37:18] Production.INFO: count ==86 [2025-04-18 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:37:05 - End Time 2025-04-18 08:37:05 [2025-04-18 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934419', 'tblTempUsageDetail_20' ) start [2025-04-18 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934419', 'tblTempUsageDetail_20' ) end [2025-04-18 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934419', 'tblTempVendorCDR_20' ) start [2025-04-18 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934419', 'tblTempVendorCDR_20' ) end [2025-04-18 08:37:18] Production.INFO: ProcessCDR(1,14934419,1,1,2) [2025-04-18 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934419', 'tblTempUsageDetail_20' ) start [2025-04-18 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934419', 'tblTempUsageDetail_20' ) end [2025-04-18 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:37:21] Production.INFO: ==22525== Releasing lock... [2025-04-18 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-18 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:38:05 [end_date_ymd] => 2025-04-18 08:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:38:05' and `end` < '2025-04-18 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-04-18 08:38:18] Production.INFO: count ==87 [2025-04-18 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:38:05 - End Time 2025-04-18 08:38:05 [2025-04-18 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934424', 'tblTempUsageDetail_20' ) start [2025-04-18 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934424', 'tblTempUsageDetail_20' ) end [2025-04-18 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934424', 'tblTempVendorCDR_20' ) start [2025-04-18 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934424', 'tblTempVendorCDR_20' ) end [2025-04-18 08:38:18] Production.INFO: ProcessCDR(1,14934424,1,1,2) [2025-04-18 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934424', 'tblTempUsageDetail_20' ) start [2025-04-18 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934424', 'tblTempUsageDetail_20' ) end [2025-04-18 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:38:21] Production.INFO: ==22598== Releasing lock... [2025-04-18 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-18 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:39:05 [end_date_ymd] => 2025-04-18 08:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:39:05' and `end` < '2025-04-18 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-04-18 08:39:18] Production.INFO: count ==87 [2025-04-18 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:39:05 - End Time 2025-04-18 08:39:05 [2025-04-18 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934429', 'tblTempUsageDetail_20' ) start [2025-04-18 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934429', 'tblTempUsageDetail_20' ) end [2025-04-18 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934429', 'tblTempVendorCDR_20' ) start [2025-04-18 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934429', 'tblTempVendorCDR_20' ) end [2025-04-18 08:39:18] Production.INFO: ProcessCDR(1,14934429,1,1,2) [2025-04-18 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934429', 'tblTempUsageDetail_20' ) start [2025-04-18 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934429', 'tblTempUsageDetail_20' ) end [2025-04-18 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:39:21] Production.INFO: ==22671== Releasing lock... [2025-04-18 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-18 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:40:06 [end_date_ymd] => 2025-04-18 08:40:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:40:06' and `end` < '2025-04-18 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:40:18] Production.INFO: count ==93 [2025-04-18 08:40:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:40:06 - End Time 2025-04-18 08:40:06 [2025-04-18 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934434', 'tblTempUsageDetail_20' ) start [2025-04-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934434', 'tblTempUsageDetail_20' ) end [2025-04-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934434', 'tblTempVendorCDR_20' ) start [2025-04-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934434', 'tblTempVendorCDR_20' ) end [2025-04-18 08:40:18] Production.INFO: ProcessCDR(1,14934434,1,1,2) [2025-04-18 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934434', 'tblTempUsageDetail_20' ) start [2025-04-18 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934434', 'tblTempUsageDetail_20' ) end [2025-04-18 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:40:22] Production.INFO: ==22750== Releasing lock... [2025-04-18 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-18 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:41:05 [end_date_ymd] => 2025-04-18 08:41:05 [RateCDR] => 1 ) [2025-04-18 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:41:05' and `end` < '2025-04-18 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:41:17] Production.INFO: count ==129 [2025-04-18 08:41:17] Production.ERROR: pbx CDR StartTime 2025-04-18 05:41:05 - End Time 2025-04-18 08:41:05 [2025-04-18 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934440', 'tblTempUsageDetail_20' ) start [2025-04-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934440', 'tblTempUsageDetail_20' ) end [2025-04-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934440', 'tblTempVendorCDR_20' ) start [2025-04-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934440', 'tblTempVendorCDR_20' ) end [2025-04-18 08:41:17] Production.INFO: ProcessCDR(1,14934440,1,1,2) [2025-04-18 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934440', 'tblTempUsageDetail_20' ) start [2025-04-18 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934440', 'tblTempUsageDetail_20' ) end [2025-04-18 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:41:22] Production.INFO: ==22864== Releasing lock... [2025-04-18 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-18 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:42:05 [end_date_ymd] => 2025-04-18 08:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:42:05' and `end` < '2025-04-18 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-04-18 08:42:18] Production.INFO: count ==143 [2025-04-18 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:42:05 - End Time 2025-04-18 08:42:05 [2025-04-18 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934445', 'tblTempUsageDetail_20' ) start [2025-04-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934445', 'tblTempUsageDetail_20' ) end [2025-04-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934445', 'tblTempVendorCDR_20' ) start [2025-04-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934445', 'tblTempVendorCDR_20' ) end [2025-04-18 08:42:18] Production.INFO: ProcessCDR(1,14934445,1,1,2) [2025-04-18 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934445', 'tblTempUsageDetail_20' ) start [2025-04-18 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934445', 'tblTempUsageDetail_20' ) end [2025-04-18 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:42:22] Production.INFO: ==22941== Releasing lock... [2025-04-18 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:42:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:43:05 [end_date_ymd] => 2025-04-18 08:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:43:05' and `end` < '2025-04-18 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-04-18 08:43:17] Production.INFO: count ==149 [2025-04-18 08:43:17] Production.ERROR: pbx CDR StartTime 2025-04-18 05:43:05 - End Time 2025-04-18 08:43:05 [2025-04-18 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934450', 'tblTempUsageDetail_20' ) start [2025-04-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934450', 'tblTempUsageDetail_20' ) end [2025-04-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934450', 'tblTempVendorCDR_20' ) start [2025-04-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934450', 'tblTempVendorCDR_20' ) end [2025-04-18 08:43:17] Production.INFO: ProcessCDR(1,14934450,1,1,2) [2025-04-18 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934450', 'tblTempUsageDetail_20' ) start [2025-04-18 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934450', 'tblTempUsageDetail_20' ) end [2025-04-18 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:43:21] Production.INFO: ==23028== Releasing lock... [2025-04-18 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:44:05 [end_date_ymd] => 2025-04-18 08:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:44:05' and `end` < '2025-04-18 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-04-18 08:44:18] Production.INFO: count ==149 [2025-04-18 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:44:05 - End Time 2025-04-18 08:44:05 [2025-04-18 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934455', 'tblTempUsageDetail_20' ) start [2025-04-18 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934455', 'tblTempUsageDetail_20' ) end [2025-04-18 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934455', 'tblTempVendorCDR_20' ) start [2025-04-18 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934455', 'tblTempVendorCDR_20' ) end [2025-04-18 08:44:18] Production.INFO: ProcessCDR(1,14934455,1,1,2) [2025-04-18 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934455', 'tblTempUsageDetail_20' ) start [2025-04-18 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934455', 'tblTempUsageDetail_20' ) end [2025-04-18 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:44:21] Production.INFO: ==23104== Releasing lock... [2025-04-18 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:45:05 [end_date_ymd] => 2025-04-18 08:45:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:45:05' and `end` < '2025-04-18 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-04-18 08:45:18] Production.INFO: count ==149 [2025-04-18 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:45:05 - End Time 2025-04-18 08:45:05 [2025-04-18 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934460', 'tblTempUsageDetail_20' ) start [2025-04-18 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934460', 'tblTempUsageDetail_20' ) end [2025-04-18 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934460', 'tblTempVendorCDR_20' ) start [2025-04-18 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934460', 'tblTempVendorCDR_20' ) end [2025-04-18 08:45:18] Production.INFO: ProcessCDR(1,14934460,1,1,2) [2025-04-18 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934460', 'tblTempUsageDetail_20' ) start [2025-04-18 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934460', 'tblTempUsageDetail_20' ) end [2025-04-18 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:45:21] Production.INFO: ==23180== Releasing lock... [2025-04-18 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-18 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:46:05 [end_date_ymd] => 2025-04-18 08:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:46:05' and `end` < '2025-04-18 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-04-18 08:46:17] Production.INFO: count ==157 [2025-04-18 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:46:05 - End Time 2025-04-18 08:46:05 [2025-04-18 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934465', 'tblTempUsageDetail_20' ) start [2025-04-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934465', 'tblTempUsageDetail_20' ) end [2025-04-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934465', 'tblTempVendorCDR_20' ) start [2025-04-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934465', 'tblTempVendorCDR_20' ) end [2025-04-18 08:46:18] Production.INFO: ProcessCDR(1,14934465,1,1,2) [2025-04-18 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934465', 'tblTempUsageDetail_20' ) start [2025-04-18 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934465', 'tblTempUsageDetail_20' ) end [2025-04-18 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:46:22] Production.INFO: ==23275== Releasing lock... [2025-04-18 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:47:05 [end_date_ymd] => 2025-04-18 08:47:05 [RateCDR] => 1 ) [2025-04-18 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:47:05' and `end` < '2025-04-18 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:47:17] Production.INFO: count ==157 [2025-04-18 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:47:05 - End Time 2025-04-18 08:47:05 [2025-04-18 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934470', 'tblTempUsageDetail_20' ) start [2025-04-18 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934470', 'tblTempUsageDetail_20' ) end [2025-04-18 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934470', 'tblTempVendorCDR_20' ) start [2025-04-18 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934470', 'tblTempVendorCDR_20' ) end [2025-04-18 08:47:18] Production.INFO: ProcessCDR(1,14934470,1,1,2) [2025-04-18 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934470', 'tblTempUsageDetail_20' ) start [2025-04-18 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934470', 'tblTempUsageDetail_20' ) end [2025-04-18 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:47:21] Production.INFO: ==23351== Releasing lock... [2025-04-18 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:48:05 [end_date_ymd] => 2025-04-18 08:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:48:05' and `end` < '2025-04-18 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-04-18 08:48:17] Production.INFO: count ==164 [2025-04-18 08:48:17] Production.ERROR: pbx CDR StartTime 2025-04-18 05:48:05 - End Time 2025-04-18 08:48:05 [2025-04-18 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934475', 'tblTempUsageDetail_20' ) start [2025-04-18 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934475', 'tblTempUsageDetail_20' ) end [2025-04-18 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934475', 'tblTempVendorCDR_20' ) start [2025-04-18 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934475', 'tblTempVendorCDR_20' ) end [2025-04-18 08:48:17] Production.INFO: ProcessCDR(1,14934475,1,1,2) [2025-04-18 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934475', 'tblTempUsageDetail_20' ) start [2025-04-18 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934475', 'tblTempUsageDetail_20' ) end [2025-04-18 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:48:21] Production.INFO: ==23424== Releasing lock... [2025-04-18 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:49:05 [end_date_ymd] => 2025-04-18 08:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:49:05' and `end` < '2025-04-18 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-04-18 08:49:18] Production.INFO: count ==164 [2025-04-18 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:49:05 - End Time 2025-04-18 08:49:05 [2025-04-18 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934480', 'tblTempUsageDetail_20' ) start [2025-04-18 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934480', 'tblTempUsageDetail_20' ) end [2025-04-18 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934480', 'tblTempVendorCDR_20' ) start [2025-04-18 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934480', 'tblTempVendorCDR_20' ) end [2025-04-18 08:49:18] Production.INFO: ProcessCDR(1,14934480,1,1,2) [2025-04-18 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934480', 'tblTempUsageDetail_20' ) start [2025-04-18 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934480', 'tblTempUsageDetail_20' ) end [2025-04-18 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:49:21] Production.INFO: ==23497== Releasing lock... [2025-04-18 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:50:06 [end_date_ymd] => 2025-04-18 08:50:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:50:06' and `end` < '2025-04-18 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-04-18 08:50:18] Production.INFO: count ==166 [2025-04-18 08:50:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:50:06 - End Time 2025-04-18 08:50:06 [2025-04-18 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934486', 'tblTempUsageDetail_20' ) start [2025-04-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934486', 'tblTempUsageDetail_20' ) end [2025-04-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934486', 'tblTempVendorCDR_20' ) start [2025-04-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934486', 'tblTempVendorCDR_20' ) end [2025-04-18 08:50:18] Production.INFO: ProcessCDR(1,14934486,1,1,2) [2025-04-18 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934486', 'tblTempUsageDetail_20' ) start [2025-04-18 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934486', 'tblTempUsageDetail_20' ) end [2025-04-18 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:50:22] Production.INFO: ==23575== Releasing lock... [2025-04-18 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:51:05 [end_date_ymd] => 2025-04-18 08:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:51:05' and `end` < '2025-04-18 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-04-18 08:51:17] Production.INFO: count ==166 [2025-04-18 08:51:17] Production.ERROR: pbx CDR StartTime 2025-04-18 05:51:05 - End Time 2025-04-18 08:51:05 [2025-04-18 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934491', 'tblTempUsageDetail_20' ) start [2025-04-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934491', 'tblTempUsageDetail_20' ) end [2025-04-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934491', 'tblTempVendorCDR_20' ) start [2025-04-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934491', 'tblTempVendorCDR_20' ) end [2025-04-18 08:51:17] Production.INFO: ProcessCDR(1,14934491,1,1,2) [2025-04-18 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934491', 'tblTempUsageDetail_20' ) start [2025-04-18 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934491', 'tblTempUsageDetail_20' ) end [2025-04-18 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:51:21] Production.INFO: ==23656== Releasing lock... [2025-04-18 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:52:06 [end_date_ymd] => 2025-04-18 08:52:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:52:06' and `end` < '2025-04-18 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-04-18 08:52:19] Production.INFO: count ==166 [2025-04-18 08:52:19] Production.ERROR: pbx CDR StartTime 2025-04-18 05:52:06 - End Time 2025-04-18 08:52:06 [2025-04-18 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934496', 'tblTempUsageDetail_20' ) start [2025-04-18 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934496', 'tblTempUsageDetail_20' ) end [2025-04-18 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934496', 'tblTempVendorCDR_20' ) start [2025-04-18 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934496', 'tblTempVendorCDR_20' ) end [2025-04-18 08:52:19] Production.INFO: ProcessCDR(1,14934496,1,1,2) [2025-04-18 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934496', 'tblTempUsageDetail_20' ) start [2025-04-18 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934496', 'tblTempUsageDetail_20' ) end [2025-04-18 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:52:22] Production.INFO: ==23732== Releasing lock... [2025-04-18 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:53:05 [end_date_ymd] => 2025-04-18 08:53:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:53:05' and `end` < '2025-04-18 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-04-18 08:53:17] Production.INFO: count ==172 [2025-04-18 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:53:05 - End Time 2025-04-18 08:53:05 [2025-04-18 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934501', 'tblTempUsageDetail_20' ) start [2025-04-18 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934501', 'tblTempUsageDetail_20' ) end [2025-04-18 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934501', 'tblTempVendorCDR_20' ) start [2025-04-18 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934501', 'tblTempVendorCDR_20' ) end [2025-04-18 08:53:18] Production.INFO: ProcessCDR(1,14934501,1,1,2) [2025-04-18 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934501', 'tblTempUsageDetail_20' ) start [2025-04-18 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934501', 'tblTempUsageDetail_20' ) end [2025-04-18 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:53:21] Production.INFO: ==23807== Releasing lock... [2025-04-18 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:54:06 [end_date_ymd] => 2025-04-18 08:54:06 [RateCDR] => 1 ) [2025-04-18 08: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-04-18 05:54:06' and `end` < '2025-04-18 08: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-04-18 08:54:18] Production.INFO: count ==172 [2025-04-18 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:54:06 - End Time 2025-04-18 08:54:06 [2025-04-18 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934506', 'tblTempUsageDetail_20' ) start [2025-04-18 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934506', 'tblTempUsageDetail_20' ) end [2025-04-18 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934506', 'tblTempVendorCDR_20' ) start [2025-04-18 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934506', 'tblTempVendorCDR_20' ) end [2025-04-18 08:54:18] Production.INFO: ProcessCDR(1,14934506,1,1,2) [2025-04-18 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934506', 'tblTempUsageDetail_20' ) start [2025-04-18 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934506', 'tblTempUsageDetail_20' ) end [2025-04-18 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:54:22] Production.INFO: ==23884== Releasing lock... [2025-04-18 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:55:05 [end_date_ymd] => 2025-04-18 08:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:55:05' and `end` < '2025-04-18 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-04-18 08:55:18] Production.INFO: count ==172 [2025-04-18 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:55:05 - End Time 2025-04-18 08:55:05 [2025-04-18 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934511', 'tblTempUsageDetail_20' ) start [2025-04-18 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934511', 'tblTempUsageDetail_20' ) end [2025-04-18 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934511', 'tblTempVendorCDR_20' ) start [2025-04-18 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934511', 'tblTempVendorCDR_20' ) end [2025-04-18 08:55:18] Production.INFO: ProcessCDR(1,14934511,1,1,2) [2025-04-18 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934511', 'tblTempUsageDetail_20' ) start [2025-04-18 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934511', 'tblTempUsageDetail_20' ) end [2025-04-18 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:55:21] Production.INFO: ==23957== Releasing lock... [2025-04-18 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:56:06 [end_date_ymd] => 2025-04-18 08:56:06 [RateCDR] => 1 ) [2025-04-18 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 05:56:06' and `end` < '2025-04-18 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 08:56:18] Production.INFO: count ==174 [2025-04-18 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:56:06 - End Time 2025-04-18 08:56:06 [2025-04-18 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934516', 'tblTempUsageDetail_20' ) start [2025-04-18 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934516', 'tblTempUsageDetail_20' ) end [2025-04-18 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934516', 'tblTempVendorCDR_20' ) start [2025-04-18 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934516', 'tblTempVendorCDR_20' ) end [2025-04-18 08:56:18] Production.INFO: ProcessCDR(1,14934516,1,1,2) [2025-04-18 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934516', 'tblTempUsageDetail_20' ) start [2025-04-18 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934516', 'tblTempUsageDetail_20' ) end [2025-04-18 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:56:23] Production.INFO: ==24030== Releasing lock... [2025-04-18 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:56:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:57:05 [end_date_ymd] => 2025-04-18 08:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:57:05' and `end` < '2025-04-18 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-04-18 08:57:18] Production.INFO: count ==175 [2025-04-18 08:57:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:57:05 - End Time 2025-04-18 08:57:05 [2025-04-18 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934521', 'tblTempUsageDetail_20' ) start [2025-04-18 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934521', 'tblTempUsageDetail_20' ) end [2025-04-18 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934521', 'tblTempVendorCDR_20' ) start [2025-04-18 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934521', 'tblTempVendorCDR_20' ) end [2025-04-18 08:57:18] Production.INFO: ProcessCDR(1,14934521,1,1,2) [2025-04-18 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934521', 'tblTempUsageDetail_20' ) start [2025-04-18 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934521', 'tblTempUsageDetail_20' ) end [2025-04-18 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:57:21] Production.INFO: ==24143== Releasing lock... [2025-04-18 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:58:05 [end_date_ymd] => 2025-04-18 08:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:58:05' and `end` < '2025-04-18 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-04-18 08:58:18] Production.INFO: count ==175 [2025-04-18 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-18 05:58:05 - End Time 2025-04-18 08:58:05 [2025-04-18 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934526', 'tblTempUsageDetail_20' ) start [2025-04-18 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934526', 'tblTempUsageDetail_20' ) end [2025-04-18 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934526', 'tblTempVendorCDR_20' ) start [2025-04-18 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934526', 'tblTempVendorCDR_20' ) end [2025-04-18 08:58:18] Production.INFO: ProcessCDR(1,14934526,1,1,2) [2025-04-18 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934526', 'tblTempUsageDetail_20' ) start [2025-04-18 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934526', 'tblTempUsageDetail_20' ) end [2025-04-18 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:58:21] Production.INFO: ==24222== Releasing lock... [2025-04-18 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 05:59:05 [end_date_ymd] => 2025-04-18 08:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 05:59:05' and `end` < '2025-04-18 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-04-18 08:59:17] Production.INFO: count ==175 [2025-04-18 08:59:17] Production.ERROR: pbx CDR StartTime 2025-04-18 05:59:05 - End Time 2025-04-18 08:59:05 [2025-04-18 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934531', 'tblTempUsageDetail_20' ) start [2025-04-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934531', 'tblTempUsageDetail_20' ) end [2025-04-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934531', 'tblTempVendorCDR_20' ) start [2025-04-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934531', 'tblTempVendorCDR_20' ) end [2025-04-18 08:59:17] Production.INFO: ProcessCDR(1,14934531,1,1,2) [2025-04-18 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934531', 'tblTempUsageDetail_20' ) start [2025-04-18 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934531', 'tblTempUsageDetail_20' ) end [2025-04-18 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 08:59:21] Production.INFO: ==24294== Releasing lock... [2025-04-18 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 08:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:00:06 [end_date_ymd] => 2025-04-18 09:00:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:00:06' and `end` < '2025-04-18 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-04-18 09:00:19] Production.INFO: count ==176 [2025-04-18 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-18 06:00:06 - End Time 2025-04-18 09:00:06 [2025-04-18 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934536', 'tblTempUsageDetail_20' ) start [2025-04-18 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934536', 'tblTempUsageDetail_20' ) end [2025-04-18 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934536', 'tblTempVendorCDR_20' ) start [2025-04-18 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934536', 'tblTempVendorCDR_20' ) end [2025-04-18 09:00:19] Production.INFO: ProcessCDR(1,14934536,1,1,2) [2025-04-18 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934536', 'tblTempUsageDetail_20' ) start [2025-04-18 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934536', 'tblTempUsageDetail_20' ) end [2025-04-18 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:00:22] Production.INFO: ==24376== Releasing lock... [2025-04-18 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:01:05 [end_date_ymd] => 2025-04-18 09:01:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:01:05' and `end` < '2025-04-18 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-04-18 09:01:17] Production.INFO: count ==176 [2025-04-18 09:01:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:01:05 - End Time 2025-04-18 09:01:05 [2025-04-18 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934542', 'tblTempUsageDetail_20' ) start [2025-04-18 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934542', 'tblTempUsageDetail_20' ) end [2025-04-18 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934542', 'tblTempVendorCDR_20' ) start [2025-04-18 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934542', 'tblTempVendorCDR_20' ) end [2025-04-18 09:01:17] Production.INFO: ProcessCDR(1,14934542,1,1,2) [2025-04-18 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934542', 'tblTempUsageDetail_20' ) start [2025-04-18 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934542', 'tblTempUsageDetail_20' ) end [2025-04-18 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:01:21] Production.INFO: ==24462== Releasing lock... [2025-04-18 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:01:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:02:05 [end_date_ymd] => 2025-04-18 09:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:02:05' and `end` < '2025-04-18 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-04-18 09:02:18] Production.INFO: count ==176 [2025-04-18 09:02:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:02:05 - End Time 2025-04-18 09:02:05 [2025-04-18 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934547', 'tblTempUsageDetail_20' ) start [2025-04-18 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934547', 'tblTempUsageDetail_20' ) end [2025-04-18 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934547', 'tblTempVendorCDR_20' ) start [2025-04-18 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934547', 'tblTempVendorCDR_20' ) end [2025-04-18 09:02:18] Production.INFO: ProcessCDR(1,14934547,1,1,2) [2025-04-18 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934547', 'tblTempUsageDetail_20' ) start [2025-04-18 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934547', 'tblTempUsageDetail_20' ) end [2025-04-18 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:02:21] Production.INFO: ==24536== Releasing lock... [2025-04-18 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 09:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:03:04 [end_date_ymd] => 2025-04-18 09:03:04 [RateCDR] => 1 ) [2025-04-18 09:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:03:04' and `end` < '2025-04-18 09:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:03:17] Production.INFO: count ==177 [2025-04-18 09:03:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:03:04 - End Time 2025-04-18 09:03:04 [2025-04-18 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934552', 'tblTempUsageDetail_20' ) start [2025-04-18 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934552', 'tblTempUsageDetail_20' ) end [2025-04-18 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934552', 'tblTempVendorCDR_20' ) start [2025-04-18 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934552', 'tblTempVendorCDR_20' ) end [2025-04-18 09:03:17] Production.INFO: ProcessCDR(1,14934552,1,1,2) [2025-04-18 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934552', 'tblTempUsageDetail_20' ) start [2025-04-18 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934552', 'tblTempUsageDetail_20' ) end [2025-04-18 09:03:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:03:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:03:20] Production.INFO: ==24610== Releasing lock... [2025-04-18 09:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:03:20] Production.INFO: 29.75 MB #Memory Used# [2025-04-18 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:04:05 [end_date_ymd] => 2025-04-18 09:04:05 [RateCDR] => 1 ) [2025-04-18 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:04:05' and `end` < '2025-04-18 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:04:18] Production.INFO: count ==194 [2025-04-18 09:04:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:04:05 - End Time 2025-04-18 09:04:05 [2025-04-18 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934557', 'tblTempUsageDetail_20' ) start [2025-04-18 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934557', 'tblTempUsageDetail_20' ) end [2025-04-18 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934557', 'tblTempVendorCDR_20' ) start [2025-04-18 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934557', 'tblTempVendorCDR_20' ) end [2025-04-18 09:04:18] Production.INFO: ProcessCDR(1,14934557,1,1,2) [2025-04-18 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934557', 'tblTempUsageDetail_20' ) start [2025-04-18 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934557', 'tblTempUsageDetail_20' ) end [2025-04-18 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:04:21] Production.INFO: ==24685== Releasing lock... [2025-04-18 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-18 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:05:05 [end_date_ymd] => 2025-04-18 09:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:05:05' and `end` < '2025-04-18 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-04-18 09:05:18] Production.INFO: count ==196 [2025-04-18 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:05:05 - End Time 2025-04-18 09:05:05 [2025-04-18 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934562', 'tblTempUsageDetail_20' ) start [2025-04-18 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934562', 'tblTempUsageDetail_20' ) end [2025-04-18 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934562', 'tblTempVendorCDR_20' ) start [2025-04-18 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934562', 'tblTempVendorCDR_20' ) end [2025-04-18 09:05:18] Production.INFO: ProcessCDR(1,14934562,1,1,2) [2025-04-18 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934562', 'tblTempUsageDetail_20' ) start [2025-04-18 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934562', 'tblTempUsageDetail_20' ) end [2025-04-18 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:05:21] Production.INFO: ==24765== Releasing lock... [2025-04-18 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:06:05 [end_date_ymd] => 2025-04-18 09:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:06:05' and `end` < '2025-04-18 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-04-18 09:06:17] Production.INFO: count ==199 [2025-04-18 09:06:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:06:05 - End Time 2025-04-18 09:06:05 [2025-04-18 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934567', 'tblTempUsageDetail_20' ) start [2025-04-18 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934567', 'tblTempUsageDetail_20' ) end [2025-04-18 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934567', 'tblTempVendorCDR_20' ) start [2025-04-18 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934567', 'tblTempVendorCDR_20' ) end [2025-04-18 09:06:17] Production.INFO: ProcessCDR(1,14934567,1,1,2) [2025-04-18 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934567', 'tblTempUsageDetail_20' ) start [2025-04-18 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934567', 'tblTempUsageDetail_20' ) end [2025-04-18 09:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:06:21] Production.INFO: ==24845== Releasing lock... [2025-04-18 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:07:05 [end_date_ymd] => 2025-04-18 09:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:07:05' and `end` < '2025-04-18 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-04-18 09:07:18] Production.INFO: count ==199 [2025-04-18 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:07:05 - End Time 2025-04-18 09:07:05 [2025-04-18 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934572', 'tblTempUsageDetail_20' ) start [2025-04-18 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934572', 'tblTempUsageDetail_20' ) end [2025-04-18 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934572', 'tblTempVendorCDR_20' ) start [2025-04-18 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934572', 'tblTempVendorCDR_20' ) end [2025-04-18 09:07:18] Production.INFO: ProcessCDR(1,14934572,1,1,2) [2025-04-18 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934572', 'tblTempUsageDetail_20' ) start [2025-04-18 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934572', 'tblTempUsageDetail_20' ) end [2025-04-18 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:07:21] Production.INFO: ==24922== Releasing lock... [2025-04-18 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:08:05 [end_date_ymd] => 2025-04-18 09:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:08:05' and `end` < '2025-04-18 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-04-18 09:08:17] Production.INFO: count ==205 [2025-04-18 09:08:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:08:05 - End Time 2025-04-18 09:08:05 [2025-04-18 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934577', 'tblTempUsageDetail_20' ) start [2025-04-18 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934577', 'tblTempUsageDetail_20' ) end [2025-04-18 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934577', 'tblTempVendorCDR_20' ) start [2025-04-18 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934577', 'tblTempVendorCDR_20' ) end [2025-04-18 09:08:17] Production.INFO: ProcessCDR(1,14934577,1,1,2) [2025-04-18 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934577', 'tblTempUsageDetail_20' ) start [2025-04-18 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934577', 'tblTempUsageDetail_20' ) end [2025-04-18 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:08:21] Production.INFO: ==24995== Releasing lock... [2025-04-18 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:08:21] Production.INFO: 30 MB #Memory Used# [2025-04-18 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:09:05 [end_date_ymd] => 2025-04-18 09:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:09:05' and `end` < '2025-04-18 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-04-18 09:09:18] Production.INFO: count ==208 [2025-04-18 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:09:05 - End Time 2025-04-18 09:09:05 [2025-04-18 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934582', 'tblTempUsageDetail_20' ) start [2025-04-18 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934582', 'tblTempUsageDetail_20' ) end [2025-04-18 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934582', 'tblTempVendorCDR_20' ) start [2025-04-18 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934582', 'tblTempVendorCDR_20' ) end [2025-04-18 09:09:18] Production.INFO: ProcessCDR(1,14934582,1,1,2) [2025-04-18 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934582', 'tblTempUsageDetail_20' ) start [2025-04-18 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934582', 'tblTempUsageDetail_20' ) end [2025-04-18 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:09:21] Production.INFO: ==25064== Releasing lock... [2025-04-18 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:09:21] Production.INFO: 30 MB #Memory Used# [2025-04-18 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:10:05 [end_date_ymd] => 2025-04-18 09:10:05 [RateCDR] => 1 ) [2025-04-18 09:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:10:05' and `end` < '2025-04-18 09:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:10:18] Production.INFO: count ==219 [2025-04-18 09:10:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:10:05 - End Time 2025-04-18 09:10:05 [2025-04-18 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934587', 'tblTempUsageDetail_20' ) start [2025-04-18 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934587', 'tblTempUsageDetail_20' ) end [2025-04-18 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934587', 'tblTempVendorCDR_20' ) start [2025-04-18 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934587', 'tblTempVendorCDR_20' ) end [2025-04-18 09:10:18] Production.INFO: ProcessCDR(1,14934587,1,1,2) [2025-04-18 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934587', 'tblTempUsageDetail_20' ) start [2025-04-18 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934587', 'tblTempUsageDetail_20' ) end [2025-04-18 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:10:23] Production.INFO: ==25139== Releasing lock... [2025-04-18 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:10:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:11:05 [end_date_ymd] => 2025-04-18 09:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:11:05' and `end` < '2025-04-18 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-04-18 09:11:17] Production.INFO: count ==234 [2025-04-18 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:11:05 - End Time 2025-04-18 09:11:05 [2025-04-18 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934593', 'tblTempUsageDetail_20' ) start [2025-04-18 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934593', 'tblTempUsageDetail_20' ) end [2025-04-18 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934593', 'tblTempVendorCDR_20' ) start [2025-04-18 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934593', 'tblTempVendorCDR_20' ) end [2025-04-18 09:11:18] Production.INFO: ProcessCDR(1,14934593,1,1,2) [2025-04-18 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934593', 'tblTempUsageDetail_20' ) start [2025-04-18 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934593', 'tblTempUsageDetail_20' ) end [2025-04-18 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:11:21] Production.INFO: ==25217== Releasing lock... [2025-04-18 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:12:05 [end_date_ymd] => 2025-04-18 09:12:05 [RateCDR] => 1 ) [2025-04-18 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:12:05' and `end` < '2025-04-18 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:12:18] Production.INFO: count ==243 [2025-04-18 09:12:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:12:05 - End Time 2025-04-18 09:12:05 [2025-04-18 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934598', 'tblTempUsageDetail_20' ) start [2025-04-18 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934598', 'tblTempUsageDetail_20' ) end [2025-04-18 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934598', 'tblTempVendorCDR_20' ) start [2025-04-18 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934598', 'tblTempVendorCDR_20' ) end [2025-04-18 09:12:18] Production.INFO: ProcessCDR(1,14934598,1,1,2) [2025-04-18 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934598', 'tblTempUsageDetail_20' ) start [2025-04-18 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934598', 'tblTempUsageDetail_20' ) end [2025-04-18 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:12:22] Production.INFO: ==25334== Releasing lock... [2025-04-18 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:12:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:13:05 [end_date_ymd] => 2025-04-18 09:13:05 [RateCDR] => 1 ) [2025-04-18 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:13:05' and `end` < '2025-04-18 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:13:17] Production.INFO: count ==244 [2025-04-18 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:13:05 - End Time 2025-04-18 09:13:05 [2025-04-18 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934603', 'tblTempUsageDetail_20' ) start [2025-04-18 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934603', 'tblTempUsageDetail_20' ) end [2025-04-18 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934603', 'tblTempVendorCDR_20' ) start [2025-04-18 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934603', 'tblTempVendorCDR_20' ) end [2025-04-18 09:13:18] Production.INFO: ProcessCDR(1,14934603,1,1,2) [2025-04-18 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934603', 'tblTempUsageDetail_20' ) start [2025-04-18 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934603', 'tblTempUsageDetail_20' ) end [2025-04-18 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:13:21] Production.INFO: ==25407== Releasing lock... [2025-04-18 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-18 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:14:05 [end_date_ymd] => 2025-04-18 09:14:05 [RateCDR] => 1 ) [2025-04-18 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:14:05' and `end` < '2025-04-18 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:14:18] Production.INFO: count ==248 [2025-04-18 09:14:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:14:05 - End Time 2025-04-18 09:14:05 [2025-04-18 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934608', 'tblTempUsageDetail_20' ) start [2025-04-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934608', 'tblTempUsageDetail_20' ) end [2025-04-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934608', 'tblTempVendorCDR_20' ) start [2025-04-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934608', 'tblTempVendorCDR_20' ) end [2025-04-18 09:14:18] Production.INFO: ProcessCDR(1,14934608,1,1,2) [2025-04-18 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934608', 'tblTempUsageDetail_20' ) start [2025-04-18 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934608', 'tblTempUsageDetail_20' ) end [2025-04-18 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:14:22] Production.INFO: ==25479== Releasing lock... [2025-04-18 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:15:05 [end_date_ymd] => 2025-04-18 09:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:15:05' and `end` < '2025-04-18 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-04-18 09:15:17] Production.INFO: count ==249 [2025-04-18 09:15:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:15:05 - End Time 2025-04-18 09:15:05 [2025-04-18 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934613', 'tblTempUsageDetail_20' ) start [2025-04-18 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934613', 'tblTempUsageDetail_20' ) end [2025-04-18 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934613', 'tblTempVendorCDR_20' ) start [2025-04-18 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934613', 'tblTempVendorCDR_20' ) end [2025-04-18 09:15:17] Production.INFO: ProcessCDR(1,14934613,1,1,2) [2025-04-18 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934613', 'tblTempUsageDetail_20' ) start [2025-04-18 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934613', 'tblTempUsageDetail_20' ) end [2025-04-18 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:15:21] Production.INFO: ==25551== Releasing lock... [2025-04-18 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:16:05 [end_date_ymd] => 2025-04-18 09:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:16:05' and `end` < '2025-04-18 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-04-18 09:16:18] Production.INFO: count ==250 [2025-04-18 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:16:05 - End Time 2025-04-18 09:16:05 [2025-04-18 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934618', 'tblTempUsageDetail_20' ) start [2025-04-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934618', 'tblTempUsageDetail_20' ) end [2025-04-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934618', 'tblTempVendorCDR_20' ) start [2025-04-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934618', 'tblTempVendorCDR_20' ) end [2025-04-18 09:16:18] Production.INFO: ProcessCDR(1,14934618,1,1,2) [2025-04-18 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934618', 'tblTempUsageDetail_20' ) start [2025-04-18 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934618', 'tblTempUsageDetail_20' ) end [2025-04-18 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:16:22] Production.INFO: ==25630== Releasing lock... [2025-04-18 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:16:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-18 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:17:05 [end_date_ymd] => 2025-04-18 09:17:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:17:05' and `end` < '2025-04-18 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-04-18 09:17:17] Production.INFO: count ==283 [2025-04-18 09:17:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:17:05 - End Time 2025-04-18 09:17:05 [2025-04-18 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934623', 'tblTempUsageDetail_20' ) start [2025-04-18 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934623', 'tblTempUsageDetail_20' ) end [2025-04-18 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934623', 'tblTempVendorCDR_20' ) start [2025-04-18 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934623', 'tblTempVendorCDR_20' ) end [2025-04-18 09:17:17] Production.INFO: ProcessCDR(1,14934623,1,1,2) [2025-04-18 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934623', 'tblTempUsageDetail_20' ) start [2025-04-18 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934623', 'tblTempUsageDetail_20' ) end [2025-04-18 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:17:21] Production.INFO: ==25706== Releasing lock... [2025-04-18 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-18 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:18:05 [end_date_ymd] => 2025-04-18 09:18:05 [RateCDR] => 1 ) [2025-04-18 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:18:05' and `end` < '2025-04-18 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:18:18] Production.INFO: count ==289 [2025-04-18 09:18:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:18:05 - End Time 2025-04-18 09:18:05 [2025-04-18 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934628', 'tblTempUsageDetail_20' ) start [2025-04-18 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934628', 'tblTempUsageDetail_20' ) end [2025-04-18 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934628', 'tblTempVendorCDR_20' ) start [2025-04-18 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934628', 'tblTempVendorCDR_20' ) end [2025-04-18 09:18:18] Production.INFO: ProcessCDR(1,14934628,1,1,2) [2025-04-18 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934628', 'tblTempUsageDetail_20' ) start [2025-04-18 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934628', 'tblTempUsageDetail_20' ) end [2025-04-18 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:18:21] Production.INFO: ==25798== Releasing lock... [2025-04-18 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-18 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:19:04 [end_date_ymd] => 2025-04-18 09:19:04 [RateCDR] => 1 ) [2025-04-18 09:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:19:04' and `end` < '2025-04-18 09:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:19:17] Production.INFO: count ==317 [2025-04-18 09:19:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:19:04 - End Time 2025-04-18 09:19:04 [2025-04-18 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934633', 'tblTempUsageDetail_20' ) start [2025-04-18 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934633', 'tblTempUsageDetail_20' ) end [2025-04-18 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934633', 'tblTempVendorCDR_20' ) start [2025-04-18 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934633', 'tblTempVendorCDR_20' ) end [2025-04-18 09:19:17] Production.INFO: ProcessCDR(1,14934633,1,1,2) [2025-04-18 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934633', 'tblTempUsageDetail_20' ) start [2025-04-18 09:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934633', 'tblTempUsageDetail_20' ) end [2025-04-18 09:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:19:20] Production.INFO: ==25869== Releasing lock... [2025-04-18 09:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:19:20] Production.INFO: 31 MB #Memory Used# [2025-04-18 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:20:06 [end_date_ymd] => 2025-04-18 09:20:06 [RateCDR] => 1 ) [2025-04-18 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:20:06' and `end` < '2025-04-18 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:20:19] Production.INFO: count ==326 [2025-04-18 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 06:20:06 - End Time 2025-04-18 09:20:06 [2025-04-18 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934639', 'tblTempUsageDetail_20' ) start [2025-04-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934639', 'tblTempUsageDetail_20' ) end [2025-04-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934639', 'tblTempVendorCDR_20' ) start [2025-04-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934639', 'tblTempVendorCDR_20' ) end [2025-04-18 09:20:19] Production.INFO: ProcessCDR(1,14934639,1,1,2) [2025-04-18 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934639', 'tblTempUsageDetail_20' ) start [2025-04-18 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934639', 'tblTempUsageDetail_20' ) end [2025-04-18 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:20:22] Production.INFO: ==25946== Releasing lock... [2025-04-18 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-18 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:21:05 [end_date_ymd] => 2025-04-18 09:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:21:05' and `end` < '2025-04-18 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-04-18 09:21:18] Production.INFO: count ==335 [2025-04-18 09:21:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:21:05 - End Time 2025-04-18 09:21:05 [2025-04-18 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934644', 'tblTempUsageDetail_20' ) start [2025-04-18 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934644', 'tblTempUsageDetail_20' ) end [2025-04-18 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934644', 'tblTempVendorCDR_20' ) start [2025-04-18 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934644', 'tblTempVendorCDR_20' ) end [2025-04-18 09:21:18] Production.INFO: ProcessCDR(1,14934644,1,1,2) [2025-04-18 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934644', 'tblTempUsageDetail_20' ) start [2025-04-18 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934644', 'tblTempUsageDetail_20' ) end [2025-04-18 09:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:21:21] Production.INFO: ==26021== Releasing lock... [2025-04-18 09:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:22:05 [end_date_ymd] => 2025-04-18 09:22:05 [RateCDR] => 1 ) [2025-04-18 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:22:05' and `end` < '2025-04-18 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:22:17] Production.INFO: count ==335 [2025-04-18 09:22:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:22:05 - End Time 2025-04-18 09:22:05 [2025-04-18 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934649', 'tblTempUsageDetail_20' ) start [2025-04-18 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934649', 'tblTempUsageDetail_20' ) end [2025-04-18 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934649', 'tblTempVendorCDR_20' ) start [2025-04-18 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934649', 'tblTempVendorCDR_20' ) end [2025-04-18 09:22:17] Production.INFO: ProcessCDR(1,14934649,1,1,2) [2025-04-18 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934649', 'tblTempUsageDetail_20' ) start [2025-04-18 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934649', 'tblTempUsageDetail_20' ) end [2025-04-18 09:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:22:21] Production.INFO: ==26093== Releasing lock... [2025-04-18 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:23:05 [end_date_ymd] => 2025-04-18 09:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:23:05' and `end` < '2025-04-18 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-04-18 09:23:18] Production.INFO: count ==340 [2025-04-18 09:23:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:23:05 - End Time 2025-04-18 09:23:05 [2025-04-18 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934654', 'tblTempUsageDetail_20' ) start [2025-04-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934654', 'tblTempUsageDetail_20' ) end [2025-04-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934654', 'tblTempVendorCDR_20' ) start [2025-04-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934654', 'tblTempVendorCDR_20' ) end [2025-04-18 09:23:18] Production.INFO: ProcessCDR(1,14934654,1,1,2) [2025-04-18 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934654', 'tblTempUsageDetail_20' ) start [2025-04-18 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934654', 'tblTempUsageDetail_20' ) end [2025-04-18 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:23:22] Production.INFO: ==26172== Releasing lock... [2025-04-18 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:23:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:24:05 [end_date_ymd] => 2025-04-18 09:24:05 [RateCDR] => 1 ) [2025-04-18 09: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-04-18 06:24:05' and `end` < '2025-04-18 09: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-04-18 09:24:17] Production.INFO: count ==375 [2025-04-18 09:24:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:24:05 - End Time 2025-04-18 09:24:05 [2025-04-18 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934659', 'tblTempUsageDetail_20' ) start [2025-04-18 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934659', 'tblTempUsageDetail_20' ) end [2025-04-18 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934659', 'tblTempVendorCDR_20' ) start [2025-04-18 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934659', 'tblTempVendorCDR_20' ) end [2025-04-18 09:24:17] Production.INFO: ProcessCDR(1,14934659,1,1,2) [2025-04-18 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934659', 'tblTempUsageDetail_20' ) start [2025-04-18 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934659', 'tblTempUsageDetail_20' ) end [2025-04-18 09:24:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:24:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:24:20] Production.INFO: ==26240== Releasing lock... [2025-04-18 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:25:05 [end_date_ymd] => 2025-04-18 09:25:05 [RateCDR] => 1 ) [2025-04-18 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:25:05' and `end` < '2025-04-18 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:25:17] Production.INFO: count ==375 [2025-04-18 09:25:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:25:05 - End Time 2025-04-18 09:25:05 [2025-04-18 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934664', 'tblTempUsageDetail_20' ) start [2025-04-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934664', 'tblTempUsageDetail_20' ) end [2025-04-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934664', 'tblTempVendorCDR_20' ) start [2025-04-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934664', 'tblTempVendorCDR_20' ) end [2025-04-18 09:25:17] Production.INFO: ProcessCDR(1,14934664,1,1,2) [2025-04-18 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934664', 'tblTempUsageDetail_20' ) start [2025-04-18 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934664', 'tblTempUsageDetail_20' ) end [2025-04-18 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:25:21] Production.INFO: ==26317== Releasing lock... [2025-04-18 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:26:05 [end_date_ymd] => 2025-04-18 09:26:05 [RateCDR] => 1 ) [2025-04-18 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:26:05' and `end` < '2025-04-18 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:26:18] Production.INFO: count ==375 [2025-04-18 09:26:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:26:05 - End Time 2025-04-18 09:26:05 [2025-04-18 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934669', 'tblTempUsageDetail_20' ) start [2025-04-18 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934669', 'tblTempUsageDetail_20' ) end [2025-04-18 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934669', 'tblTempVendorCDR_20' ) start [2025-04-18 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934669', 'tblTempVendorCDR_20' ) end [2025-04-18 09:26:18] Production.INFO: ProcessCDR(1,14934669,1,1,2) [2025-04-18 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934669', 'tblTempUsageDetail_20' ) start [2025-04-18 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934669', 'tblTempUsageDetail_20' ) end [2025-04-18 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:26:21] Production.INFO: ==26388== Releasing lock... [2025-04-18 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:27:05 [end_date_ymd] => 2025-04-18 09:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:27:05' and `end` < '2025-04-18 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-04-18 09:27:17] Production.INFO: count ==377 [2025-04-18 09:27:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:27:05 - End Time 2025-04-18 09:27:05 [2025-04-18 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934674', 'tblTempUsageDetail_20' ) start [2025-04-18 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934674', 'tblTempUsageDetail_20' ) end [2025-04-18 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934674', 'tblTempVendorCDR_20' ) start [2025-04-18 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934674', 'tblTempVendorCDR_20' ) end [2025-04-18 09:27:18] Production.INFO: ProcessCDR(1,14934674,1,1,2) [2025-04-18 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934674', 'tblTempUsageDetail_20' ) start [2025-04-18 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934674', 'tblTempUsageDetail_20' ) end [2025-04-18 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:27:21] Production.INFO: ==26506== Releasing lock... [2025-04-18 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:28:05 [end_date_ymd] => 2025-04-18 09:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:28:05' and `end` < '2025-04-18 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-04-18 09:28:18] Production.INFO: count ==381 [2025-04-18 09:28:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:28:05 - End Time 2025-04-18 09:28:05 [2025-04-18 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934679', 'tblTempUsageDetail_20' ) start [2025-04-18 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934679', 'tblTempUsageDetail_20' ) end [2025-04-18 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934679', 'tblTempVendorCDR_20' ) start [2025-04-18 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934679', 'tblTempVendorCDR_20' ) end [2025-04-18 09:28:18] Production.INFO: ProcessCDR(1,14934679,1,1,2) [2025-04-18 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934679', 'tblTempUsageDetail_20' ) start [2025-04-18 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934679', 'tblTempUsageDetail_20' ) end [2025-04-18 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:28:21] Production.INFO: ==26581== Releasing lock... [2025-04-18 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:29:05 [end_date_ymd] => 2025-04-18 09:29:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:29:05' and `end` < '2025-04-18 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-04-18 09:29:18] Production.INFO: count ==381 [2025-04-18 09:29:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:29:05 - End Time 2025-04-18 09:29:05 [2025-04-18 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934684', 'tblTempUsageDetail_20' ) start [2025-04-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934684', 'tblTempUsageDetail_20' ) end [2025-04-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934684', 'tblTempVendorCDR_20' ) start [2025-04-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934684', 'tblTempVendorCDR_20' ) end [2025-04-18 09:29:18] Production.INFO: ProcessCDR(1,14934684,1,1,2) [2025-04-18 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934684', 'tblTempUsageDetail_20' ) start [2025-04-18 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934684', 'tblTempUsageDetail_20' ) end [2025-04-18 09:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:29:21] Production.INFO: ==26654== Releasing lock... [2025-04-18 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:30:06 [end_date_ymd] => 2025-04-18 09:30:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:30:06' and `end` < '2025-04-18 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-04-18 09:30:18] Production.INFO: count ==382 [2025-04-18 09:30:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:30:06 - End Time 2025-04-18 09:30:06 [2025-04-18 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934690', 'tblTempUsageDetail_20' ) start [2025-04-18 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934690', 'tblTempUsageDetail_20' ) end [2025-04-18 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934690', 'tblTempVendorCDR_20' ) start [2025-04-18 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934690', 'tblTempVendorCDR_20' ) end [2025-04-18 09:30:18] Production.INFO: ProcessCDR(1,14934690,1,1,2) [2025-04-18 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934690', 'tblTempUsageDetail_20' ) start [2025-04-18 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934690', 'tblTempUsageDetail_20' ) end [2025-04-18 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:30:22] Production.INFO: ==26729== Releasing lock... [2025-04-18 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:31:05 [end_date_ymd] => 2025-04-18 09:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:31:05' and `end` < '2025-04-18 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-04-18 09:31:17] Production.INFO: count ==382 [2025-04-18 09:31:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:31:05 - End Time 2025-04-18 09:31:05 [2025-04-18 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934695', 'tblTempUsageDetail_20' ) start [2025-04-18 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934695', 'tblTempUsageDetail_20' ) end [2025-04-18 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934695', 'tblTempVendorCDR_20' ) start [2025-04-18 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934695', 'tblTempVendorCDR_20' ) end [2025-04-18 09:31:17] Production.INFO: ProcessCDR(1,14934695,1,1,2) [2025-04-18 09:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934695', 'tblTempUsageDetail_20' ) start [2025-04-18 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934695', 'tblTempUsageDetail_20' ) end [2025-04-18 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:31:21] Production.INFO: ==26803== Releasing lock... [2025-04-18 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:32:05 [end_date_ymd] => 2025-04-18 09:32:05 [RateCDR] => 1 ) [2025-04-18 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:32:05' and `end` < '2025-04-18 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:32:18] Production.INFO: count ==396 [2025-04-18 09:32:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:32:05 - End Time 2025-04-18 09:32:05 [2025-04-18 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934700', 'tblTempUsageDetail_20' ) start [2025-04-18 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934700', 'tblTempUsageDetail_20' ) end [2025-04-18 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934700', 'tblTempVendorCDR_20' ) start [2025-04-18 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934700', 'tblTempVendorCDR_20' ) end [2025-04-18 09:32:18] Production.INFO: ProcessCDR(1,14934700,1,1,2) [2025-04-18 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934700', 'tblTempUsageDetail_20' ) start [2025-04-18 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934700', 'tblTempUsageDetail_20' ) end [2025-04-18 09:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:32:21] Production.INFO: ==26886== Releasing lock... [2025-04-18 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:33:04 [end_date_ymd] => 2025-04-18 09:33:04 [RateCDR] => 1 ) [2025-04-18 09: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-04-18 06:33:04' and `end` < '2025-04-18 09: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-04-18 09:33:17] Production.INFO: count ==398 [2025-04-18 09:33:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:33:04 - End Time 2025-04-18 09:33:04 [2025-04-18 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934705', 'tblTempUsageDetail_20' ) start [2025-04-18 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934705', 'tblTempUsageDetail_20' ) end [2025-04-18 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934705', 'tblTempVendorCDR_20' ) start [2025-04-18 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934705', 'tblTempVendorCDR_20' ) end [2025-04-18 09:33:17] Production.INFO: ProcessCDR(1,14934705,1,1,2) [2025-04-18 09:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934705', 'tblTempUsageDetail_20' ) start [2025-04-18 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934705', 'tblTempUsageDetail_20' ) end [2025-04-18 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:33:22] Production.INFO: ==26962== Releasing lock... [2025-04-18 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:33:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:34:06 [end_date_ymd] => 2025-04-18 09:34:06 [RateCDR] => 1 ) [2025-04-18 09: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-04-18 06:34:06' and `end` < '2025-04-18 09: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-04-18 09:34:18] Production.INFO: count ==401 [2025-04-18 09:34:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:34:06 - End Time 2025-04-18 09:34:06 [2025-04-18 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934710', 'tblTempUsageDetail_20' ) start [2025-04-18 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934710', 'tblTempUsageDetail_20' ) end [2025-04-18 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934710', 'tblTempVendorCDR_20' ) start [2025-04-18 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934710', 'tblTempVendorCDR_20' ) end [2025-04-18 09:34:18] Production.INFO: ProcessCDR(1,14934710,1,1,2) [2025-04-18 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934710', 'tblTempUsageDetail_20' ) start [2025-04-18 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934710', 'tblTempUsageDetail_20' ) end [2025-04-18 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:34:22] Production.INFO: ==27038== Releasing lock... [2025-04-18 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:34:22] Production.INFO: 32 MB #Memory Used# [2025-04-18 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:35:05 [end_date_ymd] => 2025-04-18 09:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:35:05' and `end` < '2025-04-18 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-04-18 09:35:18] Production.INFO: count ==401 [2025-04-18 09:35:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:35:05 - End Time 2025-04-18 09:35:05 [2025-04-18 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934715', 'tblTempUsageDetail_20' ) start [2025-04-18 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934715', 'tblTempUsageDetail_20' ) end [2025-04-18 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934715', 'tblTempVendorCDR_20' ) start [2025-04-18 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934715', 'tblTempVendorCDR_20' ) end [2025-04-18 09:35:18] Production.INFO: ProcessCDR(1,14934715,1,1,2) [2025-04-18 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934715', 'tblTempUsageDetail_20' ) start [2025-04-18 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934715', 'tblTempUsageDetail_20' ) end [2025-04-18 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:35:21] Production.INFO: ==27112== Releasing lock... [2025-04-18 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:35:21] Production.INFO: 32 MB #Memory Used# [2025-04-18 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:36:05 [end_date_ymd] => 2025-04-18 09:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:36:05' and `end` < '2025-04-18 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-04-18 09:36:18] Production.INFO: count ==403 [2025-04-18 09:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:36:05 - End Time 2025-04-18 09:36:05 [2025-04-18 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934720', 'tblTempUsageDetail_20' ) start [2025-04-18 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934720', 'tblTempUsageDetail_20' ) end [2025-04-18 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934720', 'tblTempVendorCDR_20' ) start [2025-04-18 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934720', 'tblTempVendorCDR_20' ) end [2025-04-18 09:36:18] Production.INFO: ProcessCDR(1,14934720,1,1,2) [2025-04-18 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934720', 'tblTempUsageDetail_20' ) start [2025-04-18 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934720', 'tblTempUsageDetail_20' ) end [2025-04-18 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:36:21] Production.INFO: ==27185== Releasing lock... [2025-04-18 09:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:36:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:37:05 [end_date_ymd] => 2025-04-18 09:37:05 [RateCDR] => 1 ) [2025-04-18 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:37:05' and `end` < '2025-04-18 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:37:18] Production.INFO: count ==403 [2025-04-18 09:37:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:37:05 - End Time 2025-04-18 09:37:05 [2025-04-18 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934725', 'tblTempUsageDetail_20' ) start [2025-04-18 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934725', 'tblTempUsageDetail_20' ) end [2025-04-18 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934725', 'tblTempVendorCDR_20' ) start [2025-04-18 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934725', 'tblTempVendorCDR_20' ) end [2025-04-18 09:37:18] Production.INFO: ProcessCDR(1,14934725,1,1,2) [2025-04-18 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934725', 'tblTempUsageDetail_20' ) start [2025-04-18 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934725', 'tblTempUsageDetail_20' ) end [2025-04-18 09:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:37:21] Production.INFO: ==27260== Releasing lock... [2025-04-18 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:38:05 [end_date_ymd] => 2025-04-18 09:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:38:05' and `end` < '2025-04-18 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-04-18 09:38:18] Production.INFO: count ==403 [2025-04-18 09:38:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:38:05 - End Time 2025-04-18 09:38:05 [2025-04-18 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934730', 'tblTempUsageDetail_20' ) start [2025-04-18 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934730', 'tblTempUsageDetail_20' ) end [2025-04-18 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934730', 'tblTempVendorCDR_20' ) start [2025-04-18 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934730', 'tblTempVendorCDR_20' ) end [2025-04-18 09:38:18] Production.INFO: ProcessCDR(1,14934730,1,1,2) [2025-04-18 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934730', 'tblTempUsageDetail_20' ) start [2025-04-18 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934730', 'tblTempUsageDetail_20' ) end [2025-04-18 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:38:21] Production.INFO: ==27339== Releasing lock... [2025-04-18 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:39:05 [end_date_ymd] => 2025-04-18 09:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:39:05' and `end` < '2025-04-18 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-04-18 09:39:18] Production.INFO: count ==403 [2025-04-18 09:39:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:39:05 - End Time 2025-04-18 09:39:05 [2025-04-18 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934735', 'tblTempUsageDetail_20' ) start [2025-04-18 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934735', 'tblTempUsageDetail_20' ) end [2025-04-18 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934735', 'tblTempVendorCDR_20' ) start [2025-04-18 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934735', 'tblTempVendorCDR_20' ) end [2025-04-18 09:39:18] Production.INFO: ProcessCDR(1,14934735,1,1,2) [2025-04-18 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934735', 'tblTempUsageDetail_20' ) start [2025-04-18 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934735', 'tblTempUsageDetail_20' ) end [2025-04-18 09:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:39:22] Production.INFO: ==27410== Releasing lock... [2025-04-18 09:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:40:06 [end_date_ymd] => 2025-04-18 09:40:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:40:06' and `end` < '2025-04-18 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-04-18 09:40:18] Production.INFO: count ==411 [2025-04-18 09:40:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:40:06 - End Time 2025-04-18 09:40:06 [2025-04-18 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934741', 'tblTempUsageDetail_20' ) start [2025-04-18 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934741', 'tblTempUsageDetail_20' ) end [2025-04-18 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934741', 'tblTempVendorCDR_20' ) start [2025-04-18 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934741', 'tblTempVendorCDR_20' ) end [2025-04-18 09:40:18] Production.INFO: ProcessCDR(1,14934741,1,1,2) [2025-04-18 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934741', 'tblTempUsageDetail_20' ) start [2025-04-18 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934741', 'tblTempUsageDetail_20' ) end [2025-04-18 09:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:40:22] Production.INFO: ==27486== Releasing lock... [2025-04-18 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:40:22] Production.INFO: 32 MB #Memory Used# [2025-04-18 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:41:05 [end_date_ymd] => 2025-04-18 09:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:41:05' and `end` < '2025-04-18 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-04-18 09:41:18] Production.INFO: count ==414 [2025-04-18 09:41:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:41:05 - End Time 2025-04-18 09:41:05 [2025-04-18 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934746', 'tblTempUsageDetail_20' ) start [2025-04-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934746', 'tblTempUsageDetail_20' ) end [2025-04-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934746', 'tblTempVendorCDR_20' ) start [2025-04-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934746', 'tblTempVendorCDR_20' ) end [2025-04-18 09:41:18] Production.INFO: ProcessCDR(1,14934746,1,1,2) [2025-04-18 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934746', 'tblTempUsageDetail_20' ) start [2025-04-18 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934746', 'tblTempUsageDetail_20' ) end [2025-04-18 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:41:21] Production.INFO: ==27561== Releasing lock... [2025-04-18 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:41:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:42:05 [end_date_ymd] => 2025-04-18 09:42:05 [RateCDR] => 1 ) [2025-04-18 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:42:05' and `end` < '2025-04-18 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:42:18] Production.INFO: count ==414 [2025-04-18 09:42:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:42:05 - End Time 2025-04-18 09:42:05 [2025-04-18 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934751', 'tblTempUsageDetail_20' ) start [2025-04-18 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934751', 'tblTempUsageDetail_20' ) end [2025-04-18 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934751', 'tblTempVendorCDR_20' ) start [2025-04-18 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934751', 'tblTempVendorCDR_20' ) end [2025-04-18 09:42:18] Production.INFO: ProcessCDR(1,14934751,1,1,2) [2025-04-18 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934751', 'tblTempUsageDetail_20' ) start [2025-04-18 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934751', 'tblTempUsageDetail_20' ) end [2025-04-18 09:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:42:21] Production.INFO: ==27634== Releasing lock... [2025-04-18 09:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:42:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:43:05 [end_date_ymd] => 2025-04-18 09:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:43:05' and `end` < '2025-04-18 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-04-18 09:43:18] Production.INFO: count ==415 [2025-04-18 09:43:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:43:05 - End Time 2025-04-18 09:43:05 [2025-04-18 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934756', 'tblTempUsageDetail_20' ) start [2025-04-18 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934756', 'tblTempUsageDetail_20' ) end [2025-04-18 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934756', 'tblTempVendorCDR_20' ) start [2025-04-18 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934756', 'tblTempVendorCDR_20' ) end [2025-04-18 09:43:18] Production.INFO: ProcessCDR(1,14934756,1,1,2) [2025-04-18 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934756', 'tblTempUsageDetail_20' ) start [2025-04-18 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934756', 'tblTempUsageDetail_20' ) end [2025-04-18 09:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:43:22] Production.INFO: ==27753== Releasing lock... [2025-04-18 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:43:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:44:04 [end_date_ymd] => 2025-04-18 09:44:04 [RateCDR] => 1 ) [2025-04-18 09: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-04-18 06:44:04' and `end` < '2025-04-18 09: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-04-18 09:44:17] Production.INFO: count ==415 [2025-04-18 09:44:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:44:04 - End Time 2025-04-18 09:44:04 [2025-04-18 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934761', 'tblTempUsageDetail_20' ) start [2025-04-18 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934761', 'tblTempUsageDetail_20' ) end [2025-04-18 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934761', 'tblTempVendorCDR_20' ) start [2025-04-18 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934761', 'tblTempVendorCDR_20' ) end [2025-04-18 09:44:17] Production.INFO: ProcessCDR(1,14934761,1,1,2) [2025-04-18 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934761', 'tblTempUsageDetail_20' ) start [2025-04-18 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934761', 'tblTempUsageDetail_20' ) end [2025-04-18 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:44:21] Production.INFO: ==27825== Releasing lock... [2025-04-18 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:45:05 [end_date_ymd] => 2025-04-18 09:45:05 [RateCDR] => 1 ) [2025-04-18 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:45:05' and `end` < '2025-04-18 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:45:17] Production.INFO: count ==415 [2025-04-18 09:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:45:05 - End Time 2025-04-18 09:45:05 [2025-04-18 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934766', 'tblTempUsageDetail_20' ) start [2025-04-18 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934766', 'tblTempUsageDetail_20' ) end [2025-04-18 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934766', 'tblTempVendorCDR_20' ) start [2025-04-18 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934766', 'tblTempVendorCDR_20' ) end [2025-04-18 09:45:18] Production.INFO: ProcessCDR(1,14934766,1,1,2) [2025-04-18 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934766', 'tblTempUsageDetail_20' ) start [2025-04-18 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934766', 'tblTempUsageDetail_20' ) end [2025-04-18 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:45:21] Production.INFO: ==27906== Releasing lock... [2025-04-18 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:46:05 [end_date_ymd] => 2025-04-18 09:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:46:05' and `end` < '2025-04-18 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-04-18 09:46:17] Production.INFO: count ==415 [2025-04-18 09:46:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:46:05 - End Time 2025-04-18 09:46:05 [2025-04-18 09:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934771', 'tblTempUsageDetail_20' ) start [2025-04-18 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934771', 'tblTempUsageDetail_20' ) end [2025-04-18 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934771', 'tblTempVendorCDR_20' ) start [2025-04-18 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934771', 'tblTempVendorCDR_20' ) end [2025-04-18 09:46:18] Production.INFO: ProcessCDR(1,14934771,1,1,2) [2025-04-18 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934771', 'tblTempUsageDetail_20' ) start [2025-04-18 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934771', 'tblTempUsageDetail_20' ) end [2025-04-18 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:46:21] Production.INFO: ==27979== Releasing lock... [2025-04-18 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:47:05 [end_date_ymd] => 2025-04-18 09:47:05 [RateCDR] => 1 ) [2025-04-18 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:47:05' and `end` < '2025-04-18 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:47:18] Production.INFO: count ==415 [2025-04-18 09:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:47:05 - End Time 2025-04-18 09:47:05 [2025-04-18 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934776', 'tblTempUsageDetail_20' ) start [2025-04-18 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934776', 'tblTempUsageDetail_20' ) end [2025-04-18 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934776', 'tblTempVendorCDR_20' ) start [2025-04-18 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934776', 'tblTempVendorCDR_20' ) end [2025-04-18 09:47:18] Production.INFO: ProcessCDR(1,14934776,1,1,2) [2025-04-18 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934776', 'tblTempUsageDetail_20' ) start [2025-04-18 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934776', 'tblTempUsageDetail_20' ) end [2025-04-18 09:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:47:21] Production.INFO: ==28057== Releasing lock... [2025-04-18 09:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:48:05 [end_date_ymd] => 2025-04-18 09:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:48:05' and `end` < '2025-04-18 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-04-18 09:48:17] Production.INFO: count ==415 [2025-04-18 09:48:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:48:05 - End Time 2025-04-18 09:48:05 [2025-04-18 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934781', 'tblTempUsageDetail_20' ) start [2025-04-18 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934781', 'tblTempUsageDetail_20' ) end [2025-04-18 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934781', 'tblTempVendorCDR_20' ) start [2025-04-18 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934781', 'tblTempVendorCDR_20' ) end [2025-04-18 09:48:18] Production.INFO: ProcessCDR(1,14934781,1,1,2) [2025-04-18 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934781', 'tblTempUsageDetail_20' ) start [2025-04-18 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934781', 'tblTempUsageDetail_20' ) end [2025-04-18 09:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:48:21] Production.INFO: ==28132== Releasing lock... [2025-04-18 09:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:49:05 [end_date_ymd] => 2025-04-18 09:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:49:05' and `end` < '2025-04-18 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-04-18 09:49:17] Production.INFO: count ==416 [2025-04-18 09:49:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:49:05 - End Time 2025-04-18 09:49:05 [2025-04-18 09:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934786', 'tblTempUsageDetail_20' ) start [2025-04-18 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934786', 'tblTempUsageDetail_20' ) end [2025-04-18 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934786', 'tblTempVendorCDR_20' ) start [2025-04-18 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934786', 'tblTempVendorCDR_20' ) end [2025-04-18 09:49:17] Production.INFO: ProcessCDR(1,14934786,1,1,2) [2025-04-18 09:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934786', 'tblTempUsageDetail_20' ) start [2025-04-18 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934786', 'tblTempUsageDetail_20' ) end [2025-04-18 09:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:49:21] Production.INFO: ==28206== Releasing lock... [2025-04-18 09:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:49:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:50:05 [end_date_ymd] => 2025-04-18 09:50:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:50:05' and `end` < '2025-04-18 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-04-18 09:50:18] Production.INFO: count ==424 [2025-04-18 09:50:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:50:05 - End Time 2025-04-18 09:50:05 [2025-04-18 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934792', 'tblTempUsageDetail_20' ) start [2025-04-18 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934792', 'tblTempUsageDetail_20' ) end [2025-04-18 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934792', 'tblTempVendorCDR_20' ) start [2025-04-18 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934792', 'tblTempVendorCDR_20' ) end [2025-04-18 09:50:18] Production.INFO: ProcessCDR(1,14934792,1,1,2) [2025-04-18 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934792', 'tblTempUsageDetail_20' ) start [2025-04-18 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934792', 'tblTempUsageDetail_20' ) end [2025-04-18 09:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:50:21] Production.INFO: ==28286== Releasing lock... [2025-04-18 09:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:50:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:51:04 [end_date_ymd] => 2025-04-18 09:51:04 [RateCDR] => 1 ) [2025-04-18 09: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-04-18 06:51:04' and `end` < '2025-04-18 09: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-04-18 09:51:17] Production.INFO: count ==426 [2025-04-18 09:51:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:51:04 - End Time 2025-04-18 09:51:04 [2025-04-18 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934797', 'tblTempUsageDetail_20' ) start [2025-04-18 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934797', 'tblTempUsageDetail_20' ) end [2025-04-18 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934797', 'tblTempVendorCDR_20' ) start [2025-04-18 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934797', 'tblTempVendorCDR_20' ) end [2025-04-18 09:51:17] Production.INFO: ProcessCDR(1,14934797,1,1,2) [2025-04-18 09:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934797', 'tblTempUsageDetail_20' ) start [2025-04-18 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934797', 'tblTempUsageDetail_20' ) end [2025-04-18 09:51:20] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:51:20] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:51:20] Production.INFO: ==28365== Releasing lock... [2025-04-18 09:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:51:20] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:52:05 [end_date_ymd] => 2025-04-18 09:52:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:52:05' and `end` < '2025-04-18 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-04-18 09:52:18] Production.INFO: count ==427 [2025-04-18 09:52:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:52:05 - End Time 2025-04-18 09:52:05 [2025-04-18 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934802', 'tblTempUsageDetail_20' ) start [2025-04-18 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934802', 'tblTempUsageDetail_20' ) end [2025-04-18 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934802', 'tblTempVendorCDR_20' ) start [2025-04-18 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934802', 'tblTempVendorCDR_20' ) end [2025-04-18 09:52:18] Production.INFO: ProcessCDR(1,14934802,1,1,2) [2025-04-18 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934802', 'tblTempUsageDetail_20' ) start [2025-04-18 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934802', 'tblTempUsageDetail_20' ) end [2025-04-18 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:52:21] Production.INFO: ==28439== Releasing lock... [2025-04-18 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:52:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:53:05 [end_date_ymd] => 2025-04-18 09:53:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:53:05' and `end` < '2025-04-18 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-04-18 09:53:18] Production.INFO: count ==427 [2025-04-18 09:53:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:53:05 - End Time 2025-04-18 09:53:05 [2025-04-18 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934807', 'tblTempUsageDetail_20' ) start [2025-04-18 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934807', 'tblTempUsageDetail_20' ) end [2025-04-18 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934807', 'tblTempVendorCDR_20' ) start [2025-04-18 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934807', 'tblTempVendorCDR_20' ) end [2025-04-18 09:53:18] Production.INFO: ProcessCDR(1,14934807,1,1,2) [2025-04-18 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934807', 'tblTempUsageDetail_20' ) start [2025-04-18 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934807', 'tblTempUsageDetail_20' ) end [2025-04-18 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:53:21] Production.INFO: ==28509== Releasing lock... [2025-04-18 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:53:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-18 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:54:05 [end_date_ymd] => 2025-04-18 09:54:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:54:05' and `end` < '2025-04-18 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-04-18 09:54:18] Production.INFO: count ==431 [2025-04-18 09:54:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:54:05 - End Time 2025-04-18 09:54:05 [2025-04-18 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934812', 'tblTempUsageDetail_20' ) start [2025-04-18 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934812', 'tblTempUsageDetail_20' ) end [2025-04-18 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934812', 'tblTempVendorCDR_20' ) start [2025-04-18 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934812', 'tblTempVendorCDR_20' ) end [2025-04-18 09:54:18] Production.INFO: ProcessCDR(1,14934812,1,1,2) [2025-04-18 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934812', 'tblTempUsageDetail_20' ) start [2025-04-18 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934812', 'tblTempUsageDetail_20' ) end [2025-04-18 09:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:54:21] Production.INFO: ==28582== Releasing lock... [2025-04-18 09:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:54:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:55:05 [end_date_ymd] => 2025-04-18 09:55:05 [RateCDR] => 1 ) [2025-04-18 09: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-04-18 06:55:05' and `end` < '2025-04-18 09: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-04-18 09:55:18] Production.INFO: count ==431 [2025-04-18 09:55:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:55:05 - End Time 2025-04-18 09:55:05 [2025-04-18 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934817', 'tblTempUsageDetail_20' ) start [2025-04-18 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934817', 'tblTempUsageDetail_20' ) end [2025-04-18 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934817', 'tblTempVendorCDR_20' ) start [2025-04-18 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934817', 'tblTempVendorCDR_20' ) end [2025-04-18 09:55:18] Production.INFO: ProcessCDR(1,14934817,1,1,2) [2025-04-18 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934817', 'tblTempUsageDetail_20' ) start [2025-04-18 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934817', 'tblTempUsageDetail_20' ) end [2025-04-18 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:55:21] Production.INFO: ==28654== Releasing lock... [2025-04-18 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:56:05 [end_date_ymd] => 2025-04-18 09:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:56:05' and `end` < '2025-04-18 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-04-18 09:56:17] Production.INFO: count ==431 [2025-04-18 09:56:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:56:05 - End Time 2025-04-18 09:56:05 [2025-04-18 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934822', 'tblTempUsageDetail_20' ) start [2025-04-18 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934822', 'tblTempUsageDetail_20' ) end [2025-04-18 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934822', 'tblTempVendorCDR_20' ) start [2025-04-18 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934822', 'tblTempVendorCDR_20' ) end [2025-04-18 09:56:18] Production.INFO: ProcessCDR(1,14934822,1,1,2) [2025-04-18 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934822', 'tblTempUsageDetail_20' ) start [2025-04-18 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934822', 'tblTempUsageDetail_20' ) end [2025-04-18 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:56:21] Production.INFO: ==28729== Releasing lock... [2025-04-18 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:57:05 [end_date_ymd] => 2025-04-18 09:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 06:57:05' and `end` < '2025-04-18 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-04-18 09:57:18] Production.INFO: count ==431 [2025-04-18 09:57:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:57:05 - End Time 2025-04-18 09:57:05 [2025-04-18 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934827', 'tblTempUsageDetail_20' ) start [2025-04-18 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934827', 'tblTempUsageDetail_20' ) end [2025-04-18 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934827', 'tblTempVendorCDR_20' ) start [2025-04-18 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934827', 'tblTempVendorCDR_20' ) end [2025-04-18 09:57:18] Production.INFO: ProcessCDR(1,14934827,1,1,2) [2025-04-18 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934827', 'tblTempUsageDetail_20' ) start [2025-04-18 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934827', 'tblTempUsageDetail_20' ) end [2025-04-18 09:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:57:21] Production.INFO: ==28804== Releasing lock... [2025-04-18 09:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:57:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 09:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:58:04 [end_date_ymd] => 2025-04-18 09:58:04 [RateCDR] => 1 ) [2025-04-18 09:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:58:04' and `end` < '2025-04-18 09:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:58:17] Production.INFO: count ==457 [2025-04-18 09:58:17] Production.ERROR: pbx CDR StartTime 2025-04-18 06:58:04 - End Time 2025-04-18 09:58:04 [2025-04-18 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934832', 'tblTempUsageDetail_20' ) start [2025-04-18 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934832', 'tblTempUsageDetail_20' ) end [2025-04-18 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934832', 'tblTempVendorCDR_20' ) start [2025-04-18 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934832', 'tblTempVendorCDR_20' ) end [2025-04-18 09:58:17] Production.INFO: ProcessCDR(1,14934832,1,1,2) [2025-04-18 09:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934832', 'tblTempUsageDetail_20' ) start [2025-04-18 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934832', 'tblTempUsageDetail_20' ) end [2025-04-18 09:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:58:22] Production.INFO: ==28917== Releasing lock... [2025-04-18 09:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:58:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-18 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 06:59:05 [end_date_ymd] => 2025-04-18 09:59:05 [RateCDR] => 1 ) [2025-04-18 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 06:59:05' and `end` < '2025-04-18 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 09:59:18] Production.INFO: count ==461 [2025-04-18 09:59:18] Production.ERROR: pbx CDR StartTime 2025-04-18 06:59:05 - End Time 2025-04-18 09:59:05 [2025-04-18 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934837', 'tblTempUsageDetail_20' ) start [2025-04-18 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934837', 'tblTempUsageDetail_20' ) end [2025-04-18 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934837', 'tblTempVendorCDR_20' ) start [2025-04-18 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934837', 'tblTempVendorCDR_20' ) end [2025-04-18 09:59:18] Production.INFO: ProcessCDR(1,14934837,1,1,2) [2025-04-18 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934837', 'tblTempUsageDetail_20' ) start [2025-04-18 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934837', 'tblTempUsageDetail_20' ) end [2025-04-18 09:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 09:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 09:59:22] Production.INFO: ==28997== Releasing lock... [2025-04-18 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 09:59:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-18 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:00:06 [end_date_ymd] => 2025-04-18 10:00:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:00:06' and `end` < '2025-04-18 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-04-18 10:00:19] Production.INFO: count ==471 [2025-04-18 10:00:19] Production.ERROR: pbx CDR StartTime 2025-04-18 07:00:06 - End Time 2025-04-18 10:00:06 [2025-04-18 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934843', 'tblTempUsageDetail_20' ) start [2025-04-18 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934843', 'tblTempUsageDetail_20' ) end [2025-04-18 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934843', 'tblTempVendorCDR_20' ) start [2025-04-18 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934843', 'tblTempVendorCDR_20' ) end [2025-04-18 10:00:19] Production.INFO: ProcessCDR(1,14934843,1,1,2) [2025-04-18 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934843', 'tblTempUsageDetail_20' ) start [2025-04-18 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934843', 'tblTempUsageDetail_20' ) end [2025-04-18 10:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:00:22] Production.INFO: ==29070== Releasing lock... [2025-04-18 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:00:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-18 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:01:05 [end_date_ymd] => 2025-04-18 10:01:05 [RateCDR] => 1 ) [2025-04-18 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:01:05' and `end` < '2025-04-18 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:01:18] Production.INFO: count ==474 [2025-04-18 10:01:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:01:05 - End Time 2025-04-18 10:01:05 [2025-04-18 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934848', 'tblTempUsageDetail_20' ) start [2025-04-18 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934848', 'tblTempUsageDetail_20' ) end [2025-04-18 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934848', 'tblTempVendorCDR_20' ) start [2025-04-18 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934848', 'tblTempVendorCDR_20' ) end [2025-04-18 10:01:18] Production.INFO: ProcessCDR(1,14934848,1,1,2) [2025-04-18 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934848', 'tblTempUsageDetail_20' ) start [2025-04-18 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934848', 'tblTempUsageDetail_20' ) end [2025-04-18 10:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:01:21] Production.INFO: ==29159== Releasing lock... [2025-04-18 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-18 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:02:05 [end_date_ymd] => 2025-04-18 10:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:02:05' and `end` < '2025-04-18 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-04-18 10:02:18] Production.INFO: count ==474 [2025-04-18 10:02:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:02:05 - End Time 2025-04-18 10:02:05 [2025-04-18 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934853', 'tblTempUsageDetail_20' ) start [2025-04-18 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934853', 'tblTempUsageDetail_20' ) end [2025-04-18 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934853', 'tblTempVendorCDR_20' ) start [2025-04-18 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934853', 'tblTempVendorCDR_20' ) end [2025-04-18 10:02:18] Production.INFO: ProcessCDR(1,14934853,1,1,2) [2025-04-18 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934853', 'tblTempUsageDetail_20' ) start [2025-04-18 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934853', 'tblTempUsageDetail_20' ) end [2025-04-18 10:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:02:21] Production.INFO: ==29230== Releasing lock... [2025-04-18 10:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:02:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-18 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:03:05 [end_date_ymd] => 2025-04-18 10:03:05 [RateCDR] => 1 ) [2025-04-18 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:03:05' and `end` < '2025-04-18 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:03:18] Production.INFO: count ==473 [2025-04-18 10:03:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:03:05 - End Time 2025-04-18 10:03:05 [2025-04-18 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934858', 'tblTempUsageDetail_20' ) start [2025-04-18 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934858', 'tblTempUsageDetail_20' ) end [2025-04-18 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934858', 'tblTempVendorCDR_20' ) start [2025-04-18 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934858', 'tblTempVendorCDR_20' ) end [2025-04-18 10:03:18] Production.INFO: ProcessCDR(1,14934858,1,1,2) [2025-04-18 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934858', 'tblTempUsageDetail_20' ) start [2025-04-18 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934858', 'tblTempUsageDetail_20' ) end [2025-04-18 10:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:03:22] Production.INFO: ==29305== Releasing lock... [2025-04-18 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:03:22] Production.INFO: 32 MB #Memory Used# [2025-04-18 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:04:05 [end_date_ymd] => 2025-04-18 10:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:04:05' and `end` < '2025-04-18 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-04-18 10:04:18] Production.INFO: count ==494 [2025-04-18 10:04:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:04:05 - End Time 2025-04-18 10:04:05 [2025-04-18 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934863', 'tblTempUsageDetail_20' ) start [2025-04-18 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934863', 'tblTempUsageDetail_20' ) end [2025-04-18 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934863', 'tblTempVendorCDR_20' ) start [2025-04-18 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934863', 'tblTempVendorCDR_20' ) end [2025-04-18 10:04:18] Production.INFO: ProcessCDR(1,14934863,1,1,2) [2025-04-18 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934863', 'tblTempUsageDetail_20' ) start [2025-04-18 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934863', 'tblTempUsageDetail_20' ) end [2025-04-18 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:04:24] Production.INFO: ==29388== Releasing lock... [2025-04-18 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:04:24] Production.INFO: 32 MB #Memory Used# [2025-04-18 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:05:05 [end_date_ymd] => 2025-04-18 10:05:05 [RateCDR] => 1 ) [2025-04-18 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:05:05' and `end` < '2025-04-18 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:05:18] Production.INFO: count ==495 [2025-04-18 10:05:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:05:05 - End Time 2025-04-18 10:05:05 [2025-04-18 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934868', 'tblTempUsageDetail_20' ) start [2025-04-18 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934868', 'tblTempUsageDetail_20' ) end [2025-04-18 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934868', 'tblTempVendorCDR_20' ) start [2025-04-18 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934868', 'tblTempVendorCDR_20' ) end [2025-04-18 10:05:18] Production.INFO: ProcessCDR(1,14934868,1,1,2) [2025-04-18 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934868', 'tblTempUsageDetail_20' ) start [2025-04-18 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934868', 'tblTempUsageDetail_20' ) end [2025-04-18 10:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:05:21] Production.INFO: ==29464== Releasing lock... [2025-04-18 10:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:05:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-18 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:06:05 [end_date_ymd] => 2025-04-18 10:06:05 [RateCDR] => 1 ) [2025-04-18 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:06:05' and `end` < '2025-04-18 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:06:18] Production.INFO: count ==497 [2025-04-18 10:06:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:06:05 - End Time 2025-04-18 10:06:05 [2025-04-18 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934873', 'tblTempUsageDetail_20' ) start [2025-04-18 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934873', 'tblTempUsageDetail_20' ) end [2025-04-18 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934873', 'tblTempVendorCDR_20' ) start [2025-04-18 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934873', 'tblTempVendorCDR_20' ) end [2025-04-18 10:06:18] Production.INFO: ProcessCDR(1,14934873,1,1,2) [2025-04-18 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934873', 'tblTempUsageDetail_20' ) start [2025-04-18 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934873', 'tblTempUsageDetail_20' ) end [2025-04-18 10:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:06:23] Production.INFO: ==29541== Releasing lock... [2025-04-18 10:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:06:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-18 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:07:05 [end_date_ymd] => 2025-04-18 10:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:07:05' and `end` < '2025-04-18 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-04-18 10:07:17] Production.INFO: count ==502 [2025-04-18 10:07:17] Production.ERROR: pbx CDR StartTime 2025-04-18 07:07:05 - End Time 2025-04-18 10:07:05 [2025-04-18 10:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934878', 'tblTempUsageDetail_20' ) start [2025-04-18 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934878', 'tblTempUsageDetail_20' ) end [2025-04-18 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934878', 'tblTempVendorCDR_20' ) start [2025-04-18 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934878', 'tblTempVendorCDR_20' ) end [2025-04-18 10:07:17] Production.INFO: ProcessCDR(1,14934878,1,1,2) [2025-04-18 10:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934878', 'tblTempUsageDetail_20' ) start [2025-04-18 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934878', 'tblTempUsageDetail_20' ) end [2025-04-18 10:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:07:21] Production.INFO: ==29615== Releasing lock... [2025-04-18 10:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:07:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-18 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:08:05 [end_date_ymd] => 2025-04-18 10:08:05 [RateCDR] => 1 ) [2025-04-18 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:08:05' and `end` < '2025-04-18 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:08:18] Production.INFO: count ==503 [2025-04-18 10:08:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:08:05 - End Time 2025-04-18 10:08:05 [2025-04-18 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934883', 'tblTempUsageDetail_20' ) start [2025-04-18 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934883', 'tblTempUsageDetail_20' ) end [2025-04-18 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934883', 'tblTempVendorCDR_20' ) start [2025-04-18 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934883', 'tblTempVendorCDR_20' ) end [2025-04-18 10:08:18] Production.INFO: ProcessCDR(1,14934883,1,1,2) [2025-04-18 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934883', 'tblTempUsageDetail_20' ) start [2025-04-18 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934883', 'tblTempUsageDetail_20' ) end [2025-04-18 10:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:08:21] Production.INFO: ==29687== Releasing lock... [2025-04-18 10:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:08:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-18 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:09:06 [end_date_ymd] => 2025-04-18 10:09:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:09:06' and `end` < '2025-04-18 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-04-18 10:09:18] Production.INFO: count ==505 [2025-04-18 10:09:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:09:06 - End Time 2025-04-18 10:09:06 [2025-04-18 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934888', 'tblTempUsageDetail_20' ) start [2025-04-18 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934888', 'tblTempUsageDetail_20' ) end [2025-04-18 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934888', 'tblTempVendorCDR_20' ) start [2025-04-18 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934888', 'tblTempVendorCDR_20' ) end [2025-04-18 10:09:18] Production.INFO: ProcessCDR(1,14934888,1,1,2) [2025-04-18 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934888', 'tblTempUsageDetail_20' ) start [2025-04-18 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934888', 'tblTempUsageDetail_20' ) end [2025-04-18 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:09:23] Production.INFO: ==29762== Releasing lock... [2025-04-18 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:09:23] Production.INFO: 32 MB #Memory Used# [2025-04-18 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:10:06 [end_date_ymd] => 2025-04-18 10:10:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:10:06' and `end` < '2025-04-18 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-04-18 10:10:19] Production.INFO: count ==515 [2025-04-18 10:10:19] Production.ERROR: pbx CDR StartTime 2025-04-18 07:10:06 - End Time 2025-04-18 10:10:06 [2025-04-18 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934894', 'tblTempUsageDetail_20' ) start [2025-04-18 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934894', 'tblTempUsageDetail_20' ) end [2025-04-18 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934894', 'tblTempVendorCDR_20' ) start [2025-04-18 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934894', 'tblTempVendorCDR_20' ) end [2025-04-18 10:10:19] Production.INFO: ProcessCDR(1,14934894,1,1,2) [2025-04-18 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934894', 'tblTempUsageDetail_20' ) start [2025-04-18 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934894', 'tblTempUsageDetail_20' ) end [2025-04-18 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:10:24] Production.INFO: ==29838== Releasing lock... [2025-04-18 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:10:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-18 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:11:05 [end_date_ymd] => 2025-04-18 10:11:05 [RateCDR] => 1 ) [2025-04-18 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:11:05' and `end` < '2025-04-18 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:11:18] Production.INFO: count ==535 [2025-04-18 10:11:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:11:05 - End Time 2025-04-18 10:11:05 [2025-04-18 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934899', 'tblTempUsageDetail_20' ) start [2025-04-18 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934899', 'tblTempUsageDetail_20' ) end [2025-04-18 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934899', 'tblTempVendorCDR_20' ) start [2025-04-18 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934899', 'tblTempVendorCDR_20' ) end [2025-04-18 10:11:18] Production.INFO: ProcessCDR(1,14934899,1,1,2) [2025-04-18 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934899', 'tblTempUsageDetail_20' ) start [2025-04-18 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934899', 'tblTempUsageDetail_20' ) end [2025-04-18 10:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:11:21] Production.INFO: ==29916== Releasing lock... [2025-04-18 10:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:11:21] Production.INFO: 33 MB #Memory Used# [2025-04-18 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:12:05 [end_date_ymd] => 2025-04-18 10:12:05 [RateCDR] => 1 ) [2025-04-18 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:12:05' and `end` < '2025-04-18 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:12:17] Production.INFO: count ==542 [2025-04-18 10:12:17] Production.ERROR: pbx CDR StartTime 2025-04-18 07:12:05 - End Time 2025-04-18 10:12:05 [2025-04-18 10:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934904', 'tblTempUsageDetail_20' ) start [2025-04-18 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934904', 'tblTempUsageDetail_20' ) end [2025-04-18 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934904', 'tblTempVendorCDR_20' ) start [2025-04-18 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934904', 'tblTempVendorCDR_20' ) end [2025-04-18 10:12:17] Production.INFO: ProcessCDR(1,14934904,1,1,2) [2025-04-18 10:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934904', 'tblTempUsageDetail_20' ) start [2025-04-18 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934904', 'tblTempUsageDetail_20' ) end [2025-04-18 10:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:12:21] Production.INFO: ==29988== Releasing lock... [2025-04-18 10:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:12:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-18 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:13:05 [end_date_ymd] => 2025-04-18 10:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:13:05' and `end` < '2025-04-18 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-04-18 10:13:18] Production.INFO: count ==549 [2025-04-18 10:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:13:05 - End Time 2025-04-18 10:13:05 [2025-04-18 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934909', 'tblTempUsageDetail_20' ) start [2025-04-18 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934909', 'tblTempUsageDetail_20' ) end [2025-04-18 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934909', 'tblTempVendorCDR_20' ) start [2025-04-18 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934909', 'tblTempVendorCDR_20' ) end [2025-04-18 10:13:18] Production.INFO: ProcessCDR(1,14934909,1,1,2) [2025-04-18 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934909', 'tblTempUsageDetail_20' ) start [2025-04-18 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934909', 'tblTempUsageDetail_20' ) end [2025-04-18 10:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:13:23] Production.INFO: ==30068== Releasing lock... [2025-04-18 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:13:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-18 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:14:05 [end_date_ymd] => 2025-04-18 10:14:05 [RateCDR] => 1 ) [2025-04-18 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:14:05' and `end` < '2025-04-18 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:14:18] Production.INFO: count ==558 [2025-04-18 10:14:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:14:05 - End Time 2025-04-18 10:14:05 [2025-04-18 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934914', 'tblTempUsageDetail_20' ) start [2025-04-18 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934914', 'tblTempUsageDetail_20' ) end [2025-04-18 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934914', 'tblTempVendorCDR_20' ) start [2025-04-18 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934914', 'tblTempVendorCDR_20' ) end [2025-04-18 10:14:18] Production.INFO: ProcessCDR(1,14934914,1,1,2) [2025-04-18 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934914', 'tblTempUsageDetail_20' ) start [2025-04-18 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934914', 'tblTempUsageDetail_20' ) end [2025-04-18 10:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:14:22] Production.INFO: ==30181== Releasing lock... [2025-04-18 10:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:14:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-18 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:15:05 [end_date_ymd] => 2025-04-18 10:15:05 [RateCDR] => 1 ) [2025-04-18 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:15:05' and `end` < '2025-04-18 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:15:18] Production.INFO: count ==559 [2025-04-18 10:15:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:15:05 - End Time 2025-04-18 10:15:05 [2025-04-18 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934919', 'tblTempUsageDetail_20' ) start [2025-04-18 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934919', 'tblTempUsageDetail_20' ) end [2025-04-18 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934919', 'tblTempVendorCDR_20' ) start [2025-04-18 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934919', 'tblTempVendorCDR_20' ) end [2025-04-18 10:15:18] Production.INFO: ProcessCDR(1,14934919,1,1,2) [2025-04-18 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934919', 'tblTempUsageDetail_20' ) start [2025-04-18 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934919', 'tblTempUsageDetail_20' ) end [2025-04-18 10:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:15:23] Production.INFO: ==30252== Releasing lock... [2025-04-18 10:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:15:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-18 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:16:05 [end_date_ymd] => 2025-04-18 10:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:16:05' and `end` < '2025-04-18 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-04-18 10:16:18] Production.INFO: count ==566 [2025-04-18 10:16:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:16:05 - End Time 2025-04-18 10:16:05 [2025-04-18 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934924', 'tblTempUsageDetail_20' ) start [2025-04-18 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934924', 'tblTempUsageDetail_20' ) end [2025-04-18 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934924', 'tblTempVendorCDR_20' ) start [2025-04-18 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934924', 'tblTempVendorCDR_20' ) end [2025-04-18 10:16:18] Production.INFO: ProcessCDR(1,14934924,1,1,2) [2025-04-18 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934924', 'tblTempUsageDetail_20' ) start [2025-04-18 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934924', 'tblTempUsageDetail_20' ) end [2025-04-18 10:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:16:22] Production.INFO: ==30327== Releasing lock... [2025-04-18 10:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-18 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:17:05 [end_date_ymd] => 2025-04-18 10:17:05 [RateCDR] => 1 ) [2025-04-18 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:17:05' and `end` < '2025-04-18 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:17:17] Production.INFO: count ==569 [2025-04-18 10:17:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:17:05 - End Time 2025-04-18 10:17:05 [2025-04-18 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934929', 'tblTempUsageDetail_20' ) start [2025-04-18 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934929', 'tblTempUsageDetail_20' ) end [2025-04-18 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934929', 'tblTempVendorCDR_20' ) start [2025-04-18 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934929', 'tblTempVendorCDR_20' ) end [2025-04-18 10:17:18] Production.INFO: ProcessCDR(1,14934929,1,1,2) [2025-04-18 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934929', 'tblTempUsageDetail_20' ) start [2025-04-18 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934929', 'tblTempUsageDetail_20' ) end [2025-04-18 10:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:17:21] Production.INFO: ==30400== Releasing lock... [2025-04-18 10:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-18 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:18:05 [end_date_ymd] => 2025-04-18 10:18:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:18:05' and `end` < '2025-04-18 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-04-18 10:18:18] Production.INFO: count ==566 [2025-04-18 10:18:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:18:05 - End Time 2025-04-18 10:18:05 [2025-04-18 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934934', 'tblTempUsageDetail_20' ) start [2025-04-18 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934934', 'tblTempUsageDetail_20' ) end [2025-04-18 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934934', 'tblTempVendorCDR_20' ) start [2025-04-18 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934934', 'tblTempVendorCDR_20' ) end [2025-04-18 10:18:18] Production.INFO: ProcessCDR(1,14934934,1,1,2) [2025-04-18 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934934', 'tblTempUsageDetail_20' ) start [2025-04-18 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934934', 'tblTempUsageDetail_20' ) end [2025-04-18 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:18:21] Production.INFO: ==30474== Releasing lock... [2025-04-18 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:18:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-18 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:19:04 [end_date_ymd] => 2025-04-18 10:19:04 [RateCDR] => 1 ) [2025-04-18 10:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:19:04' and `end` < '2025-04-18 10:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:19:17] Production.INFO: count ==571 [2025-04-18 10:19:17] Production.ERROR: pbx CDR StartTime 2025-04-18 07:19:04 - End Time 2025-04-18 10:19:04 [2025-04-18 10:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934939', 'tblTempUsageDetail_20' ) start [2025-04-18 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934939', 'tblTempUsageDetail_20' ) end [2025-04-18 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934939', 'tblTempVendorCDR_20' ) start [2025-04-18 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934939', 'tblTempVendorCDR_20' ) end [2025-04-18 10:19:17] Production.INFO: ProcessCDR(1,14934939,1,1,2) [2025-04-18 10:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934939', 'tblTempUsageDetail_20' ) start [2025-04-18 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934939', 'tblTempUsageDetail_20' ) end [2025-04-18 10:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:19:22] Production.INFO: ==30546== Releasing lock... [2025-04-18 10:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:19:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-18 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:20:06 [end_date_ymd] => 2025-04-18 10:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:20:06' and `end` < '2025-04-18 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-04-18 10:20:19] Production.INFO: count ==581 [2025-04-18 10:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 07:20:06 - End Time 2025-04-18 10:20:06 [2025-04-18 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934945', 'tblTempUsageDetail_20' ) start [2025-04-18 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934945', 'tblTempUsageDetail_20' ) end [2025-04-18 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934945', 'tblTempVendorCDR_20' ) start [2025-04-18 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934945', 'tblTempVendorCDR_20' ) end [2025-04-18 10:20:19] Production.INFO: ProcessCDR(1,14934945,1,1,2) [2025-04-18 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934945', 'tblTempUsageDetail_20' ) start [2025-04-18 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934945', 'tblTempUsageDetail_20' ) end [2025-04-18 10:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:20:24] Production.INFO: ==30622== Releasing lock... [2025-04-18 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:20:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-18 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:21:05 [end_date_ymd] => 2025-04-18 10:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:21:05' and `end` < '2025-04-18 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-04-18 10:21:17] Production.INFO: count ==589 [2025-04-18 10:21:17] Production.ERROR: pbx CDR StartTime 2025-04-18 07:21:05 - End Time 2025-04-18 10:21:05 [2025-04-18 10:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934950', 'tblTempUsageDetail_20' ) start [2025-04-18 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934950', 'tblTempUsageDetail_20' ) end [2025-04-18 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934950', 'tblTempVendorCDR_20' ) start [2025-04-18 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934950', 'tblTempVendorCDR_20' ) end [2025-04-18 10:21:18] Production.INFO: ProcessCDR(1,14934950,1,1,2) [2025-04-18 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934950', 'tblTempUsageDetail_20' ) start [2025-04-18 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934950', 'tblTempUsageDetail_20' ) end [2025-04-18 10:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:21:21] Production.INFO: ==30701== Releasing lock... [2025-04-18 10:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:21:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-18 10:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:22:04 [end_date_ymd] => 2025-04-18 10:22:04 [RateCDR] => 1 ) [2025-04-18 10:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:22:04' and `end` < '2025-04-18 10:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:22:17] Production.INFO: count ==592 [2025-04-18 10:22:17] Production.ERROR: pbx CDR StartTime 2025-04-18 07:22:04 - End Time 2025-04-18 10:22:04 [2025-04-18 10:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934955', 'tblTempUsageDetail_20' ) start [2025-04-18 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934955', 'tblTempUsageDetail_20' ) end [2025-04-18 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934955', 'tblTempVendorCDR_20' ) start [2025-04-18 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934955', 'tblTempVendorCDR_20' ) end [2025-04-18 10:22:17] Production.INFO: ProcessCDR(1,14934955,1,1,2) [2025-04-18 10:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934955', 'tblTempUsageDetail_20' ) start [2025-04-18 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934955', 'tblTempUsageDetail_20' ) end [2025-04-18 10:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:22:21] Production.INFO: ==30775== Releasing lock... [2025-04-18 10:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:22:21] Production.INFO: 33 MB #Memory Used# [2025-04-18 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:23:04 [end_date_ymd] => 2025-04-18 10:23:04 [RateCDR] => 1 ) [2025-04-18 10:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:23:04' and `end` < '2025-04-18 10:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:23:17] Production.INFO: count ==592 [2025-04-18 10:23:17] Production.ERROR: pbx CDR StartTime 2025-04-18 07:23:04 - End Time 2025-04-18 10:23:04 [2025-04-18 10:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934960', 'tblTempUsageDetail_20' ) start [2025-04-18 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934960', 'tblTempUsageDetail_20' ) end [2025-04-18 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934960', 'tblTempVendorCDR_20' ) start [2025-04-18 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934960', 'tblTempVendorCDR_20' ) end [2025-04-18 10:23:17] Production.INFO: ProcessCDR(1,14934960,1,1,2) [2025-04-18 10:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934960', 'tblTempUsageDetail_20' ) start [2025-04-18 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934960', 'tblTempUsageDetail_20' ) end [2025-04-18 10:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:23:21] Production.INFO: ==30854== Releasing lock... [2025-04-18 10:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:23:21] Production.INFO: 33 MB #Memory Used# [2025-04-18 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:24:05 [end_date_ymd] => 2025-04-18 10:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:24:05' and `end` < '2025-04-18 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-04-18 10:24:17] Production.INFO: count ==597 [2025-04-18 10:24:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:24:05 - End Time 2025-04-18 10:24:05 [2025-04-18 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934965', 'tblTempUsageDetail_20' ) start [2025-04-18 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934965', 'tblTempUsageDetail_20' ) end [2025-04-18 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934965', 'tblTempVendorCDR_20' ) start [2025-04-18 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934965', 'tblTempVendorCDR_20' ) end [2025-04-18 10:24:18] Production.INFO: ProcessCDR(1,14934965,1,1,2) [2025-04-18 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934965', 'tblTempUsageDetail_20' ) start [2025-04-18 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934965', 'tblTempUsageDetail_20' ) end [2025-04-18 10:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:24:21] Production.INFO: ==30930== Releasing lock... [2025-04-18 10:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:24:21] Production.INFO: 33 MB #Memory Used# [2025-04-18 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:25:05 [end_date_ymd] => 2025-04-18 10:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:25:05' and `end` < '2025-04-18 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-04-18 10:25:18] Production.INFO: count ==599 [2025-04-18 10:25:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:25:05 - End Time 2025-04-18 10:25:05 [2025-04-18 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934970', 'tblTempUsageDetail_20' ) start [2025-04-18 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934970', 'tblTempUsageDetail_20' ) end [2025-04-18 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934970', 'tblTempVendorCDR_20' ) start [2025-04-18 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934970', 'tblTempVendorCDR_20' ) end [2025-04-18 10:25:18] Production.INFO: ProcessCDR(1,14934970,1,1,2) [2025-04-18 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934970', 'tblTempUsageDetail_20' ) start [2025-04-18 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934970', 'tblTempUsageDetail_20' ) end [2025-04-18 10:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:25:21] Production.INFO: ==30999== Releasing lock... [2025-04-18 10:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:25:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:26:05 [end_date_ymd] => 2025-04-18 10:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:26:05' and `end` < '2025-04-18 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-04-18 10:26:17] Production.INFO: count ==601 [2025-04-18 10:26:17] Production.ERROR: pbx CDR StartTime 2025-04-18 07:26:05 - End Time 2025-04-18 10:26:05 [2025-04-18 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934975', 'tblTempUsageDetail_20' ) start [2025-04-18 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934975', 'tblTempUsageDetail_20' ) end [2025-04-18 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934975', 'tblTempVendorCDR_20' ) start [2025-04-18 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934975', 'tblTempVendorCDR_20' ) end [2025-04-18 10:26:18] Production.INFO: ProcessCDR(1,14934975,1,1,2) [2025-04-18 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934975', 'tblTempUsageDetail_20' ) start [2025-04-18 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934975', 'tblTempUsageDetail_20' ) end [2025-04-18 10:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:26:21] Production.INFO: ==31080== Releasing lock... [2025-04-18 10:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-18 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:27:05 [end_date_ymd] => 2025-04-18 10:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:27:05' and `end` < '2025-04-18 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-04-18 10:27:18] Production.INFO: count ==604 [2025-04-18 10:27:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:27:05 - End Time 2025-04-18 10:27:05 [2025-04-18 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934980', 'tblTempUsageDetail_20' ) start [2025-04-18 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934980', 'tblTempUsageDetail_20' ) end [2025-04-18 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934980', 'tblTempVendorCDR_20' ) start [2025-04-18 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934980', 'tblTempVendorCDR_20' ) end [2025-04-18 10:27:18] Production.INFO: ProcessCDR(1,14934980,1,1,2) [2025-04-18 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934980', 'tblTempUsageDetail_20' ) start [2025-04-18 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934980', 'tblTempUsageDetail_20' ) end [2025-04-18 10:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:27:21] Production.INFO: ==31153== Releasing lock... [2025-04-18 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:27:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-18 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:28:05 [end_date_ymd] => 2025-04-18 10:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:28:05' and `end` < '2025-04-18 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-04-18 10:28:18] Production.INFO: count ==613 [2025-04-18 10:28:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:28:05 - End Time 2025-04-18 10:28:05 [2025-04-18 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934985', 'tblTempUsageDetail_20' ) start [2025-04-18 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934985', 'tblTempUsageDetail_20' ) end [2025-04-18 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934985', 'tblTempVendorCDR_20' ) start [2025-04-18 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934985', 'tblTempVendorCDR_20' ) end [2025-04-18 10:28:18] Production.INFO: ProcessCDR(1,14934985,1,1,2) [2025-04-18 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934985', 'tblTempUsageDetail_20' ) start [2025-04-18 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934985', 'tblTempUsageDetail_20' ) end [2025-04-18 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:28:22] Production.INFO: ==31228== Releasing lock... [2025-04-18 10:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:28:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:29:05 [end_date_ymd] => 2025-04-18 10:29:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:29:05' and `end` < '2025-04-18 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-04-18 10:29:18] Production.INFO: count ==613 [2025-04-18 10:29:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:29:05 - End Time 2025-04-18 10:29:05 [2025-04-18 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934990', 'tblTempUsageDetail_20' ) start [2025-04-18 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934990', 'tblTempUsageDetail_20' ) end [2025-04-18 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934990', 'tblTempVendorCDR_20' ) start [2025-04-18 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934990', 'tblTempVendorCDR_20' ) end [2025-04-18 10:29:18] Production.INFO: ProcessCDR(1,14934990,1,1,2) [2025-04-18 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934990', 'tblTempUsageDetail_20' ) start [2025-04-18 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934990', 'tblTempUsageDetail_20' ) end [2025-04-18 10:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:29:21] Production.INFO: ==31343== Releasing lock... [2025-04-18 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:30:07 [end_date_ymd] => 2025-04-18 10:30:07 [RateCDR] => 1 ) [2025-04-18 10: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-04-18 07:30:07' and `end` < '2025-04-18 10: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-04-18 10:30:19] Production.INFO: count ==613 [2025-04-18 10:30:20] Production.ERROR: pbx CDR StartTime 2025-04-18 07:30:07 - End Time 2025-04-18 10:30:07 [2025-04-18 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934995', 'tblTempUsageDetail_20' ) start [2025-04-18 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14934995', 'tblTempUsageDetail_20' ) end [2025-04-18 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934995', 'tblTempVendorCDR_20' ) start [2025-04-18 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14934995', 'tblTempVendorCDR_20' ) end [2025-04-18 10:30:20] Production.INFO: ProcessCDR(1,14934995,1,1,2) [2025-04-18 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14934995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14934995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14934995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14934995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934995', 'tblTempUsageDetail_20' ) start [2025-04-18 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14934995', 'tblTempUsageDetail_20' ) end [2025-04-18 10:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:30:23] Production.INFO: ==31416== Releasing lock... [2025-04-18 10:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:30:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:31:05 [end_date_ymd] => 2025-04-18 10:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:31:05' and `end` < '2025-04-18 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-04-18 10:31:18] Production.INFO: count ==615 [2025-04-18 10:31:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:31:05 - End Time 2025-04-18 10:31:05 [2025-04-18 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935001', 'tblTempUsageDetail_20' ) start [2025-04-18 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935001', 'tblTempUsageDetail_20' ) end [2025-04-18 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935001', 'tblTempVendorCDR_20' ) start [2025-04-18 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935001', 'tblTempVendorCDR_20' ) end [2025-04-18 10:31:18] Production.INFO: ProcessCDR(1,14935001,1,1,2) [2025-04-18 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935001', 'tblTempUsageDetail_20' ) start [2025-04-18 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935001', 'tblTempUsageDetail_20' ) end [2025-04-18 10:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:31:22] Production.INFO: ==31492== Releasing lock... [2025-04-18 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:31:22] Production.INFO: 33 MB #Memory Used# [2025-04-18 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:32:05 [end_date_ymd] => 2025-04-18 10:32:05 [RateCDR] => 1 ) [2025-04-18 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:32:05' and `end` < '2025-04-18 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:32:18] Production.INFO: count ==620 [2025-04-18 10:32:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:32:05 - End Time 2025-04-18 10:32:05 [2025-04-18 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935006', 'tblTempUsageDetail_20' ) start [2025-04-18 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935006', 'tblTempUsageDetail_20' ) end [2025-04-18 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935006', 'tblTempVendorCDR_20' ) start [2025-04-18 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935006', 'tblTempVendorCDR_20' ) end [2025-04-18 10:32:18] Production.INFO: ProcessCDR(1,14935006,1,1,2) [2025-04-18 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935006', 'tblTempUsageDetail_20' ) start [2025-04-18 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935006', 'tblTempUsageDetail_20' ) end [2025-04-18 10:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:32:21] Production.INFO: ==31566== Releasing lock... [2025-04-18 10:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:32:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:33:05 [end_date_ymd] => 2025-04-18 10:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:33:05' and `end` < '2025-04-18 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-04-18 10:33:18] Production.INFO: count ==620 [2025-04-18 10:33:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:33:05 - End Time 2025-04-18 10:33:05 [2025-04-18 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935011', 'tblTempUsageDetail_20' ) start [2025-04-18 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935011', 'tblTempUsageDetail_20' ) end [2025-04-18 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935011', 'tblTempVendorCDR_20' ) start [2025-04-18 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935011', 'tblTempVendorCDR_20' ) end [2025-04-18 10:33:18] Production.INFO: ProcessCDR(1,14935011,1,1,2) [2025-04-18 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935011', 'tblTempUsageDetail_20' ) start [2025-04-18 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935011', 'tblTempUsageDetail_20' ) end [2025-04-18 10:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:33:21] Production.INFO: ==31639== Releasing lock... [2025-04-18 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:33:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:34:05 [end_date_ymd] => 2025-04-18 10:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:34:05' and `end` < '2025-04-18 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-04-18 10:34:18] Production.INFO: count ==622 [2025-04-18 10:34:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:34:05 - End Time 2025-04-18 10:34:05 [2025-04-18 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935016', 'tblTempUsageDetail_20' ) start [2025-04-18 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935016', 'tblTempUsageDetail_20' ) end [2025-04-18 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935016', 'tblTempVendorCDR_20' ) start [2025-04-18 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935016', 'tblTempVendorCDR_20' ) end [2025-04-18 10:34:18] Production.INFO: ProcessCDR(1,14935016,1,1,2) [2025-04-18 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935016', 'tblTempUsageDetail_20' ) start [2025-04-18 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935016', 'tblTempUsageDetail_20' ) end [2025-04-18 10:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:34:21] Production.INFO: ==31716== Releasing lock... [2025-04-18 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:34:21] Production.INFO: 33 MB #Memory Used# [2025-04-18 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:35:05 [end_date_ymd] => 2025-04-18 10:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:35:05' and `end` < '2025-04-18 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-04-18 10:35:17] Production.INFO: count ==633 [2025-04-18 10:35:17] Production.ERROR: pbx CDR StartTime 2025-04-18 07:35:05 - End Time 2025-04-18 10:35:05 [2025-04-18 10:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935021', 'tblTempUsageDetail_20' ) start [2025-04-18 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935021', 'tblTempUsageDetail_20' ) end [2025-04-18 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935021', 'tblTempVendorCDR_20' ) start [2025-04-18 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935021', 'tblTempVendorCDR_20' ) end [2025-04-18 10:35:18] Production.INFO: ProcessCDR(1,14935021,1,1,2) [2025-04-18 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935021', 'tblTempUsageDetail_20' ) start [2025-04-18 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935021', 'tblTempUsageDetail_20' ) end [2025-04-18 10:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:35:21] Production.INFO: ==31787== Releasing lock... [2025-04-18 10:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:35:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:36:05 [end_date_ymd] => 2025-04-18 10:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:36:05' and `end` < '2025-04-18 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-04-18 10:36:17] Production.INFO: count ==635 [2025-04-18 10:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:36:05 - End Time 2025-04-18 10:36:05 [2025-04-18 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935026', 'tblTempUsageDetail_20' ) start [2025-04-18 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935026', 'tblTempUsageDetail_20' ) end [2025-04-18 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935026', 'tblTempVendorCDR_20' ) start [2025-04-18 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935026', 'tblTempVendorCDR_20' ) end [2025-04-18 10:36:18] Production.INFO: ProcessCDR(1,14935026,1,1,2) [2025-04-18 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935026', 'tblTempUsageDetail_20' ) start [2025-04-18 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935026', 'tblTempUsageDetail_20' ) end [2025-04-18 10:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:36:21] Production.INFO: ==31860== Releasing lock... [2025-04-18 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:36:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:37:04 [end_date_ymd] => 2025-04-18 10:37:04 [RateCDR] => 1 ) [2025-04-18 10:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:37:04' and `end` < '2025-04-18 10:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:37:17] Production.INFO: count ==638 [2025-04-18 10:37:17] Production.ERROR: pbx CDR StartTime 2025-04-18 07:37:04 - End Time 2025-04-18 10:37:04 [2025-04-18 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935031', 'tblTempUsageDetail_20' ) start [2025-04-18 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935031', 'tblTempUsageDetail_20' ) end [2025-04-18 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935031', 'tblTempVendorCDR_20' ) start [2025-04-18 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935031', 'tblTempVendorCDR_20' ) end [2025-04-18 10:37:17] Production.INFO: ProcessCDR(1,14935031,1,1,2) [2025-04-18 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935031', 'tblTempUsageDetail_20' ) start [2025-04-18 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935031', 'tblTempUsageDetail_20' ) end [2025-04-18 10:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:37:21] Production.INFO: ==31936== Releasing lock... [2025-04-18 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:37:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-18 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:38:05 [end_date_ymd] => 2025-04-18 10:38:05 [RateCDR] => 1 ) [2025-04-18 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:38:05' and `end` < '2025-04-18 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:38:18] Production.INFO: count ==643 [2025-04-18 10:38:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:38:05 - End Time 2025-04-18 10:38:05 [2025-04-18 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935036', 'tblTempUsageDetail_20' ) start [2025-04-18 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935036', 'tblTempUsageDetail_20' ) end [2025-04-18 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935036', 'tblTempVendorCDR_20' ) start [2025-04-18 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935036', 'tblTempVendorCDR_20' ) end [2025-04-18 10:38:18] Production.INFO: ProcessCDR(1,14935036,1,1,2) [2025-04-18 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935036', 'tblTempUsageDetail_20' ) start [2025-04-18 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935036', 'tblTempUsageDetail_20' ) end [2025-04-18 10:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:38:22] Production.INFO: ==32009== Releasing lock... [2025-04-18 10:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:38:22] Production.INFO: 33 MB #Memory Used# [2025-04-18 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:39:05 [end_date_ymd] => 2025-04-18 10:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:39:05' and `end` < '2025-04-18 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-04-18 10:39:18] Production.INFO: count ==651 [2025-04-18 10:39:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:39:05 - End Time 2025-04-18 10:39:05 [2025-04-18 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935041', 'tblTempUsageDetail_20' ) start [2025-04-18 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935041', 'tblTempUsageDetail_20' ) end [2025-04-18 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935041', 'tblTempVendorCDR_20' ) start [2025-04-18 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935041', 'tblTempVendorCDR_20' ) end [2025-04-18 10:39:18] Production.INFO: ProcessCDR(1,14935041,1,1,2) [2025-04-18 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935041', 'tblTempUsageDetail_20' ) start [2025-04-18 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935041', 'tblTempUsageDetail_20' ) end [2025-04-18 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:39:23] Production.INFO: ==32092== Releasing lock... [2025-04-18 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:39:23] Production.INFO: 33 MB #Memory Used# [2025-04-18 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:40:05 [end_date_ymd] => 2025-04-18 10:40:05 [RateCDR] => 1 ) [2025-04-18 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:40:05' and `end` < '2025-04-18 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:40:18] Production.INFO: count ==660 [2025-04-18 10:40:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:40:05 - End Time 2025-04-18 10:40:05 [2025-04-18 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935046', 'tblTempUsageDetail_20' ) start [2025-04-18 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935046', 'tblTempUsageDetail_20' ) end [2025-04-18 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935046', 'tblTempVendorCDR_20' ) start [2025-04-18 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935046', 'tblTempVendorCDR_20' ) end [2025-04-18 10:40:18] Production.INFO: ProcessCDR(1,14935046,1,1,2) [2025-04-18 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935046', 'tblTempUsageDetail_20' ) start [2025-04-18 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935046', 'tblTempUsageDetail_20' ) end [2025-04-18 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:40:22] Production.INFO: ==32169== Releasing lock... [2025-04-18 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:40:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:41:05 [end_date_ymd] => 2025-04-18 10:41:05 [RateCDR] => 1 ) [2025-04-18 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:41:05' and `end` < '2025-04-18 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:41:18] Production.INFO: count ==674 [2025-04-18 10:41:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:41:05 - End Time 2025-04-18 10:41:05 [2025-04-18 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935052', 'tblTempUsageDetail_20' ) start [2025-04-18 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935052', 'tblTempUsageDetail_20' ) end [2025-04-18 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935052', 'tblTempVendorCDR_20' ) start [2025-04-18 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935052', 'tblTempVendorCDR_20' ) end [2025-04-18 10:41:18] Production.INFO: ProcessCDR(1,14935052,1,1,2) [2025-04-18 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935052', 'tblTempUsageDetail_20' ) start [2025-04-18 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935052', 'tblTempUsageDetail_20' ) end [2025-04-18 10:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:41:23] Production.INFO: ==32245== Releasing lock... [2025-04-18 10:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:41:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:42:04 [end_date_ymd] => 2025-04-18 10:42:04 [RateCDR] => 1 ) [2025-04-18 10: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-04-18 07:42:04' and `end` < '2025-04-18 10: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-04-18 10:42:17] Production.INFO: count ==675 [2025-04-18 10:42:17] Production.ERROR: pbx CDR StartTime 2025-04-18 07:42:04 - End Time 2025-04-18 10:42:04 [2025-04-18 10:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935057', 'tblTempUsageDetail_20' ) start [2025-04-18 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935057', 'tblTempUsageDetail_20' ) end [2025-04-18 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935057', 'tblTempVendorCDR_20' ) start [2025-04-18 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935057', 'tblTempVendorCDR_20' ) end [2025-04-18 10:42:17] Production.INFO: ProcessCDR(1,14935057,1,1,2) [2025-04-18 10:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935057', 'tblTempUsageDetail_20' ) start [2025-04-18 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935057', 'tblTempUsageDetail_20' ) end [2025-04-18 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:42:22] Production.INFO: ==32326== Releasing lock... [2025-04-18 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:42:22] Production.INFO: 34 MB #Memory Used# [2025-04-18 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:43:05 [end_date_ymd] => 2025-04-18 10:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:43:05' and `end` < '2025-04-18 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-04-18 10:43:18] Production.INFO: count ==677 [2025-04-18 10:43:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:43:05 - End Time 2025-04-18 10:43:05 [2025-04-18 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935062', 'tblTempUsageDetail_20' ) start [2025-04-18 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935062', 'tblTempUsageDetail_20' ) end [2025-04-18 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935062', 'tblTempVendorCDR_20' ) start [2025-04-18 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935062', 'tblTempVendorCDR_20' ) end [2025-04-18 10:43:18] Production.INFO: ProcessCDR(1,14935062,1,1,2) [2025-04-18 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935062', 'tblTempUsageDetail_20' ) start [2025-04-18 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935062', 'tblTempUsageDetail_20' ) end [2025-04-18 10:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:43:23] Production.INFO: ==32416== Releasing lock... [2025-04-18 10:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:43:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-18 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:44:05 [end_date_ymd] => 2025-04-18 10:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:44:05' and `end` < '2025-04-18 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-04-18 10:44:18] Production.INFO: count ==677 [2025-04-18 10:44:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:44:05 - End Time 2025-04-18 10:44:05 [2025-04-18 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935067', 'tblTempUsageDetail_20' ) start [2025-04-18 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935067', 'tblTempUsageDetail_20' ) end [2025-04-18 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935067', 'tblTempVendorCDR_20' ) start [2025-04-18 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935067', 'tblTempVendorCDR_20' ) end [2025-04-18 10:44:18] Production.INFO: ProcessCDR(1,14935067,1,1,2) [2025-04-18 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935067', 'tblTempUsageDetail_20' ) start [2025-04-18 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935067', 'tblTempUsageDetail_20' ) end [2025-04-18 10:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:44:21] Production.INFO: ==32503== Releasing lock... [2025-04-18 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:44:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-18 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:45:05 [end_date_ymd] => 2025-04-18 10:45:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:45:05' and `end` < '2025-04-18 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-04-18 10:45:18] Production.INFO: count ==678 [2025-04-18 10:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:45:05 - End Time 2025-04-18 10:45:05 [2025-04-18 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935072', 'tblTempUsageDetail_20' ) start [2025-04-18 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935072', 'tblTempUsageDetail_20' ) end [2025-04-18 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935072', 'tblTempVendorCDR_20' ) start [2025-04-18 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935072', 'tblTempVendorCDR_20' ) end [2025-04-18 10:45:18] Production.INFO: ProcessCDR(1,14935072,1,1,2) [2025-04-18 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935072', 'tblTempUsageDetail_20' ) start [2025-04-18 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935072', 'tblTempUsageDetail_20' ) end [2025-04-18 10:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:45:23] Production.INFO: ==32625== Releasing lock... [2025-04-18 10:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:45:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-18 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:46:05 [end_date_ymd] => 2025-04-18 10:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:46:05' and `end` < '2025-04-18 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-04-18 10:46:18] Production.INFO: count ==686 [2025-04-18 10:46:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:46:05 - End Time 2025-04-18 10:46:05 [2025-04-18 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935077', 'tblTempUsageDetail_20' ) start [2025-04-18 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935077', 'tblTempUsageDetail_20' ) end [2025-04-18 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935077', 'tblTempVendorCDR_20' ) start [2025-04-18 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935077', 'tblTempVendorCDR_20' ) end [2025-04-18 10:46:18] Production.INFO: ProcessCDR(1,14935077,1,1,2) [2025-04-18 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935077', 'tblTempUsageDetail_20' ) start [2025-04-18 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935077', 'tblTempUsageDetail_20' ) end [2025-04-18 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:46:24] Production.INFO: ==32715== Releasing lock... [2025-04-18 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:46:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:47:05 [end_date_ymd] => 2025-04-18 10:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:47:05' and `end` < '2025-04-18 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-04-18 10:47:18] Production.INFO: count ==690 [2025-04-18 10:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:47:05 - End Time 2025-04-18 10:47:05 [2025-04-18 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935082', 'tblTempUsageDetail_20' ) start [2025-04-18 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935082', 'tblTempUsageDetail_20' ) end [2025-04-18 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935082', 'tblTempVendorCDR_20' ) start [2025-04-18 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935082', 'tblTempVendorCDR_20' ) end [2025-04-18 10:47:18] Production.INFO: ProcessCDR(1,14935082,1,1,2) [2025-04-18 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935082', 'tblTempUsageDetail_20' ) start [2025-04-18 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935082', 'tblTempUsageDetail_20' ) end [2025-04-18 10:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:47:21] Production.INFO: ==352== Releasing lock... [2025-04-18 10:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:47:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-18 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:48:05 [end_date_ymd] => 2025-04-18 10:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:48:05' and `end` < '2025-04-18 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-04-18 10:48:18] Production.INFO: count ==692 [2025-04-18 10:48:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:48:05 - End Time 2025-04-18 10:48:05 [2025-04-18 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935087', 'tblTempUsageDetail_20' ) start [2025-04-18 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935087', 'tblTempUsageDetail_20' ) end [2025-04-18 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935087', 'tblTempVendorCDR_20' ) start [2025-04-18 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935087', 'tblTempVendorCDR_20' ) end [2025-04-18 10:48:18] Production.INFO: ProcessCDR(1,14935087,1,1,2) [2025-04-18 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935087', 'tblTempUsageDetail_20' ) start [2025-04-18 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935087', 'tblTempUsageDetail_20' ) end [2025-04-18 10:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:48:21] Production.INFO: ==441== Releasing lock... [2025-04-18 10:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:48:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:49:05 [end_date_ymd] => 2025-04-18 10:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:49:05' and `end` < '2025-04-18 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-04-18 10:49:17] Production.INFO: count ==692 [2025-04-18 10:49:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:49:05 - End Time 2025-04-18 10:49:05 [2025-04-18 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935092', 'tblTempUsageDetail_20' ) start [2025-04-18 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935092', 'tblTempUsageDetail_20' ) end [2025-04-18 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935092', 'tblTempVendorCDR_20' ) start [2025-04-18 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935092', 'tblTempVendorCDR_20' ) end [2025-04-18 10:49:18] Production.INFO: ProcessCDR(1,14935092,1,1,2) [2025-04-18 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935092', 'tblTempUsageDetail_20' ) start [2025-04-18 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935092', 'tblTempUsageDetail_20' ) end [2025-04-18 10:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:49:21] Production.INFO: ==533== Releasing lock... [2025-04-18 10:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:50:06 [end_date_ymd] => 2025-04-18 10:50:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:50:06' and `end` < '2025-04-18 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-04-18 10:50:19] Production.INFO: count ==702 [2025-04-18 10:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 07:50:06 - End Time 2025-04-18 10:50:06 [2025-04-18 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935098', 'tblTempUsageDetail_20' ) start [2025-04-18 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935098', 'tblTempUsageDetail_20' ) end [2025-04-18 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935098', 'tblTempVendorCDR_20' ) start [2025-04-18 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935098', 'tblTempVendorCDR_20' ) end [2025-04-18 10:50:19] Production.INFO: ProcessCDR(1,14935098,1,1,2) [2025-04-18 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935098', 'tblTempUsageDetail_20' ) start [2025-04-18 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935098', 'tblTempUsageDetail_20' ) end [2025-04-18 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:50:22] Production.INFO: ==629== Releasing lock... [2025-04-18 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-18 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:51:05 [end_date_ymd] => 2025-04-18 10:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:51:05' and `end` < '2025-04-18 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-04-18 10:51:17] Production.INFO: count ==743 [2025-04-18 10:51:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:51:05 - End Time 2025-04-18 10:51:05 [2025-04-18 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935103', 'tblTempUsageDetail_20' ) start [2025-04-18 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935103', 'tblTempUsageDetail_20' ) end [2025-04-18 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935103', 'tblTempVendorCDR_20' ) start [2025-04-18 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935103', 'tblTempVendorCDR_20' ) end [2025-04-18 10:51:18] Production.INFO: ProcessCDR(1,14935103,1,1,2) [2025-04-18 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935103', 'tblTempUsageDetail_20' ) start [2025-04-18 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935103', 'tblTempUsageDetail_20' ) end [2025-04-18 10:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:51:21] Production.INFO: ==741== Releasing lock... [2025-04-18 10:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:51:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-18 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:52:05 [end_date_ymd] => 2025-04-18 10:52:05 [RateCDR] => 1 ) [2025-04-18 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:52:05' and `end` < '2025-04-18 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:52:18] Production.INFO: count ==746 [2025-04-18 10:52:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:52:05 - End Time 2025-04-18 10:52:05 [2025-04-18 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935108', 'tblTempUsageDetail_20' ) start [2025-04-18 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935108', 'tblTempUsageDetail_20' ) end [2025-04-18 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935108', 'tblTempVendorCDR_20' ) start [2025-04-18 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935108', 'tblTempVendorCDR_20' ) end [2025-04-18 10:52:18] Production.INFO: ProcessCDR(1,14935108,1,1,2) [2025-04-18 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935108', 'tblTempUsageDetail_20' ) start [2025-04-18 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935108', 'tblTempUsageDetail_20' ) end [2025-04-18 10:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:52:23] Production.INFO: ==835== Releasing lock... [2025-04-18 10:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-18 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:53:05 [end_date_ymd] => 2025-04-18 10:53:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:53:05' and `end` < '2025-04-18 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-04-18 10:53:18] Production.INFO: count ==791 [2025-04-18 10:53:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:53:05 - End Time 2025-04-18 10:53:05 [2025-04-18 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935113', 'tblTempUsageDetail_20' ) start [2025-04-18 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935113', 'tblTempUsageDetail_20' ) end [2025-04-18 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935113', 'tblTempVendorCDR_20' ) start [2025-04-18 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935113', 'tblTempVendorCDR_20' ) end [2025-04-18 10:53:18] Production.INFO: ProcessCDR(1,14935113,1,1,2) [2025-04-18 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935113', 'tblTempUsageDetail_20' ) start [2025-04-18 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935113', 'tblTempUsageDetail_20' ) end [2025-04-18 10:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:53:23] Production.INFO: ==938== Releasing lock... [2025-04-18 10:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:53:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:54:05 [end_date_ymd] => 2025-04-18 10:54:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:54:05' and `end` < '2025-04-18 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-04-18 10:54:17] Production.INFO: count ==793 [2025-04-18 10:54:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:54:05 - End Time 2025-04-18 10:54:05 [2025-04-18 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935118', 'tblTempUsageDetail_20' ) start [2025-04-18 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935118', 'tblTempUsageDetail_20' ) end [2025-04-18 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935118', 'tblTempVendorCDR_20' ) start [2025-04-18 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935118', 'tblTempVendorCDR_20' ) end [2025-04-18 10:54:18] Production.INFO: ProcessCDR(1,14935118,1,1,2) [2025-04-18 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935118', 'tblTempUsageDetail_20' ) start [2025-04-18 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935118', 'tblTempUsageDetail_20' ) end [2025-04-18 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:54:21] Production.INFO: ==1026== Releasing lock... [2025-04-18 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:54:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:55:06 [end_date_ymd] => 2025-04-18 10:55:06 [RateCDR] => 1 ) [2025-04-18 10: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-04-18 07:55:06' and `end` < '2025-04-18 10: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-04-18 10:55:19] Production.INFO: count ==796 [2025-04-18 10:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 07:55:06 - End Time 2025-04-18 10:55:06 [2025-04-18 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935123', 'tblTempUsageDetail_20' ) start [2025-04-18 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935123', 'tblTempUsageDetail_20' ) end [2025-04-18 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935123', 'tblTempVendorCDR_20' ) start [2025-04-18 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935123', 'tblTempVendorCDR_20' ) end [2025-04-18 10:55:19] Production.INFO: ProcessCDR(1,14935123,1,1,2) [2025-04-18 10:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935123', 'tblTempUsageDetail_20' ) start [2025-04-18 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935123', 'tblTempUsageDetail_20' ) end [2025-04-18 10:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:55:24] Production.INFO: ==1115== Releasing lock... [2025-04-18 10:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:55:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:56:05 [end_date_ymd] => 2025-04-18 10:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:56:05' and `end` < '2025-04-18 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-04-18 10:56:18] Production.INFO: count ==799 [2025-04-18 10:56:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:56:05 - End Time 2025-04-18 10:56:05 [2025-04-18 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935128', 'tblTempUsageDetail_20' ) start [2025-04-18 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935128', 'tblTempUsageDetail_20' ) end [2025-04-18 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935128', 'tblTempVendorCDR_20' ) start [2025-04-18 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935128', 'tblTempVendorCDR_20' ) end [2025-04-18 10:56:18] Production.INFO: ProcessCDR(1,14935128,1,1,2) [2025-04-18 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935128', 'tblTempUsageDetail_20' ) start [2025-04-18 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935128', 'tblTempUsageDetail_20' ) end [2025-04-18 10:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:56:21] Production.INFO: ==1209== Releasing lock... [2025-04-18 10:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:56:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:57:05 [end_date_ymd] => 2025-04-18 10:57:05 [RateCDR] => 1 ) [2025-04-18 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:57:05' and `end` < '2025-04-18 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:57:18] Production.INFO: count ==806 [2025-04-18 10:57:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:57:05 - End Time 2025-04-18 10:57:05 [2025-04-18 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935133', 'tblTempUsageDetail_20' ) start [2025-04-18 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935133', 'tblTempUsageDetail_20' ) end [2025-04-18 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935133', 'tblTempVendorCDR_20' ) start [2025-04-18 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935133', 'tblTempVendorCDR_20' ) end [2025-04-18 10:57:18] Production.INFO: ProcessCDR(1,14935133,1,1,2) [2025-04-18 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935133', 'tblTempUsageDetail_20' ) start [2025-04-18 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935133', 'tblTempUsageDetail_20' ) end [2025-04-18 10:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:57:21] Production.INFO: ==1305== Releasing lock... [2025-04-18 10:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:57:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:58:05 [end_date_ymd] => 2025-04-18 10:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 07:58:05' and `end` < '2025-04-18 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-04-18 10:58:17] Production.INFO: count ==812 [2025-04-18 10:58:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:58:05 - End Time 2025-04-18 10:58:05 [2025-04-18 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935138', 'tblTempUsageDetail_20' ) start [2025-04-18 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935138', 'tblTempUsageDetail_20' ) end [2025-04-18 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935138', 'tblTempVendorCDR_20' ) start [2025-04-18 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935138', 'tblTempVendorCDR_20' ) end [2025-04-18 10:58:18] Production.INFO: ProcessCDR(1,14935138,1,1,2) [2025-04-18 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935138', 'tblTempUsageDetail_20' ) start [2025-04-18 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935138', 'tblTempUsageDetail_20' ) end [2025-04-18 10:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:58:21] Production.INFO: ==1400== Releasing lock... [2025-04-18 10:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:58:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 07:59:05 [end_date_ymd] => 2025-04-18 10:59:05 [RateCDR] => 1 ) [2025-04-18 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 07:59:05' and `end` < '2025-04-18 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 10:59:18] Production.INFO: count ==817 [2025-04-18 10:59:18] Production.ERROR: pbx CDR StartTime 2025-04-18 07:59:05 - End Time 2025-04-18 10:59:05 [2025-04-18 10:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935143', 'tblTempUsageDetail_20' ) start [2025-04-18 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935143', 'tblTempUsageDetail_20' ) end [2025-04-18 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935143', 'tblTempVendorCDR_20' ) start [2025-04-18 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935143', 'tblTempVendorCDR_20' ) end [2025-04-18 10:59:18] Production.INFO: ProcessCDR(1,14935143,1,1,2) [2025-04-18 10:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935143', 'tblTempUsageDetail_20' ) start [2025-04-18 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935143', 'tblTempUsageDetail_20' ) end [2025-04-18 10:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 10:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 10:59:23] Production.INFO: ==1490== Releasing lock... [2025-04-18 10:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 10:59:23] Production.INFO: 34 MB #Memory Used# [2025-04-18 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:00:05 [end_date_ymd] => 2025-04-18 11:00:05 [RateCDR] => 1 ) [2025-04-18 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:00:05' and `end` < '2025-04-18 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:00:18] Production.INFO: count ==826 [2025-04-18 11:00:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:00:05 - End Time 2025-04-18 11:00:05 [2025-04-18 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935148', 'tblTempUsageDetail_20' ) start [2025-04-18 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935148', 'tblTempUsageDetail_20' ) end [2025-04-18 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935148', 'tblTempVendorCDR_20' ) start [2025-04-18 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935148', 'tblTempVendorCDR_20' ) end [2025-04-18 11:00:18] Production.INFO: ProcessCDR(1,14935148,1,1,2) [2025-04-18 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935148', 'tblTempUsageDetail_20' ) start [2025-04-18 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935148', 'tblTempUsageDetail_20' ) end [2025-04-18 11:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:00:22] Production.INFO: ==1654== Releasing lock... [2025-04-18 11:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:00:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:01:05 [end_date_ymd] => 2025-04-18 11:01:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:01:05' and `end` < '2025-04-18 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-04-18 11:01:18] Production.INFO: count ==847 [2025-04-18 11:01:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:01:05 - End Time 2025-04-18 11:01:05 [2025-04-18 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935154', 'tblTempUsageDetail_20' ) start [2025-04-18 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935154', 'tblTempUsageDetail_20' ) end [2025-04-18 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935154', 'tblTempVendorCDR_20' ) start [2025-04-18 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935154', 'tblTempVendorCDR_20' ) end [2025-04-18 11:01:18] Production.INFO: ProcessCDR(1,14935154,1,1,2) [2025-04-18 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935154', 'tblTempUsageDetail_20' ) start [2025-04-18 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935154', 'tblTempUsageDetail_20' ) end [2025-04-18 11:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:01:22] Production.INFO: ==1754== Releasing lock... [2025-04-18 11:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:01:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:02:05 [end_date_ymd] => 2025-04-18 11:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:02:05' and `end` < '2025-04-18 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-04-18 11:02:18] Production.INFO: count ==842 [2025-04-18 11:02:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:02:05 - End Time 2025-04-18 11:02:05 [2025-04-18 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935159', 'tblTempUsageDetail_20' ) start [2025-04-18 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935159', 'tblTempUsageDetail_20' ) end [2025-04-18 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935159', 'tblTempVendorCDR_20' ) start [2025-04-18 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935159', 'tblTempVendorCDR_20' ) end [2025-04-18 11:02:18] Production.INFO: ProcessCDR(1,14935159,1,1,2) [2025-04-18 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935159', 'tblTempUsageDetail_20' ) start [2025-04-18 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935159', 'tblTempUsageDetail_20' ) end [2025-04-18 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:02:22] Production.INFO: ==1921== Releasing lock... [2025-04-18 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:02:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:03:05 [end_date_ymd] => 2025-04-18 11:03:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:03:05' and `end` < '2025-04-18 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-04-18 11:03:17] Production.INFO: count ==844 [2025-04-18 11:03:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:03:05 - End Time 2025-04-18 11:03:05 [2025-04-18 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935164', 'tblTempUsageDetail_20' ) start [2025-04-18 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935164', 'tblTempUsageDetail_20' ) end [2025-04-18 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935164', 'tblTempVendorCDR_20' ) start [2025-04-18 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935164', 'tblTempVendorCDR_20' ) end [2025-04-18 11:03:18] Production.INFO: ProcessCDR(1,14935164,1,1,2) [2025-04-18 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935164', 'tblTempUsageDetail_20' ) start [2025-04-18 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935164', 'tblTempUsageDetail_20' ) end [2025-04-18 11:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:03:23] Production.INFO: ==2009== Releasing lock... [2025-04-18 11:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:03:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:04:05 [end_date_ymd] => 2025-04-18 11:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:04:05' and `end` < '2025-04-18 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-04-18 11:04:18] Production.INFO: count ==846 [2025-04-18 11:04:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:04:05 - End Time 2025-04-18 11:04:05 [2025-04-18 11:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935169', 'tblTempUsageDetail_20' ) start [2025-04-18 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935169', 'tblTempUsageDetail_20' ) end [2025-04-18 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935169', 'tblTempVendorCDR_20' ) start [2025-04-18 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935169', 'tblTempVendorCDR_20' ) end [2025-04-18 11:04:18] Production.INFO: ProcessCDR(1,14935169,1,1,2) [2025-04-18 11:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935169', 'tblTempUsageDetail_20' ) start [2025-04-18 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935169', 'tblTempUsageDetail_20' ) end [2025-04-18 11:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:04:22] Production.INFO: ==2101== Releasing lock... [2025-04-18 11:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:04:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:05:05 [end_date_ymd] => 2025-04-18 11:05:05 [RateCDR] => 1 ) [2025-04-18 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:05:05' and `end` < '2025-04-18 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:05:17] Production.INFO: count ==850 [2025-04-18 11:05:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:05:05 - End Time 2025-04-18 11:05:05 [2025-04-18 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935174', 'tblTempUsageDetail_20' ) start [2025-04-18 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935174', 'tblTempUsageDetail_20' ) end [2025-04-18 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935174', 'tblTempVendorCDR_20' ) start [2025-04-18 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935174', 'tblTempVendorCDR_20' ) end [2025-04-18 11:05:18] Production.INFO: ProcessCDR(1,14935174,1,1,2) [2025-04-18 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935174', 'tblTempUsageDetail_20' ) start [2025-04-18 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935174', 'tblTempUsageDetail_20' ) end [2025-04-18 11:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:05:22] Production.INFO: ==2263== Releasing lock... [2025-04-18 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:05:22] Production.INFO: 35 MB #Memory Used# [2025-04-18 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:06:05 [end_date_ymd] => 2025-04-18 11:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:06:05' and `end` < '2025-04-18 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-04-18 11:06:18] Production.INFO: count ==859 [2025-04-18 11:06:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:06:05 - End Time 2025-04-18 11:06:05 [2025-04-18 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935179', 'tblTempUsageDetail_20' ) start [2025-04-18 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935179', 'tblTempUsageDetail_20' ) end [2025-04-18 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935179', 'tblTempVendorCDR_20' ) start [2025-04-18 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935179', 'tblTempVendorCDR_20' ) end [2025-04-18 11:06:18] Production.INFO: ProcessCDR(1,14935179,1,1,2) [2025-04-18 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935179', 'tblTempUsageDetail_20' ) start [2025-04-18 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935179', 'tblTempUsageDetail_20' ) end [2025-04-18 11:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:06:21] Production.INFO: ==2347== Releasing lock... [2025-04-18 11:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:06:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 11:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:07:04 [end_date_ymd] => 2025-04-18 11:07:04 [RateCDR] => 1 ) [2025-04-18 11:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:07:04' and `end` < '2025-04-18 11:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:07:17] Production.INFO: count ==872 [2025-04-18 11:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:07:04 - End Time 2025-04-18 11:07:04 [2025-04-18 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935184', 'tblTempUsageDetail_20' ) start [2025-04-18 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935184', 'tblTempUsageDetail_20' ) end [2025-04-18 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935184', 'tblTempVendorCDR_20' ) start [2025-04-18 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935184', 'tblTempVendorCDR_20' ) end [2025-04-18 11:07:18] Production.INFO: ProcessCDR(1,14935184,1,1,2) [2025-04-18 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935184', 'tblTempUsageDetail_20' ) start [2025-04-18 11:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935184', 'tblTempUsageDetail_20' ) end [2025-04-18 11:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:07:21] Production.INFO: ==2438== Releasing lock... [2025-04-18 11:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:07:21] Production.INFO: 35 MB #Memory Used# [2025-04-18 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:08:05 [end_date_ymd] => 2025-04-18 11:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:08:05' and `end` < '2025-04-18 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-04-18 11:08:18] Production.INFO: count ==881 [2025-04-18 11:08:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:08:05 - End Time 2025-04-18 11:08:05 [2025-04-18 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935189', 'tblTempUsageDetail_20' ) start [2025-04-18 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935189', 'tblTempUsageDetail_20' ) end [2025-04-18 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935189', 'tblTempVendorCDR_20' ) start [2025-04-18 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935189', 'tblTempVendorCDR_20' ) end [2025-04-18 11:08:18] Production.INFO: ProcessCDR(1,14935189,1,1,2) [2025-04-18 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935189', 'tblTempUsageDetail_20' ) start [2025-04-18 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935189', 'tblTempUsageDetail_20' ) end [2025-04-18 11:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:08:23] Production.INFO: ==2606== Releasing lock... [2025-04-18 11:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:08:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-18 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:09:05 [end_date_ymd] => 2025-04-18 11:09:05 [RateCDR] => 1 ) [2025-04-18 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:09:05' and `end` < '2025-04-18 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:09:18] Production.INFO: count ==885 [2025-04-18 11:09:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:09:05 - End Time 2025-04-18 11:09:05 [2025-04-18 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935194', 'tblTempUsageDetail_20' ) start [2025-04-18 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935194', 'tblTempUsageDetail_20' ) end [2025-04-18 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935194', 'tblTempVendorCDR_20' ) start [2025-04-18 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935194', 'tblTempVendorCDR_20' ) end [2025-04-18 11:09:18] Production.INFO: ProcessCDR(1,14935194,1,1,2) [2025-04-18 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935194', 'tblTempUsageDetail_20' ) start [2025-04-18 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935194', 'tblTempUsageDetail_20' ) end [2025-04-18 11:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:09:22] Production.INFO: ==2692== Releasing lock... [2025-04-18 11:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:09:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-18 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:10:05 [end_date_ymd] => 2025-04-18 11:10:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:10:05' and `end` < '2025-04-18 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-04-18 11:10:18] Production.INFO: count ==905 [2025-04-18 11:10:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:10:05 - End Time 2025-04-18 11:10:05 [2025-04-18 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935200', 'tblTempUsageDetail_20' ) start [2025-04-18 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935200', 'tblTempUsageDetail_20' ) end [2025-04-18 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935200', 'tblTempVendorCDR_20' ) start [2025-04-18 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935200', 'tblTempVendorCDR_20' ) end [2025-04-18 11:10:19] Production.INFO: ProcessCDR(1,14935200,1,1,2) [2025-04-18 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935200', 'tblTempUsageDetail_20' ) start [2025-04-18 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935200', 'tblTempUsageDetail_20' ) end [2025-04-18 11:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:10:22] Production.INFO: ==2777== Releasing lock... [2025-04-18 11:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:10:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-18 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:11:05 [end_date_ymd] => 2025-04-18 11:11:05 [RateCDR] => 1 ) [2025-04-18 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:11:05' and `end` < '2025-04-18 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:11:18] Production.INFO: count ==960 [2025-04-18 11:11:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:11:05 - End Time 2025-04-18 11:11:05 [2025-04-18 11:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935205', 'tblTempUsageDetail_20' ) start [2025-04-18 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935205', 'tblTempUsageDetail_20' ) end [2025-04-18 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935205', 'tblTempVendorCDR_20' ) start [2025-04-18 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935205', 'tblTempVendorCDR_20' ) end [2025-04-18 11:11:18] Production.INFO: ProcessCDR(1,14935205,1,1,2) [2025-04-18 11:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935205', 'tblTempUsageDetail_20' ) start [2025-04-18 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935205', 'tblTempUsageDetail_20' ) end [2025-04-18 11:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:11:22] Production.INFO: ==2851== Releasing lock... [2025-04-18 11:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:11:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 11:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:12:04 [end_date_ymd] => 2025-04-18 11:12:04 [RateCDR] => 1 ) [2025-04-18 11:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:12:04' and `end` < '2025-04-18 11:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:12:17] Production.INFO: count ==996 [2025-04-18 11:12:17] Production.ERROR: pbx CDR StartTime 2025-04-18 08:12:04 - End Time 2025-04-18 11:12:04 [2025-04-18 11:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935210', 'tblTempUsageDetail_20' ) start [2025-04-18 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935210', 'tblTempUsageDetail_20' ) end [2025-04-18 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935210', 'tblTempVendorCDR_20' ) start [2025-04-18 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935210', 'tblTempVendorCDR_20' ) end [2025-04-18 11:12:17] Production.INFO: ProcessCDR(1,14935210,1,1,2) [2025-04-18 11:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935210', 'tblTempUsageDetail_20' ) start [2025-04-18 11:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935210', 'tblTempUsageDetail_20' ) end [2025-04-18 11:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:12:21] Production.INFO: ==3005== Releasing lock... [2025-04-18 11:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:12:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:13:05 [end_date_ymd] => 2025-04-18 11:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:13:05' and `end` < '2025-04-18 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-04-18 11:13:18] Production.INFO: count ==996 [2025-04-18 11:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:13:05 - End Time 2025-04-18 11:13:05 [2025-04-18 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935215', 'tblTempUsageDetail_20' ) start [2025-04-18 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935215', 'tblTempUsageDetail_20' ) end [2025-04-18 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935215', 'tblTempVendorCDR_20' ) start [2025-04-18 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935215', 'tblTempVendorCDR_20' ) end [2025-04-18 11:13:18] Production.INFO: ProcessCDR(1,14935215,1,1,2) [2025-04-18 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935215', 'tblTempUsageDetail_20' ) start [2025-04-18 11:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935215', 'tblTempUsageDetail_20' ) end [2025-04-18 11:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:13:21] Production.INFO: ==3082== Releasing lock... [2025-04-18 11:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:13:21] Production.INFO: 36 MB #Memory Used# [2025-04-18 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:14:05 [end_date_ymd] => 2025-04-18 11:14:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:14:05' and `end` < '2025-04-18 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-04-18 11:14:18] Production.INFO: count ==991 [2025-04-18 11:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:14:05 - End Time 2025-04-18 11:14:05 [2025-04-18 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935220', 'tblTempUsageDetail_20' ) start [2025-04-18 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935220', 'tblTempUsageDetail_20' ) end [2025-04-18 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935220', 'tblTempVendorCDR_20' ) start [2025-04-18 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935220', 'tblTempVendorCDR_20' ) end [2025-04-18 11:14:19] Production.INFO: ProcessCDR(1,14935220,1,1,2) [2025-04-18 11:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935220', 'tblTempUsageDetail_20' ) start [2025-04-18 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935220', 'tblTempUsageDetail_20' ) end [2025-04-18 11:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:14:22] Production.INFO: ==3159== Releasing lock... [2025-04-18 11:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:14:22] Production.INFO: 36 MB #Memory Used# [2025-04-18 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:15:05 [end_date_ymd] => 2025-04-18 11:15:05 [RateCDR] => 1 ) [2025-04-18 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:15:05' and `end` < '2025-04-18 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:15:17] Production.INFO: count ==992 [2025-04-18 11:15:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:15:05 - End Time 2025-04-18 11:15:05 [2025-04-18 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935225', 'tblTempUsageDetail_20' ) start [2025-04-18 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935225', 'tblTempUsageDetail_20' ) end [2025-04-18 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935225', 'tblTempVendorCDR_20' ) start [2025-04-18 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935225', 'tblTempVendorCDR_20' ) end [2025-04-18 11:15:18] Production.INFO: ProcessCDR(1,14935225,1,1,2) [2025-04-18 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935225', 'tblTempUsageDetail_20' ) start [2025-04-18 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935225', 'tblTempUsageDetail_20' ) end [2025-04-18 11:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:15:21] Production.INFO: ==3346== Releasing lock... [2025-04-18 11:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:15:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:16:05 [end_date_ymd] => 2025-04-18 11:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:16:05' and `end` < '2025-04-18 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-04-18 11:16:18] Production.INFO: count ==993 [2025-04-18 11:16:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:16:05 - End Time 2025-04-18 11:16:05 [2025-04-18 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935230', 'tblTempUsageDetail_20' ) start [2025-04-18 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935230', 'tblTempUsageDetail_20' ) end [2025-04-18 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935230', 'tblTempVendorCDR_20' ) start [2025-04-18 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935230', 'tblTempVendorCDR_20' ) end [2025-04-18 11:16:19] Production.INFO: ProcessCDR(1,14935230,1,1,2) [2025-04-18 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935230', 'tblTempUsageDetail_20' ) start [2025-04-18 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935230', 'tblTempUsageDetail_20' ) end [2025-04-18 11:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:16:22] Production.INFO: ==3422== Releasing lock... [2025-04-18 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:16:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:17:05 [end_date_ymd] => 2025-04-18 11:17:05 [RateCDR] => 1 ) [2025-04-18 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:17:05' and `end` < '2025-04-18 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:17:17] Production.INFO: count ==1004 [2025-04-18 11:17:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:17:05 - End Time 2025-04-18 11:17:05 [2025-04-18 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935235', 'tblTempUsageDetail_20' ) start [2025-04-18 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935235', 'tblTempUsageDetail_20' ) end [2025-04-18 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935235', 'tblTempVendorCDR_20' ) start [2025-04-18 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935235', 'tblTempVendorCDR_20' ) end [2025-04-18 11:17:18] Production.INFO: ProcessCDR(1,14935235,1,1,2) [2025-04-18 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935235', 'tblTempUsageDetail_20' ) start [2025-04-18 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935235', 'tblTempUsageDetail_20' ) end [2025-04-18 11:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:17:21] Production.INFO: ==3493== Releasing lock... [2025-04-18 11:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:17:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:18:05 [end_date_ymd] => 2025-04-18 11:18:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:18:05' and `end` < '2025-04-18 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-04-18 11:18:18] Production.INFO: count ==1015 [2025-04-18 11:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:18:05 - End Time 2025-04-18 11:18:05 [2025-04-18 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935240', 'tblTempUsageDetail_20' ) start [2025-04-18 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935240', 'tblTempUsageDetail_20' ) end [2025-04-18 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935240', 'tblTempVendorCDR_20' ) start [2025-04-18 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935240', 'tblTempVendorCDR_20' ) end [2025-04-18 11:18:19] Production.INFO: ProcessCDR(1,14935240,1,1,2) [2025-04-18 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935240', 'tblTempUsageDetail_20' ) start [2025-04-18 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935240', 'tblTempUsageDetail_20' ) end [2025-04-18 11:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:18:22] Production.INFO: ==3565== Releasing lock... [2025-04-18 11:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:18:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-18 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:19:04 [end_date_ymd] => 2025-04-18 11:19:04 [RateCDR] => 1 ) [2025-04-18 11:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:19:04' and `end` < '2025-04-18 11:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:19:17] Production.INFO: count ==1015 [2025-04-18 11:19:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:19:04 - End Time 2025-04-18 11:19:04 [2025-04-18 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935245', 'tblTempUsageDetail_20' ) start [2025-04-18 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935245', 'tblTempUsageDetail_20' ) end [2025-04-18 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935245', 'tblTempVendorCDR_20' ) start [2025-04-18 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935245', 'tblTempVendorCDR_20' ) end [2025-04-18 11:19:18] Production.INFO: ProcessCDR(1,14935245,1,1,2) [2025-04-18 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935245', 'tblTempUsageDetail_20' ) start [2025-04-18 11:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935245', 'tblTempUsageDetail_20' ) end [2025-04-18 11:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:19:21] Production.INFO: ==3640== Releasing lock... [2025-04-18 11:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:19:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-18 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:20:06 [end_date_ymd] => 2025-04-18 11:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:20:06' and `end` < '2025-04-18 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-04-18 11:20:19] Production.INFO: count ==1017 [2025-04-18 11:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:20:06 - End Time 2025-04-18 11:20:06 [2025-04-18 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935251', 'tblTempUsageDetail_20' ) start [2025-04-18 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935251', 'tblTempUsageDetail_20' ) end [2025-04-18 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935251', 'tblTempVendorCDR_20' ) start [2025-04-18 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935251', 'tblTempVendorCDR_20' ) end [2025-04-18 11:20:19] Production.INFO: ProcessCDR(1,14935251,1,1,2) [2025-04-18 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935251', 'tblTempUsageDetail_20' ) start [2025-04-18 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935251', 'tblTempUsageDetail_20' ) end [2025-04-18 11:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:20:23] Production.INFO: ==3717== Releasing lock... [2025-04-18 11:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:20:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-18 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:21:05 [end_date_ymd] => 2025-04-18 11:21:05 [RateCDR] => 1 ) [2025-04-18 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:21:05' and `end` < '2025-04-18 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:21:17] Production.INFO: count ==1060 [2025-04-18 11:21:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:21:05 - End Time 2025-04-18 11:21:05 [2025-04-18 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935256', 'tblTempUsageDetail_20' ) start [2025-04-18 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935256', 'tblTempUsageDetail_20' ) end [2025-04-18 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935256', 'tblTempVendorCDR_20' ) start [2025-04-18 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935256', 'tblTempVendorCDR_20' ) end [2025-04-18 11:21:18] Production.INFO: ProcessCDR(1,14935256,1,1,2) [2025-04-18 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935256', 'tblTempUsageDetail_20' ) start [2025-04-18 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935256', 'tblTempUsageDetail_20' ) end [2025-04-18 11:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:21:21] Production.INFO: ==3799== Releasing lock... [2025-04-18 11:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:21:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-18 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:22:04 [end_date_ymd] => 2025-04-18 11:22:04 [RateCDR] => 1 ) [2025-04-18 11:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:22:04' and `end` < '2025-04-18 11:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:22:17] Production.INFO: count ==1063 [2025-04-18 11:22:17] Production.ERROR: pbx CDR StartTime 2025-04-18 08:22:04 - End Time 2025-04-18 11:22:04 [2025-04-18 11:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935261', 'tblTempUsageDetail_20' ) start [2025-04-18 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935261', 'tblTempUsageDetail_20' ) end [2025-04-18 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935261', 'tblTempVendorCDR_20' ) start [2025-04-18 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935261', 'tblTempVendorCDR_20' ) end [2025-04-18 11:22:17] Production.INFO: ProcessCDR(1,14935261,1,1,2) [2025-04-18 11:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935261', 'tblTempUsageDetail_20' ) start [2025-04-18 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935261', 'tblTempUsageDetail_20' ) end [2025-04-18 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:22:22] Production.INFO: ==3873== Releasing lock... [2025-04-18 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:22:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-18 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:23:06 [end_date_ymd] => 2025-04-18 11:23:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:23:06' and `end` < '2025-04-18 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-04-18 11:23:19] Production.INFO: count ==1068 [2025-04-18 11:23:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:23:06 - End Time 2025-04-18 11:23:06 [2025-04-18 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935266', 'tblTempUsageDetail_20' ) start [2025-04-18 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935266', 'tblTempUsageDetail_20' ) end [2025-04-18 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935266', 'tblTempVendorCDR_20' ) start [2025-04-18 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935266', 'tblTempVendorCDR_20' ) end [2025-04-18 11:23:19] Production.INFO: ProcessCDR(1,14935266,1,1,2) [2025-04-18 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935266', 'tblTempUsageDetail_20' ) start [2025-04-18 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935266', 'tblTempUsageDetail_20' ) end [2025-04-18 11:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:23:22] Production.INFO: ==3948== Releasing lock... [2025-04-18 11:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:23:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-18 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:24:05 [end_date_ymd] => 2025-04-18 11:24:05 [RateCDR] => 1 ) [2025-04-18 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:24:05' and `end` < '2025-04-18 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:24:18] Production.INFO: count ==1084 [2025-04-18 11:24:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:24:05 - End Time 2025-04-18 11:24:05 [2025-04-18 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935271', 'tblTempUsageDetail_20' ) start [2025-04-18 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935271', 'tblTempUsageDetail_20' ) end [2025-04-18 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935271', 'tblTempVendorCDR_20' ) start [2025-04-18 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935271', 'tblTempVendorCDR_20' ) end [2025-04-18 11:24:18] Production.INFO: ProcessCDR(1,14935271,1,1,2) [2025-04-18 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935271', 'tblTempUsageDetail_20' ) start [2025-04-18 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935271', 'tblTempUsageDetail_20' ) end [2025-04-18 11:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:24:21] Production.INFO: ==4016== Releasing lock... [2025-04-18 11:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:24:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-18 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:25:05 [end_date_ymd] => 2025-04-18 11:25:05 [RateCDR] => 1 ) [2025-04-18 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:25:05' and `end` < '2025-04-18 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:25:18] Production.INFO: count ==1088 [2025-04-18 11:25:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:25:05 - End Time 2025-04-18 11:25:05 [2025-04-18 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935276', 'tblTempUsageDetail_20' ) start [2025-04-18 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935276', 'tblTempUsageDetail_20' ) end [2025-04-18 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935276', 'tblTempVendorCDR_20' ) start [2025-04-18 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935276', 'tblTempVendorCDR_20' ) end [2025-04-18 11:25:18] Production.INFO: ProcessCDR(1,14935276,1,1,2) [2025-04-18 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935276', 'tblTempUsageDetail_20' ) start [2025-04-18 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935276', 'tblTempUsageDetail_20' ) end [2025-04-18 11:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:25:23] Production.INFO: ==4091== Releasing lock... [2025-04-18 11:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:25:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-18 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:26:05 [end_date_ymd] => 2025-04-18 11:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:26:05' and `end` < '2025-04-18 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-04-18 11:26:18] Production.INFO: count ==1104 [2025-04-18 11:26:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:26:05 - End Time 2025-04-18 11:26:05 [2025-04-18 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935281', 'tblTempUsageDetail_20' ) start [2025-04-18 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935281', 'tblTempUsageDetail_20' ) end [2025-04-18 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935281', 'tblTempVendorCDR_20' ) start [2025-04-18 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935281', 'tblTempVendorCDR_20' ) end [2025-04-18 11:26:18] Production.INFO: ProcessCDR(1,14935281,1,1,2) [2025-04-18 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935281', 'tblTempUsageDetail_20' ) start [2025-04-18 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935281', 'tblTempUsageDetail_20' ) end [2025-04-18 11:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:26:23] Production.INFO: ==4166== Releasing lock... [2025-04-18 11:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:26:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-18 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:27:06 [end_date_ymd] => 2025-04-18 11:27:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:27:06' and `end` < '2025-04-18 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-04-18 11:27:18] Production.INFO: count ==1105 [2025-04-18 11:27:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:27:06 - End Time 2025-04-18 11:27:06 [2025-04-18 11:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935286', 'tblTempUsageDetail_20' ) start [2025-04-18 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935286', 'tblTempUsageDetail_20' ) end [2025-04-18 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935286', 'tblTempVendorCDR_20' ) start [2025-04-18 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935286', 'tblTempVendorCDR_20' ) end [2025-04-18 11:27:19] Production.INFO: ProcessCDR(1,14935286,1,1,2) [2025-04-18 11:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935286', 'tblTempUsageDetail_20' ) start [2025-04-18 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935286', 'tblTempUsageDetail_20' ) end [2025-04-18 11:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:27:22] Production.INFO: ==4244== Releasing lock... [2025-04-18 11:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:27:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-18 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:28:05 [end_date_ymd] => 2025-04-18 11:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:28:05' and `end` < '2025-04-18 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-04-18 11:28:18] Production.INFO: count ==1110 [2025-04-18 11:28:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:28:05 - End Time 2025-04-18 11:28:05 [2025-04-18 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935291', 'tblTempUsageDetail_20' ) start [2025-04-18 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935291', 'tblTempUsageDetail_20' ) end [2025-04-18 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935291', 'tblTempVendorCDR_20' ) start [2025-04-18 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935291', 'tblTempVendorCDR_20' ) end [2025-04-18 11:28:19] Production.INFO: ProcessCDR(1,14935291,1,1,2) [2025-04-18 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935291', 'tblTempUsageDetail_20' ) start [2025-04-18 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935291', 'tblTempUsageDetail_20' ) end [2025-04-18 11:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:28:22] Production.INFO: ==4319== Releasing lock... [2025-04-18 11:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:28:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-18 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:29:05 [end_date_ymd] => 2025-04-18 11:29:05 [RateCDR] => 1 ) [2025-04-18 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:29:05' and `end` < '2025-04-18 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:29:18] Production.INFO: count ==1112 [2025-04-18 11:29:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:29:05 - End Time 2025-04-18 11:29:05 [2025-04-18 11:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935296', 'tblTempUsageDetail_20' ) start [2025-04-18 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935296', 'tblTempUsageDetail_20' ) end [2025-04-18 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935296', 'tblTempVendorCDR_20' ) start [2025-04-18 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935296', 'tblTempVendorCDR_20' ) end [2025-04-18 11:29:19] Production.INFO: ProcessCDR(1,14935296,1,1,2) [2025-04-18 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935296', 'tblTempUsageDetail_20' ) start [2025-04-18 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935296', 'tblTempUsageDetail_20' ) end [2025-04-18 11:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:29:23] Production.INFO: ==4394== Releasing lock... [2025-04-18 11:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:29:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-18 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:30:05 [end_date_ymd] => 2025-04-18 11:30:05 [RateCDR] => 1 ) [2025-04-18 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:30:05' and `end` < '2025-04-18 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:30:18] Production.INFO: count ==1104 [2025-04-18 11:30:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:30:05 - End Time 2025-04-18 11:30:05 [2025-04-18 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935301', 'tblTempUsageDetail_20' ) start [2025-04-18 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935301', 'tblTempUsageDetail_20' ) end [2025-04-18 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935301', 'tblTempVendorCDR_20' ) start [2025-04-18 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935301', 'tblTempVendorCDR_20' ) end [2025-04-18 11:30:18] Production.INFO: ProcessCDR(1,14935301,1,1,2) [2025-04-18 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935301', 'tblTempUsageDetail_20' ) start [2025-04-18 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935301', 'tblTempUsageDetail_20' ) end [2025-04-18 11:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:30:22] Production.INFO: ==4468== Releasing lock... [2025-04-18 11:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:30:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-18 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:31:05 [end_date_ymd] => 2025-04-18 11:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:31:05' and `end` < '2025-04-18 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-04-18 11:31:17] Production.INFO: count ==1093 [2025-04-18 11:31:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:31:05 - End Time 2025-04-18 11:31:05 [2025-04-18 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935307', 'tblTempUsageDetail_20' ) start [2025-04-18 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935307', 'tblTempUsageDetail_20' ) end [2025-04-18 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935307', 'tblTempVendorCDR_20' ) start [2025-04-18 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935307', 'tblTempVendorCDR_20' ) end [2025-04-18 11:31:18] Production.INFO: ProcessCDR(1,14935307,1,1,2) [2025-04-18 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935307', 'tblTempUsageDetail_20' ) start [2025-04-18 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935307', 'tblTempUsageDetail_20' ) end [2025-04-18 11:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:31:23] Production.INFO: ==4590== Releasing lock... [2025-04-18 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:31:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-18 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:32:05 [end_date_ymd] => 2025-04-18 11:32:05 [RateCDR] => 1 ) [2025-04-18 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:32:05' and `end` < '2025-04-18 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:32:18] Production.INFO: count ==1094 [2025-04-18 11:32:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:32:05 - End Time 2025-04-18 11:32:05 [2025-04-18 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935312', 'tblTempUsageDetail_20' ) start [2025-04-18 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935312', 'tblTempUsageDetail_20' ) end [2025-04-18 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935312', 'tblTempVendorCDR_20' ) start [2025-04-18 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935312', 'tblTempVendorCDR_20' ) end [2025-04-18 11:32:19] Production.INFO: ProcessCDR(1,14935312,1,1,2) [2025-04-18 11:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935312', 'tblTempUsageDetail_20' ) start [2025-04-18 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935312', 'tblTempUsageDetail_20' ) end [2025-04-18 11:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:32:22] Production.INFO: ==4665== Releasing lock... [2025-04-18 11:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:32:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-18 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:33:05 [end_date_ymd] => 2025-04-18 11:33:05 [RateCDR] => 1 ) [2025-04-18 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:33:05' and `end` < '2025-04-18 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:33:18] Production.INFO: count ==1100 [2025-04-18 11:33:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:33:05 - End Time 2025-04-18 11:33:05 [2025-04-18 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935317', 'tblTempUsageDetail_20' ) start [2025-04-18 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935317', 'tblTempUsageDetail_20' ) end [2025-04-18 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935317', 'tblTempVendorCDR_20' ) start [2025-04-18 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935317', 'tblTempVendorCDR_20' ) end [2025-04-18 11:33:18] Production.INFO: ProcessCDR(1,14935317,1,1,2) [2025-04-18 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935317', 'tblTempUsageDetail_20' ) start [2025-04-18 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935317', 'tblTempUsageDetail_20' ) end [2025-04-18 11:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:33:22] Production.INFO: ==4738== Releasing lock... [2025-04-18 11:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:33:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-18 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:34:05 [end_date_ymd] => 2025-04-18 11:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:34:05' and `end` < '2025-04-18 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-04-18 11:34:18] Production.INFO: count ==1110 [2025-04-18 11:34:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:34:05 - End Time 2025-04-18 11:34:05 [2025-04-18 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935322', 'tblTempUsageDetail_20' ) start [2025-04-18 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935322', 'tblTempUsageDetail_20' ) end [2025-04-18 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935322', 'tblTempVendorCDR_20' ) start [2025-04-18 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935322', 'tblTempVendorCDR_20' ) end [2025-04-18 11:34:19] Production.INFO: ProcessCDR(1,14935322,1,1,2) [2025-04-18 11:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935322', 'tblTempUsageDetail_20' ) start [2025-04-18 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935322', 'tblTempUsageDetail_20' ) end [2025-04-18 11:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:34:23] Production.INFO: ==4820== Releasing lock... [2025-04-18 11:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:34:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-18 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:35:05 [end_date_ymd] => 2025-04-18 11:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:35:05' and `end` < '2025-04-18 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-04-18 11:35:18] Production.INFO: count ==1112 [2025-04-18 11:35:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:35:05 - End Time 2025-04-18 11:35:05 [2025-04-18 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935327', 'tblTempUsageDetail_20' ) start [2025-04-18 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935327', 'tblTempUsageDetail_20' ) end [2025-04-18 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935327', 'tblTempVendorCDR_20' ) start [2025-04-18 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935327', 'tblTempVendorCDR_20' ) end [2025-04-18 11:35:18] Production.INFO: ProcessCDR(1,14935327,1,1,2) [2025-04-18 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935327', 'tblTempUsageDetail_20' ) start [2025-04-18 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935327', 'tblTempUsageDetail_20' ) end [2025-04-18 11:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:35:23] Production.INFO: ==4894== Releasing lock... [2025-04-18 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:35:23] Production.INFO: 37 MB #Memory Used# [2025-04-18 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:36:06 [end_date_ymd] => 2025-04-18 11:36:06 [RateCDR] => 1 ) [2025-04-18 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:36:06' and `end` < '2025-04-18 11: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-04-18 11:36:19] Production.INFO: count ==1118 [2025-04-18 11:36:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:36:06 - End Time 2025-04-18 11:36:06 [2025-04-18 11:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935332', 'tblTempUsageDetail_20' ) start [2025-04-18 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935332', 'tblTempUsageDetail_20' ) end [2025-04-18 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935332', 'tblTempVendorCDR_20' ) start [2025-04-18 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935332', 'tblTempVendorCDR_20' ) end [2025-04-18 11:36:19] Production.INFO: ProcessCDR(1,14935332,1,1,2) [2025-04-18 11:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935332', 'tblTempUsageDetail_20' ) start [2025-04-18 11:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935332', 'tblTempUsageDetail_20' ) end [2025-04-18 11:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:36:24] Production.INFO: ==4967== Releasing lock... [2025-04-18 11:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:36:24] Production.INFO: 37 MB #Memory Used# [2025-04-18 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:37:05 [end_date_ymd] => 2025-04-18 11:37:05 [RateCDR] => 1 ) [2025-04-18 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:37:05' and `end` < '2025-04-18 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:37:18] Production.INFO: count ==1121 [2025-04-18 11:37:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:37:05 - End Time 2025-04-18 11:37:05 [2025-04-18 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935337', 'tblTempUsageDetail_20' ) start [2025-04-18 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935337', 'tblTempUsageDetail_20' ) end [2025-04-18 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935337', 'tblTempVendorCDR_20' ) start [2025-04-18 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935337', 'tblTempVendorCDR_20' ) end [2025-04-18 11:37:18] Production.INFO: ProcessCDR(1,14935337,1,1,2) [2025-04-18 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935337', 'tblTempUsageDetail_20' ) start [2025-04-18 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935337', 'tblTempUsageDetail_20' ) end [2025-04-18 11:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:37:22] Production.INFO: ==5059== Releasing lock... [2025-04-18 11:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:37:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-18 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:38:06 [end_date_ymd] => 2025-04-18 11:38:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:38:06' and `end` < '2025-04-18 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-04-18 11:38:18] Production.INFO: count ==1126 [2025-04-18 11:38:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:38:06 - End Time 2025-04-18 11:38:06 [2025-04-18 11:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935342', 'tblTempUsageDetail_20' ) start [2025-04-18 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935342', 'tblTempUsageDetail_20' ) end [2025-04-18 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935342', 'tblTempVendorCDR_20' ) start [2025-04-18 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935342', 'tblTempVendorCDR_20' ) end [2025-04-18 11:38:19] Production.INFO: ProcessCDR(1,14935342,1,1,2) [2025-04-18 11:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935342', 'tblTempUsageDetail_20' ) start [2025-04-18 11:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935342', 'tblTempUsageDetail_20' ) end [2025-04-18 11:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:38:24] Production.INFO: ==5132== Releasing lock... [2025-04-18 11:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:38:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-18 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:39:05 [end_date_ymd] => 2025-04-18 11:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:39:05' and `end` < '2025-04-18 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-04-18 11:39:18] Production.INFO: count ==1133 [2025-04-18 11:39:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:39:05 - End Time 2025-04-18 11:39:05 [2025-04-18 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935347', 'tblTempUsageDetail_20' ) start [2025-04-18 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935347', 'tblTempUsageDetail_20' ) end [2025-04-18 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935347', 'tblTempVendorCDR_20' ) start [2025-04-18 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935347', 'tblTempVendorCDR_20' ) end [2025-04-18 11:39:19] Production.INFO: ProcessCDR(1,14935347,1,1,2) [2025-04-18 11:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935347', 'tblTempUsageDetail_20' ) start [2025-04-18 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935347', 'tblTempUsageDetail_20' ) end [2025-04-18 11:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:39:23] Production.INFO: ==5205== Releasing lock... [2025-04-18 11:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:39:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-18 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:40:06 [end_date_ymd] => 2025-04-18 11:40:06 [RateCDR] => 1 ) [2025-04-18 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:40:06' and `end` < '2025-04-18 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:40:19] Production.INFO: count ==1137 [2025-04-18 11:40:20] Production.ERROR: pbx CDR StartTime 2025-04-18 08:40:06 - End Time 2025-04-18 11:40:06 [2025-04-18 11:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935353', 'tblTempUsageDetail_20' ) start [2025-04-18 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935353', 'tblTempUsageDetail_20' ) end [2025-04-18 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935353', 'tblTempVendorCDR_20' ) start [2025-04-18 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935353', 'tblTempVendorCDR_20' ) end [2025-04-18 11:40:20] Production.INFO: ProcessCDR(1,14935353,1,1,2) [2025-04-18 11:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935353', 'tblTempUsageDetail_20' ) start [2025-04-18 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935353', 'tblTempUsageDetail_20' ) end [2025-04-18 11:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:40:24] Production.INFO: ==5281== Releasing lock... [2025-04-18 11:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:40:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-18 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:41:04 [end_date_ymd] => 2025-04-18 11:41:04 [RateCDR] => 1 ) [2025-04-18 11:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:41:04' and `end` < '2025-04-18 11:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:41:17] Production.INFO: count ==1109 [2025-04-18 11:41:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:41:04 - End Time 2025-04-18 11:41:04 [2025-04-18 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935358', 'tblTempUsageDetail_20' ) start [2025-04-18 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935358', 'tblTempUsageDetail_20' ) end [2025-04-18 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935358', 'tblTempVendorCDR_20' ) start [2025-04-18 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935358', 'tblTempVendorCDR_20' ) end [2025-04-18 11:41:18] Production.INFO: ProcessCDR(1,14935358,1,1,2) [2025-04-18 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935358', 'tblTempUsageDetail_20' ) start [2025-04-18 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935358', 'tblTempUsageDetail_20' ) end [2025-04-18 11:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:41:21] Production.INFO: ==5358== Releasing lock... [2025-04-18 11:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:41:21] Production.INFO: 37 MB #Memory Used# [2025-04-18 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:42:05 [end_date_ymd] => 2025-04-18 11:42:05 [RateCDR] => 1 ) [2025-04-18 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:42:05' and `end` < '2025-04-18 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:42:18] Production.INFO: count ==1114 [2025-04-18 11:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:42:05 - End Time 2025-04-18 11:42:05 [2025-04-18 11:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935363', 'tblTempUsageDetail_20' ) start [2025-04-18 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935363', 'tblTempUsageDetail_20' ) end [2025-04-18 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935363', 'tblTempVendorCDR_20' ) start [2025-04-18 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935363', 'tblTempVendorCDR_20' ) end [2025-04-18 11:42:19] Production.INFO: ProcessCDR(1,14935363,1,1,2) [2025-04-18 11:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935363', 'tblTempUsageDetail_20' ) start [2025-04-18 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935363', 'tblTempUsageDetail_20' ) end [2025-04-18 11:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:42:24] Production.INFO: ==5434== Releasing lock... [2025-04-18 11:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:42:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-18 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:43:05 [end_date_ymd] => 2025-04-18 11:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:43:05' and `end` < '2025-04-18 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-04-18 11:43:18] Production.INFO: count ==1113 [2025-04-18 11:43:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:43:05 - End Time 2025-04-18 11:43:05 [2025-04-18 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935368', 'tblTempUsageDetail_20' ) start [2025-04-18 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935368', 'tblTempUsageDetail_20' ) end [2025-04-18 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935368', 'tblTempVendorCDR_20' ) start [2025-04-18 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935368', 'tblTempVendorCDR_20' ) end [2025-04-18 11:43:19] Production.INFO: ProcessCDR(1,14935368,1,1,2) [2025-04-18 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935368', 'tblTempUsageDetail_20' ) start [2025-04-18 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935368', 'tblTempUsageDetail_20' ) end [2025-04-18 11:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:43:24] Production.INFO: ==5505== Releasing lock... [2025-04-18 11:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:43:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-18 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:44:05 [end_date_ymd] => 2025-04-18 11:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:44:05' and `end` < '2025-04-18 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-04-18 11:44:18] Production.INFO: count ==1115 [2025-04-18 11:44:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:44:05 - End Time 2025-04-18 11:44:05 [2025-04-18 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935373', 'tblTempUsageDetail_20' ) start [2025-04-18 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935373', 'tblTempUsageDetail_20' ) end [2025-04-18 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935373', 'tblTempVendorCDR_20' ) start [2025-04-18 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935373', 'tblTempVendorCDR_20' ) end [2025-04-18 11:44:18] Production.INFO: ProcessCDR(1,14935373,1,1,2) [2025-04-18 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935373', 'tblTempUsageDetail_20' ) start [2025-04-18 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935373', 'tblTempUsageDetail_20' ) end [2025-04-18 11:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:44:23] Production.INFO: ==5579== Releasing lock... [2025-04-18 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:44:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-18 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:45:06 [end_date_ymd] => 2025-04-18 11:45:06 [RateCDR] => 1 ) [2025-04-18 11:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:45:06' and `end` < '2025-04-18 11:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:45:18] Production.INFO: count ==1125 [2025-04-18 11:45:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:45:06 - End Time 2025-04-18 11:45:06 [2025-04-18 11:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935378', 'tblTempUsageDetail_20' ) start [2025-04-18 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935378', 'tblTempUsageDetail_20' ) end [2025-04-18 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935378', 'tblTempVendorCDR_20' ) start [2025-04-18 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935378', 'tblTempVendorCDR_20' ) end [2025-04-18 11:45:19] Production.INFO: ProcessCDR(1,14935378,1,1,2) [2025-04-18 11:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935378', 'tblTempUsageDetail_20' ) start [2025-04-18 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935378', 'tblTempUsageDetail_20' ) end [2025-04-18 11:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:45:24] Production.INFO: ==5654== Releasing lock... [2025-04-18 11:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:45:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-18 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:46:05 [end_date_ymd] => 2025-04-18 11:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:46:05' and `end` < '2025-04-18 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-04-18 11:46:18] Production.INFO: count ==1123 [2025-04-18 11:46:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:46:05 - End Time 2025-04-18 11:46:05 [2025-04-18 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935383', 'tblTempUsageDetail_20' ) start [2025-04-18 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935383', 'tblTempUsageDetail_20' ) end [2025-04-18 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935383', 'tblTempVendorCDR_20' ) start [2025-04-18 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935383', 'tblTempVendorCDR_20' ) end [2025-04-18 11:46:19] Production.INFO: ProcessCDR(1,14935383,1,1,2) [2025-04-18 11:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935383', 'tblTempUsageDetail_20' ) start [2025-04-18 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935383', 'tblTempUsageDetail_20' ) end [2025-04-18 11:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:46:22] Production.INFO: ==5773== Releasing lock... [2025-04-18 11:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:46:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-18 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:47:05 [end_date_ymd] => 2025-04-18 11:47:05 [RateCDR] => 1 ) [2025-04-18 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:47:05' and `end` < '2025-04-18 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:47:18] Production.INFO: count ==1123 [2025-04-18 11:47:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:47:05 - End Time 2025-04-18 11:47:05 [2025-04-18 11:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935388', 'tblTempUsageDetail_20' ) start [2025-04-18 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935388', 'tblTempUsageDetail_20' ) end [2025-04-18 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935388', 'tblTempVendorCDR_20' ) start [2025-04-18 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935388', 'tblTempVendorCDR_20' ) end [2025-04-18 11:47:19] Production.INFO: ProcessCDR(1,14935388,1,1,2) [2025-04-18 11:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935388', 'tblTempUsageDetail_20' ) start [2025-04-18 11:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935388', 'tblTempUsageDetail_20' ) end [2025-04-18 11:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:47:24] Production.INFO: ==5857== Releasing lock... [2025-04-18 11:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:47:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-18 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:48:05 [end_date_ymd] => 2025-04-18 11:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:48:05' and `end` < '2025-04-18 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-04-18 11:48:18] Production.INFO: count ==1145 [2025-04-18 11:48:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:48:05 - End Time 2025-04-18 11:48:05 [2025-04-18 11:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935393', 'tblTempUsageDetail_20' ) start [2025-04-18 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935393', 'tblTempUsageDetail_20' ) end [2025-04-18 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935393', 'tblTempVendorCDR_20' ) start [2025-04-18 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935393', 'tblTempVendorCDR_20' ) end [2025-04-18 11:48:19] Production.INFO: ProcessCDR(1,14935393,1,1,2) [2025-04-18 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935393', 'tblTempUsageDetail_20' ) start [2025-04-18 11:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935393', 'tblTempUsageDetail_20' ) end [2025-04-18 11:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:48:24] Production.INFO: ==5938== Releasing lock... [2025-04-18 11:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:48:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-18 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:49:05 [end_date_ymd] => 2025-04-18 11:49:05 [RateCDR] => 1 ) [2025-04-18 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:49:05' and `end` < '2025-04-18 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:49:18] Production.INFO: count ==1149 [2025-04-18 11:49:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:49:05 - End Time 2025-04-18 11:49:05 [2025-04-18 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935398', 'tblTempUsageDetail_20' ) start [2025-04-18 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935398', 'tblTempUsageDetail_20' ) end [2025-04-18 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935398', 'tblTempVendorCDR_20' ) start [2025-04-18 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935398', 'tblTempVendorCDR_20' ) end [2025-04-18 11:49:19] Production.INFO: ProcessCDR(1,14935398,1,1,2) [2025-04-18 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935398', 'tblTempUsageDetail_20' ) start [2025-04-18 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935398', 'tblTempUsageDetail_20' ) end [2025-04-18 11:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:49:22] Production.INFO: ==6012== Releasing lock... [2025-04-18 11:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:49:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-18 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:50:05 [end_date_ymd] => 2025-04-18 11:50:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:50:05' and `end` < '2025-04-18 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-04-18 11:50:19] Production.INFO: count ==1196 [2025-04-18 11:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:50:05 - End Time 2025-04-18 11:50:05 [2025-04-18 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935404', 'tblTempUsageDetail_20' ) start [2025-04-18 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935404', 'tblTempUsageDetail_20' ) end [2025-04-18 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935404', 'tblTempVendorCDR_20' ) start [2025-04-18 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935404', 'tblTempVendorCDR_20' ) end [2025-04-18 11:50:19] Production.INFO: ProcessCDR(1,14935404,1,1,2) [2025-04-18 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935404', 'tblTempUsageDetail_20' ) start [2025-04-18 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935404', 'tblTempUsageDetail_20' ) end [2025-04-18 11:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:50:24] Production.INFO: ==6093== Releasing lock... [2025-04-18 11:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:50:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-18 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:51:05 [end_date_ymd] => 2025-04-18 11:51:05 [RateCDR] => 1 ) [2025-04-18 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:51:05' and `end` < '2025-04-18 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:51:18] Production.INFO: count ==1210 [2025-04-18 11:51:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:51:05 - End Time 2025-04-18 11:51:05 [2025-04-18 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935409', 'tblTempUsageDetail_20' ) start [2025-04-18 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935409', 'tblTempUsageDetail_20' ) end [2025-04-18 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935409', 'tblTempVendorCDR_20' ) start [2025-04-18 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935409', 'tblTempVendorCDR_20' ) end [2025-04-18 11:51:18] Production.INFO: ProcessCDR(1,14935409,1,1,2) [2025-04-18 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935409', 'tblTempUsageDetail_20' ) start [2025-04-18 11:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935409', 'tblTempUsageDetail_20' ) end [2025-04-18 11:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:51:21] Production.INFO: ==6180== Releasing lock... [2025-04-18 11:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:51:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-18 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:52:05 [end_date_ymd] => 2025-04-18 11:52:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:52:05' and `end` < '2025-04-18 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-04-18 11:52:18] Production.INFO: count ==1209 [2025-04-18 11:52:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:52:05 - End Time 2025-04-18 11:52:05 [2025-04-18 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935414', 'tblTempUsageDetail_20' ) start [2025-04-18 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935414', 'tblTempUsageDetail_20' ) end [2025-04-18 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935414', 'tblTempVendorCDR_20' ) start [2025-04-18 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935414', 'tblTempVendorCDR_20' ) end [2025-04-18 11:52:18] Production.INFO: ProcessCDR(1,14935414,1,1,2) [2025-04-18 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935414', 'tblTempUsageDetail_20' ) start [2025-04-18 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935414', 'tblTempUsageDetail_20' ) end [2025-04-18 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:52:23] Production.INFO: ==6263== Releasing lock... [2025-04-18 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:52:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-18 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:53:05 [end_date_ymd] => 2025-04-18 11:53:05 [RateCDR] => 1 ) [2025-04-18 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:53:05' and `end` < '2025-04-18 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:53:18] Production.INFO: count ==1215 [2025-04-18 11:53:18] Production.ERROR: pbx CDR StartTime 2025-04-18 08:53:05 - End Time 2025-04-18 11:53:05 [2025-04-18 11:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935419', 'tblTempUsageDetail_20' ) start [2025-04-18 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935419', 'tblTempUsageDetail_20' ) end [2025-04-18 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935419', 'tblTempVendorCDR_20' ) start [2025-04-18 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935419', 'tblTempVendorCDR_20' ) end [2025-04-18 11:53:19] Production.INFO: ProcessCDR(1,14935419,1,1,2) [2025-04-18 11:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935419', 'tblTempUsageDetail_20' ) start [2025-04-18 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935419', 'tblTempUsageDetail_20' ) end [2025-04-18 11:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:53:23] Production.INFO: ==6342== Releasing lock... [2025-04-18 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:53:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-18 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:54:05 [end_date_ymd] => 2025-04-18 11:54:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:54:05' and `end` < '2025-04-18 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-04-18 11:54:18] Production.INFO: count ==1221 [2025-04-18 11:54:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:54:05 - End Time 2025-04-18 11:54:05 [2025-04-18 11:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935424', 'tblTempUsageDetail_20' ) start [2025-04-18 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935424', 'tblTempUsageDetail_20' ) end [2025-04-18 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935424', 'tblTempVendorCDR_20' ) start [2025-04-18 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935424', 'tblTempVendorCDR_20' ) end [2025-04-18 11:54:19] Production.INFO: ProcessCDR(1,14935424,1,1,2) [2025-04-18 11:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935424', 'tblTempUsageDetail_20' ) start [2025-04-18 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935424', 'tblTempUsageDetail_20' ) end [2025-04-18 11:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:54:24] Production.INFO: ==6415== Releasing lock... [2025-04-18 11:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:54:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-18 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:55:05 [end_date_ymd] => 2025-04-18 11:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:55:05' and `end` < '2025-04-18 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-04-18 11:55:18] Production.INFO: count ==1224 [2025-04-18 11:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:55:05 - End Time 2025-04-18 11:55:05 [2025-04-18 11:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935429', 'tblTempUsageDetail_20' ) start [2025-04-18 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935429', 'tblTempUsageDetail_20' ) end [2025-04-18 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935429', 'tblTempVendorCDR_20' ) start [2025-04-18 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935429', 'tblTempVendorCDR_20' ) end [2025-04-18 11:55:19] Production.INFO: ProcessCDR(1,14935429,1,1,2) [2025-04-18 11:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935429', 'tblTempUsageDetail_20' ) start [2025-04-18 11:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935429', 'tblTempUsageDetail_20' ) end [2025-04-18 11:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:55:24] Production.INFO: ==6502== Releasing lock... [2025-04-18 11:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:55:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-18 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:56:05 [end_date_ymd] => 2025-04-18 11:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:56:05' and `end` < '2025-04-18 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-04-18 11:56:18] Production.INFO: count ==1249 [2025-04-18 11:56:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:56:05 - End Time 2025-04-18 11:56:05 [2025-04-18 11:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935434', 'tblTempUsageDetail_20' ) start [2025-04-18 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935434', 'tblTempUsageDetail_20' ) end [2025-04-18 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935434', 'tblTempVendorCDR_20' ) start [2025-04-18 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935434', 'tblTempVendorCDR_20' ) end [2025-04-18 11:56:19] Production.INFO: ProcessCDR(1,14935434,1,1,2) [2025-04-18 11:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935434', 'tblTempUsageDetail_20' ) start [2025-04-18 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935434', 'tblTempUsageDetail_20' ) end [2025-04-18 11:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:56:22] Production.INFO: ==6581== Releasing lock... [2025-04-18 11:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:56:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-18 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:57:05 [end_date_ymd] => 2025-04-18 11:57:05 [RateCDR] => 1 ) [2025-04-18 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:57:05' and `end` < '2025-04-18 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 11:57:18] Production.INFO: count ==1252 [2025-04-18 11:57:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:57:05 - End Time 2025-04-18 11:57:05 [2025-04-18 11:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935439', 'tblTempUsageDetail_20' ) start [2025-04-18 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935439', 'tblTempUsageDetail_20' ) end [2025-04-18 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935439', 'tblTempVendorCDR_20' ) start [2025-04-18 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935439', 'tblTempVendorCDR_20' ) end [2025-04-18 11:57:19] Production.INFO: ProcessCDR(1,14935439,1,1,2) [2025-04-18 11:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935439', 'tblTempUsageDetail_20' ) start [2025-04-18 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935439', 'tblTempUsageDetail_20' ) end [2025-04-18 11:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:57:24] Production.INFO: ==6665== Releasing lock... [2025-04-18 11:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:57:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-18 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:58:05 [end_date_ymd] => 2025-04-18 11:58:05 [RateCDR] => 1 ) [2025-04-18 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 08:58:05' and `end` < '2025-04-18 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-04-18 11:58:18] Production.INFO: count ==1253 [2025-04-18 11:58:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:58:05 - End Time 2025-04-18 11:58:05 [2025-04-18 11:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935444', 'tblTempUsageDetail_20' ) start [2025-04-18 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935444', 'tblTempUsageDetail_20' ) end [2025-04-18 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935444', 'tblTempVendorCDR_20' ) start [2025-04-18 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935444', 'tblTempVendorCDR_20' ) end [2025-04-18 11:58:19] Production.INFO: ProcessCDR(1,14935444,1,1,2) [2025-04-18 11:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935444', 'tblTempUsageDetail_20' ) start [2025-04-18 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935444', 'tblTempUsageDetail_20' ) end [2025-04-18 11:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:58:22] Production.INFO: ==6748== Releasing lock... [2025-04-18 11:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:58:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-18 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 08:59:05 [end_date_ymd] => 2025-04-18 11:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 08:59:05' and `end` < '2025-04-18 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-04-18 11:59:18] Production.INFO: count ==1263 [2025-04-18 11:59:19] Production.ERROR: pbx CDR StartTime 2025-04-18 08:59:05 - End Time 2025-04-18 11:59:05 [2025-04-18 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935449', 'tblTempUsageDetail_20' ) start [2025-04-18 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935449', 'tblTempUsageDetail_20' ) end [2025-04-18 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935449', 'tblTempVendorCDR_20' ) start [2025-04-18 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935449', 'tblTempVendorCDR_20' ) end [2025-04-18 11:59:19] Production.INFO: ProcessCDR(1,14935449,1,1,2) [2025-04-18 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935449', 'tblTempUsageDetail_20' ) start [2025-04-18 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935449', 'tblTempUsageDetail_20' ) end [2025-04-18 11:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 11:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 11:59:24] Production.INFO: ==6825== Releasing lock... [2025-04-18 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 11:59:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-18 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:00:06 [end_date_ymd] => 2025-04-18 12:00:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:00:06' and `end` < '2025-04-18 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-04-18 12:00:19] Production.INFO: count ==1273 [2025-04-18 12:00:20] Production.ERROR: pbx CDR StartTime 2025-04-18 09:00:06 - End Time 2025-04-18 12:00:06 [2025-04-18 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935454', 'tblTempUsageDetail_20' ) start [2025-04-18 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935454', 'tblTempUsageDetail_20' ) end [2025-04-18 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935454', 'tblTempVendorCDR_20' ) start [2025-04-18 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935454', 'tblTempVendorCDR_20' ) end [2025-04-18 12:00:20] Production.INFO: ProcessCDR(1,14935454,1,1,2) [2025-04-18 12:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935454', 'tblTempUsageDetail_20' ) start [2025-04-18 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935454', 'tblTempUsageDetail_20' ) end [2025-04-18 12:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:00:23] Production.INFO: ==6902== Releasing lock... [2025-04-18 12:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:00:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-18 12:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:01:04 [end_date_ymd] => 2025-04-18 12:01:04 [RateCDR] => 1 ) [2025-04-18 12: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-04-18 09:01:04' and `end` < '2025-04-18 12: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-04-18 12:01:17] Production.INFO: count ==1303 [2025-04-18 12:01:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:01:04 - End Time 2025-04-18 12:01:04 [2025-04-18 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935460', 'tblTempUsageDetail_20' ) start [2025-04-18 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935460', 'tblTempUsageDetail_20' ) end [2025-04-18 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935460', 'tblTempVendorCDR_20' ) start [2025-04-18 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935460', 'tblTempVendorCDR_20' ) end [2025-04-18 12:01:18] Production.INFO: ProcessCDR(1,14935460,1,1,2) [2025-04-18 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935460', 'tblTempUsageDetail_20' ) start [2025-04-18 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935460', 'tblTempUsageDetail_20' ) end [2025-04-18 12:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:01:22] Production.INFO: ==6995== Releasing lock... [2025-04-18 12:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:01:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-18 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:02:05 [end_date_ymd] => 2025-04-18 12:02:05 [RateCDR] => 1 ) [2025-04-18 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:02:05' and `end` < '2025-04-18 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-04-18 12:02:18] Production.INFO: count ==1312 [2025-04-18 12:02:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:02:05 - End Time 2025-04-18 12:02:05 [2025-04-18 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935465', 'tblTempUsageDetail_20' ) start [2025-04-18 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935465', 'tblTempUsageDetail_20' ) end [2025-04-18 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935465', 'tblTempVendorCDR_20' ) start [2025-04-18 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935465', 'tblTempVendorCDR_20' ) end [2025-04-18 12:02:18] Production.INFO: ProcessCDR(1,14935465,1,1,2) [2025-04-18 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935465', 'tblTempUsageDetail_20' ) start [2025-04-18 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935465', 'tblTempUsageDetail_20' ) end [2025-04-18 12:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:02:23] Production.INFO: ==7121== Releasing lock... [2025-04-18 12:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:02:23] Production.INFO: 38 MB #Memory Used# [2025-04-18 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:03:05 [end_date_ymd] => 2025-04-18 12:03:05 [RateCDR] => 1 ) [2025-04-18 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:03:05' and `end` < '2025-04-18 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:03:18] Production.INFO: count ==1346 [2025-04-18 12:03:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:03:05 - End Time 2025-04-18 12:03:05 [2025-04-18 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935470', 'tblTempUsageDetail_20' ) start [2025-04-18 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935470', 'tblTempUsageDetail_20' ) end [2025-04-18 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935470', 'tblTempVendorCDR_20' ) start [2025-04-18 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935470', 'tblTempVendorCDR_20' ) end [2025-04-18 12:03:19] Production.INFO: ProcessCDR(1,14935470,1,1,2) [2025-04-18 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935470', 'tblTempUsageDetail_20' ) start [2025-04-18 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935470', 'tblTempUsageDetail_20' ) end [2025-04-18 12:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:03:22] Production.INFO: ==7196== Releasing lock... [2025-04-18 12:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:03:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:04:05 [end_date_ymd] => 2025-04-18 12:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:04:05' and `end` < '2025-04-18 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-04-18 12:04:18] Production.INFO: count ==1354 [2025-04-18 12:04:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:04:05 - End Time 2025-04-18 12:04:05 [2025-04-18 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935475', 'tblTempUsageDetail_20' ) start [2025-04-18 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935475', 'tblTempUsageDetail_20' ) end [2025-04-18 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935475', 'tblTempVendorCDR_20' ) start [2025-04-18 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935475', 'tblTempVendorCDR_20' ) end [2025-04-18 12:04:19] Production.INFO: ProcessCDR(1,14935475,1,1,2) [2025-04-18 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935475', 'tblTempUsageDetail_20' ) start [2025-04-18 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935475', 'tblTempUsageDetail_20' ) end [2025-04-18 12:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:04:24] Production.INFO: ==7269== Releasing lock... [2025-04-18 12:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:04:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:05:05 [end_date_ymd] => 2025-04-18 12:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:05:05' and `end` < '2025-04-18 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-04-18 12:05:18] Production.INFO: count ==1353 [2025-04-18 12:05:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:05:05 - End Time 2025-04-18 12:05:05 [2025-04-18 12:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935480', 'tblTempUsageDetail_20' ) start [2025-04-18 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935480', 'tblTempUsageDetail_20' ) end [2025-04-18 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935480', 'tblTempVendorCDR_20' ) start [2025-04-18 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935480', 'tblTempVendorCDR_20' ) end [2025-04-18 12:05:19] Production.INFO: ProcessCDR(1,14935480,1,1,2) [2025-04-18 12:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935480', 'tblTempUsageDetail_20' ) start [2025-04-18 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935480', 'tblTempUsageDetail_20' ) end [2025-04-18 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:05:22] Production.INFO: ==7351== Releasing lock... [2025-04-18 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:05:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:06:05 [end_date_ymd] => 2025-04-18 12:06:05 [RateCDR] => 1 ) [2025-04-18 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:06:05' and `end` < '2025-04-18 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:06:18] Production.INFO: count ==1351 [2025-04-18 12:06:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:06:05 - End Time 2025-04-18 12:06:05 [2025-04-18 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935485', 'tblTempUsageDetail_20' ) start [2025-04-18 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935485', 'tblTempUsageDetail_20' ) end [2025-04-18 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935485', 'tblTempVendorCDR_20' ) start [2025-04-18 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935485', 'tblTempVendorCDR_20' ) end [2025-04-18 12:06:18] Production.INFO: ProcessCDR(1,14935485,1,1,2) [2025-04-18 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935485', 'tblTempUsageDetail_20' ) start [2025-04-18 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935485', 'tblTempUsageDetail_20' ) end [2025-04-18 12:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:06:22] Production.INFO: ==7426== Releasing lock... [2025-04-18 12:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:06:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:07:05 [end_date_ymd] => 2025-04-18 12:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:07:05' and `end` < '2025-04-18 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-04-18 12:07:18] Production.INFO: count ==1348 [2025-04-18 12:07:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:07:05 - End Time 2025-04-18 12:07:05 [2025-04-18 12:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935490', 'tblTempUsageDetail_20' ) start [2025-04-18 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935490', 'tblTempUsageDetail_20' ) end [2025-04-18 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935490', 'tblTempVendorCDR_20' ) start [2025-04-18 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935490', 'tblTempVendorCDR_20' ) end [2025-04-18 12:07:19] Production.INFO: ProcessCDR(1,14935490,1,1,2) [2025-04-18 12:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935490', 'tblTempUsageDetail_20' ) start [2025-04-18 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935490', 'tblTempUsageDetail_20' ) end [2025-04-18 12:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:07:23] Production.INFO: ==7511== Releasing lock... [2025-04-18 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:07:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:08:05 [end_date_ymd] => 2025-04-18 12:08:05 [RateCDR] => 1 ) [2025-04-18 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:08:05' and `end` < '2025-04-18 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:08:18] Production.INFO: count ==1347 [2025-04-18 12:08:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:08:05 - End Time 2025-04-18 12:08:05 [2025-04-18 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935495', 'tblTempUsageDetail_20' ) start [2025-04-18 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935495', 'tblTempUsageDetail_20' ) end [2025-04-18 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935495', 'tblTempVendorCDR_20' ) start [2025-04-18 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935495', 'tblTempVendorCDR_20' ) end [2025-04-18 12:08:18] Production.INFO: ProcessCDR(1,14935495,1,1,2) [2025-04-18 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935495', 'tblTempUsageDetail_20' ) start [2025-04-18 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935495', 'tblTempUsageDetail_20' ) end [2025-04-18 12:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:08:22] Production.INFO: ==7589== Releasing lock... [2025-04-18 12:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:08:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:09:05 [end_date_ymd] => 2025-04-18 12:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:09:05' and `end` < '2025-04-18 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-04-18 12:09:18] Production.INFO: count ==1342 [2025-04-18 12:09:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:09:05 - End Time 2025-04-18 12:09:05 [2025-04-18 12:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935500', 'tblTempUsageDetail_20' ) start [2025-04-18 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935500', 'tblTempUsageDetail_20' ) end [2025-04-18 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935500', 'tblTempVendorCDR_20' ) start [2025-04-18 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935500', 'tblTempVendorCDR_20' ) end [2025-04-18 12:09:19] Production.INFO: ProcessCDR(1,14935500,1,1,2) [2025-04-18 12:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935500', 'tblTempUsageDetail_20' ) start [2025-04-18 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935500', 'tblTempUsageDetail_20' ) end [2025-04-18 12:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:09:22] Production.INFO: ==7666== Releasing lock... [2025-04-18 12:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:09:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:10:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:10:04 [end_date_ymd] => 2025-04-18 12:10:04 [RateCDR] => 1 ) [2025-04-18 12:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:10:04' and `end` < '2025-04-18 12:10:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:10:17] Production.INFO: count ==1342 [2025-04-18 12:10:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:10:04 - End Time 2025-04-18 12:10:04 [2025-04-18 12:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935505', 'tblTempUsageDetail_20' ) start [2025-04-18 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935505', 'tblTempUsageDetail_20' ) end [2025-04-18 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935505', 'tblTempVendorCDR_20' ) start [2025-04-18 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935505', 'tblTempVendorCDR_20' ) end [2025-04-18 12:10:18] Production.INFO: ProcessCDR(1,14935505,1,1,2) [2025-04-18 12:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935505', 'tblTempUsageDetail_20' ) start [2025-04-18 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935505', 'tblTempUsageDetail_20' ) end [2025-04-18 12:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:10:22] Production.INFO: ==7747== Releasing lock... [2025-04-18 12:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:10:22] Production.INFO: 38 MB #Memory Used# [2025-04-18 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:11:05 [end_date_ymd] => 2025-04-18 12:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:11:05' and `end` < '2025-04-18 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-04-18 12:11:18] Production.INFO: count ==1359 [2025-04-18 12:11:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:11:05 - End Time 2025-04-18 12:11:05 [2025-04-18 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935511', 'tblTempUsageDetail_20' ) start [2025-04-18 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935511', 'tblTempUsageDetail_20' ) end [2025-04-18 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935511', 'tblTempVendorCDR_20' ) start [2025-04-18 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935511', 'tblTempVendorCDR_20' ) end [2025-04-18 12:11:18] Production.INFO: ProcessCDR(1,14935511,1,1,2) [2025-04-18 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935511', 'tblTempUsageDetail_20' ) start [2025-04-18 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935511', 'tblTempUsageDetail_20' ) end [2025-04-18 12:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:11:22] Production.INFO: ==7829== Releasing lock... [2025-04-18 12:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:11:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:12:05 [end_date_ymd] => 2025-04-18 12:12:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:12:05' and `end` < '2025-04-18 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-04-18 12:12:18] Production.INFO: count ==1356 [2025-04-18 12:12:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:12:05 - End Time 2025-04-18 12:12:05 [2025-04-18 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935516', 'tblTempUsageDetail_20' ) start [2025-04-18 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935516', 'tblTempUsageDetail_20' ) end [2025-04-18 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935516', 'tblTempVendorCDR_20' ) start [2025-04-18 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935516', 'tblTempVendorCDR_20' ) end [2025-04-18 12:12:19] Production.INFO: ProcessCDR(1,14935516,1,1,2) [2025-04-18 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935516', 'tblTempUsageDetail_20' ) start [2025-04-18 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935516', 'tblTempUsageDetail_20' ) end [2025-04-18 12:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:12:24] Production.INFO: ==7907== Releasing lock... [2025-04-18 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:12:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:13:05 [end_date_ymd] => 2025-04-18 12:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:13:05' and `end` < '2025-04-18 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-04-18 12:13:18] Production.INFO: count ==1350 [2025-04-18 12:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:13:05 - End Time 2025-04-18 12:13:05 [2025-04-18 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935521', 'tblTempUsageDetail_20' ) start [2025-04-18 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935521', 'tblTempUsageDetail_20' ) end [2025-04-18 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935521', 'tblTempVendorCDR_20' ) start [2025-04-18 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935521', 'tblTempVendorCDR_20' ) end [2025-04-18 12:13:18] Production.INFO: ProcessCDR(1,14935521,1,1,2) [2025-04-18 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935521', 'tblTempUsageDetail_20' ) start [2025-04-18 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935521', 'tblTempUsageDetail_20' ) end [2025-04-18 12:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:13:21] Production.INFO: ==7989== Releasing lock... [2025-04-18 12:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:13:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:14:05 [end_date_ymd] => 2025-04-18 12:14:05 [RateCDR] => 1 ) [2025-04-18 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:14:05' and `end` < '2025-04-18 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:14:18] Production.INFO: count ==1349 [2025-04-18 12:14:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:14:05 - End Time 2025-04-18 12:14:05 [2025-04-18 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935526', 'tblTempUsageDetail_20' ) start [2025-04-18 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935526', 'tblTempUsageDetail_20' ) end [2025-04-18 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935526', 'tblTempVendorCDR_20' ) start [2025-04-18 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935526', 'tblTempVendorCDR_20' ) end [2025-04-18 12:14:19] Production.INFO: ProcessCDR(1,14935526,1,1,2) [2025-04-18 12:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935526', 'tblTempUsageDetail_20' ) start [2025-04-18 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935526', 'tblTempUsageDetail_20' ) end [2025-04-18 12:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:14:22] Production.INFO: ==8068== Releasing lock... [2025-04-18 12:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:14:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:15:05 [end_date_ymd] => 2025-04-18 12:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:15:05' and `end` < '2025-04-18 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-04-18 12:15:18] Production.INFO: count ==1336 [2025-04-18 12:15:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:15:05 - End Time 2025-04-18 12:15:05 [2025-04-18 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935531', 'tblTempUsageDetail_20' ) start [2025-04-18 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935531', 'tblTempUsageDetail_20' ) end [2025-04-18 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935531', 'tblTempVendorCDR_20' ) start [2025-04-18 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935531', 'tblTempVendorCDR_20' ) end [2025-04-18 12:15:18] Production.INFO: ProcessCDR(1,14935531,1,1,2) [2025-04-18 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935531', 'tblTempUsageDetail_20' ) start [2025-04-18 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935531', 'tblTempUsageDetail_20' ) end [2025-04-18 12:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:15:21] Production.INFO: ==8149== Releasing lock... [2025-04-18 12:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:15:21] Production.INFO: 38 MB #Memory Used# [2025-04-18 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:16:05 [end_date_ymd] => 2025-04-18 12:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:16:05' and `end` < '2025-04-18 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-04-18 12:16:18] Production.INFO: count ==1328 [2025-04-18 12:16:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:16:05 - End Time 2025-04-18 12:16:05 [2025-04-18 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935536', 'tblTempUsageDetail_20' ) start [2025-04-18 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935536', 'tblTempUsageDetail_20' ) end [2025-04-18 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935536', 'tblTempVendorCDR_20' ) start [2025-04-18 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935536', 'tblTempVendorCDR_20' ) end [2025-04-18 12:16:19] Production.INFO: ProcessCDR(1,14935536,1,1,2) [2025-04-18 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935536', 'tblTempUsageDetail_20' ) start [2025-04-18 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935536', 'tblTempUsageDetail_20' ) end [2025-04-18 12:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:16:22] Production.INFO: ==8232== Releasing lock... [2025-04-18 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:16:22] Production.INFO: 38 MB #Memory Used# [2025-04-18 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:17:05 [end_date_ymd] => 2025-04-18 12:17:05 [RateCDR] => 1 ) [2025-04-18 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:17:05' and `end` < '2025-04-18 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:17:18] Production.INFO: count ==1353 [2025-04-18 12:17:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:17:05 - End Time 2025-04-18 12:17:05 [2025-04-18 12:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935541', 'tblTempUsageDetail_20' ) start [2025-04-18 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935541', 'tblTempUsageDetail_20' ) end [2025-04-18 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935541', 'tblTempVendorCDR_20' ) start [2025-04-18 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935541', 'tblTempVendorCDR_20' ) end [2025-04-18 12:17:19] Production.INFO: ProcessCDR(1,14935541,1,1,2) [2025-04-18 12:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935541', 'tblTempUsageDetail_20' ) start [2025-04-18 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935541', 'tblTempUsageDetail_20' ) end [2025-04-18 12:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:17:24] Production.INFO: ==8352== Releasing lock... [2025-04-18 12:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:17:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:18:06 [end_date_ymd] => 2025-04-18 12:18:06 [RateCDR] => 1 ) [2025-04-18 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:18:06' and `end` < '2025-04-18 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:18:18] Production.INFO: count ==1338 [2025-04-18 12:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:18:06 - End Time 2025-04-18 12:18:06 [2025-04-18 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935546', 'tblTempUsageDetail_20' ) start [2025-04-18 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935546', 'tblTempUsageDetail_20' ) end [2025-04-18 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935546', 'tblTempVendorCDR_20' ) start [2025-04-18 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935546', 'tblTempVendorCDR_20' ) end [2025-04-18 12:18:19] Production.INFO: ProcessCDR(1,14935546,1,1,2) [2025-04-18 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935546', 'tblTempUsageDetail_20' ) start [2025-04-18 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935546', 'tblTempUsageDetail_20' ) end [2025-04-18 12:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:18:22] Production.INFO: ==8438== Releasing lock... [2025-04-18 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:18:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:19:05 [end_date_ymd] => 2025-04-18 12:19:05 [RateCDR] => 1 ) [2025-04-18 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:19:05' and `end` < '2025-04-18 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:19:18] Production.INFO: count ==1333 [2025-04-18 12:19:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:19:05 - End Time 2025-04-18 12:19:05 [2025-04-18 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935551', 'tblTempUsageDetail_20' ) start [2025-04-18 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935551', 'tblTempUsageDetail_20' ) end [2025-04-18 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935551', 'tblTempVendorCDR_20' ) start [2025-04-18 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935551', 'tblTempVendorCDR_20' ) end [2025-04-18 12:19:18] Production.INFO: ProcessCDR(1,14935551,1,1,2) [2025-04-18 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935551', 'tblTempUsageDetail_20' ) start [2025-04-18 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935551', 'tblTempUsageDetail_20' ) end [2025-04-18 12:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:19:23] Production.INFO: ==8508== Releasing lock... [2025-04-18 12:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:19:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:20:05 [end_date_ymd] => 2025-04-18 12:20:05 [RateCDR] => 1 ) [2025-04-18 12: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-04-18 09:20:05' and `end` < '2025-04-18 12: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-04-18 12:20:18] Production.INFO: count ==1360 [2025-04-18 12:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:20:05 - End Time 2025-04-18 12:20:05 [2025-04-18 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935556', 'tblTempUsageDetail_20' ) start [2025-04-18 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935556', 'tblTempUsageDetail_20' ) end [2025-04-18 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935556', 'tblTempVendorCDR_20' ) start [2025-04-18 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935556', 'tblTempVendorCDR_20' ) end [2025-04-18 12:20:19] Production.INFO: ProcessCDR(1,14935556,1,1,2) [2025-04-18 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935556', 'tblTempUsageDetail_20' ) start [2025-04-18 12:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935556', 'tblTempUsageDetail_20' ) end [2025-04-18 12:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:20:22] Production.INFO: ==8588== Releasing lock... [2025-04-18 12:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:20:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:21:05 [end_date_ymd] => 2025-04-18 12:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:21:05' and `end` < '2025-04-18 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-04-18 12:21:18] Production.INFO: count ==1390 [2025-04-18 12:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:21:05 - End Time 2025-04-18 12:21:05 [2025-04-18 12:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935562', 'tblTempUsageDetail_20' ) start [2025-04-18 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935562', 'tblTempUsageDetail_20' ) end [2025-04-18 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935562', 'tblTempVendorCDR_20' ) start [2025-04-18 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935562', 'tblTempVendorCDR_20' ) end [2025-04-18 12:21:19] Production.INFO: ProcessCDR(1,14935562,1,1,2) [2025-04-18 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935562', 'tblTempUsageDetail_20' ) start [2025-04-18 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935562', 'tblTempUsageDetail_20' ) end [2025-04-18 12:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:21:22] Production.INFO: ==8671== Releasing lock... [2025-04-18 12:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:21:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-18 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:22:05 [end_date_ymd] => 2025-04-18 12:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:22:05' and `end` < '2025-04-18 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-04-18 12:22:18] Production.INFO: count ==1383 [2025-04-18 12:22:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:22:05 - End Time 2025-04-18 12:22:05 [2025-04-18 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935567', 'tblTempUsageDetail_20' ) start [2025-04-18 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935567', 'tblTempUsageDetail_20' ) end [2025-04-18 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935567', 'tblTempVendorCDR_20' ) start [2025-04-18 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935567', 'tblTempVendorCDR_20' ) end [2025-04-18 12:22:18] Production.INFO: ProcessCDR(1,14935567,1,1,2) [2025-04-18 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935567', 'tblTempUsageDetail_20' ) start [2025-04-18 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935567', 'tblTempUsageDetail_20' ) end [2025-04-18 12:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:22:23] Production.INFO: ==8751== Releasing lock... [2025-04-18 12:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:22:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-18 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:23:05 [end_date_ymd] => 2025-04-18 12:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:23:05' and `end` < '2025-04-18 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-04-18 12:23:18] Production.INFO: count ==1379 [2025-04-18 12:23:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:23:05 - End Time 2025-04-18 12:23:05 [2025-04-18 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935572', 'tblTempUsageDetail_20' ) start [2025-04-18 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935572', 'tblTempUsageDetail_20' ) end [2025-04-18 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935572', 'tblTempVendorCDR_20' ) start [2025-04-18 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935572', 'tblTempVendorCDR_20' ) end [2025-04-18 12:23:18] Production.INFO: ProcessCDR(1,14935572,1,1,2) [2025-04-18 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935572', 'tblTempUsageDetail_20' ) start [2025-04-18 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935572', 'tblTempUsageDetail_20' ) end [2025-04-18 12:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:23:22] Production.INFO: ==8832== Releasing lock... [2025-04-18 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:23:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-18 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:24:04 [end_date_ymd] => 2025-04-18 12:24:04 [RateCDR] => 1 ) [2025-04-18 12:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:24:04' and `end` < '2025-04-18 12:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:24:17] Production.INFO: count ==1381 [2025-04-18 12:24:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:24:04 - End Time 2025-04-18 12:24:04 [2025-04-18 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935577', 'tblTempUsageDetail_20' ) start [2025-04-18 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935577', 'tblTempUsageDetail_20' ) end [2025-04-18 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935577', 'tblTempVendorCDR_20' ) start [2025-04-18 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935577', 'tblTempVendorCDR_20' ) end [2025-04-18 12:24:18] Production.INFO: ProcessCDR(1,14935577,1,1,2) [2025-04-18 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935577', 'tblTempUsageDetail_20' ) start [2025-04-18 12:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935577', 'tblTempUsageDetail_20' ) end [2025-04-18 12:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:24:21] Production.INFO: ==8906== Releasing lock... [2025-04-18 12:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:24:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-18 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:25:05 [end_date_ymd] => 2025-04-18 12:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:25:05' and `end` < '2025-04-18 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-04-18 12:25:17] Production.INFO: count ==1381 [2025-04-18 12:25:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:25:05 - End Time 2025-04-18 12:25:05 [2025-04-18 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935582', 'tblTempUsageDetail_20' ) start [2025-04-18 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935582', 'tblTempUsageDetail_20' ) end [2025-04-18 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935582', 'tblTempVendorCDR_20' ) start [2025-04-18 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935582', 'tblTempVendorCDR_20' ) end [2025-04-18 12:25:18] Production.INFO: ProcessCDR(1,14935582,1,1,2) [2025-04-18 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935582', 'tblTempUsageDetail_20' ) start [2025-04-18 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935582', 'tblTempUsageDetail_20' ) end [2025-04-18 12:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:25:21] Production.INFO: ==8984== Releasing lock... [2025-04-18 12:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:25:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-18 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:26:06 [end_date_ymd] => 2025-04-18 12:26:06 [RateCDR] => 1 ) [2025-04-18 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:26:06' and `end` < '2025-04-18 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:26:18] Production.INFO: count ==1384 [2025-04-18 12:26:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:26:06 - End Time 2025-04-18 12:26:06 [2025-04-18 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935587', 'tblTempUsageDetail_20' ) start [2025-04-18 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935587', 'tblTempUsageDetail_20' ) end [2025-04-18 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935587', 'tblTempVendorCDR_20' ) start [2025-04-18 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935587', 'tblTempVendorCDR_20' ) end [2025-04-18 12:26:19] Production.INFO: ProcessCDR(1,14935587,1,1,2) [2025-04-18 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935587', 'tblTempUsageDetail_20' ) start [2025-04-18 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935587', 'tblTempUsageDetail_20' ) end [2025-04-18 12:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:26:22] Production.INFO: ==9058== Releasing lock... [2025-04-18 12:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:26:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-18 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:27:05 [end_date_ymd] => 2025-04-18 12:27:05 [RateCDR] => 1 ) [2025-04-18 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:27:05' and `end` < '2025-04-18 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:27:18] Production.INFO: count ==1415 [2025-04-18 12:27:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:27:05 - End Time 2025-04-18 12:27:05 [2025-04-18 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935592', 'tblTempUsageDetail_20' ) start [2025-04-18 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935592', 'tblTempUsageDetail_20' ) end [2025-04-18 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935592', 'tblTempVendorCDR_20' ) start [2025-04-18 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935592', 'tblTempVendorCDR_20' ) end [2025-04-18 12:27:18] Production.INFO: ProcessCDR(1,14935592,1,1,2) [2025-04-18 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935592', 'tblTempUsageDetail_20' ) start [2025-04-18 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935592', 'tblTempUsageDetail_20' ) end [2025-04-18 12:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:27:23] Production.INFO: ==9133== Releasing lock... [2025-04-18 12:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:27:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-18 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:28:05 [end_date_ymd] => 2025-04-18 12:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:28:05' and `end` < '2025-04-18 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-04-18 12:28:18] Production.INFO: count ==1411 [2025-04-18 12:28:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:28:05 - End Time 2025-04-18 12:28:05 [2025-04-18 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935597', 'tblTempUsageDetail_20' ) start [2025-04-18 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935597', 'tblTempUsageDetail_20' ) end [2025-04-18 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935597', 'tblTempVendorCDR_20' ) start [2025-04-18 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935597', 'tblTempVendorCDR_20' ) end [2025-04-18 12:28:19] Production.INFO: ProcessCDR(1,14935597,1,1,2) [2025-04-18 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935597', 'tblTempUsageDetail_20' ) start [2025-04-18 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935597', 'tblTempUsageDetail_20' ) end [2025-04-18 12:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:28:22] Production.INFO: ==9206== Releasing lock... [2025-04-18 12:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:28:22] Production.INFO: 39 MB #Memory Used# [2025-04-18 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:29:05 [end_date_ymd] => 2025-04-18 12:29:05 [RateCDR] => 1 ) [2025-04-18 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:29:05' and `end` < '2025-04-18 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:29:18] Production.INFO: count ==1414 [2025-04-18 12:29:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:29:05 - End Time 2025-04-18 12:29:05 [2025-04-18 12:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935602', 'tblTempUsageDetail_20' ) start [2025-04-18 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935602', 'tblTempUsageDetail_20' ) end [2025-04-18 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935602', 'tblTempVendorCDR_20' ) start [2025-04-18 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935602', 'tblTempVendorCDR_20' ) end [2025-04-18 12:29:19] Production.INFO: ProcessCDR(1,14935602,1,1,2) [2025-04-18 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935602', 'tblTempUsageDetail_20' ) start [2025-04-18 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935602', 'tblTempUsageDetail_20' ) end [2025-04-18 12:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:29:24] Production.INFO: ==9283== Releasing lock... [2025-04-18 12:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:29:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-18 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:30:06 [end_date_ymd] => 2025-04-18 12:30:06 [RateCDR] => 1 ) [2025-04-18 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:30:06' and `end` < '2025-04-18 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:30:19] Production.INFO: count ==1422 [2025-04-18 12:30:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:30:06 - End Time 2025-04-18 12:30:06 [2025-04-18 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935608', 'tblTempUsageDetail_20' ) start [2025-04-18 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935608', 'tblTempUsageDetail_20' ) end [2025-04-18 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935608', 'tblTempVendorCDR_20' ) start [2025-04-18 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935608', 'tblTempVendorCDR_20' ) end [2025-04-18 12:30:20] Production.INFO: ProcessCDR(1,14935608,1,1,2) [2025-04-18 12:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935608', 'tblTempUsageDetail_20' ) start [2025-04-18 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935608', 'tblTempUsageDetail_20' ) end [2025-04-18 12:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:30:23] Production.INFO: ==9364== Releasing lock... [2025-04-18 12:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:30:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-18 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:31:05 [end_date_ymd] => 2025-04-18 12:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:31:05' and `end` < '2025-04-18 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-04-18 12:31:18] Production.INFO: count ==1449 [2025-04-18 12:31:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:31:05 - End Time 2025-04-18 12:31:05 [2025-04-18 12:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935613', 'tblTempUsageDetail_20' ) start [2025-04-18 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935613', 'tblTempUsageDetail_20' ) end [2025-04-18 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935613', 'tblTempVendorCDR_20' ) start [2025-04-18 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935613', 'tblTempVendorCDR_20' ) end [2025-04-18 12:31:19] Production.INFO: ProcessCDR(1,14935613,1,1,2) [2025-04-18 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935613', 'tblTempUsageDetail_20' ) start [2025-04-18 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935613', 'tblTempUsageDetail_20' ) end [2025-04-18 12:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:31:22] Production.INFO: ==9444== Releasing lock... [2025-04-18 12:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:31:22] Production.INFO: 39 MB #Memory Used# [2025-04-18 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:32:05 [end_date_ymd] => 2025-04-18 12:32:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:32:05' and `end` < '2025-04-18 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-04-18 12:32:18] Production.INFO: count ==1451 [2025-04-18 12:32:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:32:05 - End Time 2025-04-18 12:32:05 [2025-04-18 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935618', 'tblTempUsageDetail_20' ) start [2025-04-18 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935618', 'tblTempUsageDetail_20' ) end [2025-04-18 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935618', 'tblTempVendorCDR_20' ) start [2025-04-18 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935618', 'tblTempVendorCDR_20' ) end [2025-04-18 12:32:19] Production.INFO: ProcessCDR(1,14935618,1,1,2) [2025-04-18 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935618', 'tblTempUsageDetail_20' ) start [2025-04-18 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935618', 'tblTempUsageDetail_20' ) end [2025-04-18 12:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:32:22] Production.INFO: ==9518== Releasing lock... [2025-04-18 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:32:22] Production.INFO: 39 MB #Memory Used# [2025-04-18 12:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:33:04 [end_date_ymd] => 2025-04-18 12:33:04 [RateCDR] => 1 ) [2025-04-18 12:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:33:04' and `end` < '2025-04-18 12:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:33:17] Production.INFO: count ==1452 [2025-04-18 12:33:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:33:04 - End Time 2025-04-18 12:33:04 [2025-04-18 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935623', 'tblTempUsageDetail_20' ) start [2025-04-18 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935623', 'tblTempUsageDetail_20' ) end [2025-04-18 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935623', 'tblTempVendorCDR_20' ) start [2025-04-18 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935623', 'tblTempVendorCDR_20' ) end [2025-04-18 12:33:18] Production.INFO: ProcessCDR(1,14935623,1,1,2) [2025-04-18 12:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935623', 'tblTempUsageDetail_20' ) start [2025-04-18 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935623', 'tblTempUsageDetail_20' ) end [2025-04-18 12:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:33:22] Production.INFO: ==9630== Releasing lock... [2025-04-18 12:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:33:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-18 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:34:05 [end_date_ymd] => 2025-04-18 12:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:34:05' and `end` < '2025-04-18 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-04-18 12:34:18] Production.INFO: count ==1452 [2025-04-18 12:34:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:34:05 - End Time 2025-04-18 12:34:05 [2025-04-18 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935628', 'tblTempUsageDetail_20' ) start [2025-04-18 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935628', 'tblTempUsageDetail_20' ) end [2025-04-18 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935628', 'tblTempVendorCDR_20' ) start [2025-04-18 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935628', 'tblTempVendorCDR_20' ) end [2025-04-18 12:34:19] Production.INFO: ProcessCDR(1,14935628,1,1,2) [2025-04-18 12:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935628', 'tblTempUsageDetail_20' ) start [2025-04-18 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935628', 'tblTempUsageDetail_20' ) end [2025-04-18 12:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:34:22] Production.INFO: ==9704== Releasing lock... [2025-04-18 12:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:34:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-18 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:35:05 [end_date_ymd] => 2025-04-18 12:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:35:05' and `end` < '2025-04-18 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-04-18 12:35:18] Production.INFO: count ==1454 [2025-04-18 12:35:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:35:05 - End Time 2025-04-18 12:35:05 [2025-04-18 12:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935633', 'tblTempUsageDetail_20' ) start [2025-04-18 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935633', 'tblTempUsageDetail_20' ) end [2025-04-18 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935633', 'tblTempVendorCDR_20' ) start [2025-04-18 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935633', 'tblTempVendorCDR_20' ) end [2025-04-18 12:35:19] Production.INFO: ProcessCDR(1,14935633,1,1,2) [2025-04-18 12:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935633', 'tblTempUsageDetail_20' ) start [2025-04-18 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935633', 'tblTempUsageDetail_20' ) end [2025-04-18 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:35:22] Production.INFO: ==9779== Releasing lock... [2025-04-18 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:35:22] Production.INFO: 39 MB #Memory Used# [2025-04-18 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:36:05 [end_date_ymd] => 2025-04-18 12:36:05 [RateCDR] => 1 ) [2025-04-18 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:36:05' and `end` < '2025-04-18 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:36:18] Production.INFO: count ==1453 [2025-04-18 12:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:36:05 - End Time 2025-04-18 12:36:05 [2025-04-18 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935638', 'tblTempUsageDetail_20' ) start [2025-04-18 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935638', 'tblTempUsageDetail_20' ) end [2025-04-18 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935638', 'tblTempVendorCDR_20' ) start [2025-04-18 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935638', 'tblTempVendorCDR_20' ) end [2025-04-18 12:36:19] Production.INFO: ProcessCDR(1,14935638,1,1,2) [2025-04-18 12:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935638', 'tblTempUsageDetail_20' ) start [2025-04-18 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935638', 'tblTempUsageDetail_20' ) end [2025-04-18 12:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:36:24] Production.INFO: ==9856== Releasing lock... [2025-04-18 12:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:36:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-18 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:37:05 [end_date_ymd] => 2025-04-18 12:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:37:05' and `end` < '2025-04-18 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-04-18 12:37:18] Production.INFO: count ==1485 [2025-04-18 12:37:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:37:05 - End Time 2025-04-18 12:37:05 [2025-04-18 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935643', 'tblTempUsageDetail_20' ) start [2025-04-18 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935643', 'tblTempUsageDetail_20' ) end [2025-04-18 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935643', 'tblTempVendorCDR_20' ) start [2025-04-18 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935643', 'tblTempVendorCDR_20' ) end [2025-04-18 12:37:19] Production.INFO: ProcessCDR(1,14935643,1,1,2) [2025-04-18 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935643', 'tblTempUsageDetail_20' ) start [2025-04-18 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935643', 'tblTempUsageDetail_20' ) end [2025-04-18 12:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:37:24] Production.INFO: ==9933== Releasing lock... [2025-04-18 12:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:37:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-18 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:38:05 [end_date_ymd] => 2025-04-18 12:38:05 [RateCDR] => 1 ) [2025-04-18 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:38:05' and `end` < '2025-04-18 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:38:18] Production.INFO: count ==1521 [2025-04-18 12:38:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:38:05 - End Time 2025-04-18 12:38:05 [2025-04-18 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935648', 'tblTempUsageDetail_20' ) start [2025-04-18 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935648', 'tblTempUsageDetail_20' ) end [2025-04-18 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935648', 'tblTempVendorCDR_20' ) start [2025-04-18 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935648', 'tblTempVendorCDR_20' ) end [2025-04-18 12:38:19] Production.INFO: ProcessCDR(1,14935648,1,1,2) [2025-04-18 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935648', 'tblTempUsageDetail_20' ) start [2025-04-18 12:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935648', 'tblTempUsageDetail_20' ) end [2025-04-18 12:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:38:22] Production.INFO: ==10006== Releasing lock... [2025-04-18 12:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:38:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-18 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:39:05 [end_date_ymd] => 2025-04-18 12:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:39:05' and `end` < '2025-04-18 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-04-18 12:39:18] Production.INFO: count ==1524 [2025-04-18 12:39:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:39:05 - End Time 2025-04-18 12:39:05 [2025-04-18 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935653', 'tblTempUsageDetail_20' ) start [2025-04-18 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935653', 'tblTempUsageDetail_20' ) end [2025-04-18 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935653', 'tblTempVendorCDR_20' ) start [2025-04-18 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935653', 'tblTempVendorCDR_20' ) end [2025-04-18 12:39:19] Production.INFO: ProcessCDR(1,14935653,1,1,2) [2025-04-18 12:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935653', 'tblTempUsageDetail_20' ) start [2025-04-18 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935653', 'tblTempUsageDetail_20' ) end [2025-04-18 12:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:39:23] Production.INFO: ==10081== Releasing lock... [2025-04-18 12:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:39:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-18 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:40:05 [end_date_ymd] => 2025-04-18 12:40:05 [RateCDR] => 1 ) [2025-04-18 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:40:05' and `end` < '2025-04-18 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:40:18] Production.INFO: count ==1523 [2025-04-18 12:40:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:40:05 - End Time 2025-04-18 12:40:05 [2025-04-18 12:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935658', 'tblTempUsageDetail_20' ) start [2025-04-18 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935658', 'tblTempUsageDetail_20' ) end [2025-04-18 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935658', 'tblTempVendorCDR_20' ) start [2025-04-18 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935658', 'tblTempVendorCDR_20' ) end [2025-04-18 12:40:19] Production.INFO: ProcessCDR(1,14935658,1,1,2) [2025-04-18 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935658', 'tblTempUsageDetail_20' ) start [2025-04-18 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935658', 'tblTempUsageDetail_20' ) end [2025-04-18 12:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:40:23] Production.INFO: ==10155== Releasing lock... [2025-04-18 12:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:40:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-18 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:41:05 [end_date_ymd] => 2025-04-18 12:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:41:05' and `end` < '2025-04-18 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-04-18 12:41:18] Production.INFO: count ==1556 [2025-04-18 12:41:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:41:05 - End Time 2025-04-18 12:41:05 [2025-04-18 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935664', 'tblTempUsageDetail_20' ) start [2025-04-18 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935664', 'tblTempUsageDetail_20' ) end [2025-04-18 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935664', 'tblTempVendorCDR_20' ) start [2025-04-18 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935664', 'tblTempVendorCDR_20' ) end [2025-04-18 12:41:19] Production.INFO: ProcessCDR(1,14935664,1,1,2) [2025-04-18 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935664', 'tblTempUsageDetail_20' ) start [2025-04-18 12:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935664', 'tblTempUsageDetail_20' ) end [2025-04-18 12:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:41:24] Production.INFO: ==10229== Releasing lock... [2025-04-18 12:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:41:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-18 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:42:05 [end_date_ymd] => 2025-04-18 12:42:05 [RateCDR] => 1 ) [2025-04-18 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:42:05' and `end` < '2025-04-18 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:42:18] Production.INFO: count ==1561 [2025-04-18 12:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:42:05 - End Time 2025-04-18 12:42:05 [2025-04-18 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935669', 'tblTempUsageDetail_20' ) start [2025-04-18 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935669', 'tblTempUsageDetail_20' ) end [2025-04-18 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935669', 'tblTempVendorCDR_20' ) start [2025-04-18 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935669', 'tblTempVendorCDR_20' ) end [2025-04-18 12:42:19] Production.INFO: ProcessCDR(1,14935669,1,1,2) [2025-04-18 12:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935669', 'tblTempUsageDetail_20' ) start [2025-04-18 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935669', 'tblTempUsageDetail_20' ) end [2025-04-18 12:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:42:24] Production.INFO: ==10309== Releasing lock... [2025-04-18 12:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:42:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-18 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:43:05 [end_date_ymd] => 2025-04-18 12:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:43:05' and `end` < '2025-04-18 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-04-18 12:43:18] Production.INFO: count ==1564 [2025-04-18 12:43:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:43:05 - End Time 2025-04-18 12:43:05 [2025-04-18 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935674', 'tblTempUsageDetail_20' ) start [2025-04-18 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935674', 'tblTempUsageDetail_20' ) end [2025-04-18 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935674', 'tblTempVendorCDR_20' ) start [2025-04-18 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935674', 'tblTempVendorCDR_20' ) end [2025-04-18 12:43:18] Production.INFO: ProcessCDR(1,14935674,1,1,2) [2025-04-18 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935674', 'tblTempUsageDetail_20' ) start [2025-04-18 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935674', 'tblTempUsageDetail_20' ) end [2025-04-18 12:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:43:23] Production.INFO: ==10383== Releasing lock... [2025-04-18 12:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:43:23] Production.INFO: 40 MB #Memory Used# [2025-04-18 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:44:05 [end_date_ymd] => 2025-04-18 12:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:44:05' and `end` < '2025-04-18 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-04-18 12:44:18] Production.INFO: count ==1571 [2025-04-18 12:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:44:05 - End Time 2025-04-18 12:44:05 [2025-04-18 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935679', 'tblTempUsageDetail_20' ) start [2025-04-18 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935679', 'tblTempUsageDetail_20' ) end [2025-04-18 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935679', 'tblTempVendorCDR_20' ) start [2025-04-18 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935679', 'tblTempVendorCDR_20' ) end [2025-04-18 12:44:19] Production.INFO: ProcessCDR(1,14935679,1,1,2) [2025-04-18 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935679', 'tblTempUsageDetail_20' ) start [2025-04-18 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935679', 'tblTempUsageDetail_20' ) end [2025-04-18 12:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:44:23] Production.INFO: ==10458== Releasing lock... [2025-04-18 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:44:23] Production.INFO: 40 MB #Memory Used# [2025-04-18 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:45:05 [end_date_ymd] => 2025-04-18 12:45:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:45:05' and `end` < '2025-04-18 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-04-18 12:45:18] Production.INFO: count ==1576 [2025-04-18 12:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:45:05 - End Time 2025-04-18 12:45:05 [2025-04-18 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935684', 'tblTempUsageDetail_20' ) start [2025-04-18 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935684', 'tblTempUsageDetail_20' ) end [2025-04-18 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935684', 'tblTempVendorCDR_20' ) start [2025-04-18 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935684', 'tblTempVendorCDR_20' ) end [2025-04-18 12:45:18] Production.INFO: ProcessCDR(1,14935684,1,1,2) [2025-04-18 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935684', 'tblTempUsageDetail_20' ) start [2025-04-18 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935684', 'tblTempUsageDetail_20' ) end [2025-04-18 12:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:45:22] Production.INFO: ==10532== Releasing lock... [2025-04-18 12:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:45:22] Production.INFO: 40 MB #Memory Used# [2025-04-18 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:46:05 [end_date_ymd] => 2025-04-18 12:46:05 [RateCDR] => 1 ) [2025-04-18 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:46:05' and `end` < '2025-04-18 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:46:18] Production.INFO: count ==1581 [2025-04-18 12:46:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:46:05 - End Time 2025-04-18 12:46:05 [2025-04-18 12:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935689', 'tblTempUsageDetail_20' ) start [2025-04-18 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935689', 'tblTempUsageDetail_20' ) end [2025-04-18 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935689', 'tblTempVendorCDR_20' ) start [2025-04-18 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935689', 'tblTempVendorCDR_20' ) end [2025-04-18 12:46:19] Production.INFO: ProcessCDR(1,14935689,1,1,2) [2025-04-18 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935689', 'tblTempUsageDetail_20' ) start [2025-04-18 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935689', 'tblTempUsageDetail_20' ) end [2025-04-18 12:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:46:22] Production.INFO: ==10604== Releasing lock... [2025-04-18 12:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:46:22] Production.INFO: 40 MB #Memory Used# [2025-04-18 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:47:05 [end_date_ymd] => 2025-04-18 12:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:47:05' and `end` < '2025-04-18 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-04-18 12:47:18] Production.INFO: count ==1584 [2025-04-18 12:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:47:05 - End Time 2025-04-18 12:47:05 [2025-04-18 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935694', 'tblTempUsageDetail_20' ) start [2025-04-18 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935694', 'tblTempUsageDetail_20' ) end [2025-04-18 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935694', 'tblTempVendorCDR_20' ) start [2025-04-18 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935694', 'tblTempVendorCDR_20' ) end [2025-04-18 12:47:18] Production.INFO: ProcessCDR(1,14935694,1,1,2) [2025-04-18 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935694', 'tblTempUsageDetail_20' ) start [2025-04-18 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935694', 'tblTempUsageDetail_20' ) end [2025-04-18 12:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:47:21] Production.INFO: ==10677== Releasing lock... [2025-04-18 12:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:47:21] Production.INFO: 40 MB #Memory Used# [2025-04-18 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:48:05 [end_date_ymd] => 2025-04-18 12:48:05 [RateCDR] => 1 ) [2025-04-18 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:48:05' and `end` < '2025-04-18 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-04-18 12:48:18] Production.INFO: count ==1586 [2025-04-18 12:48:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:48:05 - End Time 2025-04-18 12:48:05 [2025-04-18 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935699', 'tblTempUsageDetail_20' ) start [2025-04-18 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935699', 'tblTempUsageDetail_20' ) end [2025-04-18 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935699', 'tblTempVendorCDR_20' ) start [2025-04-18 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935699', 'tblTempVendorCDR_20' ) end [2025-04-18 12:48:18] Production.INFO: ProcessCDR(1,14935699,1,1,2) [2025-04-18 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935699', 'tblTempUsageDetail_20' ) start [2025-04-18 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935699', 'tblTempUsageDetail_20' ) end [2025-04-18 12:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:48:22] Production.INFO: ==10795== Releasing lock... [2025-04-18 12:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:48:22] Production.INFO: 40 MB #Memory Used# [2025-04-18 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:49:06 [end_date_ymd] => 2025-04-18 12:49:06 [RateCDR] => 1 ) [2025-04-18 12:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:49:06' and `end` < '2025-04-18 12:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:49:19] Production.INFO: count ==1586 [2025-04-18 12:49:20] Production.ERROR: pbx CDR StartTime 2025-04-18 09:49:06 - End Time 2025-04-18 12:49:06 [2025-04-18 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935704', 'tblTempUsageDetail_20' ) start [2025-04-18 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935704', 'tblTempUsageDetail_20' ) end [2025-04-18 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935704', 'tblTempVendorCDR_20' ) start [2025-04-18 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935704', 'tblTempVendorCDR_20' ) end [2025-04-18 12:49:20] Production.INFO: ProcessCDR(1,14935704,1,1,2) [2025-04-18 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935704', 'tblTempUsageDetail_20' ) start [2025-04-18 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935704', 'tblTempUsageDetail_20' ) end [2025-04-18 12:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:49:23] Production.INFO: ==10868== Releasing lock... [2025-04-18 12:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:49:23] Production.INFO: 40 MB #Memory Used# [2025-04-18 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:50:06 [end_date_ymd] => 2025-04-18 12:50:06 [RateCDR] => 1 ) [2025-04-18 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:50:06' and `end` < '2025-04-18 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:50:18] Production.INFO: count ==1590 [2025-04-18 12:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:50:06 - End Time 2025-04-18 12:50:06 [2025-04-18 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935710', 'tblTempUsageDetail_20' ) start [2025-04-18 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935710', 'tblTempUsageDetail_20' ) end [2025-04-18 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935710', 'tblTempVendorCDR_20' ) start [2025-04-18 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935710', 'tblTempVendorCDR_20' ) end [2025-04-18 12:50:19] Production.INFO: ProcessCDR(1,14935710,1,1,2) [2025-04-18 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935710', 'tblTempUsageDetail_20' ) start [2025-04-18 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935710', 'tblTempUsageDetail_20' ) end [2025-04-18 12:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:50:22] Production.INFO: ==10939== Releasing lock... [2025-04-18 12:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:50:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:51:05 [end_date_ymd] => 2025-04-18 12:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:51:05' and `end` < '2025-04-18 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-04-18 12:51:18] Production.INFO: count ==1612 [2025-04-18 12:51:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:51:05 - End Time 2025-04-18 12:51:05 [2025-04-18 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935715', 'tblTempUsageDetail_20' ) start [2025-04-18 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935715', 'tblTempUsageDetail_20' ) end [2025-04-18 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935715', 'tblTempVendorCDR_20' ) start [2025-04-18 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935715', 'tblTempVendorCDR_20' ) end [2025-04-18 12:51:19] Production.INFO: ProcessCDR(1,14935715,1,1,2) [2025-04-18 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935715', 'tblTempUsageDetail_20' ) start [2025-04-18 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935715', 'tblTempUsageDetail_20' ) end [2025-04-18 12:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:51:24] Production.INFO: ==11020== Releasing lock... [2025-04-18 12:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:51:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:52:05 [end_date_ymd] => 2025-04-18 12:52:05 [RateCDR] => 1 ) [2025-04-18 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:52:05' and `end` < '2025-04-18 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 12:52:18] Production.INFO: count ==1613 [2025-04-18 12:52:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:52:05 - End Time 2025-04-18 12:52:05 [2025-04-18 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935720', 'tblTempUsageDetail_20' ) start [2025-04-18 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935720', 'tblTempUsageDetail_20' ) end [2025-04-18 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935720', 'tblTempVendorCDR_20' ) start [2025-04-18 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935720', 'tblTempVendorCDR_20' ) end [2025-04-18 12:52:19] Production.INFO: ProcessCDR(1,14935720,1,1,2) [2025-04-18 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935720', 'tblTempUsageDetail_20' ) start [2025-04-18 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935720', 'tblTempUsageDetail_20' ) end [2025-04-18 12:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:52:23] Production.INFO: ==11095== Releasing lock... [2025-04-18 12:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:52:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:53:05 [end_date_ymd] => 2025-04-18 12:53:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:53:05' and `end` < '2025-04-18 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-04-18 12:53:18] Production.INFO: count ==1626 [2025-04-18 12:53:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:53:05 - End Time 2025-04-18 12:53:05 [2025-04-18 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935725', 'tblTempUsageDetail_20' ) start [2025-04-18 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935725', 'tblTempUsageDetail_20' ) end [2025-04-18 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935725', 'tblTempVendorCDR_20' ) start [2025-04-18 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935725', 'tblTempVendorCDR_20' ) end [2025-04-18 12:53:19] Production.INFO: ProcessCDR(1,14935725,1,1,2) [2025-04-18 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935725', 'tblTempUsageDetail_20' ) start [2025-04-18 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935725', 'tblTempUsageDetail_20' ) end [2025-04-18 12:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:53:24] Production.INFO: ==11167== Releasing lock... [2025-04-18 12:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:53:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:54:05 [end_date_ymd] => 2025-04-18 12:54:05 [RateCDR] => 1 ) [2025-04-18 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 09:54:05' and `end` < '2025-04-18 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-04-18 12:54:18] Production.INFO: count ==1641 [2025-04-18 12:54:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:54:05 - End Time 2025-04-18 12:54:05 [2025-04-18 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935730', 'tblTempUsageDetail_20' ) start [2025-04-18 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935730', 'tblTempUsageDetail_20' ) end [2025-04-18 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935730', 'tblTempVendorCDR_20' ) start [2025-04-18 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935730', 'tblTempVendorCDR_20' ) end [2025-04-18 12:54:18] Production.INFO: ProcessCDR(1,14935730,1,1,2) [2025-04-18 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935730', 'tblTempUsageDetail_20' ) start [2025-04-18 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935730', 'tblTempUsageDetail_20' ) end [2025-04-18 12:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:54:22] Production.INFO: ==11242== Releasing lock... [2025-04-18 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:54:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:55:05 [end_date_ymd] => 2025-04-18 12:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:55:05' and `end` < '2025-04-18 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-04-18 12:55:18] Production.INFO: count ==1645 [2025-04-18 12:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 09:55:05 - End Time 2025-04-18 12:55:05 [2025-04-18 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935735', 'tblTempUsageDetail_20' ) start [2025-04-18 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935735', 'tblTempUsageDetail_20' ) end [2025-04-18 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935735', 'tblTempVendorCDR_20' ) start [2025-04-18 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935735', 'tblTempVendorCDR_20' ) end [2025-04-18 12:55:19] Production.INFO: ProcessCDR(1,14935735,1,1,2) [2025-04-18 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935735', 'tblTempUsageDetail_20' ) start [2025-04-18 12:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935735', 'tblTempUsageDetail_20' ) end [2025-04-18 12:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:55:24] Production.INFO: ==11316== Releasing lock... [2025-04-18 12:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:55:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:56:05 [end_date_ymd] => 2025-04-18 12:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:56:05' and `end` < '2025-04-18 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-04-18 12:56:18] Production.INFO: count ==1640 [2025-04-18 12:56:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:56:05 - End Time 2025-04-18 12:56:05 [2025-04-18 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935740', 'tblTempUsageDetail_20' ) start [2025-04-18 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935740', 'tblTempUsageDetail_20' ) end [2025-04-18 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935740', 'tblTempVendorCDR_20' ) start [2025-04-18 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935740', 'tblTempVendorCDR_20' ) end [2025-04-18 12:56:18] Production.INFO: ProcessCDR(1,14935740,1,1,2) [2025-04-18 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935740', 'tblTempUsageDetail_20' ) start [2025-04-18 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935740', 'tblTempUsageDetail_20' ) end [2025-04-18 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:56:22] Production.INFO: ==11397== Releasing lock... [2025-04-18 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:56:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:57:05 [end_date_ymd] => 2025-04-18 12:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:57:05' and `end` < '2025-04-18 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-04-18 12:57:18] Production.INFO: count ==1640 [2025-04-18 12:57:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:57:05 - End Time 2025-04-18 12:57:05 [2025-04-18 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935745', 'tblTempUsageDetail_20' ) start [2025-04-18 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935745', 'tblTempUsageDetail_20' ) end [2025-04-18 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935745', 'tblTempVendorCDR_20' ) start [2025-04-18 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935745', 'tblTempVendorCDR_20' ) end [2025-04-18 12:57:19] Production.INFO: ProcessCDR(1,14935745,1,1,2) [2025-04-18 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935745', 'tblTempUsageDetail_20' ) start [2025-04-18 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935745', 'tblTempUsageDetail_20' ) end [2025-04-18 12:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:57:24] Production.INFO: ==11468== Releasing lock... [2025-04-18 12:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:57:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:58:05 [end_date_ymd] => 2025-04-18 12:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:58:05' and `end` < '2025-04-18 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-04-18 12:58:18] Production.INFO: count ==1646 [2025-04-18 12:58:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:58:05 - End Time 2025-04-18 12:58:05 [2025-04-18 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935750', 'tblTempUsageDetail_20' ) start [2025-04-18 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935750', 'tblTempUsageDetail_20' ) end [2025-04-18 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935750', 'tblTempVendorCDR_20' ) start [2025-04-18 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935750', 'tblTempVendorCDR_20' ) end [2025-04-18 12:58:18] Production.INFO: ProcessCDR(1,14935750,1,1,2) [2025-04-18 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935750', 'tblTempUsageDetail_20' ) start [2025-04-18 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935750', 'tblTempUsageDetail_20' ) end [2025-04-18 12:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:58:22] Production.INFO: ==11541== Releasing lock... [2025-04-18 12:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:58:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 09:59:05 [end_date_ymd] => 2025-04-18 12:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 09:59:05' and `end` < '2025-04-18 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-04-18 12:59:18] Production.INFO: count ==1647 [2025-04-18 12:59:18] Production.ERROR: pbx CDR StartTime 2025-04-18 09:59:05 - End Time 2025-04-18 12:59:05 [2025-04-18 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935755', 'tblTempUsageDetail_20' ) start [2025-04-18 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935755', 'tblTempUsageDetail_20' ) end [2025-04-18 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935755', 'tblTempVendorCDR_20' ) start [2025-04-18 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935755', 'tblTempVendorCDR_20' ) end [2025-04-18 12:59:19] Production.INFO: ProcessCDR(1,14935755,1,1,2) [2025-04-18 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 12:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935755', 'tblTempUsageDetail_20' ) start [2025-04-18 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935755', 'tblTempUsageDetail_20' ) end [2025-04-18 12:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 12:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 12:59:23] Production.INFO: ==11611== Releasing lock... [2025-04-18 12:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 12:59:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:00:06 [end_date_ymd] => 2025-04-18 13:00:06 [RateCDR] => 1 ) [2025-04-18 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:00:06' and `end` < '2025-04-18 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:00:19] Production.INFO: count ==1640 [2025-04-18 13:00:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:00:06 - End Time 2025-04-18 13:00:06 [2025-04-18 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935760', 'tblTempUsageDetail_20' ) start [2025-04-18 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935760', 'tblTempUsageDetail_20' ) end [2025-04-18 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935760', 'tblTempVendorCDR_20' ) start [2025-04-18 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935760', 'tblTempVendorCDR_20' ) end [2025-04-18 13:00:20] Production.INFO: ProcessCDR(1,14935760,1,1,2) [2025-04-18 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935760', 'tblTempUsageDetail_20' ) start [2025-04-18 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935760', 'tblTempUsageDetail_20' ) end [2025-04-18 13:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:00:24] Production.INFO: ==11691== Releasing lock... [2025-04-18 13:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:00:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:01:05 [end_date_ymd] => 2025-04-18 13:01:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:01:05' and `end` < '2025-04-18 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-04-18 13:01:18] Production.INFO: count ==1640 [2025-04-18 13:01:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:01:05 - End Time 2025-04-18 13:01:05 [2025-04-18 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935766', 'tblTempUsageDetail_20' ) start [2025-04-18 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935766', 'tblTempUsageDetail_20' ) end [2025-04-18 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935766', 'tblTempVendorCDR_20' ) start [2025-04-18 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935766', 'tblTempVendorCDR_20' ) end [2025-04-18 13:01:19] Production.INFO: ProcessCDR(1,14935766,1,1,2) [2025-04-18 13:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935766', 'tblTempUsageDetail_20' ) start [2025-04-18 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935766', 'tblTempUsageDetail_20' ) end [2025-04-18 13:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:01:23] Production.INFO: ==11784== Releasing lock... [2025-04-18 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:01:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:02:05 [end_date_ymd] => 2025-04-18 13:02:05 [RateCDR] => 1 ) [2025-04-18 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:02:05' and `end` < '2025-04-18 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:02:18] Production.INFO: count ==1647 [2025-04-18 13:02:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:02:05 - End Time 2025-04-18 13:02:05 [2025-04-18 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935771', 'tblTempUsageDetail_20' ) start [2025-04-18 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935771', 'tblTempUsageDetail_20' ) end [2025-04-18 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935771', 'tblTempVendorCDR_20' ) start [2025-04-18 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935771', 'tblTempVendorCDR_20' ) end [2025-04-18 13:02:19] Production.INFO: ProcessCDR(1,14935771,1,1,2) [2025-04-18 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935771', 'tblTempUsageDetail_20' ) start [2025-04-18 13:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935771', 'tblTempUsageDetail_20' ) end [2025-04-18 13:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:02:22] Production.INFO: ==11858== Releasing lock... [2025-04-18 13:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:02:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:03:05 [end_date_ymd] => 2025-04-18 13:03:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:03:05' and `end` < '2025-04-18 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-04-18 13:03:18] Production.INFO: count ==1648 [2025-04-18 13:03:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:03:05 - End Time 2025-04-18 13:03:05 [2025-04-18 13:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935776', 'tblTempUsageDetail_20' ) start [2025-04-18 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935776', 'tblTempUsageDetail_20' ) end [2025-04-18 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935776', 'tblTempVendorCDR_20' ) start [2025-04-18 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935776', 'tblTempVendorCDR_20' ) end [2025-04-18 13:03:19] Production.INFO: ProcessCDR(1,14935776,1,1,2) [2025-04-18 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935776', 'tblTempUsageDetail_20' ) start [2025-04-18 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935776', 'tblTempUsageDetail_20' ) end [2025-04-18 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:03:24] Production.INFO: ==11967== Releasing lock... [2025-04-18 13:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:03:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:04:05 [end_date_ymd] => 2025-04-18 13:04:05 [RateCDR] => 1 ) [2025-04-18 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:04:05' and `end` < '2025-04-18 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:04:18] Production.INFO: count ==1637 [2025-04-18 13:04:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:04:05 - End Time 2025-04-18 13:04:05 [2025-04-18 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935781', 'tblTempUsageDetail_20' ) start [2025-04-18 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935781', 'tblTempUsageDetail_20' ) end [2025-04-18 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935781', 'tblTempVendorCDR_20' ) start [2025-04-18 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935781', 'tblTempVendorCDR_20' ) end [2025-04-18 13:04:19] Production.INFO: ProcessCDR(1,14935781,1,1,2) [2025-04-18 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935781', 'tblTempUsageDetail_20' ) start [2025-04-18 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935781', 'tblTempUsageDetail_20' ) end [2025-04-18 13:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:04:24] Production.INFO: ==12040== Releasing lock... [2025-04-18 13:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:04:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:05:05 [end_date_ymd] => 2025-04-18 13:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:05:05' and `end` < '2025-04-18 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-04-18 13:05:18] Production.INFO: count ==1636 [2025-04-18 13:05:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:05:05 - End Time 2025-04-18 13:05:05 [2025-04-18 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935786', 'tblTempUsageDetail_20' ) start [2025-04-18 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935786', 'tblTempUsageDetail_20' ) end [2025-04-18 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935786', 'tblTempVendorCDR_20' ) start [2025-04-18 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935786', 'tblTempVendorCDR_20' ) end [2025-04-18 13:05:18] Production.INFO: ProcessCDR(1,14935786,1,1,2) [2025-04-18 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935786', 'tblTempUsageDetail_20' ) start [2025-04-18 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935786', 'tblTempUsageDetail_20' ) end [2025-04-18 13:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:05:23] Production.INFO: ==12114== Releasing lock... [2025-04-18 13:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:05:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:06:05 [end_date_ymd] => 2025-04-18 13:06:05 [RateCDR] => 1 ) [2025-04-18 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:06:05' and `end` < '2025-04-18 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:06:18] Production.INFO: count ==1641 [2025-04-18 13:06:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:06:05 - End Time 2025-04-18 13:06:05 [2025-04-18 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935791', 'tblTempUsageDetail_20' ) start [2025-04-18 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935791', 'tblTempUsageDetail_20' ) end [2025-04-18 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935791', 'tblTempVendorCDR_20' ) start [2025-04-18 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935791', 'tblTempVendorCDR_20' ) end [2025-04-18 13:06:19] Production.INFO: ProcessCDR(1,14935791,1,1,2) [2025-04-18 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935791', 'tblTempUsageDetail_20' ) start [2025-04-18 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935791', 'tblTempUsageDetail_20' ) end [2025-04-18 13:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:06:23] Production.INFO: ==12190== Releasing lock... [2025-04-18 13:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:06:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:07:05 [end_date_ymd] => 2025-04-18 13:07:05 [RateCDR] => 1 ) [2025-04-18 13: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-04-18 10:07:05' and `end` < '2025-04-18 13: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-04-18 13:07:18] Production.INFO: count ==1673 [2025-04-18 13:07:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:07:05 - End Time 2025-04-18 13:07:05 [2025-04-18 13:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935796', 'tblTempUsageDetail_20' ) start [2025-04-18 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935796', 'tblTempUsageDetail_20' ) end [2025-04-18 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935796', 'tblTempVendorCDR_20' ) start [2025-04-18 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935796', 'tblTempVendorCDR_20' ) end [2025-04-18 13:07:19] Production.INFO: ProcessCDR(1,14935796,1,1,2) [2025-04-18 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935796', 'tblTempUsageDetail_20' ) start [2025-04-18 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935796', 'tblTempUsageDetail_20' ) end [2025-04-18 13:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:07:24] Production.INFO: ==12266== Releasing lock... [2025-04-18 13:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:07:24] Production.INFO: 41 MB #Memory Used# [2025-04-18 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:08:05 [end_date_ymd] => 2025-04-18 13:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:08:05' and `end` < '2025-04-18 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-04-18 13:08:18] Production.INFO: count ==1676 [2025-04-18 13:08:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:08:05 - End Time 2025-04-18 13:08:05 [2025-04-18 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935801', 'tblTempUsageDetail_20' ) start [2025-04-18 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935801', 'tblTempUsageDetail_20' ) end [2025-04-18 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935801', 'tblTempVendorCDR_20' ) start [2025-04-18 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935801', 'tblTempVendorCDR_20' ) end [2025-04-18 13:08:19] Production.INFO: ProcessCDR(1,14935801,1,1,2) [2025-04-18 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935801', 'tblTempUsageDetail_20' ) start [2025-04-18 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935801', 'tblTempUsageDetail_20' ) end [2025-04-18 13:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:08:24] Production.INFO: ==12342== Releasing lock... [2025-04-18 13:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:08:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:09:05 [end_date_ymd] => 2025-04-18 13:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:09:05' and `end` < '2025-04-18 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-04-18 13:09:18] Production.INFO: count ==1685 [2025-04-18 13:09:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:09:05 - End Time 2025-04-18 13:09:05 [2025-04-18 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935806', 'tblTempUsageDetail_20' ) start [2025-04-18 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935806', 'tblTempUsageDetail_20' ) end [2025-04-18 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935806', 'tblTempVendorCDR_20' ) start [2025-04-18 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935806', 'tblTempVendorCDR_20' ) end [2025-04-18 13:09:19] Production.INFO: ProcessCDR(1,14935806,1,1,2) [2025-04-18 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935806', 'tblTempUsageDetail_20' ) start [2025-04-18 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935806', 'tblTempUsageDetail_20' ) end [2025-04-18 13:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:09:24] Production.INFO: ==12414== Releasing lock... [2025-04-18 13:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:09:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:10:05 [end_date_ymd] => 2025-04-18 13:10:05 [RateCDR] => 1 ) [2025-04-18 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:10:05' and `end` < '2025-04-18 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:10:18] Production.INFO: count ==1698 [2025-04-18 13:10:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:10:05 - End Time 2025-04-18 13:10:05 [2025-04-18 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935812', 'tblTempUsageDetail_20' ) start [2025-04-18 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935812', 'tblTempUsageDetail_20' ) end [2025-04-18 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935812', 'tblTempVendorCDR_20' ) start [2025-04-18 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935812', 'tblTempVendorCDR_20' ) end [2025-04-18 13:10:19] Production.INFO: ProcessCDR(1,14935812,1,1,2) [2025-04-18 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935812', 'tblTempUsageDetail_20' ) start [2025-04-18 13:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935812', 'tblTempUsageDetail_20' ) end [2025-04-18 13:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:10:24] Production.INFO: ==12494== Releasing lock... [2025-04-18 13:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:10:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:11:05 [end_date_ymd] => 2025-04-18 13:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:11:05' and `end` < '2025-04-18 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-04-18 13:11:19] Production.INFO: count ==1746 [2025-04-18 13:11:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:11:05 - End Time 2025-04-18 13:11:05 [2025-04-18 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935817', 'tblTempUsageDetail_20' ) start [2025-04-18 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935817', 'tblTempUsageDetail_20' ) end [2025-04-18 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935817', 'tblTempVendorCDR_20' ) start [2025-04-18 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935817', 'tblTempVendorCDR_20' ) end [2025-04-18 13:11:19] Production.INFO: ProcessCDR(1,14935817,1,1,2) [2025-04-18 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935817', 'tblTempUsageDetail_20' ) start [2025-04-18 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935817', 'tblTempUsageDetail_20' ) end [2025-04-18 13:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:11:24] Production.INFO: ==12568== Releasing lock... [2025-04-18 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:11:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 13:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:12:04 [end_date_ymd] => 2025-04-18 13:12:04 [RateCDR] => 1 ) [2025-04-18 13:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:12:04' and `end` < '2025-04-18 13:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:12:17] Production.INFO: count ==1749 [2025-04-18 13:12:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:12:04 - End Time 2025-04-18 13:12:04 [2025-04-18 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935822', 'tblTempUsageDetail_20' ) start [2025-04-18 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935822', 'tblTempUsageDetail_20' ) end [2025-04-18 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935822', 'tblTempVendorCDR_20' ) start [2025-04-18 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935822', 'tblTempVendorCDR_20' ) end [2025-04-18 13:12:18] Production.INFO: ProcessCDR(1,14935822,1,1,2) [2025-04-18 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935822', 'tblTempUsageDetail_20' ) start [2025-04-18 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935822', 'tblTempUsageDetail_20' ) end [2025-04-18 13:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:12:23] Production.INFO: ==12643== Releasing lock... [2025-04-18 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:12:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:13:05 [end_date_ymd] => 2025-04-18 13:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:13:05' and `end` < '2025-04-18 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-04-18 13:13:18] Production.INFO: count ==1740 [2025-04-18 13:13:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:13:05 - End Time 2025-04-18 13:13:05 [2025-04-18 13:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935827', 'tblTempUsageDetail_20' ) start [2025-04-18 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935827', 'tblTempUsageDetail_20' ) end [2025-04-18 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935827', 'tblTempVendorCDR_20' ) start [2025-04-18 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935827', 'tblTempVendorCDR_20' ) end [2025-04-18 13:13:19] Production.INFO: ProcessCDR(1,14935827,1,1,2) [2025-04-18 13:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935827', 'tblTempUsageDetail_20' ) start [2025-04-18 13:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935827', 'tblTempUsageDetail_20' ) end [2025-04-18 13:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:13:24] Production.INFO: ==12716== Releasing lock... [2025-04-18 13:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:13:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:14:06 [end_date_ymd] => 2025-04-18 13:14:06 [RateCDR] => 1 ) [2025-04-18 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:14:06' and `end` < '2025-04-18 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:14:19] Production.INFO: count ==1778 [2025-04-18 13:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:14:06 - End Time 2025-04-18 13:14:06 [2025-04-18 13:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935832', 'tblTempUsageDetail_20' ) start [2025-04-18 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935832', 'tblTempUsageDetail_20' ) end [2025-04-18 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935832', 'tblTempVendorCDR_20' ) start [2025-04-18 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935832', 'tblTempVendorCDR_20' ) end [2025-04-18 13:14:19] Production.INFO: ProcessCDR(1,14935832,1,1,2) [2025-04-18 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935832', 'tblTempUsageDetail_20' ) start [2025-04-18 13:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935832', 'tblTempUsageDetail_20' ) end [2025-04-18 13:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:14:24] Production.INFO: ==12790== Releasing lock... [2025-04-18 13:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:14:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:15:05 [end_date_ymd] => 2025-04-18 13:15:05 [RateCDR] => 1 ) [2025-04-18 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:15:05' and `end` < '2025-04-18 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:15:18] Production.INFO: count ==1782 [2025-04-18 13:15:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:15:05 - End Time 2025-04-18 13:15:05 [2025-04-18 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935837', 'tblTempUsageDetail_20' ) start [2025-04-18 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935837', 'tblTempUsageDetail_20' ) end [2025-04-18 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935837', 'tblTempVendorCDR_20' ) start [2025-04-18 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935837', 'tblTempVendorCDR_20' ) end [2025-04-18 13:15:19] Production.INFO: ProcessCDR(1,14935837,1,1,2) [2025-04-18 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935837', 'tblTempUsageDetail_20' ) start [2025-04-18 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935837', 'tblTempUsageDetail_20' ) end [2025-04-18 13:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:15:24] Production.INFO: ==12861== Releasing lock... [2025-04-18 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:15:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:16:05 [end_date_ymd] => 2025-04-18 13:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:16:05' and `end` < '2025-04-18 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-04-18 13:16:18] Production.INFO: count ==1782 [2025-04-18 13:16:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:16:05 - End Time 2025-04-18 13:16:05 [2025-04-18 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935842', 'tblTempUsageDetail_20' ) start [2025-04-18 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935842', 'tblTempUsageDetail_20' ) end [2025-04-18 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935842', 'tblTempVendorCDR_20' ) start [2025-04-18 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935842', 'tblTempVendorCDR_20' ) end [2025-04-18 13:16:19] Production.INFO: ProcessCDR(1,14935842,1,1,2) [2025-04-18 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935842', 'tblTempUsageDetail_20' ) start [2025-04-18 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935842', 'tblTempUsageDetail_20' ) end [2025-04-18 13:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:16:22] Production.INFO: ==12934== Releasing lock... [2025-04-18 13:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:16:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:17:05 [end_date_ymd] => 2025-04-18 13:17:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:17:05' and `end` < '2025-04-18 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-04-18 13:17:18] Production.INFO: count ==1781 [2025-04-18 13:17:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:17:05 - End Time 2025-04-18 13:17:05 [2025-04-18 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935847', 'tblTempUsageDetail_20' ) start [2025-04-18 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935847', 'tblTempUsageDetail_20' ) end [2025-04-18 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935847', 'tblTempVendorCDR_20' ) start [2025-04-18 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935847', 'tblTempVendorCDR_20' ) end [2025-04-18 13:17:19] Production.INFO: ProcessCDR(1,14935847,1,1,2) [2025-04-18 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935847', 'tblTempUsageDetail_20' ) start [2025-04-18 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935847', 'tblTempUsageDetail_20' ) end [2025-04-18 13:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:17:22] Production.INFO: ==13004== Releasing lock... [2025-04-18 13:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:17:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:18:05 [end_date_ymd] => 2025-04-18 13:18:05 [RateCDR] => 1 ) [2025-04-18 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:18:05' and `end` < '2025-04-18 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:18:19] Production.INFO: count ==1816 [2025-04-18 13:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:18:05 - End Time 2025-04-18 13:18:05 [2025-04-18 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935852', 'tblTempUsageDetail_20' ) start [2025-04-18 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935852', 'tblTempUsageDetail_20' ) end [2025-04-18 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935852', 'tblTempVendorCDR_20' ) start [2025-04-18 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935852', 'tblTempVendorCDR_20' ) end [2025-04-18 13:18:19] Production.INFO: ProcessCDR(1,14935852,1,1,2) [2025-04-18 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935852', 'tblTempUsageDetail_20' ) start [2025-04-18 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935852', 'tblTempUsageDetail_20' ) end [2025-04-18 13:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:18:24] Production.INFO: ==13089== Releasing lock... [2025-04-18 13:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:18:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-18 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:19:05 [end_date_ymd] => 2025-04-18 13:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:19:05' and `end` < '2025-04-18 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-04-18 13:19:18] Production.INFO: count ==1833 [2025-04-18 13:19:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:19:05 - End Time 2025-04-18 13:19:05 [2025-04-18 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935857', 'tblTempUsageDetail_20' ) start [2025-04-18 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935857', 'tblTempUsageDetail_20' ) end [2025-04-18 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935857', 'tblTempVendorCDR_20' ) start [2025-04-18 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935857', 'tblTempVendorCDR_20' ) end [2025-04-18 13:19:18] Production.INFO: ProcessCDR(1,14935857,1,1,2) [2025-04-18 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935857', 'tblTempUsageDetail_20' ) start [2025-04-18 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935857', 'tblTempUsageDetail_20' ) end [2025-04-18 13:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:19:23] Production.INFO: ==13200== Releasing lock... [2025-04-18 13:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:19:23] Production.INFO: 42 MB #Memory Used# [2025-04-18 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:20:06 [end_date_ymd] => 2025-04-18 13:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:20:06' and `end` < '2025-04-18 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-04-18 13:20:19] Production.INFO: count ==1837 [2025-04-18 13:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:20:06 - End Time 2025-04-18 13:20:06 [2025-04-18 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935863', 'tblTempUsageDetail_20' ) start [2025-04-18 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935863', 'tblTempUsageDetail_20' ) end [2025-04-18 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935863', 'tblTempVendorCDR_20' ) start [2025-04-18 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935863', 'tblTempVendorCDR_20' ) end [2025-04-18 13:20:19] Production.INFO: ProcessCDR(1,14935863,1,1,2) [2025-04-18 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935863', 'tblTempUsageDetail_20' ) start [2025-04-18 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935863', 'tblTempUsageDetail_20' ) end [2025-04-18 13:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:20:24] Production.INFO: ==13276== Releasing lock... [2025-04-18 13:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:20:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:21:05 [end_date_ymd] => 2025-04-18 13:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:21:05' and `end` < '2025-04-18 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-04-18 13:21:19] Production.INFO: count ==1882 [2025-04-18 13:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:21:05 - End Time 2025-04-18 13:21:05 [2025-04-18 13:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935868', 'tblTempUsageDetail_20' ) start [2025-04-18 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935868', 'tblTempUsageDetail_20' ) end [2025-04-18 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935868', 'tblTempVendorCDR_20' ) start [2025-04-18 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935868', 'tblTempVendorCDR_20' ) end [2025-04-18 13:21:19] Production.INFO: ProcessCDR(1,14935868,1,1,2) [2025-04-18 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935868', 'tblTempUsageDetail_20' ) start [2025-04-18 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935868', 'tblTempUsageDetail_20' ) end [2025-04-18 13:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:21:24] Production.INFO: ==13352== Releasing lock... [2025-04-18 13:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:21:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:22:05 [end_date_ymd] => 2025-04-18 13:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:22:05' and `end` < '2025-04-18 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-04-18 13:22:18] Production.INFO: count ==1888 [2025-04-18 13:22:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:22:05 - End Time 2025-04-18 13:22:05 [2025-04-18 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935873', 'tblTempUsageDetail_20' ) start [2025-04-18 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935873', 'tblTempUsageDetail_20' ) end [2025-04-18 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935873', 'tblTempVendorCDR_20' ) start [2025-04-18 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935873', 'tblTempVendorCDR_20' ) end [2025-04-18 13:22:19] Production.INFO: ProcessCDR(1,14935873,1,1,2) [2025-04-18 13:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935873', 'tblTempUsageDetail_20' ) start [2025-04-18 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935873', 'tblTempUsageDetail_20' ) end [2025-04-18 13:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:22:23] Production.INFO: ==13426== Releasing lock... [2025-04-18 13:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:22:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:23:06 [end_date_ymd] => 2025-04-18 13:23:06 [RateCDR] => 1 ) [2025-04-18 13: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-04-18 10:23:06' and `end` < '2025-04-18 13: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-04-18 13:23:18] Production.INFO: count ==1897 [2025-04-18 13:23:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:23:06 - End Time 2025-04-18 13:23:06 [2025-04-18 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935878', 'tblTempUsageDetail_20' ) start [2025-04-18 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935878', 'tblTempUsageDetail_20' ) end [2025-04-18 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935878', 'tblTempVendorCDR_20' ) start [2025-04-18 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935878', 'tblTempVendorCDR_20' ) end [2025-04-18 13:23:19] Production.INFO: ProcessCDR(1,14935878,1,1,2) [2025-04-18 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935878', 'tblTempUsageDetail_20' ) start [2025-04-18 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935878', 'tblTempUsageDetail_20' ) end [2025-04-18 13:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:23:24] Production.INFO: ==13503== Releasing lock... [2025-04-18 13:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:23:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-18 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:24:05 [end_date_ymd] => 2025-04-18 13:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:24:05' and `end` < '2025-04-18 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-04-18 13:24:18] Production.INFO: count ==1902 [2025-04-18 13:24:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:24:05 - End Time 2025-04-18 13:24:05 [2025-04-18 13:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935883', 'tblTempUsageDetail_20' ) start [2025-04-18 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935883', 'tblTempUsageDetail_20' ) end [2025-04-18 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935883', 'tblTempVendorCDR_20' ) start [2025-04-18 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935883', 'tblTempVendorCDR_20' ) end [2025-04-18 13:24:19] Production.INFO: ProcessCDR(1,14935883,1,1,2) [2025-04-18 13:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935883', 'tblTempUsageDetail_20' ) start [2025-04-18 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935883', 'tblTempUsageDetail_20' ) end [2025-04-18 13:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:24:23] Production.INFO: ==13578== Releasing lock... [2025-04-18 13:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:24:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-18 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:25:05 [end_date_ymd] => 2025-04-18 13:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:25:05' and `end` < '2025-04-18 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-04-18 13:25:18] Production.INFO: count ==1916 [2025-04-18 13:25:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:25:05 - End Time 2025-04-18 13:25:05 [2025-04-18 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935888', 'tblTempUsageDetail_20' ) start [2025-04-18 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935888', 'tblTempUsageDetail_20' ) end [2025-04-18 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935888', 'tblTempVendorCDR_20' ) start [2025-04-18 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935888', 'tblTempVendorCDR_20' ) end [2025-04-18 13:25:19] Production.INFO: ProcessCDR(1,14935888,1,1,2) [2025-04-18 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935888', 'tblTempUsageDetail_20' ) start [2025-04-18 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935888', 'tblTempUsageDetail_20' ) end [2025-04-18 13:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:25:24] Production.INFO: ==13652== Releasing lock... [2025-04-18 13:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:25:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:26:05 [end_date_ymd] => 2025-04-18 13:26:05 [RateCDR] => 1 ) [2025-04-18 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:26:05' and `end` < '2025-04-18 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:26:18] Production.INFO: count ==1914 [2025-04-18 13:26:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:26:05 - End Time 2025-04-18 13:26:05 [2025-04-18 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935893', 'tblTempUsageDetail_20' ) start [2025-04-18 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935893', 'tblTempUsageDetail_20' ) end [2025-04-18 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935893', 'tblTempVendorCDR_20' ) start [2025-04-18 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935893', 'tblTempVendorCDR_20' ) end [2025-04-18 13:26:18] Production.INFO: ProcessCDR(1,14935893,1,1,2) [2025-04-18 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935893', 'tblTempUsageDetail_20' ) start [2025-04-18 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935893', 'tblTempUsageDetail_20' ) end [2025-04-18 13:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:26:23] Production.INFO: ==13727== Releasing lock... [2025-04-18 13:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:26:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:27:05 [end_date_ymd] => 2025-04-18 13:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:27:05' and `end` < '2025-04-18 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-04-18 13:27:18] Production.INFO: count ==1919 [2025-04-18 13:27:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:27:05 - End Time 2025-04-18 13:27:05 [2025-04-18 13:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935898', 'tblTempUsageDetail_20' ) start [2025-04-18 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935898', 'tblTempUsageDetail_20' ) end [2025-04-18 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935898', 'tblTempVendorCDR_20' ) start [2025-04-18 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935898', 'tblTempVendorCDR_20' ) end [2025-04-18 13:27:19] Production.INFO: ProcessCDR(1,14935898,1,1,2) [2025-04-18 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935898', 'tblTempUsageDetail_20' ) start [2025-04-18 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935898', 'tblTempUsageDetail_20' ) end [2025-04-18 13:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:27:24] Production.INFO: ==13800== Releasing lock... [2025-04-18 13:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:27:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:28:05 [end_date_ymd] => 2025-04-18 13:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:28:05' and `end` < '2025-04-18 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-04-18 13:28:18] Production.INFO: count ==1919 [2025-04-18 13:28:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:28:05 - End Time 2025-04-18 13:28:05 [2025-04-18 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935903', 'tblTempUsageDetail_20' ) start [2025-04-18 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935903', 'tblTempUsageDetail_20' ) end [2025-04-18 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935903', 'tblTempVendorCDR_20' ) start [2025-04-18 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935903', 'tblTempVendorCDR_20' ) end [2025-04-18 13:28:19] Production.INFO: ProcessCDR(1,14935903,1,1,2) [2025-04-18 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935903', 'tblTempUsageDetail_20' ) start [2025-04-18 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935903', 'tblTempUsageDetail_20' ) end [2025-04-18 13:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:28:24] Production.INFO: ==13874== Releasing lock... [2025-04-18 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:28:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:29:05 [end_date_ymd] => 2025-04-18 13:29:05 [RateCDR] => 1 ) [2025-04-18 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:29:05' and `end` < '2025-04-18 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:29:18] Production.INFO: count ==1929 [2025-04-18 13:29:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:29:05 - End Time 2025-04-18 13:29:05 [2025-04-18 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935908', 'tblTempUsageDetail_20' ) start [2025-04-18 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935908', 'tblTempUsageDetail_20' ) end [2025-04-18 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935908', 'tblTempVendorCDR_20' ) start [2025-04-18 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935908', 'tblTempVendorCDR_20' ) end [2025-04-18 13:29:19] Production.INFO: ProcessCDR(1,14935908,1,1,2) [2025-04-18 13:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935908', 'tblTempUsageDetail_20' ) start [2025-04-18 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935908', 'tblTempUsageDetail_20' ) end [2025-04-18 13:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:29:24] Production.INFO: ==13966== Releasing lock... [2025-04-18 13:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:29:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:30:06 [end_date_ymd] => 2025-04-18 13:30:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:30:06' and `end` < '2025-04-18 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-04-18 13:30:19] Production.INFO: count ==1942 [2025-04-18 13:30:20] Production.ERROR: pbx CDR StartTime 2025-04-18 10:30:06 - End Time 2025-04-18 13:30:06 [2025-04-18 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935914', 'tblTempUsageDetail_20' ) start [2025-04-18 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935914', 'tblTempUsageDetail_20' ) end [2025-04-18 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935914', 'tblTempVendorCDR_20' ) start [2025-04-18 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935914', 'tblTempVendorCDR_20' ) end [2025-04-18 13:30:20] Production.INFO: ProcessCDR(1,14935914,1,1,2) [2025-04-18 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935914', 'tblTempUsageDetail_20' ) start [2025-04-18 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935914', 'tblTempUsageDetail_20' ) end [2025-04-18 13:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:30:23] Production.INFO: ==14042== Releasing lock... [2025-04-18 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:30:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:31:05 [end_date_ymd] => 2025-04-18 13:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:31:05' and `end` < '2025-04-18 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-04-18 13:31:18] Production.INFO: count ==1998 [2025-04-18 13:31:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:31:05 - End Time 2025-04-18 13:31:05 [2025-04-18 13:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935919', 'tblTempUsageDetail_20' ) start [2025-04-18 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935919', 'tblTempUsageDetail_20' ) end [2025-04-18 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935919', 'tblTempVendorCDR_20' ) start [2025-04-18 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935919', 'tblTempVendorCDR_20' ) end [2025-04-18 13:31:19] Production.INFO: ProcessCDR(1,14935919,1,1,2) [2025-04-18 13:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935919', 'tblTempUsageDetail_20' ) start [2025-04-18 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935919', 'tblTempUsageDetail_20' ) end [2025-04-18 13:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:31:22] Production.INFO: ==14118== Releasing lock... [2025-04-18 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:31:22] Production.INFO: 43 MB #Memory Used# [2025-04-18 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:32:06 [end_date_ymd] => 2025-04-18 13:32:06 [RateCDR] => 1 ) [2025-04-18 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:32:06' and `end` < '2025-04-18 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:32:19] Production.INFO: count ==1997 [2025-04-18 13:32:20] Production.ERROR: pbx CDR StartTime 2025-04-18 10:32:06 - End Time 2025-04-18 13:32:06 [2025-04-18 13:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935924', 'tblTempUsageDetail_20' ) start [2025-04-18 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935924', 'tblTempUsageDetail_20' ) end [2025-04-18 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935924', 'tblTempVendorCDR_20' ) start [2025-04-18 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935924', 'tblTempVendorCDR_20' ) end [2025-04-18 13:32:20] Production.INFO: ProcessCDR(1,14935924,1,1,2) [2025-04-18 13:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935924', 'tblTempUsageDetail_20' ) start [2025-04-18 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935924', 'tblTempUsageDetail_20' ) end [2025-04-18 13:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:32:23] Production.INFO: ==14192== Releasing lock... [2025-04-18 13:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:32:23] Production.INFO: 43 MB #Memory Used# [2025-04-18 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:33:04 [end_date_ymd] => 2025-04-18 13:33:04 [RateCDR] => 1 ) [2025-04-18 13:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:33:04' and `end` < '2025-04-18 13:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:33:18] Production.INFO: count ==2002 [2025-04-18 13:33:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:33:04 - End Time 2025-04-18 13:33:04 [2025-04-18 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935929', 'tblTempUsageDetail_20' ) start [2025-04-18 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935929', 'tblTempUsageDetail_20' ) end [2025-04-18 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935929', 'tblTempVendorCDR_20' ) start [2025-04-18 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935929', 'tblTempVendorCDR_20' ) end [2025-04-18 13:33:19] Production.INFO: ProcessCDR(1,14935929,1,1,2) [2025-04-18 13:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935929', 'tblTempUsageDetail_20' ) start [2025-04-18 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935929', 'tblTempUsageDetail_20' ) end [2025-04-18 13:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:33:24] Production.INFO: ==14262== Releasing lock... [2025-04-18 13:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:33:24] Production.INFO: 43 MB #Memory Used# [2025-04-18 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:34:05 [end_date_ymd] => 2025-04-18 13:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:34:05' and `end` < '2025-04-18 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-04-18 13:34:19] Production.INFO: count ==2001 [2025-04-18 13:34:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:34:05 - End Time 2025-04-18 13:34:05 [2025-04-18 13:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935934', 'tblTempUsageDetail_20' ) start [2025-04-18 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935934', 'tblTempUsageDetail_20' ) end [2025-04-18 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935934', 'tblTempVendorCDR_20' ) start [2025-04-18 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935934', 'tblTempVendorCDR_20' ) end [2025-04-18 13:34:20] Production.INFO: ProcessCDR(1,14935934,1,1,2) [2025-04-18 13:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935934', 'tblTempUsageDetail_20' ) start [2025-04-18 13:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935934', 'tblTempUsageDetail_20' ) end [2025-04-18 13:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:34:24] Production.INFO: ==14380== Releasing lock... [2025-04-18 13:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:34:24] Production.INFO: 43 MB #Memory Used# [2025-04-18 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:35:04 [end_date_ymd] => 2025-04-18 13:35:04 [RateCDR] => 1 ) [2025-04-18 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:35:04' and `end` < '2025-04-18 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:35:18] Production.INFO: count ==2005 [2025-04-18 13:35:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:35:04 - End Time 2025-04-18 13:35:04 [2025-04-18 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935939', 'tblTempUsageDetail_20' ) start [2025-04-18 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935939', 'tblTempUsageDetail_20' ) end [2025-04-18 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935939', 'tblTempVendorCDR_20' ) start [2025-04-18 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935939', 'tblTempVendorCDR_20' ) end [2025-04-18 13:35:18] Production.INFO: ProcessCDR(1,14935939,1,1,2) [2025-04-18 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935939', 'tblTempUsageDetail_20' ) start [2025-04-18 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935939', 'tblTempUsageDetail_20' ) end [2025-04-18 13:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:35:23] Production.INFO: ==14454== Releasing lock... [2025-04-18 13:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:35:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-18 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:36:05 [end_date_ymd] => 2025-04-18 13:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:36:05' and `end` < '2025-04-18 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-04-18 13:36:18] Production.INFO: count ==2004 [2025-04-18 13:36:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:36:05 - End Time 2025-04-18 13:36:05 [2025-04-18 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935944', 'tblTempUsageDetail_20' ) start [2025-04-18 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935944', 'tblTempUsageDetail_20' ) end [2025-04-18 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935944', 'tblTempVendorCDR_20' ) start [2025-04-18 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935944', 'tblTempVendorCDR_20' ) end [2025-04-18 13:36:19] Production.INFO: ProcessCDR(1,14935944,1,1,2) [2025-04-18 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935944', 'tblTempUsageDetail_20' ) start [2025-04-18 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935944', 'tblTempUsageDetail_20' ) end [2025-04-18 13:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:36:24] Production.INFO: ==14541== Releasing lock... [2025-04-18 13:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:36:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:37:05 [end_date_ymd] => 2025-04-18 13:37:05 [RateCDR] => 1 ) [2025-04-18 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:37:05' and `end` < '2025-04-18 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:37:19] Production.INFO: count ==2030 [2025-04-18 13:37:20] Production.ERROR: pbx CDR StartTime 2025-04-18 10:37:05 - End Time 2025-04-18 13:37:05 [2025-04-18 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935949', 'tblTempUsageDetail_20' ) start [2025-04-18 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935949', 'tblTempUsageDetail_20' ) end [2025-04-18 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935949', 'tblTempVendorCDR_20' ) start [2025-04-18 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935949', 'tblTempVendorCDR_20' ) end [2025-04-18 13:37:20] Production.INFO: ProcessCDR(1,14935949,1,1,2) [2025-04-18 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935949', 'tblTempUsageDetail_20' ) start [2025-04-18 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935949', 'tblTempUsageDetail_20' ) end [2025-04-18 13:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:37:25] Production.INFO: ==14620== Releasing lock... [2025-04-18 13:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:37:25] Production.INFO: 43 MB #Memory Used# [2025-04-18 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:38:05 [end_date_ymd] => 2025-04-18 13:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:38:05' and `end` < '2025-04-18 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-04-18 13:38:18] Production.INFO: count ==2034 [2025-04-18 13:38:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:38:05 - End Time 2025-04-18 13:38:05 [2025-04-18 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935954', 'tblTempUsageDetail_20' ) start [2025-04-18 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935954', 'tblTempUsageDetail_20' ) end [2025-04-18 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935954', 'tblTempVendorCDR_20' ) start [2025-04-18 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935954', 'tblTempVendorCDR_20' ) end [2025-04-18 13:38:19] Production.INFO: ProcessCDR(1,14935954,1,1,2) [2025-04-18 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935954', 'tblTempUsageDetail_20' ) start [2025-04-18 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935954', 'tblTempUsageDetail_20' ) end [2025-04-18 13:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:38:24] Production.INFO: ==14693== Releasing lock... [2025-04-18 13:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:38:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-18 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:39:05 [end_date_ymd] => 2025-04-18 13:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:39:05' and `end` < '2025-04-18 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-04-18 13:39:18] Production.INFO: count ==2038 [2025-04-18 13:39:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:39:05 - End Time 2025-04-18 13:39:05 [2025-04-18 13:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935959', 'tblTempUsageDetail_20' ) start [2025-04-18 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935959', 'tblTempUsageDetail_20' ) end [2025-04-18 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935959', 'tblTempVendorCDR_20' ) start [2025-04-18 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935959', 'tblTempVendorCDR_20' ) end [2025-04-18 13:39:19] Production.INFO: ProcessCDR(1,14935959,1,1,2) [2025-04-18 13:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935959', 'tblTempUsageDetail_20' ) start [2025-04-18 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935959', 'tblTempUsageDetail_20' ) end [2025-04-18 13:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:39:24] Production.INFO: ==14766== Releasing lock... [2025-04-18 13:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:39:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-18 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:40:05 [end_date_ymd] => 2025-04-18 13:40:05 [RateCDR] => 1 ) [2025-04-18 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:40:05' and `end` < '2025-04-18 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:40:18] Production.INFO: count ==2082 [2025-04-18 13:40:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:40:05 - End Time 2025-04-18 13:40:05 [2025-04-18 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935964', 'tblTempUsageDetail_20' ) start [2025-04-18 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935964', 'tblTempUsageDetail_20' ) end [2025-04-18 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935964', 'tblTempVendorCDR_20' ) start [2025-04-18 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935964', 'tblTempVendorCDR_20' ) end [2025-04-18 13:40:19] Production.INFO: ProcessCDR(1,14935964,1,1,2) [2025-04-18 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935964', 'tblTempUsageDetail_20' ) start [2025-04-18 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935964', 'tblTempUsageDetail_20' ) end [2025-04-18 13:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:40:22] Production.INFO: ==14841== Releasing lock... [2025-04-18 13:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:40:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:41:05 [end_date_ymd] => 2025-04-18 13:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:41:05' and `end` < '2025-04-18 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-04-18 13:41:18] Production.INFO: count ==2080 [2025-04-18 13:41:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:41:05 - End Time 2025-04-18 13:41:05 [2025-04-18 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935970', 'tblTempUsageDetail_20' ) start [2025-04-18 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935970', 'tblTempUsageDetail_20' ) end [2025-04-18 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935970', 'tblTempVendorCDR_20' ) start [2025-04-18 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935970', 'tblTempVendorCDR_20' ) end [2025-04-18 13:41:19] Production.INFO: ProcessCDR(1,14935970,1,1,2) [2025-04-18 13:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935970', 'tblTempUsageDetail_20' ) start [2025-04-18 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935970', 'tblTempUsageDetail_20' ) end [2025-04-18 13:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:41:22] Production.INFO: ==14914== Releasing lock... [2025-04-18 13:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:41:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:42:05 [end_date_ymd] => 2025-04-18 13:42:05 [RateCDR] => 1 ) [2025-04-18 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:42:05' and `end` < '2025-04-18 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:42:18] Production.INFO: count ==2082 [2025-04-18 13:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:42:05 - End Time 2025-04-18 13:42:05 [2025-04-18 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935975', 'tblTempUsageDetail_20' ) start [2025-04-18 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935975', 'tblTempUsageDetail_20' ) end [2025-04-18 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935975', 'tblTempVendorCDR_20' ) start [2025-04-18 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935975', 'tblTempVendorCDR_20' ) end [2025-04-18 13:42:19] Production.INFO: ProcessCDR(1,14935975,1,1,2) [2025-04-18 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935975', 'tblTempUsageDetail_20' ) start [2025-04-18 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935975', 'tblTempUsageDetail_20' ) end [2025-04-18 13:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:42:23] Production.INFO: ==14987== Releasing lock... [2025-04-18 13:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:42:23] Production.INFO: 44 MB #Memory Used# [2025-04-18 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:43:04 [end_date_ymd] => 2025-04-18 13:43:04 [RateCDR] => 1 ) [2025-04-18 13:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:43:04' and `end` < '2025-04-18 13:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:43:17] Production.INFO: count ==2084 [2025-04-18 13:43:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:43:04 - End Time 2025-04-18 13:43:04 [2025-04-18 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935980', 'tblTempUsageDetail_20' ) start [2025-04-18 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935980', 'tblTempUsageDetail_20' ) end [2025-04-18 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935980', 'tblTempVendorCDR_20' ) start [2025-04-18 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935980', 'tblTempVendorCDR_20' ) end [2025-04-18 13:43:18] Production.INFO: ProcessCDR(1,14935980,1,1,2) [2025-04-18 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935980', 'tblTempUsageDetail_20' ) start [2025-04-18 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935980', 'tblTempUsageDetail_20' ) end [2025-04-18 13:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:43:23] Production.INFO: ==15060== Releasing lock... [2025-04-18 13:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:43:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:44:05 [end_date_ymd] => 2025-04-18 13:44:05 [RateCDR] => 1 ) [2025-04-18 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:44:05' and `end` < '2025-04-18 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:44:18] Production.INFO: count ==2100 [2025-04-18 13:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:44:05 - End Time 2025-04-18 13:44:05 [2025-04-18 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935985', 'tblTempUsageDetail_20' ) start [2025-04-18 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935985', 'tblTempUsageDetail_20' ) end [2025-04-18 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935985', 'tblTempVendorCDR_20' ) start [2025-04-18 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935985', 'tblTempVendorCDR_20' ) end [2025-04-18 13:44:19] Production.INFO: ProcessCDR(1,14935985,1,1,2) [2025-04-18 13:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935985', 'tblTempUsageDetail_20' ) start [2025-04-18 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935985', 'tblTempUsageDetail_20' ) end [2025-04-18 13:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:44:22] Production.INFO: ==15131== Releasing lock... [2025-04-18 13:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:44:22] Production.INFO: 44 MB #Memory Used# [2025-04-18 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:45:05 [end_date_ymd] => 2025-04-18 13:45:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:45:05' and `end` < '2025-04-18 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-04-18 13:45:18] Production.INFO: count ==2099 [2025-04-18 13:45:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:45:05 - End Time 2025-04-18 13:45:05 [2025-04-18 13:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935990', 'tblTempUsageDetail_20' ) start [2025-04-18 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935990', 'tblTempUsageDetail_20' ) end [2025-04-18 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935990', 'tblTempVendorCDR_20' ) start [2025-04-18 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935990', 'tblTempVendorCDR_20' ) end [2025-04-18 13:45:19] Production.INFO: ProcessCDR(1,14935990,1,1,2) [2025-04-18 13:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935990', 'tblTempUsageDetail_20' ) start [2025-04-18 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935990', 'tblTempUsageDetail_20' ) end [2025-04-18 13:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:45:22] Production.INFO: ==15206== Releasing lock... [2025-04-18 13:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:45:22] Production.INFO: 44 MB #Memory Used# [2025-04-18 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:46:05 [end_date_ymd] => 2025-04-18 13:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:46:05' and `end` < '2025-04-18 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-04-18 13:46:18] Production.INFO: count ==2097 [2025-04-18 13:46:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:46:05 - End Time 2025-04-18 13:46:05 [2025-04-18 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935995', 'tblTempUsageDetail_20' ) start [2025-04-18 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14935995', 'tblTempUsageDetail_20' ) end [2025-04-18 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935995', 'tblTempVendorCDR_20' ) start [2025-04-18 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14935995', 'tblTempVendorCDR_20' ) end [2025-04-18 13:46:19] Production.INFO: ProcessCDR(1,14935995,1,1,2) [2025-04-18 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14935995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14935995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14935995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14935995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935995', 'tblTempUsageDetail_20' ) start [2025-04-18 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14935995', 'tblTempUsageDetail_20' ) end [2025-04-18 13:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:46:24] Production.INFO: ==15279== Releasing lock... [2025-04-18 13:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:46:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:47:05 [end_date_ymd] => 2025-04-18 13:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:47:05' and `end` < '2025-04-18 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-04-18 13:47:18] Production.INFO: count ==2093 [2025-04-18 13:47:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:47:05 - End Time 2025-04-18 13:47:05 [2025-04-18 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936000', 'tblTempUsageDetail_20' ) start [2025-04-18 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936000', 'tblTempUsageDetail_20' ) end [2025-04-18 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936000', 'tblTempVendorCDR_20' ) start [2025-04-18 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936000', 'tblTempVendorCDR_20' ) end [2025-04-18 13:47:19] Production.INFO: ProcessCDR(1,14936000,1,1,2) [2025-04-18 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936000', 'tblTempUsageDetail_20' ) start [2025-04-18 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936000', 'tblTempUsageDetail_20' ) end [2025-04-18 13:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:47:22] Production.INFO: ==15355== Releasing lock... [2025-04-18 13:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:47:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:48:05 [end_date_ymd] => 2025-04-18 13:48:05 [RateCDR] => 1 ) [2025-04-18 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:48:05' and `end` < '2025-04-18 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:48:18] Production.INFO: count ==2118 [2025-04-18 13:48:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:48:05 - End Time 2025-04-18 13:48:05 [2025-04-18 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936005', 'tblTempUsageDetail_20' ) start [2025-04-18 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936005', 'tblTempUsageDetail_20' ) end [2025-04-18 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936005', 'tblTempVendorCDR_20' ) start [2025-04-18 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936005', 'tblTempVendorCDR_20' ) end [2025-04-18 13:48:19] Production.INFO: ProcessCDR(1,14936005,1,1,2) [2025-04-18 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936005', 'tblTempUsageDetail_20' ) start [2025-04-18 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936005', 'tblTempUsageDetail_20' ) end [2025-04-18 13:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:48:23] Production.INFO: ==15426== Releasing lock... [2025-04-18 13:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:48:23] Production.INFO: 44 MB #Memory Used# [2025-04-18 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:49:05 [end_date_ymd] => 2025-04-18 13:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:49:05' and `end` < '2025-04-18 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-04-18 13:49:19] Production.INFO: count ==2120 [2025-04-18 13:49:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:49:05 - End Time 2025-04-18 13:49:05 [2025-04-18 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936010', 'tblTempUsageDetail_20' ) start [2025-04-18 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936010', 'tblTempUsageDetail_20' ) end [2025-04-18 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936010', 'tblTempVendorCDR_20' ) start [2025-04-18 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936010', 'tblTempVendorCDR_20' ) end [2025-04-18 13:49:19] Production.INFO: ProcessCDR(1,14936010,1,1,2) [2025-04-18 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936010', 'tblTempUsageDetail_20' ) start [2025-04-18 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936010', 'tblTempUsageDetail_20' ) end [2025-04-18 13:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:49:24] Production.INFO: ==15496== Releasing lock... [2025-04-18 13:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:49:24] Production.INFO: 44 MB #Memory Used# [2025-04-18 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:50:06 [end_date_ymd] => 2025-04-18 13:50:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:50:06' and `end` < '2025-04-18 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-04-18 13:50:19] Production.INFO: count ==2141 [2025-04-18 13:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:50:06 - End Time 2025-04-18 13:50:06 [2025-04-18 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936016', 'tblTempUsageDetail_20' ) start [2025-04-18 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936016', 'tblTempUsageDetail_20' ) end [2025-04-18 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936016', 'tblTempVendorCDR_20' ) start [2025-04-18 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936016', 'tblTempVendorCDR_20' ) end [2025-04-18 13:50:20] Production.INFO: ProcessCDR(1,14936016,1,1,2) [2025-04-18 13:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936016', 'tblTempUsageDetail_20' ) start [2025-04-18 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936016', 'tblTempUsageDetail_20' ) end [2025-04-18 13:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:50:24] Production.INFO: ==15619== Releasing lock... [2025-04-18 13:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:50:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:51:05 [end_date_ymd] => 2025-04-18 13:51:05 [RateCDR] => 1 ) [2025-04-18 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:51:05' and `end` < '2025-04-18 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:51:18] Production.INFO: count ==2134 [2025-04-18 13:51:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:51:05 - End Time 2025-04-18 13:51:05 [2025-04-18 13:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936021', 'tblTempUsageDetail_20' ) start [2025-04-18 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936021', 'tblTempUsageDetail_20' ) end [2025-04-18 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936021', 'tblTempVendorCDR_20' ) start [2025-04-18 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936021', 'tblTempVendorCDR_20' ) end [2025-04-18 13:51:19] Production.INFO: ProcessCDR(1,14936021,1,1,2) [2025-04-18 13:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936021', 'tblTempUsageDetail_20' ) start [2025-04-18 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936021', 'tblTempUsageDetail_20' ) end [2025-04-18 13:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:51:23] Production.INFO: ==15694== Releasing lock... [2025-04-18 13:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:51:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:52:05 [end_date_ymd] => 2025-04-18 13:52:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:52:05' and `end` < '2025-04-18 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-04-18 13:52:18] Production.INFO: count ==2121 [2025-04-18 13:52:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:52:05 - End Time 2025-04-18 13:52:05 [2025-04-18 13:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936026', 'tblTempUsageDetail_20' ) start [2025-04-18 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936026', 'tblTempUsageDetail_20' ) end [2025-04-18 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936026', 'tblTempVendorCDR_20' ) start [2025-04-18 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936026', 'tblTempVendorCDR_20' ) end [2025-04-18 13:52:19] Production.INFO: ProcessCDR(1,14936026,1,1,2) [2025-04-18 13:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936026', 'tblTempUsageDetail_20' ) start [2025-04-18 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936026', 'tblTempUsageDetail_20' ) end [2025-04-18 13:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:52:24] Production.INFO: ==15770== Releasing lock... [2025-04-18 13:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:52:24] Production.INFO: 44 MB #Memory Used# [2025-04-18 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:53:05 [end_date_ymd] => 2025-04-18 13:53:05 [RateCDR] => 1 ) [2025-04-18 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:53:05' and `end` < '2025-04-18 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:53:18] Production.INFO: count ==2114 [2025-04-18 13:53:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:53:05 - End Time 2025-04-18 13:53:05 [2025-04-18 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936031', 'tblTempUsageDetail_20' ) start [2025-04-18 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936031', 'tblTempUsageDetail_20' ) end [2025-04-18 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936031', 'tblTempVendorCDR_20' ) start [2025-04-18 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936031', 'tblTempVendorCDR_20' ) end [2025-04-18 13:53:19] Production.INFO: ProcessCDR(1,14936031,1,1,2) [2025-04-18 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936031', 'tblTempUsageDetail_20' ) start [2025-04-18 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936031', 'tblTempUsageDetail_20' ) end [2025-04-18 13:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:53:22] Production.INFO: ==15840== Releasing lock... [2025-04-18 13:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:53:22] Production.INFO: 44 MB #Memory Used# [2025-04-18 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:54:05 [end_date_ymd] => 2025-04-18 13:54:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:54:05' and `end` < '2025-04-18 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-04-18 13:54:19] Production.INFO: count ==2150 [2025-04-18 13:54:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:54:05 - End Time 2025-04-18 13:54:05 [2025-04-18 13:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936036', 'tblTempUsageDetail_20' ) start [2025-04-18 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936036', 'tblTempUsageDetail_20' ) end [2025-04-18 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936036', 'tblTempVendorCDR_20' ) start [2025-04-18 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936036', 'tblTempVendorCDR_20' ) end [2025-04-18 13:54:19] Production.INFO: ProcessCDR(1,14936036,1,1,2) [2025-04-18 13:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936036', 'tblTempUsageDetail_20' ) start [2025-04-18 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936036', 'tblTempUsageDetail_20' ) end [2025-04-18 13:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:54:24] Production.INFO: ==15910== Releasing lock... [2025-04-18 13:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:54:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:55:05 [end_date_ymd] => 2025-04-18 13:55:05 [RateCDR] => 1 ) [2025-04-18 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:55:05' and `end` < '2025-04-18 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:55:18] Production.INFO: count ==2161 [2025-04-18 13:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:55:05 - End Time 2025-04-18 13:55:05 [2025-04-18 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936041', 'tblTempUsageDetail_20' ) start [2025-04-18 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936041', 'tblTempUsageDetail_20' ) end [2025-04-18 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936041', 'tblTempVendorCDR_20' ) start [2025-04-18 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936041', 'tblTempVendorCDR_20' ) end [2025-04-18 13:55:19] Production.INFO: ProcessCDR(1,14936041,1,1,2) [2025-04-18 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936041', 'tblTempUsageDetail_20' ) start [2025-04-18 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936041', 'tblTempUsageDetail_20' ) end [2025-04-18 13:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:55:23] Production.INFO: ==15985== Releasing lock... [2025-04-18 13:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:55:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:56:05 [end_date_ymd] => 2025-04-18 13:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:56:05' and `end` < '2025-04-18 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-04-18 13:56:18] Production.INFO: count ==2161 [2025-04-18 13:56:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:56:05 - End Time 2025-04-18 13:56:05 [2025-04-18 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936046', 'tblTempUsageDetail_20' ) start [2025-04-18 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936046', 'tblTempUsageDetail_20' ) end [2025-04-18 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936046', 'tblTempVendorCDR_20' ) start [2025-04-18 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936046', 'tblTempVendorCDR_20' ) end [2025-04-18 13:56:19] Production.INFO: ProcessCDR(1,14936046,1,1,2) [2025-04-18 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936046', 'tblTempUsageDetail_20' ) start [2025-04-18 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936046', 'tblTempUsageDetail_20' ) end [2025-04-18 13:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:56:24] Production.INFO: ==16060== Releasing lock... [2025-04-18 13:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:56:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:57:04 [end_date_ymd] => 2025-04-18 13:57:04 [RateCDR] => 1 ) [2025-04-18 13:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 10:57:04' and `end` < '2025-04-18 13:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 13:57:17] Production.INFO: count ==2165 [2025-04-18 13:57:18] Production.ERROR: pbx CDR StartTime 2025-04-18 10:57:04 - End Time 2025-04-18 13:57:04 [2025-04-18 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936051', 'tblTempUsageDetail_20' ) start [2025-04-18 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936051', 'tblTempUsageDetail_20' ) end [2025-04-18 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936051', 'tblTempVendorCDR_20' ) start [2025-04-18 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936051', 'tblTempVendorCDR_20' ) end [2025-04-18 13:57:18] Production.INFO: ProcessCDR(1,14936051,1,1,2) [2025-04-18 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936051', 'tblTempUsageDetail_20' ) start [2025-04-18 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936051', 'tblTempUsageDetail_20' ) end [2025-04-18 13:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:57:23] Production.INFO: ==16134== Releasing lock... [2025-04-18 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:57:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:58:05 [end_date_ymd] => 2025-04-18 13:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 10:58:05' and `end` < '2025-04-18 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-04-18 13:58:18] Production.INFO: count ==2169 [2025-04-18 13:58:19] Production.ERROR: pbx CDR StartTime 2025-04-18 10:58:05 - End Time 2025-04-18 13:58:05 [2025-04-18 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936056', 'tblTempUsageDetail_20' ) start [2025-04-18 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936056', 'tblTempUsageDetail_20' ) end [2025-04-18 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936056', 'tblTempVendorCDR_20' ) start [2025-04-18 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936056', 'tblTempVendorCDR_20' ) end [2025-04-18 13:58:19] Production.INFO: ProcessCDR(1,14936056,1,1,2) [2025-04-18 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936056', 'tblTempUsageDetail_20' ) start [2025-04-18 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936056', 'tblTempUsageDetail_20' ) end [2025-04-18 13:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:58:23] Production.INFO: ==16205== Releasing lock... [2025-04-18 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:58:23] Production.INFO: 45 MB #Memory Used# [2025-04-18 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 10:59:06 [end_date_ymd] => 2025-04-18 13:59:06 [RateCDR] => 1 ) [2025-04-18 13: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-04-18 10:59:06' and `end` < '2025-04-18 13: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-04-18 13:59:19] Production.INFO: count ==2169 [2025-04-18 13:59:20] Production.ERROR: pbx CDR StartTime 2025-04-18 10:59:06 - End Time 2025-04-18 13:59:06 [2025-04-18 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936061', 'tblTempUsageDetail_20' ) start [2025-04-18 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936061', 'tblTempUsageDetail_20' ) end [2025-04-18 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936061', 'tblTempVendorCDR_20' ) start [2025-04-18 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936061', 'tblTempVendorCDR_20' ) end [2025-04-18 13:59:20] Production.INFO: ProcessCDR(1,14936061,1,1,2) [2025-04-18 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936061', 'tblTempUsageDetail_20' ) start [2025-04-18 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936061', 'tblTempUsageDetail_20' ) end [2025-04-18 13:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 13:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 13:59:23] Production.INFO: ==16279== Releasing lock... [2025-04-18 13:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 13:59:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:00:06 [end_date_ymd] => 2025-04-18 14:00:06 [RateCDR] => 1 ) [2025-04-18 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:00:06' and `end` < '2025-04-18 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:00:19] Production.INFO: count ==2163 [2025-04-18 14:00:20] Production.ERROR: pbx CDR StartTime 2025-04-18 11:00:06 - End Time 2025-04-18 14:00:06 [2025-04-18 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936067', 'tblTempUsageDetail_20' ) start [2025-04-18 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936067', 'tblTempUsageDetail_20' ) end [2025-04-18 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936067', 'tblTempVendorCDR_20' ) start [2025-04-18 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936067', 'tblTempVendorCDR_20' ) end [2025-04-18 14:00:20] Production.INFO: ProcessCDR(1,14936067,1,1,2) [2025-04-18 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936067', 'tblTempUsageDetail_20' ) start [2025-04-18 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936067', 'tblTempUsageDetail_20' ) end [2025-04-18 14:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:00:25] Production.INFO: ==16357== Releasing lock... [2025-04-18 14:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:00:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:01:06 [end_date_ymd] => 2025-04-18 14:01:06 [RateCDR] => 1 ) [2025-04-18 14: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-04-18 11:01:06' and `end` < '2025-04-18 14: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-04-18 14:01:19] Production.INFO: count ==2188 [2025-04-18 14:01:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:01:06 - End Time 2025-04-18 14:01:06 [2025-04-18 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936072', 'tblTempUsageDetail_20' ) start [2025-04-18 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936072', 'tblTempUsageDetail_20' ) end [2025-04-18 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936072', 'tblTempVendorCDR_20' ) start [2025-04-18 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936072', 'tblTempVendorCDR_20' ) end [2025-04-18 14:01:19] Production.INFO: ProcessCDR(1,14936072,1,1,2) [2025-04-18 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936072', 'tblTempUsageDetail_20' ) start [2025-04-18 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936072', 'tblTempUsageDetail_20' ) end [2025-04-18 14:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:01:24] Production.INFO: ==16445== Releasing lock... [2025-04-18 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:01:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:02:05 [end_date_ymd] => 2025-04-18 14:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:02:05' and `end` < '2025-04-18 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-04-18 14:02:18] Production.INFO: count ==2194 [2025-04-18 14:02:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:02:05 - End Time 2025-04-18 14:02:05 [2025-04-18 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936077', 'tblTempUsageDetail_20' ) start [2025-04-18 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936077', 'tblTempUsageDetail_20' ) end [2025-04-18 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936077', 'tblTempVendorCDR_20' ) start [2025-04-18 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936077', 'tblTempVendorCDR_20' ) end [2025-04-18 14:02:19] Production.INFO: ProcessCDR(1,14936077,1,1,2) [2025-04-18 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936077', 'tblTempUsageDetail_20' ) start [2025-04-18 14:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936077', 'tblTempUsageDetail_20' ) end [2025-04-18 14:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:02:22] Production.INFO: ==16519== Releasing lock... [2025-04-18 14:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:02:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:03:05 [end_date_ymd] => 2025-04-18 14:03:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:03:05' and `end` < '2025-04-18 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-04-18 14:03:18] Production.INFO: count ==2191 [2025-04-18 14:03:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:03:05 - End Time 2025-04-18 14:03:05 [2025-04-18 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936082', 'tblTempUsageDetail_20' ) start [2025-04-18 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936082', 'tblTempUsageDetail_20' ) end [2025-04-18 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936082', 'tblTempVendorCDR_20' ) start [2025-04-18 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936082', 'tblTempVendorCDR_20' ) end [2025-04-18 14:03:19] Production.INFO: ProcessCDR(1,14936082,1,1,2) [2025-04-18 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936082', 'tblTempUsageDetail_20' ) start [2025-04-18 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936082', 'tblTempUsageDetail_20' ) end [2025-04-18 14:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:03:23] Production.INFO: ==16593== Releasing lock... [2025-04-18 14:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:03:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:04:05 [end_date_ymd] => 2025-04-18 14:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:04:05' and `end` < '2025-04-18 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-04-18 14:04:18] Production.INFO: count ==2193 [2025-04-18 14:04:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:04:05 - End Time 2025-04-18 14:04:05 [2025-04-18 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936087', 'tblTempUsageDetail_20' ) start [2025-04-18 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936087', 'tblTempUsageDetail_20' ) end [2025-04-18 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936087', 'tblTempVendorCDR_20' ) start [2025-04-18 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936087', 'tblTempVendorCDR_20' ) end [2025-04-18 14:04:19] Production.INFO: ProcessCDR(1,14936087,1,1,2) [2025-04-18 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936087', 'tblTempUsageDetail_20' ) start [2025-04-18 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936087', 'tblTempUsageDetail_20' ) end [2025-04-18 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:04:23] Production.INFO: ==16670== Releasing lock... [2025-04-18 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:04:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:05:05 [end_date_ymd] => 2025-04-18 14:05:05 [RateCDR] => 1 ) [2025-04-18 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:05:05' and `end` < '2025-04-18 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:05:18] Production.INFO: count ==2193 [2025-04-18 14:05:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:05:05 - End Time 2025-04-18 14:05:05 [2025-04-18 14:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936092', 'tblTempUsageDetail_20' ) start [2025-04-18 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936092', 'tblTempUsageDetail_20' ) end [2025-04-18 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936092', 'tblTempVendorCDR_20' ) start [2025-04-18 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936092', 'tblTempVendorCDR_20' ) end [2025-04-18 14:05:19] Production.INFO: ProcessCDR(1,14936092,1,1,2) [2025-04-18 14:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936092', 'tblTempUsageDetail_20' ) start [2025-04-18 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936092', 'tblTempUsageDetail_20' ) end [2025-04-18 14:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:05:24] Production.INFO: ==16791== Releasing lock... [2025-04-18 14:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:05:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:06:04 [end_date_ymd] => 2025-04-18 14:06:04 [RateCDR] => 1 ) [2025-04-18 14:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:06:04' and `end` < '2025-04-18 14:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:06:17] Production.INFO: count ==2180 [2025-04-18 14:06:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:06:04 - End Time 2025-04-18 14:06:04 [2025-04-18 14:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936097', 'tblTempUsageDetail_20' ) start [2025-04-18 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936097', 'tblTempUsageDetail_20' ) end [2025-04-18 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936097', 'tblTempVendorCDR_20' ) start [2025-04-18 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936097', 'tblTempVendorCDR_20' ) end [2025-04-18 14:06:18] Production.INFO: ProcessCDR(1,14936097,1,1,2) [2025-04-18 14:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936097', 'tblTempUsageDetail_20' ) start [2025-04-18 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936097', 'tblTempUsageDetail_20' ) end [2025-04-18 14:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:06:22] Production.INFO: ==16866== Releasing lock... [2025-04-18 14:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:06:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:07:05 [end_date_ymd] => 2025-04-18 14:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:07:05' and `end` < '2025-04-18 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-04-18 14:07:18] Production.INFO: count ==2183 [2025-04-18 14:07:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:07:05 - End Time 2025-04-18 14:07:05 [2025-04-18 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936102', 'tblTempUsageDetail_20' ) start [2025-04-18 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936102', 'tblTempUsageDetail_20' ) end [2025-04-18 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936102', 'tblTempVendorCDR_20' ) start [2025-04-18 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936102', 'tblTempVendorCDR_20' ) end [2025-04-18 14:07:19] Production.INFO: ProcessCDR(1,14936102,1,1,2) [2025-04-18 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936102', 'tblTempUsageDetail_20' ) start [2025-04-18 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936102', 'tblTempUsageDetail_20' ) end [2025-04-18 14:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:07:23] Production.INFO: ==16940== Releasing lock... [2025-04-18 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:07:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:08:05 [end_date_ymd] => 2025-04-18 14:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:08:05' and `end` < '2025-04-18 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-04-18 14:08:18] Production.INFO: count ==2164 [2025-04-18 14:08:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:08:05 - End Time 2025-04-18 14:08:05 [2025-04-18 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936107', 'tblTempUsageDetail_20' ) start [2025-04-18 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936107', 'tblTempUsageDetail_20' ) end [2025-04-18 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936107', 'tblTempVendorCDR_20' ) start [2025-04-18 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936107', 'tblTempVendorCDR_20' ) end [2025-04-18 14:08:19] Production.INFO: ProcessCDR(1,14936107,1,1,2) [2025-04-18 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936107', 'tblTempUsageDetail_20' ) start [2025-04-18 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936107', 'tblTempUsageDetail_20' ) end [2025-04-18 14:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:08:23] Production.INFO: ==17011== Releasing lock... [2025-04-18 14:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:08:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:09:04 [end_date_ymd] => 2025-04-18 14:09:04 [RateCDR] => 1 ) [2025-04-18 14:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:09:04' and `end` < '2025-04-18 14:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:09:17] Production.INFO: count ==2155 [2025-04-18 14:09:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:09:04 - End Time 2025-04-18 14:09:04 [2025-04-18 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936112', 'tblTempUsageDetail_20' ) start [2025-04-18 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936112', 'tblTempUsageDetail_20' ) end [2025-04-18 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936112', 'tblTempVendorCDR_20' ) start [2025-04-18 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936112', 'tblTempVendorCDR_20' ) end [2025-04-18 14:09:18] Production.INFO: ProcessCDR(1,14936112,1,1,2) [2025-04-18 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936112', 'tblTempUsageDetail_20' ) start [2025-04-18 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936112', 'tblTempUsageDetail_20' ) end [2025-04-18 14:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:09:22] Production.INFO: ==17087== Releasing lock... [2025-04-18 14:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:09:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:10:06 [end_date_ymd] => 2025-04-18 14:10:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:10:06' and `end` < '2025-04-18 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-04-18 14:10:19] Production.INFO: count ==2130 [2025-04-18 14:10:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:10:06 - End Time 2025-04-18 14:10:06 [2025-04-18 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936117', 'tblTempUsageDetail_20' ) start [2025-04-18 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936117', 'tblTempUsageDetail_20' ) end [2025-04-18 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936117', 'tblTempVendorCDR_20' ) start [2025-04-18 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936117', 'tblTempVendorCDR_20' ) end [2025-04-18 14:10:19] Production.INFO: ProcessCDR(1,14936117,1,1,2) [2025-04-18 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936117', 'tblTempUsageDetail_20' ) start [2025-04-18 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936117', 'tblTempUsageDetail_20' ) end [2025-04-18 14:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:10:23] Production.INFO: ==17163== Releasing lock... [2025-04-18 14:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:10:23] Production.INFO: 44 MB #Memory Used# [2025-04-18 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:11:05 [end_date_ymd] => 2025-04-18 14:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:11:05' and `end` < '2025-04-18 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-04-18 14:11:18] Production.INFO: count ==2145 [2025-04-18 14:11:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:11:05 - End Time 2025-04-18 14:11:05 [2025-04-18 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936123', 'tblTempUsageDetail_20' ) start [2025-04-18 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936123', 'tblTempUsageDetail_20' ) end [2025-04-18 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936123', 'tblTempVendorCDR_20' ) start [2025-04-18 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936123', 'tblTempVendorCDR_20' ) end [2025-04-18 14:11:19] Production.INFO: ProcessCDR(1,14936123,1,1,2) [2025-04-18 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936123', 'tblTempUsageDetail_20' ) start [2025-04-18 14:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936123', 'tblTempUsageDetail_20' ) end [2025-04-18 14:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:11:24] Production.INFO: ==17244== Releasing lock... [2025-04-18 14:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:11:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:12:05 [end_date_ymd] => 2025-04-18 14:12:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:12:05' and `end` < '2025-04-18 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-04-18 14:12:18] Production.INFO: count ==2146 [2025-04-18 14:12:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:12:05 - End Time 2025-04-18 14:12:05 [2025-04-18 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936128', 'tblTempUsageDetail_20' ) start [2025-04-18 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936128', 'tblTempUsageDetail_20' ) end [2025-04-18 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936128', 'tblTempVendorCDR_20' ) start [2025-04-18 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936128', 'tblTempVendorCDR_20' ) end [2025-04-18 14:12:19] Production.INFO: ProcessCDR(1,14936128,1,1,2) [2025-04-18 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936128', 'tblTempUsageDetail_20' ) start [2025-04-18 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936128', 'tblTempUsageDetail_20' ) end [2025-04-18 14:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:12:24] Production.INFO: ==17314== Releasing lock... [2025-04-18 14:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:12:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:13:05 [end_date_ymd] => 2025-04-18 14:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:13:05' and `end` < '2025-04-18 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-04-18 14:13:18] Production.INFO: count ==2152 [2025-04-18 14:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:13:05 - End Time 2025-04-18 14:13:05 [2025-04-18 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936133', 'tblTempUsageDetail_20' ) start [2025-04-18 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936133', 'tblTempUsageDetail_20' ) end [2025-04-18 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936133', 'tblTempVendorCDR_20' ) start [2025-04-18 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936133', 'tblTempVendorCDR_20' ) end [2025-04-18 14:13:18] Production.INFO: ProcessCDR(1,14936133,1,1,2) [2025-04-18 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936133', 'tblTempUsageDetail_20' ) start [2025-04-18 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936133', 'tblTempUsageDetail_20' ) end [2025-04-18 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:13:23] Production.INFO: ==17388== Releasing lock... [2025-04-18 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:13:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:14:05 [end_date_ymd] => 2025-04-18 14:14:05 [RateCDR] => 1 ) [2025-04-18 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:14:05' and `end` < '2025-04-18 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:14:18] Production.INFO: count ==2156 [2025-04-18 14:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:14:05 - End Time 2025-04-18 14:14:05 [2025-04-18 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936138', 'tblTempUsageDetail_20' ) start [2025-04-18 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936138', 'tblTempUsageDetail_20' ) end [2025-04-18 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936138', 'tblTempVendorCDR_20' ) start [2025-04-18 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936138', 'tblTempVendorCDR_20' ) end [2025-04-18 14:14:19] Production.INFO: ProcessCDR(1,14936138,1,1,2) [2025-04-18 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936138', 'tblTempUsageDetail_20' ) start [2025-04-18 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936138', 'tblTempUsageDetail_20' ) end [2025-04-18 14:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:14:24] Production.INFO: ==17462== Releasing lock... [2025-04-18 14:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:14:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:15:06 [end_date_ymd] => 2025-04-18 14:15:06 [RateCDR] => 1 ) [2025-04-18 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:15:06' and `end` < '2025-04-18 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:15:19] Production.INFO: count ==2155 [2025-04-18 14:15:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:15:06 - End Time 2025-04-18 14:15:06 [2025-04-18 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936143', 'tblTempUsageDetail_20' ) start [2025-04-18 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936143', 'tblTempUsageDetail_20' ) end [2025-04-18 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936143', 'tblTempVendorCDR_20' ) start [2025-04-18 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936143', 'tblTempVendorCDR_20' ) end [2025-04-18 14:15:20] Production.INFO: ProcessCDR(1,14936143,1,1,2) [2025-04-18 14:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936143', 'tblTempUsageDetail_20' ) start [2025-04-18 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936143', 'tblTempUsageDetail_20' ) end [2025-04-18 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:15:23] Production.INFO: ==17533== Releasing lock... [2025-04-18 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:15:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:16:05 [end_date_ymd] => 2025-04-18 14:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:16:05' and `end` < '2025-04-18 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-04-18 14:16:18] Production.INFO: count ==2154 [2025-04-18 14:16:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:16:05 - End Time 2025-04-18 14:16:05 [2025-04-18 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936148', 'tblTempUsageDetail_20' ) start [2025-04-18 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936148', 'tblTempUsageDetail_20' ) end [2025-04-18 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936148', 'tblTempVendorCDR_20' ) start [2025-04-18 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936148', 'tblTempVendorCDR_20' ) end [2025-04-18 14:16:19] Production.INFO: ProcessCDR(1,14936148,1,1,2) [2025-04-18 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936148', 'tblTempUsageDetail_20' ) start [2025-04-18 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936148', 'tblTempUsageDetail_20' ) end [2025-04-18 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:16:22] Production.INFO: ==17608== Releasing lock... [2025-04-18 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:16:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:17:06 [end_date_ymd] => 2025-04-18 14:17:06 [RateCDR] => 1 ) [2025-04-18 14: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-04-18 11:17:06' and `end` < '2025-04-18 14: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-04-18 14:17:19] Production.INFO: count ==2137 [2025-04-18 14:17:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:17:06 - End Time 2025-04-18 14:17:06 [2025-04-18 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936153', 'tblTempUsageDetail_20' ) start [2025-04-18 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936153', 'tblTempUsageDetail_20' ) end [2025-04-18 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936153', 'tblTempVendorCDR_20' ) start [2025-04-18 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936153', 'tblTempVendorCDR_20' ) end [2025-04-18 14:17:20] Production.INFO: ProcessCDR(1,14936153,1,1,2) [2025-04-18 14:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936153', 'tblTempUsageDetail_20' ) start [2025-04-18 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936153', 'tblTempUsageDetail_20' ) end [2025-04-18 14:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:17:23] Production.INFO: ==17682== Releasing lock... [2025-04-18 14:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:17:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:18:05 [end_date_ymd] => 2025-04-18 14:18:05 [RateCDR] => 1 ) [2025-04-18 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:18:05' and `end` < '2025-04-18 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:18:18] Production.INFO: count ==2136 [2025-04-18 14:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:18:05 - End Time 2025-04-18 14:18:05 [2025-04-18 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936158', 'tblTempUsageDetail_20' ) start [2025-04-18 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936158', 'tblTempUsageDetail_20' ) end [2025-04-18 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936158', 'tblTempVendorCDR_20' ) start [2025-04-18 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936158', 'tblTempVendorCDR_20' ) end [2025-04-18 14:18:19] Production.INFO: ProcessCDR(1,14936158,1,1,2) [2025-04-18 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936158', 'tblTempUsageDetail_20' ) start [2025-04-18 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936158', 'tblTempUsageDetail_20' ) end [2025-04-18 14:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:18:22] Production.INFO: ==17761== Releasing lock... [2025-04-18 14:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:18:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:19:05 [end_date_ymd] => 2025-04-18 14:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:19:05' and `end` < '2025-04-18 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-04-18 14:19:19] Production.INFO: count ==2149 [2025-04-18 14:19:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:19:05 - End Time 2025-04-18 14:19:05 [2025-04-18 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936163', 'tblTempUsageDetail_20' ) start [2025-04-18 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936163', 'tblTempUsageDetail_20' ) end [2025-04-18 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936163', 'tblTempVendorCDR_20' ) start [2025-04-18 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936163', 'tblTempVendorCDR_20' ) end [2025-04-18 14:19:20] Production.INFO: ProcessCDR(1,14936163,1,1,2) [2025-04-18 14:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936163', 'tblTempUsageDetail_20' ) start [2025-04-18 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936163', 'tblTempUsageDetail_20' ) end [2025-04-18 14:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:19:25] Production.INFO: ==17834== Releasing lock... [2025-04-18 14:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:19:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:20:05 [end_date_ymd] => 2025-04-18 14:20:05 [RateCDR] => 1 ) [2025-04-18 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:20:05' and `end` < '2025-04-18 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:20:18] Production.INFO: count ==2158 [2025-04-18 14:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:20:05 - End Time 2025-04-18 14:20:05 [2025-04-18 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936169', 'tblTempUsageDetail_20' ) start [2025-04-18 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936169', 'tblTempUsageDetail_20' ) end [2025-04-18 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936169', 'tblTempVendorCDR_20' ) start [2025-04-18 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936169', 'tblTempVendorCDR_20' ) end [2025-04-18 14:20:19] Production.INFO: ProcessCDR(1,14936169,1,1,2) [2025-04-18 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936169', 'tblTempUsageDetail_20' ) start [2025-04-18 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936169', 'tblTempUsageDetail_20' ) end [2025-04-18 14:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:20:24] Production.INFO: ==17908== Releasing lock... [2025-04-18 14:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:20:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:21:05 [end_date_ymd] => 2025-04-18 14:21:05 [RateCDR] => 1 ) [2025-04-18 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:21:05' and `end` < '2025-04-18 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:21:18] Production.INFO: count ==2141 [2025-04-18 14:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:21:05 - End Time 2025-04-18 14:21:05 [2025-04-18 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936174', 'tblTempUsageDetail_20' ) start [2025-04-18 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936174', 'tblTempUsageDetail_20' ) end [2025-04-18 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936174', 'tblTempVendorCDR_20' ) start [2025-04-18 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936174', 'tblTempVendorCDR_20' ) end [2025-04-18 14:21:19] Production.INFO: ProcessCDR(1,14936174,1,1,2) [2025-04-18 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936174', 'tblTempUsageDetail_20' ) start [2025-04-18 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936174', 'tblTempUsageDetail_20' ) end [2025-04-18 14:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:21:24] Production.INFO: ==18024== Releasing lock... [2025-04-18 14:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:21:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:22:05 [end_date_ymd] => 2025-04-18 14:22:05 [RateCDR] => 1 ) [2025-04-18 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:22:05' and `end` < '2025-04-18 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:22:18] Production.INFO: count ==2143 [2025-04-18 14:22:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:22:05 - End Time 2025-04-18 14:22:05 [2025-04-18 14:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936179', 'tblTempUsageDetail_20' ) start [2025-04-18 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936179', 'tblTempUsageDetail_20' ) end [2025-04-18 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936179', 'tblTempVendorCDR_20' ) start [2025-04-18 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936179', 'tblTempVendorCDR_20' ) end [2025-04-18 14:22:19] Production.INFO: ProcessCDR(1,14936179,1,1,2) [2025-04-18 14:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936179', 'tblTempUsageDetail_20' ) start [2025-04-18 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936179', 'tblTempUsageDetail_20' ) end [2025-04-18 14:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:22:22] Production.INFO: ==18096== Releasing lock... [2025-04-18 14:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:22:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:23:05 [end_date_ymd] => 2025-04-18 14:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:23:05' and `end` < '2025-04-18 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-04-18 14:23:19] Production.INFO: count ==2143 [2025-04-18 14:23:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:23:05 - End Time 2025-04-18 14:23:05 [2025-04-18 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936184', 'tblTempUsageDetail_20' ) start [2025-04-18 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936184', 'tblTempUsageDetail_20' ) end [2025-04-18 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936184', 'tblTempVendorCDR_20' ) start [2025-04-18 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936184', 'tblTempVendorCDR_20' ) end [2025-04-18 14:23:20] Production.INFO: ProcessCDR(1,14936184,1,1,2) [2025-04-18 14:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936184', 'tblTempUsageDetail_20' ) start [2025-04-18 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936184', 'tblTempUsageDetail_20' ) end [2025-04-18 14:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:23:23] Production.INFO: ==18167== Releasing lock... [2025-04-18 14:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:23:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:24:06 [end_date_ymd] => 2025-04-18 14:24:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:24:06' and `end` < '2025-04-18 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-04-18 14:24:19] Production.INFO: count ==2132 [2025-04-18 14:24:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:24:06 - End Time 2025-04-18 14:24:06 [2025-04-18 14:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936189', 'tblTempUsageDetail_20' ) start [2025-04-18 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936189', 'tblTempUsageDetail_20' ) end [2025-04-18 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936189', 'tblTempVendorCDR_20' ) start [2025-04-18 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936189', 'tblTempVendorCDR_20' ) end [2025-04-18 14:24:20] Production.INFO: ProcessCDR(1,14936189,1,1,2) [2025-04-18 14:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936189', 'tblTempUsageDetail_20' ) start [2025-04-18 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936189', 'tblTempUsageDetail_20' ) end [2025-04-18 14:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:24:23] Production.INFO: ==18242== Releasing lock... [2025-04-18 14:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:24:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:25:05 [end_date_ymd] => 2025-04-18 14:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:25:05' and `end` < '2025-04-18 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-04-18 14:25:18] Production.INFO: count ==2134 [2025-04-18 14:25:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:25:05 - End Time 2025-04-18 14:25:05 [2025-04-18 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936194', 'tblTempUsageDetail_20' ) start [2025-04-18 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936194', 'tblTempUsageDetail_20' ) end [2025-04-18 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936194', 'tblTempVendorCDR_20' ) start [2025-04-18 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936194', 'tblTempVendorCDR_20' ) end [2025-04-18 14:25:19] Production.INFO: ProcessCDR(1,14936194,1,1,2) [2025-04-18 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936194', 'tblTempUsageDetail_20' ) start [2025-04-18 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936194', 'tblTempUsageDetail_20' ) end [2025-04-18 14:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:25:24] Production.INFO: ==18312== Releasing lock... [2025-04-18 14:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:25:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:26:06 [end_date_ymd] => 2025-04-18 14:26:06 [RateCDR] => 1 ) [2025-04-18 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:26:06' and `end` < '2025-04-18 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:26:19] Production.INFO: count ==2125 [2025-04-18 14:26:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:26:06 - End Time 2025-04-18 14:26:06 [2025-04-18 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936199', 'tblTempUsageDetail_20' ) start [2025-04-18 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936199', 'tblTempUsageDetail_20' ) end [2025-04-18 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936199', 'tblTempVendorCDR_20' ) start [2025-04-18 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936199', 'tblTempVendorCDR_20' ) end [2025-04-18 14:26:20] Production.INFO: ProcessCDR(1,14936199,1,1,2) [2025-04-18 14:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936199', 'tblTempUsageDetail_20' ) start [2025-04-18 14:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936199', 'tblTempUsageDetail_20' ) end [2025-04-18 14:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:26:24] Production.INFO: ==18389== Releasing lock... [2025-04-18 14:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:26:24] Production.INFO: 44 MB #Memory Used# [2025-04-18 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:27:05 [end_date_ymd] => 2025-04-18 14:27:05 [RateCDR] => 1 ) [2025-04-18 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:27:05' and `end` < '2025-04-18 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:27:18] Production.INFO: count ==2157 [2025-04-18 14:27:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:27:05 - End Time 2025-04-18 14:27:05 [2025-04-18 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936204', 'tblTempUsageDetail_20' ) start [2025-04-18 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936204', 'tblTempUsageDetail_20' ) end [2025-04-18 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936204', 'tblTempVendorCDR_20' ) start [2025-04-18 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936204', 'tblTempVendorCDR_20' ) end [2025-04-18 14:27:19] Production.INFO: ProcessCDR(1,14936204,1,1,2) [2025-04-18 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936204', 'tblTempUsageDetail_20' ) start [2025-04-18 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936204', 'tblTempUsageDetail_20' ) end [2025-04-18 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:27:24] Production.INFO: ==18463== Releasing lock... [2025-04-18 14:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:27:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:28:05 [end_date_ymd] => 2025-04-18 14:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:28:05' and `end` < '2025-04-18 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-04-18 14:28:18] Production.INFO: count ==2168 [2025-04-18 14:28:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:28:05 - End Time 2025-04-18 14:28:05 [2025-04-18 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936209', 'tblTempUsageDetail_20' ) start [2025-04-18 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936209', 'tblTempUsageDetail_20' ) end [2025-04-18 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936209', 'tblTempVendorCDR_20' ) start [2025-04-18 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936209', 'tblTempVendorCDR_20' ) end [2025-04-18 14:28:19] Production.INFO: ProcessCDR(1,14936209,1,1,2) [2025-04-18 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936209', 'tblTempUsageDetail_20' ) start [2025-04-18 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936209', 'tblTempUsageDetail_20' ) end [2025-04-18 14:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:28:24] Production.INFO: ==18541== Releasing lock... [2025-04-18 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:28:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:29:05 [end_date_ymd] => 2025-04-18 14:29:05 [RateCDR] => 1 ) [2025-04-18 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:29:05' and `end` < '2025-04-18 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:29:18] Production.INFO: count ==2171 [2025-04-18 14:29:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:29:05 - End Time 2025-04-18 14:29:05 [2025-04-18 14:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936214', 'tblTempUsageDetail_20' ) start [2025-04-18 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936214', 'tblTempUsageDetail_20' ) end [2025-04-18 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936214', 'tblTempVendorCDR_20' ) start [2025-04-18 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936214', 'tblTempVendorCDR_20' ) end [2025-04-18 14:29:19] Production.INFO: ProcessCDR(1,14936214,1,1,2) [2025-04-18 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936214', 'tblTempUsageDetail_20' ) start [2025-04-18 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936214', 'tblTempUsageDetail_20' ) end [2025-04-18 14:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:29:24] Production.INFO: ==18614== Releasing lock... [2025-04-18 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:29:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:30:06 [end_date_ymd] => 2025-04-18 14:30:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:30:06' and `end` < '2025-04-18 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-04-18 14:30:19] Production.INFO: count ==2185 [2025-04-18 14:30:20] Production.ERROR: pbx CDR StartTime 2025-04-18 11:30:06 - End Time 2025-04-18 14:30:06 [2025-04-18 14:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936219', 'tblTempUsageDetail_20' ) start [2025-04-18 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936219', 'tblTempUsageDetail_20' ) end [2025-04-18 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936219', 'tblTempVendorCDR_20' ) start [2025-04-18 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936219', 'tblTempVendorCDR_20' ) end [2025-04-18 14:30:20] Production.INFO: ProcessCDR(1,14936219,1,1,2) [2025-04-18 14:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936219', 'tblTempUsageDetail_20' ) start [2025-04-18 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936219', 'tblTempUsageDetail_20' ) end [2025-04-18 14:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:30:25] Production.INFO: ==18691== Releasing lock... [2025-04-18 14:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:30:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:31:05 [end_date_ymd] => 2025-04-18 14:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:31:05' and `end` < '2025-04-18 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-04-18 14:31:18] Production.INFO: count ==2217 [2025-04-18 14:31:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:31:05 - End Time 2025-04-18 14:31:05 [2025-04-18 14:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936225', 'tblTempUsageDetail_20' ) start [2025-04-18 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936225', 'tblTempUsageDetail_20' ) end [2025-04-18 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936225', 'tblTempVendorCDR_20' ) start [2025-04-18 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936225', 'tblTempVendorCDR_20' ) end [2025-04-18 14:31:19] Production.INFO: ProcessCDR(1,14936225,1,1,2) [2025-04-18 14:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936225', 'tblTempUsageDetail_20' ) start [2025-04-18 14:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936225', 'tblTempUsageDetail_20' ) end [2025-04-18 14:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:31:24] Production.INFO: ==18772== Releasing lock... [2025-04-18 14:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:31:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:32:05 [end_date_ymd] => 2025-04-18 14:32:05 [RateCDR] => 1 ) [2025-04-18 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:32:05' and `end` < '2025-04-18 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:32:18] Production.INFO: count ==2219 [2025-04-18 14:32:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:32:05 - End Time 2025-04-18 14:32:05 [2025-04-18 14:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936230', 'tblTempUsageDetail_20' ) start [2025-04-18 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936230', 'tblTempUsageDetail_20' ) end [2025-04-18 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936230', 'tblTempVendorCDR_20' ) start [2025-04-18 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936230', 'tblTempVendorCDR_20' ) end [2025-04-18 14:32:19] Production.INFO: ProcessCDR(1,14936230,1,1,2) [2025-04-18 14:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936230', 'tblTempUsageDetail_20' ) start [2025-04-18 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936230', 'tblTempUsageDetail_20' ) end [2025-04-18 14:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:32:24] Production.INFO: ==18842== Releasing lock... [2025-04-18 14:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:32:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:33:05 [end_date_ymd] => 2025-04-18 14:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:33:05' and `end` < '2025-04-18 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-04-18 14:33:18] Production.INFO: count ==2210 [2025-04-18 14:33:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:33:05 - End Time 2025-04-18 14:33:05 [2025-04-18 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936235', 'tblTempUsageDetail_20' ) start [2025-04-18 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936235', 'tblTempUsageDetail_20' ) end [2025-04-18 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936235', 'tblTempVendorCDR_20' ) start [2025-04-18 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936235', 'tblTempVendorCDR_20' ) end [2025-04-18 14:33:19] Production.INFO: ProcessCDR(1,14936235,1,1,2) [2025-04-18 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936235', 'tblTempUsageDetail_20' ) start [2025-04-18 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936235', 'tblTempUsageDetail_20' ) end [2025-04-18 14:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:33:24] Production.INFO: ==18915== Releasing lock... [2025-04-18 14:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:33:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:34:05 [end_date_ymd] => 2025-04-18 14:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:34:05' and `end` < '2025-04-18 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-04-18 14:34:18] Production.INFO: count ==2217 [2025-04-18 14:34:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:34:05 - End Time 2025-04-18 14:34:05 [2025-04-18 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936240', 'tblTempUsageDetail_20' ) start [2025-04-18 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936240', 'tblTempUsageDetail_20' ) end [2025-04-18 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936240', 'tblTempVendorCDR_20' ) start [2025-04-18 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936240', 'tblTempVendorCDR_20' ) end [2025-04-18 14:34:19] Production.INFO: ProcessCDR(1,14936240,1,1,2) [2025-04-18 14:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936240', 'tblTempUsageDetail_20' ) start [2025-04-18 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936240', 'tblTempUsageDetail_20' ) end [2025-04-18 14:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:34:22] Production.INFO: ==18991== Releasing lock... [2025-04-18 14:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:34:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:35:05 [end_date_ymd] => 2025-04-18 14:35:05 [RateCDR] => 1 ) [2025-04-18 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:35:05' and `end` < '2025-04-18 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:35:18] Production.INFO: count ==2211 [2025-04-18 14:35:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:35:05 - End Time 2025-04-18 14:35:05 [2025-04-18 14:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936245', 'tblTempUsageDetail_20' ) start [2025-04-18 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936245', 'tblTempUsageDetail_20' ) end [2025-04-18 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936245', 'tblTempVendorCDR_20' ) start [2025-04-18 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936245', 'tblTempVendorCDR_20' ) end [2025-04-18 14:35:19] Production.INFO: ProcessCDR(1,14936245,1,1,2) [2025-04-18 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936245', 'tblTempUsageDetail_20' ) start [2025-04-18 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936245', 'tblTempUsageDetail_20' ) end [2025-04-18 14:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:35:23] Production.INFO: ==19061== Releasing lock... [2025-04-18 14:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:35:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:36:05 [end_date_ymd] => 2025-04-18 14:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:36:05' and `end` < '2025-04-18 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-04-18 14:36:18] Production.INFO: count ==2213 [2025-04-18 14:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:36:05 - End Time 2025-04-18 14:36:05 [2025-04-18 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936250', 'tblTempUsageDetail_20' ) start [2025-04-18 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936250', 'tblTempUsageDetail_20' ) end [2025-04-18 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936250', 'tblTempVendorCDR_20' ) start [2025-04-18 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936250', 'tblTempVendorCDR_20' ) end [2025-04-18 14:36:19] Production.INFO: ProcessCDR(1,14936250,1,1,2) [2025-04-18 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936250', 'tblTempUsageDetail_20' ) start [2025-04-18 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936250', 'tblTempUsageDetail_20' ) end [2025-04-18 14:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:36:22] Production.INFO: ==19175== Releasing lock... [2025-04-18 14:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:36:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:37:05 [end_date_ymd] => 2025-04-18 14:37:05 [RateCDR] => 1 ) [2025-04-18 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:37:05' and `end` < '2025-04-18 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:37:18] Production.INFO: count ==2214 [2025-04-18 14:37:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:37:05 - End Time 2025-04-18 14:37:05 [2025-04-18 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936255', 'tblTempUsageDetail_20' ) start [2025-04-18 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936255', 'tblTempUsageDetail_20' ) end [2025-04-18 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936255', 'tblTempVendorCDR_20' ) start [2025-04-18 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936255', 'tblTempVendorCDR_20' ) end [2025-04-18 14:37:19] Production.INFO: ProcessCDR(1,14936255,1,1,2) [2025-04-18 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936255', 'tblTempUsageDetail_20' ) start [2025-04-18 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936255', 'tblTempUsageDetail_20' ) end [2025-04-18 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:37:22] Production.INFO: ==19245== Releasing lock... [2025-04-18 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:37:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:38:04 [end_date_ymd] => 2025-04-18 14:38:04 [RateCDR] => 1 ) [2025-04-18 14:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:38:04' and `end` < '2025-04-18 14:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:38:17] Production.INFO: count ==2208 [2025-04-18 14:38:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:38:04 - End Time 2025-04-18 14:38:04 [2025-04-18 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936260', 'tblTempUsageDetail_20' ) start [2025-04-18 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936260', 'tblTempUsageDetail_20' ) end [2025-04-18 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936260', 'tblTempVendorCDR_20' ) start [2025-04-18 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936260', 'tblTempVendorCDR_20' ) end [2025-04-18 14:38:18] Production.INFO: ProcessCDR(1,14936260,1,1,2) [2025-04-18 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936260', 'tblTempUsageDetail_20' ) start [2025-04-18 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936260', 'tblTempUsageDetail_20' ) end [2025-04-18 14:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:38:22] Production.INFO: ==19323== Releasing lock... [2025-04-18 14:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:38:22] Production.INFO: 45 MB #Memory Used# [2025-04-18 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:39:06 [end_date_ymd] => 2025-04-18 14:39:06 [RateCDR] => 1 ) [2025-04-18 14: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-04-18 11:39:06' and `end` < '2025-04-18 14: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-04-18 14:39:19] Production.INFO: count ==2207 [2025-04-18 14:39:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:39:06 - End Time 2025-04-18 14:39:06 [2025-04-18 14:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936265', 'tblTempUsageDetail_20' ) start [2025-04-18 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936265', 'tblTempUsageDetail_20' ) end [2025-04-18 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936265', 'tblTempVendorCDR_20' ) start [2025-04-18 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936265', 'tblTempVendorCDR_20' ) end [2025-04-18 14:39:20] Production.INFO: ProcessCDR(1,14936265,1,1,2) [2025-04-18 14:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936265', 'tblTempUsageDetail_20' ) start [2025-04-18 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936265', 'tblTempUsageDetail_20' ) end [2025-04-18 14:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:39:23] Production.INFO: ==19394== Releasing lock... [2025-04-18 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:39:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:40:05 [end_date_ymd] => 2025-04-18 14:40:05 [RateCDR] => 1 ) [2025-04-18 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:40:05' and `end` < '2025-04-18 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:40:18] Production.INFO: count ==2205 [2025-04-18 14:40:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:40:05 - End Time 2025-04-18 14:40:05 [2025-04-18 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936270', 'tblTempUsageDetail_20' ) start [2025-04-18 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936270', 'tblTempUsageDetail_20' ) end [2025-04-18 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936270', 'tblTempVendorCDR_20' ) start [2025-04-18 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936270', 'tblTempVendorCDR_20' ) end [2025-04-18 14:40:19] Production.INFO: ProcessCDR(1,14936270,1,1,2) [2025-04-18 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936270', 'tblTempUsageDetail_20' ) start [2025-04-18 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936270', 'tblTempUsageDetail_20' ) end [2025-04-18 14:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:40:24] Production.INFO: ==19467== Releasing lock... [2025-04-18 14:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:40:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:41:05 [end_date_ymd] => 2025-04-18 14:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:41:05' and `end` < '2025-04-18 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-04-18 14:41:18] Production.INFO: count ==2219 [2025-04-18 14:41:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:41:05 - End Time 2025-04-18 14:41:05 [2025-04-18 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936276', 'tblTempUsageDetail_20' ) start [2025-04-18 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936276', 'tblTempUsageDetail_20' ) end [2025-04-18 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936276', 'tblTempVendorCDR_20' ) start [2025-04-18 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936276', 'tblTempVendorCDR_20' ) end [2025-04-18 14:41:19] Production.INFO: ProcessCDR(1,14936276,1,1,2) [2025-04-18 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936276', 'tblTempUsageDetail_20' ) start [2025-04-18 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936276', 'tblTempUsageDetail_20' ) end [2025-04-18 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:41:22] Production.INFO: ==19545== Releasing lock... [2025-04-18 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:41:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:42:06 [end_date_ymd] => 2025-04-18 14:42:06 [RateCDR] => 1 ) [2025-04-18 14: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-04-18 11:42:06' and `end` < '2025-04-18 14: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-04-18 14:42:19] Production.INFO: count ==2209 [2025-04-18 14:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:42:06 - End Time 2025-04-18 14:42:06 [2025-04-18 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936281', 'tblTempUsageDetail_20' ) start [2025-04-18 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936281', 'tblTempUsageDetail_20' ) end [2025-04-18 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936281', 'tblTempVendorCDR_20' ) start [2025-04-18 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936281', 'tblTempVendorCDR_20' ) end [2025-04-18 14:42:19] Production.INFO: ProcessCDR(1,14936281,1,1,2) [2025-04-18 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936281', 'tblTempUsageDetail_20' ) start [2025-04-18 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936281', 'tblTempUsageDetail_20' ) end [2025-04-18 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:42:23] Production.INFO: ==19619== Releasing lock... [2025-04-18 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:42:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:43:05 [end_date_ymd] => 2025-04-18 14:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:43:05' and `end` < '2025-04-18 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-04-18 14:43:18] Production.INFO: count ==2205 [2025-04-18 14:43:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:43:05 - End Time 2025-04-18 14:43:05 [2025-04-18 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936286', 'tblTempUsageDetail_20' ) start [2025-04-18 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936286', 'tblTempUsageDetail_20' ) end [2025-04-18 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936286', 'tblTempVendorCDR_20' ) start [2025-04-18 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936286', 'tblTempVendorCDR_20' ) end [2025-04-18 14:43:19] Production.INFO: ProcessCDR(1,14936286,1,1,2) [2025-04-18 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936286', 'tblTempUsageDetail_20' ) start [2025-04-18 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936286', 'tblTempUsageDetail_20' ) end [2025-04-18 14:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:43:22] Production.INFO: ==19709== Releasing lock... [2025-04-18 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:43:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:44:05 [end_date_ymd] => 2025-04-18 14:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:44:05' and `end` < '2025-04-18 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-04-18 14:44:18] Production.INFO: count ==2200 [2025-04-18 14:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:44:05 - End Time 2025-04-18 14:44:05 [2025-04-18 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936291', 'tblTempUsageDetail_20' ) start [2025-04-18 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936291', 'tblTempUsageDetail_20' ) end [2025-04-18 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936291', 'tblTempVendorCDR_20' ) start [2025-04-18 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936291', 'tblTempVendorCDR_20' ) end [2025-04-18 14:44:19] Production.INFO: ProcessCDR(1,14936291,1,1,2) [2025-04-18 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936291', 'tblTempUsageDetail_20' ) start [2025-04-18 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936291', 'tblTempUsageDetail_20' ) end [2025-04-18 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:44:23] Production.INFO: ==19781== Releasing lock... [2025-04-18 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:44:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:45:04 [end_date_ymd] => 2025-04-18 14:45:04 [RateCDR] => 1 ) [2025-04-18 14:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:45:04' and `end` < '2025-04-18 14:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:45:17] Production.INFO: count ==2200 [2025-04-18 14:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:45:04 - End Time 2025-04-18 14:45:04 [2025-04-18 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936296', 'tblTempUsageDetail_20' ) start [2025-04-18 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936296', 'tblTempUsageDetail_20' ) end [2025-04-18 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936296', 'tblTempVendorCDR_20' ) start [2025-04-18 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936296', 'tblTempVendorCDR_20' ) end [2025-04-18 14:45:18] Production.INFO: ProcessCDR(1,14936296,1,1,2) [2025-04-18 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936296', 'tblTempUsageDetail_20' ) start [2025-04-18 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936296', 'tblTempUsageDetail_20' ) end [2025-04-18 14:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:45:22] Production.INFO: ==19856== Releasing lock... [2025-04-18 14:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:45:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:46:05 [end_date_ymd] => 2025-04-18 14:46:05 [RateCDR] => 1 ) [2025-04-18 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:46:05' and `end` < '2025-04-18 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:46:18] Production.INFO: count ==2193 [2025-04-18 14:46:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:46:05 - End Time 2025-04-18 14:46:05 [2025-04-18 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936301', 'tblTempUsageDetail_20' ) start [2025-04-18 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936301', 'tblTempUsageDetail_20' ) end [2025-04-18 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936301', 'tblTempVendorCDR_20' ) start [2025-04-18 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936301', 'tblTempVendorCDR_20' ) end [2025-04-18 14:46:19] Production.INFO: ProcessCDR(1,14936301,1,1,2) [2025-04-18 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936301', 'tblTempUsageDetail_20' ) start [2025-04-18 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936301', 'tblTempUsageDetail_20' ) end [2025-04-18 14:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:46:23] Production.INFO: ==19932== Releasing lock... [2025-04-18 14:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:46:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:47:05 [end_date_ymd] => 2025-04-18 14:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:47:05' and `end` < '2025-04-18 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-04-18 14:47:17] Production.INFO: count ==2178 [2025-04-18 14:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:47:05 - End Time 2025-04-18 14:47:05 [2025-04-18 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936306', 'tblTempUsageDetail_20' ) start [2025-04-18 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936306', 'tblTempUsageDetail_20' ) end [2025-04-18 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936306', 'tblTempVendorCDR_20' ) start [2025-04-18 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936306', 'tblTempVendorCDR_20' ) end [2025-04-18 14:47:18] Production.INFO: ProcessCDR(1,14936306,1,1,2) [2025-04-18 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936306', 'tblTempUsageDetail_20' ) start [2025-04-18 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936306', 'tblTempUsageDetail_20' ) end [2025-04-18 14:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:47:23] Production.INFO: ==20007== Releasing lock... [2025-04-18 14:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:47:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:48:05 [end_date_ymd] => 2025-04-18 14:48:05 [RateCDR] => 1 ) [2025-04-18 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:48:05' and `end` < '2025-04-18 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:48:18] Production.INFO: count ==2192 [2025-04-18 14:48:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:48:05 - End Time 2025-04-18 14:48:05 [2025-04-18 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936311', 'tblTempUsageDetail_20' ) start [2025-04-18 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936311', 'tblTempUsageDetail_20' ) end [2025-04-18 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936311', 'tblTempVendorCDR_20' ) start [2025-04-18 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936311', 'tblTempVendorCDR_20' ) end [2025-04-18 14:48:19] Production.INFO: ProcessCDR(1,14936311,1,1,2) [2025-04-18 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936311', 'tblTempUsageDetail_20' ) start [2025-04-18 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936311', 'tblTempUsageDetail_20' ) end [2025-04-18 14:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:48:22] Production.INFO: ==20086== Releasing lock... [2025-04-18 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:48:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:49:05 [end_date_ymd] => 2025-04-18 14:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:49:05' and `end` < '2025-04-18 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-04-18 14:49:19] Production.INFO: count ==2186 [2025-04-18 14:49:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:49:05 - End Time 2025-04-18 14:49:05 [2025-04-18 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936316', 'tblTempUsageDetail_20' ) start [2025-04-18 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936316', 'tblTempUsageDetail_20' ) end [2025-04-18 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936316', 'tblTempVendorCDR_20' ) start [2025-04-18 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936316', 'tblTempVendorCDR_20' ) end [2025-04-18 14:49:19] Production.INFO: ProcessCDR(1,14936316,1,1,2) [2025-04-18 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936316', 'tblTempUsageDetail_20' ) start [2025-04-18 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936316', 'tblTempUsageDetail_20' ) end [2025-04-18 14:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:49:23] Production.INFO: ==20157== Releasing lock... [2025-04-18 14:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:49:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:50:05 [end_date_ymd] => 2025-04-18 14:50:05 [RateCDR] => 1 ) [2025-04-18 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:50:05' and `end` < '2025-04-18 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:50:19] Production.INFO: count ==2178 [2025-04-18 14:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:50:05 - End Time 2025-04-18 14:50:05 [2025-04-18 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936322', 'tblTempUsageDetail_20' ) start [2025-04-18 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936322', 'tblTempUsageDetail_20' ) end [2025-04-18 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936322', 'tblTempVendorCDR_20' ) start [2025-04-18 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936322', 'tblTempVendorCDR_20' ) end [2025-04-18 14:50:19] Production.INFO: ProcessCDR(1,14936322,1,1,2) [2025-04-18 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936322', 'tblTempUsageDetail_20' ) start [2025-04-18 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936322', 'tblTempUsageDetail_20' ) end [2025-04-18 14:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:50:24] Production.INFO: ==20230== Releasing lock... [2025-04-18 14:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:50:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:51:05 [end_date_ymd] => 2025-04-18 14:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:51:05' and `end` < '2025-04-18 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-04-18 14:51:18] Production.INFO: count ==2201 [2025-04-18 14:51:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:51:05 - End Time 2025-04-18 14:51:05 [2025-04-18 14:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936327', 'tblTempUsageDetail_20' ) start [2025-04-18 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936327', 'tblTempUsageDetail_20' ) end [2025-04-18 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936327', 'tblTempVendorCDR_20' ) start [2025-04-18 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936327', 'tblTempVendorCDR_20' ) end [2025-04-18 14:51:19] Production.INFO: ProcessCDR(1,14936327,1,1,2) [2025-04-18 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936327', 'tblTempUsageDetail_20' ) start [2025-04-18 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936327', 'tblTempUsageDetail_20' ) end [2025-04-18 14:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:51:22] Production.INFO: ==20307== Releasing lock... [2025-04-18 14:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:51:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:52:05 [end_date_ymd] => 2025-04-18 14:52:05 [RateCDR] => 1 ) [2025-04-18 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:52:05' and `end` < '2025-04-18 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:52:18] Production.INFO: count ==2194 [2025-04-18 14:52:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:52:05 - End Time 2025-04-18 14:52:05 [2025-04-18 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936332', 'tblTempUsageDetail_20' ) start [2025-04-18 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936332', 'tblTempUsageDetail_20' ) end [2025-04-18 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936332', 'tblTempVendorCDR_20' ) start [2025-04-18 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936332', 'tblTempVendorCDR_20' ) end [2025-04-18 14:52:19] Production.INFO: ProcessCDR(1,14936332,1,1,2) [2025-04-18 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936332', 'tblTempUsageDetail_20' ) start [2025-04-18 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936332', 'tblTempUsageDetail_20' ) end [2025-04-18 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:52:22] Production.INFO: ==20418== Releasing lock... [2025-04-18 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:52:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:53:05 [end_date_ymd] => 2025-04-18 14:53:05 [RateCDR] => 1 ) [2025-04-18 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:53:05' and `end` < '2025-04-18 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:53:18] Production.INFO: count ==2191 [2025-04-18 14:53:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:53:05 - End Time 2025-04-18 14:53:05 [2025-04-18 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936337', 'tblTempUsageDetail_20' ) start [2025-04-18 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936337', 'tblTempUsageDetail_20' ) end [2025-04-18 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936337', 'tblTempVendorCDR_20' ) start [2025-04-18 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936337', 'tblTempVendorCDR_20' ) end [2025-04-18 14:53:19] Production.INFO: ProcessCDR(1,14936337,1,1,2) [2025-04-18 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936337', 'tblTempUsageDetail_20' ) start [2025-04-18 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936337', 'tblTempUsageDetail_20' ) end [2025-04-18 14:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:53:24] Production.INFO: ==20495== Releasing lock... [2025-04-18 14:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:53:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:54:04 [end_date_ymd] => 2025-04-18 14:54:04 [RateCDR] => 1 ) [2025-04-18 14:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:54:04' and `end` < '2025-04-18 14:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:54:18] Production.INFO: count ==2184 [2025-04-18 14:54:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:54:04 - End Time 2025-04-18 14:54:04 [2025-04-18 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936342', 'tblTempUsageDetail_20' ) start [2025-04-18 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936342', 'tblTempUsageDetail_20' ) end [2025-04-18 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936342', 'tblTempVendorCDR_20' ) start [2025-04-18 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936342', 'tblTempVendorCDR_20' ) end [2025-04-18 14:54:19] Production.INFO: ProcessCDR(1,14936342,1,1,2) [2025-04-18 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936342', 'tblTempUsageDetail_20' ) start [2025-04-18 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936342', 'tblTempUsageDetail_20' ) end [2025-04-18 14:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:54:22] Production.INFO: ==20567== Releasing lock... [2025-04-18 14:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:54:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:55:04 [end_date_ymd] => 2025-04-18 14:55:04 [RateCDR] => 1 ) [2025-04-18 14:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:55:04' and `end` < '2025-04-18 14:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:55:17] Production.INFO: count ==2179 [2025-04-18 14:55:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:55:04 - End Time 2025-04-18 14:55:04 [2025-04-18 14:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936347', 'tblTempUsageDetail_20' ) start [2025-04-18 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936347', 'tblTempUsageDetail_20' ) end [2025-04-18 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936347', 'tblTempVendorCDR_20' ) start [2025-04-18 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936347', 'tblTempVendorCDR_20' ) end [2025-04-18 14:55:18] Production.INFO: ProcessCDR(1,14936347,1,1,2) [2025-04-18 14:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936347', 'tblTempUsageDetail_20' ) start [2025-04-18 14:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936347', 'tblTempUsageDetail_20' ) end [2025-04-18 14:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:55:21] Production.INFO: ==20638== Releasing lock... [2025-04-18 14:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:55:21] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:56:05 [end_date_ymd] => 2025-04-18 14:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:56:05' and `end` < '2025-04-18 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-04-18 14:56:18] Production.INFO: count ==2177 [2025-04-18 14:56:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:56:05 - End Time 2025-04-18 14:56:05 [2025-04-18 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936352', 'tblTempUsageDetail_20' ) start [2025-04-18 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936352', 'tblTempUsageDetail_20' ) end [2025-04-18 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936352', 'tblTempVendorCDR_20' ) start [2025-04-18 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936352', 'tblTempVendorCDR_20' ) end [2025-04-18 14:56:19] Production.INFO: ProcessCDR(1,14936352,1,1,2) [2025-04-18 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936352', 'tblTempUsageDetail_20' ) start [2025-04-18 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936352', 'tblTempUsageDetail_20' ) end [2025-04-18 14:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:56:25] Production.INFO: ==20712== Releasing lock... [2025-04-18 14:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:56:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:57:05 [end_date_ymd] => 2025-04-18 14:57:05 [RateCDR] => 1 ) [2025-04-18 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:57:05' and `end` < '2025-04-18 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:57:18] Production.INFO: count ==2176 [2025-04-18 14:57:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:57:05 - End Time 2025-04-18 14:57:05 [2025-04-18 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936357', 'tblTempUsageDetail_20' ) start [2025-04-18 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936357', 'tblTempUsageDetail_20' ) end [2025-04-18 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936357', 'tblTempVendorCDR_20' ) start [2025-04-18 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936357', 'tblTempVendorCDR_20' ) end [2025-04-18 14:57:19] Production.INFO: ProcessCDR(1,14936357,1,1,2) [2025-04-18 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936357', 'tblTempUsageDetail_20' ) start [2025-04-18 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936357', 'tblTempUsageDetail_20' ) end [2025-04-18 14:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:57:23] Production.INFO: ==20781== Releasing lock... [2025-04-18 14:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:57:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:58:05 [end_date_ymd] => 2025-04-18 14:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 11:58:05' and `end` < '2025-04-18 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-04-18 14:58:18] Production.INFO: count ==2175 [2025-04-18 14:58:19] Production.ERROR: pbx CDR StartTime 2025-04-18 11:58:05 - End Time 2025-04-18 14:58:05 [2025-04-18 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936362', 'tblTempUsageDetail_20' ) start [2025-04-18 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936362', 'tblTempUsageDetail_20' ) end [2025-04-18 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936362', 'tblTempVendorCDR_20' ) start [2025-04-18 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936362', 'tblTempVendorCDR_20' ) end [2025-04-18 14:58:19] Production.INFO: ProcessCDR(1,14936362,1,1,2) [2025-04-18 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936362', 'tblTempUsageDetail_20' ) start [2025-04-18 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936362', 'tblTempUsageDetail_20' ) end [2025-04-18 14:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:58:22] Production.INFO: ==20864== Releasing lock... [2025-04-18 14:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:58:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 11:59:05 [end_date_ymd] => 2025-04-18 14:59:05 [RateCDR] => 1 ) [2025-04-18 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 11:59:05' and `end` < '2025-04-18 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 14:59:18] Production.INFO: count ==2161 [2025-04-18 14:59:18] Production.ERROR: pbx CDR StartTime 2025-04-18 11:59:05 - End Time 2025-04-18 14:59:05 [2025-04-18 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936367', 'tblTempUsageDetail_20' ) start [2025-04-18 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936367', 'tblTempUsageDetail_20' ) end [2025-04-18 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936367', 'tblTempVendorCDR_20' ) start [2025-04-18 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936367', 'tblTempVendorCDR_20' ) end [2025-04-18 14:59:19] Production.INFO: ProcessCDR(1,14936367,1,1,2) [2025-04-18 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 14:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936367', 'tblTempUsageDetail_20' ) start [2025-04-18 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936367', 'tblTempUsageDetail_20' ) end [2025-04-18 14:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 14:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 14:59:23] Production.INFO: ==20940== Releasing lock... [2025-04-18 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 14:59:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:00:05 [end_date_ymd] => 2025-04-18 15:00:05 [RateCDR] => 1 ) [2025-04-18 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:00:05' and `end` < '2025-04-18 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:00:18] Production.INFO: count ==2153 [2025-04-18 15:00:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:00:05 - End Time 2025-04-18 15:00:05 [2025-04-18 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936372', 'tblTempUsageDetail_20' ) start [2025-04-18 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936372', 'tblTempUsageDetail_20' ) end [2025-04-18 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936372', 'tblTempVendorCDR_20' ) start [2025-04-18 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936372', 'tblTempVendorCDR_20' ) end [2025-04-18 15:00:19] Production.INFO: ProcessCDR(1,14936372,1,1,2) [2025-04-18 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936372', 'tblTempUsageDetail_20' ) start [2025-04-18 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936372', 'tblTempUsageDetail_20' ) end [2025-04-18 15:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:00:22] Production.INFO: ==21018== Releasing lock... [2025-04-18 15:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:00:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:01:06 [end_date_ymd] => 2025-04-18 15:01:06 [RateCDR] => 1 ) [2025-04-18 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:01:06' and `end` < '2025-04-18 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:01:18] Production.INFO: count ==2148 [2025-04-18 15:01:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:01:06 - End Time 2025-04-18 15:01:06 [2025-04-18 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936378', 'tblTempUsageDetail_20' ) start [2025-04-18 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936378', 'tblTempUsageDetail_20' ) end [2025-04-18 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936378', 'tblTempVendorCDR_20' ) start [2025-04-18 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936378', 'tblTempVendorCDR_20' ) end [2025-04-18 15:01:19] Production.INFO: ProcessCDR(1,14936378,1,1,2) [2025-04-18 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936378', 'tblTempUsageDetail_20' ) start [2025-04-18 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936378', 'tblTempUsageDetail_20' ) end [2025-04-18 15:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:01:23] Production.INFO: ==21180== Releasing lock... [2025-04-18 15:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:01:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:02:05 [end_date_ymd] => 2025-04-18 15:02:05 [RateCDR] => 1 ) [2025-04-18 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:02:05' and `end` < '2025-04-18 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:02:18] Production.INFO: count ==2162 [2025-04-18 15:02:18] Production.ERROR: pbx CDR StartTime 2025-04-18 12:02:05 - End Time 2025-04-18 15:02:05 [2025-04-18 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936383', 'tblTempUsageDetail_20' ) start [2025-04-18 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936383', 'tblTempUsageDetail_20' ) end [2025-04-18 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936383', 'tblTempVendorCDR_20' ) start [2025-04-18 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936383', 'tblTempVendorCDR_20' ) end [2025-04-18 15:02:18] Production.INFO: ProcessCDR(1,14936383,1,1,2) [2025-04-18 15:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936383', 'tblTempUsageDetail_20' ) start [2025-04-18 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936383', 'tblTempUsageDetail_20' ) end [2025-04-18 15:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:02:22] Production.INFO: ==21253== Releasing lock... [2025-04-18 15:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:02:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:03:05 [end_date_ymd] => 2025-04-18 15:03:05 [RateCDR] => 1 ) [2025-04-18 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:03:05' and `end` < '2025-04-18 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:03:19] Production.INFO: count ==2151 [2025-04-18 15:03:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:03:05 - End Time 2025-04-18 15:03:05 [2025-04-18 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936388', 'tblTempUsageDetail_20' ) start [2025-04-18 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936388', 'tblTempUsageDetail_20' ) end [2025-04-18 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936388', 'tblTempVendorCDR_20' ) start [2025-04-18 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936388', 'tblTempVendorCDR_20' ) end [2025-04-18 15:03:19] Production.INFO: ProcessCDR(1,14936388,1,1,2) [2025-04-18 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936388', 'tblTempUsageDetail_20' ) start [2025-04-18 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936388', 'tblTempUsageDetail_20' ) end [2025-04-18 15:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:03:23] Production.INFO: ==21327== Releasing lock... [2025-04-18 15:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:03:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:04:05 [end_date_ymd] => 2025-04-18 15:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:04:05' and `end` < '2025-04-18 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-04-18 15:04:18] Production.INFO: count ==2147 [2025-04-18 15:04:18] Production.ERROR: pbx CDR StartTime 2025-04-18 12:04:05 - End Time 2025-04-18 15:04:05 [2025-04-18 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936393', 'tblTempUsageDetail_20' ) start [2025-04-18 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936393', 'tblTempUsageDetail_20' ) end [2025-04-18 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936393', 'tblTempVendorCDR_20' ) start [2025-04-18 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936393', 'tblTempVendorCDR_20' ) end [2025-04-18 15:04:19] Production.INFO: ProcessCDR(1,14936393,1,1,2) [2025-04-18 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936393', 'tblTempUsageDetail_20' ) start [2025-04-18 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936393', 'tblTempUsageDetail_20' ) end [2025-04-18 15:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:04:22] Production.INFO: ==21398== Releasing lock... [2025-04-18 15:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:04:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:05:05 [end_date_ymd] => 2025-04-18 15:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:05:05' and `end` < '2025-04-18 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-04-18 15:05:18] Production.INFO: count ==2164 [2025-04-18 15:05:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:05:05 - End Time 2025-04-18 15:05:05 [2025-04-18 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936398', 'tblTempUsageDetail_20' ) start [2025-04-18 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936398', 'tblTempUsageDetail_20' ) end [2025-04-18 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936398', 'tblTempVendorCDR_20' ) start [2025-04-18 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936398', 'tblTempVendorCDR_20' ) end [2025-04-18 15:05:19] Production.INFO: ProcessCDR(1,14936398,1,1,2) [2025-04-18 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936398', 'tblTempUsageDetail_20' ) start [2025-04-18 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936398', 'tblTempUsageDetail_20' ) end [2025-04-18 15:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:05:23] Production.INFO: ==21553== Releasing lock... [2025-04-18 15:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:05:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:06:05 [end_date_ymd] => 2025-04-18 15:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:06:05' and `end` < '2025-04-18 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-04-18 15:06:18] Production.INFO: count ==2163 [2025-04-18 15:06:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:06:05 - End Time 2025-04-18 15:06:05 [2025-04-18 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936403', 'tblTempUsageDetail_20' ) start [2025-04-18 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936403', 'tblTempUsageDetail_20' ) end [2025-04-18 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936403', 'tblTempVendorCDR_20' ) start [2025-04-18 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936403', 'tblTempVendorCDR_20' ) end [2025-04-18 15:06:19] Production.INFO: ProcessCDR(1,14936403,1,1,2) [2025-04-18 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936403', 'tblTempUsageDetail_20' ) start [2025-04-18 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936403', 'tblTempUsageDetail_20' ) end [2025-04-18 15:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:06:22] Production.INFO: ==21623== Releasing lock... [2025-04-18 15:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:06:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:07:05 [end_date_ymd] => 2025-04-18 15:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:07:05' and `end` < '2025-04-18 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-04-18 15:07:18] Production.INFO: count ==2165 [2025-04-18 15:07:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:07:05 - End Time 2025-04-18 15:07:05 [2025-04-18 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936408', 'tblTempUsageDetail_20' ) start [2025-04-18 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936408', 'tblTempUsageDetail_20' ) end [2025-04-18 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936408', 'tblTempVendorCDR_20' ) start [2025-04-18 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936408', 'tblTempVendorCDR_20' ) end [2025-04-18 15:07:19] Production.INFO: ProcessCDR(1,14936408,1,1,2) [2025-04-18 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936408', 'tblTempUsageDetail_20' ) start [2025-04-18 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936408', 'tblTempUsageDetail_20' ) end [2025-04-18 15:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:07:23] Production.INFO: ==21737== Releasing lock... [2025-04-18 15:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:07:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:08:05 [end_date_ymd] => 2025-04-18 15:08:05 [RateCDR] => 1 ) [2025-04-18 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:08:05' and `end` < '2025-04-18 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:08:18] Production.INFO: count ==2166 [2025-04-18 15:08:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:08:05 - End Time 2025-04-18 15:08:05 [2025-04-18 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936413', 'tblTempUsageDetail_20' ) start [2025-04-18 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936413', 'tblTempUsageDetail_20' ) end [2025-04-18 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936413', 'tblTempVendorCDR_20' ) start [2025-04-18 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936413', 'tblTempVendorCDR_20' ) end [2025-04-18 15:08:19] Production.INFO: ProcessCDR(1,14936413,1,1,2) [2025-04-18 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936413', 'tblTempUsageDetail_20' ) start [2025-04-18 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936413', 'tblTempUsageDetail_20' ) end [2025-04-18 15:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:08:24] Production.INFO: ==21888== Releasing lock... [2025-04-18 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:08:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:09:04 [end_date_ymd] => 2025-04-18 15:09:04 [RateCDR] => 1 ) [2025-04-18 15:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:09:04' and `end` < '2025-04-18 15:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:09:18] Production.INFO: count ==2196 [2025-04-18 15:09:18] Production.ERROR: pbx CDR StartTime 2025-04-18 12:09:04 - End Time 2025-04-18 15:09:04 [2025-04-18 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936418', 'tblTempUsageDetail_20' ) start [2025-04-18 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936418', 'tblTempUsageDetail_20' ) end [2025-04-18 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936418', 'tblTempVendorCDR_20' ) start [2025-04-18 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936418', 'tblTempVendorCDR_20' ) end [2025-04-18 15:09:18] Production.INFO: ProcessCDR(1,14936418,1,1,2) [2025-04-18 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936418', 'tblTempUsageDetail_20' ) start [2025-04-18 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936418', 'tblTempUsageDetail_20' ) end [2025-04-18 15:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:09:22] Production.INFO: ==21959== Releasing lock... [2025-04-18 15:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:09:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:10:06 [end_date_ymd] => 2025-04-18 15:10:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:10:06' and `end` < '2025-04-18 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-04-18 15:10:19] Production.INFO: count ==2207 [2025-04-18 15:10:20] Production.ERROR: pbx CDR StartTime 2025-04-18 12:10:06 - End Time 2025-04-18 15:10:06 [2025-04-18 15:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936424', 'tblTempUsageDetail_20' ) start [2025-04-18 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936424', 'tblTempUsageDetail_20' ) end [2025-04-18 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936424', 'tblTempVendorCDR_20' ) start [2025-04-18 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936424', 'tblTempVendorCDR_20' ) end [2025-04-18 15:10:20] Production.INFO: ProcessCDR(1,14936424,1,1,2) [2025-04-18 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936424', 'tblTempUsageDetail_20' ) start [2025-04-18 15:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936424', 'tblTempUsageDetail_20' ) end [2025-04-18 15:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:10:25] Production.INFO: ==22034== Releasing lock... [2025-04-18 15:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:10:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:11:05 [end_date_ymd] => 2025-04-18 15:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:11:05' and `end` < '2025-04-18 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-04-18 15:11:18] Production.INFO: count ==2238 [2025-04-18 15:11:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:11:05 - End Time 2025-04-18 15:11:05 [2025-04-18 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936429', 'tblTempUsageDetail_20' ) start [2025-04-18 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936429', 'tblTempUsageDetail_20' ) end [2025-04-18 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936429', 'tblTempVendorCDR_20' ) start [2025-04-18 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936429', 'tblTempVendorCDR_20' ) end [2025-04-18 15:11:19] Production.INFO: ProcessCDR(1,14936429,1,1,2) [2025-04-18 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936429', 'tblTempUsageDetail_20' ) start [2025-04-18 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936429', 'tblTempUsageDetail_20' ) end [2025-04-18 15:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:11:24] Production.INFO: ==22108== Releasing lock... [2025-04-18 15:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:11:24] Production.INFO: 45 MB #Memory Used# [2025-04-18 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:12:05 [end_date_ymd] => 2025-04-18 15:12:05 [RateCDR] => 1 ) [2025-04-18 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:12:05' and `end` < '2025-04-18 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:12:18] Production.INFO: count ==2235 [2025-04-18 15:12:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:12:05 - End Time 2025-04-18 15:12:05 [2025-04-18 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936434', 'tblTempUsageDetail_20' ) start [2025-04-18 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936434', 'tblTempUsageDetail_20' ) end [2025-04-18 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936434', 'tblTempVendorCDR_20' ) start [2025-04-18 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936434', 'tblTempVendorCDR_20' ) end [2025-04-18 15:12:19] Production.INFO: ProcessCDR(1,14936434,1,1,2) [2025-04-18 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936434', 'tblTempUsageDetail_20' ) start [2025-04-18 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936434', 'tblTempUsageDetail_20' ) end [2025-04-18 15:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:12:24] Production.INFO: ==22266== Releasing lock... [2025-04-18 15:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:12:24] Production.INFO: 45 MB #Memory Used# [2025-04-18 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:13:04 [end_date_ymd] => 2025-04-18 15:13:04 [RateCDR] => 1 ) [2025-04-18 15:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:13:04' and `end` < '2025-04-18 15:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:13:17] Production.INFO: count ==2234 [2025-04-18 15:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 12:13:04 - End Time 2025-04-18 15:13:04 [2025-04-18 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936439', 'tblTempUsageDetail_20' ) start [2025-04-18 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936439', 'tblTempUsageDetail_20' ) end [2025-04-18 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936439', 'tblTempVendorCDR_20' ) start [2025-04-18 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936439', 'tblTempVendorCDR_20' ) end [2025-04-18 15:13:18] Production.INFO: ProcessCDR(1,14936439,1,1,2) [2025-04-18 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936439', 'tblTempUsageDetail_20' ) start [2025-04-18 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936439', 'tblTempUsageDetail_20' ) end [2025-04-18 15:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:13:22] Production.INFO: ==22344== Releasing lock... [2025-04-18 15:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:13:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:14:05 [end_date_ymd] => 2025-04-18 15:14:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:14:05' and `end` < '2025-04-18 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-04-18 15:14:18] Production.INFO: count ==2228 [2025-04-18 15:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:14:05 - End Time 2025-04-18 15:14:05 [2025-04-18 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936444', 'tblTempUsageDetail_20' ) start [2025-04-18 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936444', 'tblTempUsageDetail_20' ) end [2025-04-18 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936444', 'tblTempVendorCDR_20' ) start [2025-04-18 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936444', 'tblTempVendorCDR_20' ) end [2025-04-18 15:14:19] Production.INFO: ProcessCDR(1,14936444,1,1,2) [2025-04-18 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936444', 'tblTempUsageDetail_20' ) start [2025-04-18 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936444', 'tblTempUsageDetail_20' ) end [2025-04-18 15:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:14:22] Production.INFO: ==22418== Releasing lock... [2025-04-18 15:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:14:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:15:06 [end_date_ymd] => 2025-04-18 15:15:06 [RateCDR] => 1 ) [2025-04-18 15: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-04-18 12:15:06' and `end` < '2025-04-18 15: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-04-18 15:15:19] Production.INFO: count ==2246 [2025-04-18 15:15:20] Production.ERROR: pbx CDR StartTime 2025-04-18 12:15:06 - End Time 2025-04-18 15:15:06 [2025-04-18 15:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936449', 'tblTempUsageDetail_20' ) start [2025-04-18 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936449', 'tblTempUsageDetail_20' ) end [2025-04-18 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936449', 'tblTempVendorCDR_20' ) start [2025-04-18 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936449', 'tblTempVendorCDR_20' ) end [2025-04-18 15:15:20] Production.INFO: ProcessCDR(1,14936449,1,1,2) [2025-04-18 15:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936449', 'tblTempUsageDetail_20' ) start [2025-04-18 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936449', 'tblTempUsageDetail_20' ) end [2025-04-18 15:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:15:23] Production.INFO: ==22570== Releasing lock... [2025-04-18 15:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:15:23] Production.INFO: 45 MB #Memory Used# [2025-04-18 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:16:05 [end_date_ymd] => 2025-04-18 15:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:16:05' and `end` < '2025-04-18 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-04-18 15:16:18] Production.INFO: count ==2241 [2025-04-18 15:16:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:16:05 - End Time 2025-04-18 15:16:05 [2025-04-18 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936454', 'tblTempUsageDetail_20' ) start [2025-04-18 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936454', 'tblTempUsageDetail_20' ) end [2025-04-18 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936454', 'tblTempVendorCDR_20' ) start [2025-04-18 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936454', 'tblTempVendorCDR_20' ) end [2025-04-18 15:16:19] Production.INFO: ProcessCDR(1,14936454,1,1,2) [2025-04-18 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936454', 'tblTempUsageDetail_20' ) start [2025-04-18 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936454', 'tblTempUsageDetail_20' ) end [2025-04-18 15:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:16:24] Production.INFO: ==22642== Releasing lock... [2025-04-18 15:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:16:24] Production.INFO: 45 MB #Memory Used# [2025-04-18 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:17:06 [end_date_ymd] => 2025-04-18 15:17:06 [RateCDR] => 1 ) [2025-04-18 15: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-04-18 12:17:06' and `end` < '2025-04-18 15: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-04-18 15:17:19] Production.INFO: count ==2218 [2025-04-18 15:17:20] Production.ERROR: pbx CDR StartTime 2025-04-18 12:17:06 - End Time 2025-04-18 15:17:06 [2025-04-18 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936459', 'tblTempUsageDetail_20' ) start [2025-04-18 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936459', 'tblTempUsageDetail_20' ) end [2025-04-18 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936459', 'tblTempVendorCDR_20' ) start [2025-04-18 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936459', 'tblTempVendorCDR_20' ) end [2025-04-18 15:17:20] Production.INFO: ProcessCDR(1,14936459,1,1,2) [2025-04-18 15:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936459', 'tblTempUsageDetail_20' ) start [2025-04-18 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936459', 'tblTempUsageDetail_20' ) end [2025-04-18 15:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:17:23] Production.INFO: ==22719== Releasing lock... [2025-04-18 15:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:17:23] Production.INFO: 45 MB #Memory Used# [2025-04-18 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:18:05 [end_date_ymd] => 2025-04-18 15:18:05 [RateCDR] => 1 ) [2025-04-18 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:18:05' and `end` < '2025-04-18 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:18:18] Production.INFO: count ==2216 [2025-04-18 15:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:18:05 - End Time 2025-04-18 15:18:05 [2025-04-18 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936464', 'tblTempUsageDetail_20' ) start [2025-04-18 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936464', 'tblTempUsageDetail_20' ) end [2025-04-18 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936464', 'tblTempVendorCDR_20' ) start [2025-04-18 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936464', 'tblTempVendorCDR_20' ) end [2025-04-18 15:18:19] Production.INFO: ProcessCDR(1,14936464,1,1,2) [2025-04-18 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936464', 'tblTempUsageDetail_20' ) start [2025-04-18 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936464', 'tblTempUsageDetail_20' ) end [2025-04-18 15:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:18:22] Production.INFO: ==22793== Releasing lock... [2025-04-18 15:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:18:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:19:05 [end_date_ymd] => 2025-04-18 15:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:19:05' and `end` < '2025-04-18 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-04-18 15:19:18] Production.INFO: count ==2219 [2025-04-18 15:19:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:19:05 - End Time 2025-04-18 15:19:05 [2025-04-18 15:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936469', 'tblTempUsageDetail_20' ) start [2025-04-18 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936469', 'tblTempUsageDetail_20' ) end [2025-04-18 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936469', 'tblTempVendorCDR_20' ) start [2025-04-18 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936469', 'tblTempVendorCDR_20' ) end [2025-04-18 15:19:19] Production.INFO: ProcessCDR(1,14936469,1,1,2) [2025-04-18 15:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936469', 'tblTempUsageDetail_20' ) start [2025-04-18 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936469', 'tblTempUsageDetail_20' ) end [2025-04-18 15:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:19:22] Production.INFO: ==22866== Releasing lock... [2025-04-18 15:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:19:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-18 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:20:06 [end_date_ymd] => 2025-04-18 15:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:20:06' and `end` < '2025-04-18 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-04-18 15:20:19] Production.INFO: count ==2230 [2025-04-18 15:20:20] Production.ERROR: pbx CDR StartTime 2025-04-18 12:20:06 - End Time 2025-04-18 15:20:06 [2025-04-18 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936474', 'tblTempUsageDetail_20' ) start [2025-04-18 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936474', 'tblTempUsageDetail_20' ) end [2025-04-18 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936474', 'tblTempVendorCDR_20' ) start [2025-04-18 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936474', 'tblTempVendorCDR_20' ) end [2025-04-18 15:20:20] Production.INFO: ProcessCDR(1,14936474,1,1,2) [2025-04-18 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936474', 'tblTempUsageDetail_20' ) start [2025-04-18 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936474', 'tblTempUsageDetail_20' ) end [2025-04-18 15:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:20:23] Production.INFO: ==22951== Releasing lock... [2025-04-18 15:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:20:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:21:05 [end_date_ymd] => 2025-04-18 15:21:05 [RateCDR] => 1 ) [2025-04-18 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:21:05' and `end` < '2025-04-18 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:21:18] Production.INFO: count ==2225 [2025-04-18 15:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:21:05 - End Time 2025-04-18 15:21:05 [2025-04-18 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936480', 'tblTempUsageDetail_20' ) start [2025-04-18 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936480', 'tblTempUsageDetail_20' ) end [2025-04-18 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936480', 'tblTempVendorCDR_20' ) start [2025-04-18 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936480', 'tblTempVendorCDR_20' ) end [2025-04-18 15:21:19] Production.INFO: ProcessCDR(1,14936480,1,1,2) [2025-04-18 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936480', 'tblTempUsageDetail_20' ) start [2025-04-18 15:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936480', 'tblTempUsageDetail_20' ) end [2025-04-18 15:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:21:24] Production.INFO: ==23025== Releasing lock... [2025-04-18 15:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:21:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:22:05 [end_date_ymd] => 2025-04-18 15:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:22:05' and `end` < '2025-04-18 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-04-18 15:22:18] Production.INFO: count ==2234 [2025-04-18 15:22:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:22:05 - End Time 2025-04-18 15:22:05 [2025-04-18 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936485', 'tblTempUsageDetail_20' ) start [2025-04-18 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936485', 'tblTempUsageDetail_20' ) end [2025-04-18 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936485', 'tblTempVendorCDR_20' ) start [2025-04-18 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936485', 'tblTempVendorCDR_20' ) end [2025-04-18 15:22:19] Production.INFO: ProcessCDR(1,14936485,1,1,2) [2025-04-18 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936485', 'tblTempUsageDetail_20' ) start [2025-04-18 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936485', 'tblTempUsageDetail_20' ) end [2025-04-18 15:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:22:22] Production.INFO: ==23138== Releasing lock... [2025-04-18 15:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:22:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:23:05 [end_date_ymd] => 2025-04-18 15:23:05 [RateCDR] => 1 ) [2025-04-18 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:23:05' and `end` < '2025-04-18 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:23:18] Production.INFO: count ==2229 [2025-04-18 15:23:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:23:05 - End Time 2025-04-18 15:23:05 [2025-04-18 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936490', 'tblTempUsageDetail_20' ) start [2025-04-18 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936490', 'tblTempUsageDetail_20' ) end [2025-04-18 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936490', 'tblTempVendorCDR_20' ) start [2025-04-18 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936490', 'tblTempVendorCDR_20' ) end [2025-04-18 15:23:19] Production.INFO: ProcessCDR(1,14936490,1,1,2) [2025-04-18 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936490', 'tblTempUsageDetail_20' ) start [2025-04-18 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936490', 'tblTempUsageDetail_20' ) end [2025-04-18 15:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:23:24] Production.INFO: ==23212== Releasing lock... [2025-04-18 15:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:23:24] Production.INFO: 45 MB #Memory Used# [2025-04-18 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:24:05 [end_date_ymd] => 2025-04-18 15:24:05 [RateCDR] => 1 ) [2025-04-18 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:24:05' and `end` < '2025-04-18 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:24:18] Production.INFO: count ==2225 [2025-04-18 15:24:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:24:05 - End Time 2025-04-18 15:24:05 [2025-04-18 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936495', 'tblTempUsageDetail_20' ) start [2025-04-18 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936495', 'tblTempUsageDetail_20' ) end [2025-04-18 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936495', 'tblTempVendorCDR_20' ) start [2025-04-18 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936495', 'tblTempVendorCDR_20' ) end [2025-04-18 15:24:19] Production.INFO: ProcessCDR(1,14936495,1,1,2) [2025-04-18 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936495', 'tblTempUsageDetail_20' ) start [2025-04-18 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936495', 'tblTempUsageDetail_20' ) end [2025-04-18 15:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:24:24] Production.INFO: ==23299== Releasing lock... [2025-04-18 15:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:24:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:25:05 [end_date_ymd] => 2025-04-18 15:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:25:05' and `end` < '2025-04-18 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-04-18 15:25:18] Production.INFO: count ==2222 [2025-04-18 15:25:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:25:05 - End Time 2025-04-18 15:25:05 [2025-04-18 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936500', 'tblTempUsageDetail_20' ) start [2025-04-18 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936500', 'tblTempUsageDetail_20' ) end [2025-04-18 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936500', 'tblTempVendorCDR_20' ) start [2025-04-18 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936500', 'tblTempVendorCDR_20' ) end [2025-04-18 15:25:19] Production.INFO: ProcessCDR(1,14936500,1,1,2) [2025-04-18 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936500', 'tblTempUsageDetail_20' ) start [2025-04-18 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936500', 'tblTempUsageDetail_20' ) end [2025-04-18 15:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:25:22] Production.INFO: ==23389== Releasing lock... [2025-04-18 15:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:25:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:26:06 [end_date_ymd] => 2025-04-18 15:26:06 [RateCDR] => 1 ) [2025-04-18 15: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-04-18 12:26:06' and `end` < '2025-04-18 15: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-04-18 15:26:19] Production.INFO: count ==2221 [2025-04-18 15:26:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:26:06 - End Time 2025-04-18 15:26:06 [2025-04-18 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936505', 'tblTempUsageDetail_20' ) start [2025-04-18 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936505', 'tblTempUsageDetail_20' ) end [2025-04-18 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936505', 'tblTempVendorCDR_20' ) start [2025-04-18 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936505', 'tblTempVendorCDR_20' ) end [2025-04-18 15:26:20] Production.INFO: ProcessCDR(1,14936505,1,1,2) [2025-04-18 15:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936505', 'tblTempUsageDetail_20' ) start [2025-04-18 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936505', 'tblTempUsageDetail_20' ) end [2025-04-18 15:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:26:23] Production.INFO: ==23475== Releasing lock... [2025-04-18 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:26:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:27:05 [end_date_ymd] => 2025-04-18 15:27:05 [RateCDR] => 1 ) [2025-04-18 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:27:05' and `end` < '2025-04-18 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:27:18] Production.INFO: count ==2230 [2025-04-18 15:27:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:27:05 - End Time 2025-04-18 15:27:05 [2025-04-18 15:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936510', 'tblTempUsageDetail_20' ) start [2025-04-18 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936510', 'tblTempUsageDetail_20' ) end [2025-04-18 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936510', 'tblTempVendorCDR_20' ) start [2025-04-18 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936510', 'tblTempVendorCDR_20' ) end [2025-04-18 15:27:19] Production.INFO: ProcessCDR(1,14936510,1,1,2) [2025-04-18 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936510', 'tblTempUsageDetail_20' ) start [2025-04-18 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936510', 'tblTempUsageDetail_20' ) end [2025-04-18 15:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:27:24] Production.INFO: ==23558== Releasing lock... [2025-04-18 15:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:27:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:28:05 [end_date_ymd] => 2025-04-18 15:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:28:05' and `end` < '2025-04-18 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-04-18 15:28:18] Production.INFO: count ==2232 [2025-04-18 15:28:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:28:05 - End Time 2025-04-18 15:28:05 [2025-04-18 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936515', 'tblTempUsageDetail_20' ) start [2025-04-18 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936515', 'tblTempUsageDetail_20' ) end [2025-04-18 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936515', 'tblTempVendorCDR_20' ) start [2025-04-18 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936515', 'tblTempVendorCDR_20' ) end [2025-04-18 15:28:19] Production.INFO: ProcessCDR(1,14936515,1,1,2) [2025-04-18 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936515', 'tblTempUsageDetail_20' ) start [2025-04-18 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936515', 'tblTempUsageDetail_20' ) end [2025-04-18 15:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:28:23] Production.INFO: ==23644== Releasing lock... [2025-04-18 15:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:28:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:29:05 [end_date_ymd] => 2025-04-18 15:29:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:29:05' and `end` < '2025-04-18 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-04-18 15:29:18] Production.INFO: count ==2239 [2025-04-18 15:29:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:29:05 - End Time 2025-04-18 15:29:05 [2025-04-18 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936520', 'tblTempUsageDetail_20' ) start [2025-04-18 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936520', 'tblTempUsageDetail_20' ) end [2025-04-18 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936520', 'tblTempVendorCDR_20' ) start [2025-04-18 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936520', 'tblTempVendorCDR_20' ) end [2025-04-18 15:29:19] Production.INFO: ProcessCDR(1,14936520,1,1,2) [2025-04-18 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936520', 'tblTempUsageDetail_20' ) start [2025-04-18 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936520', 'tblTempUsageDetail_20' ) end [2025-04-18 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:29:23] Production.INFO: ==23729== Releasing lock... [2025-04-18 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:29:23] Production.INFO: 45 MB #Memory Used# [2025-04-18 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:30:06 [end_date_ymd] => 2025-04-18 15:30:06 [RateCDR] => 1 ) [2025-04-18 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:30:06' and `end` < '2025-04-18 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:30:19] Production.INFO: count ==2266 [2025-04-18 15:30:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:30:06 - End Time 2025-04-18 15:30:06 [2025-04-18 15:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936526', 'tblTempUsageDetail_20' ) start [2025-04-18 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936526', 'tblTempUsageDetail_20' ) end [2025-04-18 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936526', 'tblTempVendorCDR_20' ) start [2025-04-18 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936526', 'tblTempVendorCDR_20' ) end [2025-04-18 15:30:20] Production.INFO: ProcessCDR(1,14936526,1,1,2) [2025-04-18 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936526', 'tblTempUsageDetail_20' ) start [2025-04-18 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936526', 'tblTempUsageDetail_20' ) end [2025-04-18 15:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:30:25] Production.INFO: ==23819== Releasing lock... [2025-04-18 15:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:30:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:31:05 [end_date_ymd] => 2025-04-18 15:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:31:05' and `end` < '2025-04-18 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-04-18 15:31:18] Production.INFO: count ==2331 [2025-04-18 15:31:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:31:05 - End Time 2025-04-18 15:31:05 [2025-04-18 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936531', 'tblTempUsageDetail_20' ) start [2025-04-18 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936531', 'tblTempUsageDetail_20' ) end [2025-04-18 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936531', 'tblTempVendorCDR_20' ) start [2025-04-18 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936531', 'tblTempVendorCDR_20' ) end [2025-04-18 15:31:19] Production.INFO: ProcessCDR(1,14936531,1,1,2) [2025-04-18 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936531', 'tblTempUsageDetail_20' ) start [2025-04-18 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936531', 'tblTempUsageDetail_20' ) end [2025-04-18 15:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:31:24] Production.INFO: ==23909== Releasing lock... [2025-04-18 15:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:31:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-18 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:32:06 [end_date_ymd] => 2025-04-18 15:32:06 [RateCDR] => 1 ) [2025-04-18 15: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-04-18 12:32:06' and `end` < '2025-04-18 15: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-04-18 15:32:19] Production.INFO: count ==2323 [2025-04-18 15:32:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:32:06 - End Time 2025-04-18 15:32:06 [2025-04-18 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936536', 'tblTempUsageDetail_20' ) start [2025-04-18 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936536', 'tblTempUsageDetail_20' ) end [2025-04-18 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936536', 'tblTempVendorCDR_20' ) start [2025-04-18 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936536', 'tblTempVendorCDR_20' ) end [2025-04-18 15:32:20] Production.INFO: ProcessCDR(1,14936536,1,1,2) [2025-04-18 15:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936536', 'tblTempUsageDetail_20' ) start [2025-04-18 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936536', 'tblTempUsageDetail_20' ) end [2025-04-18 15:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:32:23] Production.INFO: ==23997== Releasing lock... [2025-04-18 15:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:32:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-18 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:33:05 [end_date_ymd] => 2025-04-18 15:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:33:05' and `end` < '2025-04-18 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-04-18 15:33:18] Production.INFO: count ==2317 [2025-04-18 15:33:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:33:05 - End Time 2025-04-18 15:33:05 [2025-04-18 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936541', 'tblTempUsageDetail_20' ) start [2025-04-18 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936541', 'tblTempUsageDetail_20' ) end [2025-04-18 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936541', 'tblTempVendorCDR_20' ) start [2025-04-18 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936541', 'tblTempVendorCDR_20' ) end [2025-04-18 15:33:19] Production.INFO: ProcessCDR(1,14936541,1,1,2) [2025-04-18 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936541', 'tblTempUsageDetail_20' ) start [2025-04-18 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936541', 'tblTempUsageDetail_20' ) end [2025-04-18 15:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:33:25] Production.INFO: ==24078== Releasing lock... [2025-04-18 15:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:33:25] Production.INFO: 45.5 MB #Memory Used# [2025-04-18 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:34:06 [end_date_ymd] => 2025-04-18 15:34:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:34:06' and `end` < '2025-04-18 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-04-18 15:34:19] Production.INFO: count ==2349 [2025-04-18 15:34:20] Production.ERROR: pbx CDR StartTime 2025-04-18 12:34:06 - End Time 2025-04-18 15:34:06 [2025-04-18 15:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936546', 'tblTempUsageDetail_20' ) start [2025-04-18 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936546', 'tblTempUsageDetail_20' ) end [2025-04-18 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936546', 'tblTempVendorCDR_20' ) start [2025-04-18 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936546', 'tblTempVendorCDR_20' ) end [2025-04-18 15:34:20] Production.INFO: ProcessCDR(1,14936546,1,1,2) [2025-04-18 15:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936546', 'tblTempUsageDetail_20' ) start [2025-04-18 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936546', 'tblTempUsageDetail_20' ) end [2025-04-18 15:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:34:25] Production.INFO: ==24163== Releasing lock... [2025-04-18 15:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:34:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-18 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:35:05 [end_date_ymd] => 2025-04-18 15:35:05 [RateCDR] => 1 ) [2025-04-18 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:35:05' and `end` < '2025-04-18 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:35:18] Production.INFO: count ==2346 [2025-04-18 15:35:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:35:05 - End Time 2025-04-18 15:35:05 [2025-04-18 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936551', 'tblTempUsageDetail_20' ) start [2025-04-18 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936551', 'tblTempUsageDetail_20' ) end [2025-04-18 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936551', 'tblTempVendorCDR_20' ) start [2025-04-18 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936551', 'tblTempVendorCDR_20' ) end [2025-04-18 15:35:19] Production.INFO: ProcessCDR(1,14936551,1,1,2) [2025-04-18 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936551', 'tblTempUsageDetail_20' ) start [2025-04-18 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936551', 'tblTempUsageDetail_20' ) end [2025-04-18 15:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:35:24] Production.INFO: ==24264== Releasing lock... [2025-04-18 15:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:35:24] Production.INFO: 46 MB #Memory Used# [2025-04-18 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:36:05 [end_date_ymd] => 2025-04-18 15:36:05 [RateCDR] => 1 ) [2025-04-18 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:36:05' and `end` < '2025-04-18 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:36:19] Production.INFO: count ==2348 [2025-04-18 15:36:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:36:05 - End Time 2025-04-18 15:36:05 [2025-04-18 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936556', 'tblTempUsageDetail_20' ) start [2025-04-18 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936556', 'tblTempUsageDetail_20' ) end [2025-04-18 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936556', 'tblTempVendorCDR_20' ) start [2025-04-18 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936556', 'tblTempVendorCDR_20' ) end [2025-04-18 15:36:20] Production.INFO: ProcessCDR(1,14936556,1,1,2) [2025-04-18 15:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936556', 'tblTempUsageDetail_20' ) start [2025-04-18 15:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936556', 'tblTempUsageDetail_20' ) end [2025-04-18 15:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:36:25] Production.INFO: ==24350== Releasing lock... [2025-04-18 15:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:36:25] Production.INFO: 46 MB #Memory Used# [2025-04-18 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:37:05 [end_date_ymd] => 2025-04-18 15:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:37:05' and `end` < '2025-04-18 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-04-18 15:37:18] Production.INFO: count ==2349 [2025-04-18 15:37:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:37:05 - End Time 2025-04-18 15:37:05 [2025-04-18 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936561', 'tblTempUsageDetail_20' ) start [2025-04-18 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936561', 'tblTempUsageDetail_20' ) end [2025-04-18 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936561', 'tblTempVendorCDR_20' ) start [2025-04-18 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936561', 'tblTempVendorCDR_20' ) end [2025-04-18 15:37:19] Production.INFO: ProcessCDR(1,14936561,1,1,2) [2025-04-18 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936561', 'tblTempUsageDetail_20' ) start [2025-04-18 15:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936561', 'tblTempUsageDetail_20' ) end [2025-04-18 15:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:37:24] Production.INFO: ==24440== Releasing lock... [2025-04-18 15:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:37:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-18 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:38:06 [end_date_ymd] => 2025-04-18 15:38:06 [RateCDR] => 1 ) [2025-04-18 15:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:38:06' and `end` < '2025-04-18 15:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:38:19] Production.INFO: count ==2355 [2025-04-18 15:38:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:38:06 - End Time 2025-04-18 15:38:06 [2025-04-18 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936566', 'tblTempUsageDetail_20' ) start [2025-04-18 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936566', 'tblTempUsageDetail_20' ) end [2025-04-18 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936566', 'tblTempVendorCDR_20' ) start [2025-04-18 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936566', 'tblTempVendorCDR_20' ) end [2025-04-18 15:38:20] Production.INFO: ProcessCDR(1,14936566,1,1,2) [2025-04-18 15:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936566', 'tblTempUsageDetail_20' ) start [2025-04-18 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936566', 'tblTempUsageDetail_20' ) end [2025-04-18 15:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:38:25] Production.INFO: ==24566== Releasing lock... [2025-04-18 15:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:38:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-18 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:39:05 [end_date_ymd] => 2025-04-18 15:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:39:05' and `end` < '2025-04-18 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-04-18 15:39:19] Production.INFO: count ==2356 [2025-04-18 15:39:20] Production.ERROR: pbx CDR StartTime 2025-04-18 12:39:05 - End Time 2025-04-18 15:39:05 [2025-04-18 15:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936571', 'tblTempUsageDetail_20' ) start [2025-04-18 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936571', 'tblTempUsageDetail_20' ) end [2025-04-18 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936571', 'tblTempVendorCDR_20' ) start [2025-04-18 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936571', 'tblTempVendorCDR_20' ) end [2025-04-18 15:39:20] Production.INFO: ProcessCDR(1,14936571,1,1,2) [2025-04-18 15:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936571', 'tblTempUsageDetail_20' ) start [2025-04-18 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936571', 'tblTempUsageDetail_20' ) end [2025-04-18 15:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:39:25] Production.INFO: ==24659== Releasing lock... [2025-04-18 15:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:39:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-18 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:40:05 [end_date_ymd] => 2025-04-18 15:40:05 [RateCDR] => 1 ) [2025-04-18 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:40:05' and `end` < '2025-04-18 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:40:18] Production.INFO: count ==2363 [2025-04-18 15:40:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:40:05 - End Time 2025-04-18 15:40:05 [2025-04-18 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936576', 'tblTempUsageDetail_20' ) start [2025-04-18 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936576', 'tblTempUsageDetail_20' ) end [2025-04-18 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936576', 'tblTempVendorCDR_20' ) start [2025-04-18 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936576', 'tblTempVendorCDR_20' ) end [2025-04-18 15:40:19] Production.INFO: ProcessCDR(1,14936576,1,1,2) [2025-04-18 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936576', 'tblTempUsageDetail_20' ) start [2025-04-18 15:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936576', 'tblTempUsageDetail_20' ) end [2025-04-18 15:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:40:23] Production.INFO: ==24751== Releasing lock... [2025-04-18 15:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:40:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-18 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:41:05 [end_date_ymd] => 2025-04-18 15:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:41:05' and `end` < '2025-04-18 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-04-18 15:41:18] Production.INFO: count ==2385 [2025-04-18 15:41:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:41:05 - End Time 2025-04-18 15:41:05 [2025-04-18 15:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936582', 'tblTempUsageDetail_20' ) start [2025-04-18 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936582', 'tblTempUsageDetail_20' ) end [2025-04-18 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936582', 'tblTempVendorCDR_20' ) start [2025-04-18 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936582', 'tblTempVendorCDR_20' ) end [2025-04-18 15:41:19] Production.INFO: ProcessCDR(1,14936582,1,1,2) [2025-04-18 15:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936582', 'tblTempUsageDetail_20' ) start [2025-04-18 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936582', 'tblTempUsageDetail_20' ) end [2025-04-18 15:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:41:24] Production.INFO: ==24842== Releasing lock... [2025-04-18 15:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:41:24] Production.INFO: 46 MB #Memory Used# [2025-04-18 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:42:05 [end_date_ymd] => 2025-04-18 15:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:42:05' and `end` < '2025-04-18 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-04-18 15:42:18] Production.INFO: count ==2392 [2025-04-18 15:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:42:05 - End Time 2025-04-18 15:42:05 [2025-04-18 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936587', 'tblTempUsageDetail_20' ) start [2025-04-18 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936587', 'tblTempUsageDetail_20' ) end [2025-04-18 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936587', 'tblTempVendorCDR_20' ) start [2025-04-18 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936587', 'tblTempVendorCDR_20' ) end [2025-04-18 15:42:19] Production.INFO: ProcessCDR(1,14936587,1,1,2) [2025-04-18 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936587', 'tblTempUsageDetail_20' ) start [2025-04-18 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936587', 'tblTempUsageDetail_20' ) end [2025-04-18 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:42:23] Production.INFO: ==24927== Releasing lock... [2025-04-18 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:42:23] Production.INFO: 46 MB #Memory Used# [2025-04-18 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:43:05 [end_date_ymd] => 2025-04-18 15:43:05 [RateCDR] => 1 ) [2025-04-18 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:43:05' and `end` < '2025-04-18 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:43:18] Production.INFO: count ==2395 [2025-04-18 15:43:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:43:05 - End Time 2025-04-18 15:43:05 [2025-04-18 15:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936592', 'tblTempUsageDetail_20' ) start [2025-04-18 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936592', 'tblTempUsageDetail_20' ) end [2025-04-18 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936592', 'tblTempVendorCDR_20' ) start [2025-04-18 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936592', 'tblTempVendorCDR_20' ) end [2025-04-18 15:43:20] Production.INFO: ProcessCDR(1,14936592,1,1,2) [2025-04-18 15:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936592', 'tblTempUsageDetail_20' ) start [2025-04-18 15:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936592', 'tblTempUsageDetail_20' ) end [2025-04-18 15:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:43:25] Production.INFO: ==25010== Releasing lock... [2025-04-18 15:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:43:25] Production.INFO: 46 MB #Memory Used# [2025-04-18 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:44:05 [end_date_ymd] => 2025-04-18 15:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:44:05' and `end` < '2025-04-18 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-04-18 15:44:18] Production.INFO: count ==2410 [2025-04-18 15:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:44:05 - End Time 2025-04-18 15:44:05 [2025-04-18 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936597', 'tblTempUsageDetail_20' ) start [2025-04-18 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936597', 'tblTempUsageDetail_20' ) end [2025-04-18 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936597', 'tblTempVendorCDR_20' ) start [2025-04-18 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936597', 'tblTempVendorCDR_20' ) end [2025-04-18 15:44:19] Production.INFO: ProcessCDR(1,14936597,1,1,2) [2025-04-18 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936597', 'tblTempUsageDetail_20' ) start [2025-04-18 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936597', 'tblTempUsageDetail_20' ) end [2025-04-18 15:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:44:24] Production.INFO: ==25095== Releasing lock... [2025-04-18 15:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:44:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-18 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:45:05 [end_date_ymd] => 2025-04-18 15:45:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:45:05' and `end` < '2025-04-18 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-04-18 15:45:18] Production.INFO: count ==2408 [2025-04-18 15:45:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:45:05 - End Time 2025-04-18 15:45:05 [2025-04-18 15:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936602', 'tblTempUsageDetail_20' ) start [2025-04-18 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936602', 'tblTempUsageDetail_20' ) end [2025-04-18 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936602', 'tblTempVendorCDR_20' ) start [2025-04-18 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936602', 'tblTempVendorCDR_20' ) end [2025-04-18 15:45:19] Production.INFO: ProcessCDR(1,14936602,1,1,2) [2025-04-18 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936602', 'tblTempUsageDetail_20' ) start [2025-04-18 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936602', 'tblTempUsageDetail_20' ) end [2025-04-18 15:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:45:24] Production.INFO: ==25185== Releasing lock... [2025-04-18 15:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:45:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-18 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:46:05 [end_date_ymd] => 2025-04-18 15:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:46:05' and `end` < '2025-04-18 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-04-18 15:46:18] Production.INFO: count ==2410 [2025-04-18 15:46:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:46:05 - End Time 2025-04-18 15:46:05 [2025-04-18 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936607', 'tblTempUsageDetail_20' ) start [2025-04-18 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936607', 'tblTempUsageDetail_20' ) end [2025-04-18 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936607', 'tblTempVendorCDR_20' ) start [2025-04-18 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936607', 'tblTempVendorCDR_20' ) end [2025-04-18 15:46:19] Production.INFO: ProcessCDR(1,14936607,1,1,2) [2025-04-18 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936607', 'tblTempUsageDetail_20' ) start [2025-04-18 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936607', 'tblTempUsageDetail_20' ) end [2025-04-18 15:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:46:24] Production.INFO: ==25280== Releasing lock... [2025-04-18 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:46:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-18 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:47:05 [end_date_ymd] => 2025-04-18 15:47:05 [RateCDR] => 1 ) [2025-04-18 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:47:05' and `end` < '2025-04-18 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:47:18] Production.INFO: count ==2413 [2025-04-18 15:47:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:47:05 - End Time 2025-04-18 15:47:05 [2025-04-18 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936612', 'tblTempUsageDetail_20' ) start [2025-04-18 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936612', 'tblTempUsageDetail_20' ) end [2025-04-18 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936612', 'tblTempVendorCDR_20' ) start [2025-04-18 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936612', 'tblTempVendorCDR_20' ) end [2025-04-18 15:47:19] Production.INFO: ProcessCDR(1,14936612,1,1,2) [2025-04-18 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936612', 'tblTempUsageDetail_20' ) start [2025-04-18 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936612', 'tblTempUsageDetail_20' ) end [2025-04-18 15:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:47:24] Production.INFO: ==25365== Releasing lock... [2025-04-18 15:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:47:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-18 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:48:05 [end_date_ymd] => 2025-04-18 15:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:48:05' and `end` < '2025-04-18 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-04-18 15:48:18] Production.INFO: count ==2416 [2025-04-18 15:48:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:48:05 - End Time 2025-04-18 15:48:05 [2025-04-18 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936617', 'tblTempUsageDetail_20' ) start [2025-04-18 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936617', 'tblTempUsageDetail_20' ) end [2025-04-18 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936617', 'tblTempVendorCDR_20' ) start [2025-04-18 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936617', 'tblTempVendorCDR_20' ) end [2025-04-18 15:48:19] Production.INFO: ProcessCDR(1,14936617,1,1,2) [2025-04-18 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936617', 'tblTempUsageDetail_20' ) start [2025-04-18 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936617', 'tblTempUsageDetail_20' ) end [2025-04-18 15:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:48:24] Production.INFO: ==25452== Releasing lock... [2025-04-18 15:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:48:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-18 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:49:05 [end_date_ymd] => 2025-04-18 15:49:05 [RateCDR] => 1 ) [2025-04-18 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:49:05' and `end` < '2025-04-18 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:49:18] Production.INFO: count ==2423 [2025-04-18 15:49:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:49:05 - End Time 2025-04-18 15:49:05 [2025-04-18 15:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936622', 'tblTempUsageDetail_20' ) start [2025-04-18 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936622', 'tblTempUsageDetail_20' ) end [2025-04-18 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936622', 'tblTempVendorCDR_20' ) start [2025-04-18 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936622', 'tblTempVendorCDR_20' ) end [2025-04-18 15:49:19] Production.INFO: ProcessCDR(1,14936622,1,1,2) [2025-04-18 15:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936622', 'tblTempUsageDetail_20' ) start [2025-04-18 15:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936622', 'tblTempUsageDetail_20' ) end [2025-04-18 15:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:49:24] Production.INFO: ==25545== Releasing lock... [2025-04-18 15:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:49:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-18 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:50:06 [end_date_ymd] => 2025-04-18 15:50:06 [RateCDR] => 1 ) [2025-04-18 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:50:06' and `end` < '2025-04-18 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:50:19] Production.INFO: count ==2431 [2025-04-18 15:50:20] Production.ERROR: pbx CDR StartTime 2025-04-18 12:50:06 - End Time 2025-04-18 15:50:06 [2025-04-18 15:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936628', 'tblTempUsageDetail_20' ) start [2025-04-18 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936628', 'tblTempUsageDetail_20' ) end [2025-04-18 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936628', 'tblTempVendorCDR_20' ) start [2025-04-18 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936628', 'tblTempVendorCDR_20' ) end [2025-04-18 15:50:20] Production.INFO: ProcessCDR(1,14936628,1,1,2) [2025-04-18 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936628', 'tblTempUsageDetail_20' ) start [2025-04-18 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936628', 'tblTempUsageDetail_20' ) end [2025-04-18 15:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:50:25] Production.INFO: ==25637== Releasing lock... [2025-04-18 15:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:50:25] Production.INFO: 46.25 MB #Memory Used# [2025-04-18 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:51:05 [end_date_ymd] => 2025-04-18 15:51:05 [RateCDR] => 1 ) [2025-04-18 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:51:05' and `end` < '2025-04-18 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:51:18] Production.INFO: count ==2414 [2025-04-18 15:51:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:51:05 - End Time 2025-04-18 15:51:05 [2025-04-18 15:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936633', 'tblTempUsageDetail_20' ) start [2025-04-18 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936633', 'tblTempUsageDetail_20' ) end [2025-04-18 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936633', 'tblTempVendorCDR_20' ) start [2025-04-18 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936633', 'tblTempVendorCDR_20' ) end [2025-04-18 15:51:19] Production.INFO: ProcessCDR(1,14936633,1,1,2) [2025-04-18 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936633', 'tblTempUsageDetail_20' ) start [2025-04-18 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936633', 'tblTempUsageDetail_20' ) end [2025-04-18 15:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:51:23] Production.INFO: ==25721== Releasing lock... [2025-04-18 15:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:51:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-18 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:52:05 [end_date_ymd] => 2025-04-18 15:52:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:52:05' and `end` < '2025-04-18 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-04-18 15:52:19] Production.INFO: count ==2413 [2025-04-18 15:52:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:52:05 - End Time 2025-04-18 15:52:05 [2025-04-18 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936638', 'tblTempUsageDetail_20' ) start [2025-04-18 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936638', 'tblTempUsageDetail_20' ) end [2025-04-18 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936638', 'tblTempVendorCDR_20' ) start [2025-04-18 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936638', 'tblTempVendorCDR_20' ) end [2025-04-18 15:52:20] Production.INFO: ProcessCDR(1,14936638,1,1,2) [2025-04-18 15:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936638', 'tblTempUsageDetail_20' ) start [2025-04-18 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936638', 'tblTempUsageDetail_20' ) end [2025-04-18 15:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:52:23] Production.INFO: ==25795== Releasing lock... [2025-04-18 15:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:52:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-18 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:53:05 [end_date_ymd] => 2025-04-18 15:53:05 [RateCDR] => 1 ) [2025-04-18 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:53:05' and `end` < '2025-04-18 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:53:18] Production.INFO: count ==2399 [2025-04-18 15:53:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:53:05 - End Time 2025-04-18 15:53:05 [2025-04-18 15:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936643', 'tblTempUsageDetail_20' ) start [2025-04-18 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936643', 'tblTempUsageDetail_20' ) end [2025-04-18 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936643', 'tblTempVendorCDR_20' ) start [2025-04-18 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936643', 'tblTempVendorCDR_20' ) end [2025-04-18 15:53:19] Production.INFO: ProcessCDR(1,14936643,1,1,2) [2025-04-18 15:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936643', 'tblTempUsageDetail_20' ) start [2025-04-18 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936643', 'tblTempUsageDetail_20' ) end [2025-04-18 15:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:53:22] Production.INFO: ==25909== Releasing lock... [2025-04-18 15:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:53:22] Production.INFO: 46 MB #Memory Used# [2025-04-18 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:54:05 [end_date_ymd] => 2025-04-18 15:54:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:54:05' and `end` < '2025-04-18 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-04-18 15:54:18] Production.INFO: count ==2385 [2025-04-18 15:54:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:54:05 - End Time 2025-04-18 15:54:05 [2025-04-18 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936648', 'tblTempUsageDetail_20' ) start [2025-04-18 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936648', 'tblTempUsageDetail_20' ) end [2025-04-18 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936648', 'tblTempVendorCDR_20' ) start [2025-04-18 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936648', 'tblTempVendorCDR_20' ) end [2025-04-18 15:54:19] Production.INFO: ProcessCDR(1,14936648,1,1,2) [2025-04-18 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936648', 'tblTempUsageDetail_20' ) start [2025-04-18 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936648', 'tblTempUsageDetail_20' ) end [2025-04-18 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:54:23] Production.INFO: ==25983== Releasing lock... [2025-04-18 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:54:23] Production.INFO: 46 MB #Memory Used# [2025-04-18 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:55:05 [end_date_ymd] => 2025-04-18 15:55:05 [RateCDR] => 1 ) [2025-04-18 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:55:05' and `end` < '2025-04-18 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:55:18] Production.INFO: count ==2383 [2025-04-18 15:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:55:05 - End Time 2025-04-18 15:55:05 [2025-04-18 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936653', 'tblTempUsageDetail_20' ) start [2025-04-18 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936653', 'tblTempUsageDetail_20' ) end [2025-04-18 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936653', 'tblTempVendorCDR_20' ) start [2025-04-18 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936653', 'tblTempVendorCDR_20' ) end [2025-04-18 15:55:19] Production.INFO: ProcessCDR(1,14936653,1,1,2) [2025-04-18 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936653', 'tblTempUsageDetail_20' ) start [2025-04-18 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936653', 'tblTempUsageDetail_20' ) end [2025-04-18 15:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:55:23] Production.INFO: ==26060== Releasing lock... [2025-04-18 15:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:55:23] Production.INFO: 46 MB #Memory Used# [2025-04-18 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:56:06 [end_date_ymd] => 2025-04-18 15:56:06 [RateCDR] => 1 ) [2025-04-18 15: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-04-18 12:56:06' and `end` < '2025-04-18 15: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-04-18 15:56:19] Production.INFO: count ==2381 [2025-04-18 15:56:20] Production.ERROR: pbx CDR StartTime 2025-04-18 12:56:06 - End Time 2025-04-18 15:56:06 [2025-04-18 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936658', 'tblTempUsageDetail_20' ) start [2025-04-18 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936658', 'tblTempUsageDetail_20' ) end [2025-04-18 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936658', 'tblTempVendorCDR_20' ) start [2025-04-18 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936658', 'tblTempVendorCDR_20' ) end [2025-04-18 15:56:20] Production.INFO: ProcessCDR(1,14936658,1,1,2) [2025-04-18 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936658', 'tblTempUsageDetail_20' ) start [2025-04-18 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936658', 'tblTempUsageDetail_20' ) end [2025-04-18 15:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:56:23] Production.INFO: ==26134== Releasing lock... [2025-04-18 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:56:23] Production.INFO: 46 MB #Memory Used# [2025-04-18 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:57:05 [end_date_ymd] => 2025-04-18 15:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:57:05' and `end` < '2025-04-18 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-04-18 15:57:18] Production.INFO: count ==2380 [2025-04-18 15:57:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:57:05 - End Time 2025-04-18 15:57:05 [2025-04-18 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936663', 'tblTempUsageDetail_20' ) start [2025-04-18 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936663', 'tblTempUsageDetail_20' ) end [2025-04-18 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936663', 'tblTempVendorCDR_20' ) start [2025-04-18 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936663', 'tblTempVendorCDR_20' ) end [2025-04-18 15:57:19] Production.INFO: ProcessCDR(1,14936663,1,1,2) [2025-04-18 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936663', 'tblTempUsageDetail_20' ) start [2025-04-18 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936663', 'tblTempUsageDetail_20' ) end [2025-04-18 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:57:24] Production.INFO: ==26203== Releasing lock... [2025-04-18 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:57:24] Production.INFO: 46 MB #Memory Used# [2025-04-18 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:58:06 [end_date_ymd] => 2025-04-18 15:58:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 12:58:06' and `end` < '2025-04-18 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-04-18 15:58:19] Production.INFO: count ==2383 [2025-04-18 15:58:20] Production.ERROR: pbx CDR StartTime 2025-04-18 12:58:06 - End Time 2025-04-18 15:58:06 [2025-04-18 15:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936668', 'tblTempUsageDetail_20' ) start [2025-04-18 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936668', 'tblTempUsageDetail_20' ) end [2025-04-18 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936668', 'tblTempVendorCDR_20' ) start [2025-04-18 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936668', 'tblTempVendorCDR_20' ) end [2025-04-18 15:58:20] Production.INFO: ProcessCDR(1,14936668,1,1,2) [2025-04-18 15:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936668', 'tblTempUsageDetail_20' ) start [2025-04-18 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936668', 'tblTempUsageDetail_20' ) end [2025-04-18 15:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:58:25] Production.INFO: ==26275== Releasing lock... [2025-04-18 15:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:58:25] Production.INFO: 46 MB #Memory Used# [2025-04-18 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 12:59:05 [end_date_ymd] => 2025-04-18 15:59:05 [RateCDR] => 1 ) [2025-04-18 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 12:59:05' and `end` < '2025-04-18 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 15:59:18] Production.INFO: count ==2389 [2025-04-18 15:59:19] Production.ERROR: pbx CDR StartTime 2025-04-18 12:59:05 - End Time 2025-04-18 15:59:05 [2025-04-18 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936673', 'tblTempUsageDetail_20' ) start [2025-04-18 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936673', 'tblTempUsageDetail_20' ) end [2025-04-18 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936673', 'tblTempVendorCDR_20' ) start [2025-04-18 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936673', 'tblTempVendorCDR_20' ) end [2025-04-18 15:59:19] Production.INFO: ProcessCDR(1,14936673,1,1,2) [2025-04-18 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 15:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936673', 'tblTempUsageDetail_20' ) start [2025-04-18 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936673', 'tblTempUsageDetail_20' ) end [2025-04-18 15:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 15:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 15:59:24] Production.INFO: ==26345== Releasing lock... [2025-04-18 15:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 15:59:24] Production.INFO: 46 MB #Memory Used# [2025-04-18 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:00:06 [end_date_ymd] => 2025-04-18 16:00:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:00:06' and `end` < '2025-04-18 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-04-18 16:00:19] Production.INFO: count ==2401 [2025-04-18 16:00:20] Production.ERROR: pbx CDR StartTime 2025-04-18 13:00:06 - End Time 2025-04-18 16:00:06 [2025-04-18 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936679', 'tblTempUsageDetail_20' ) start [2025-04-18 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936679', 'tblTempUsageDetail_20' ) end [2025-04-18 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936679', 'tblTempVendorCDR_20' ) start [2025-04-18 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936679', 'tblTempVendorCDR_20' ) end [2025-04-18 16:00:20] Production.INFO: ProcessCDR(1,14936679,1,1,2) [2025-04-18 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936679', 'tblTempUsageDetail_20' ) start [2025-04-18 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936679', 'tblTempUsageDetail_20' ) end [2025-04-18 16:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:00:25] Production.INFO: ==26432== Releasing lock... [2025-04-18 16:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:00:25] Production.INFO: 46.25 MB #Memory Used# [2025-04-18 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:01:05 [end_date_ymd] => 2025-04-18 16:01:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:01:05' and `end` < '2025-04-18 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-04-18 16:01:18] Production.INFO: count ==2463 [2025-04-18 16:01:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:01:05 - End Time 2025-04-18 16:01:05 [2025-04-18 16:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936684', 'tblTempUsageDetail_20' ) start [2025-04-18 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936684', 'tblTempUsageDetail_20' ) end [2025-04-18 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936684', 'tblTempVendorCDR_20' ) start [2025-04-18 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936684', 'tblTempVendorCDR_20' ) end [2025-04-18 16:01:19] Production.INFO: ProcessCDR(1,14936684,1,1,2) [2025-04-18 16:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936684', 'tblTempUsageDetail_20' ) start [2025-04-18 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936684', 'tblTempUsageDetail_20' ) end [2025-04-18 16:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:01:24] Production.INFO: ==26522== Releasing lock... [2025-04-18 16:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:01:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-18 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:02:05 [end_date_ymd] => 2025-04-18 16:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:02:05' and `end` < '2025-04-18 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-04-18 16:02:18] Production.INFO: count ==2465 [2025-04-18 16:02:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:02:05 - End Time 2025-04-18 16:02:05 [2025-04-18 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936689', 'tblTempUsageDetail_20' ) start [2025-04-18 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936689', 'tblTempUsageDetail_20' ) end [2025-04-18 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936689', 'tblTempVendorCDR_20' ) start [2025-04-18 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936689', 'tblTempVendorCDR_20' ) end [2025-04-18 16:02:19] Production.INFO: ProcessCDR(1,14936689,1,1,2) [2025-04-18 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936689', 'tblTempUsageDetail_20' ) start [2025-04-18 16:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936689', 'tblTempUsageDetail_20' ) end [2025-04-18 16:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:02:24] Production.INFO: ==26594== Releasing lock... [2025-04-18 16:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:02:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-18 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:03:04 [end_date_ymd] => 2025-04-18 16:03:04 [RateCDR] => 1 ) [2025-04-18 16:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:03:04' and `end` < '2025-04-18 16:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:03:17] Production.INFO: count ==2466 [2025-04-18 16:03:18] Production.ERROR: pbx CDR StartTime 2025-04-18 13:03:04 - End Time 2025-04-18 16:03:04 [2025-04-18 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936694', 'tblTempUsageDetail_20' ) start [2025-04-18 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936694', 'tblTempUsageDetail_20' ) end [2025-04-18 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936694', 'tblTempVendorCDR_20' ) start [2025-04-18 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936694', 'tblTempVendorCDR_20' ) end [2025-04-18 16:03:18] Production.INFO: ProcessCDR(1,14936694,1,1,2) [2025-04-18 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936694', 'tblTempUsageDetail_20' ) start [2025-04-18 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936694', 'tblTempUsageDetail_20' ) end [2025-04-18 16:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:03:23] Production.INFO: ==26664== Releasing lock... [2025-04-18 16:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:03:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-18 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:04:05 [end_date_ymd] => 2025-04-18 16:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:04:05' and `end` < '2025-04-18 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-04-18 16:04:18] Production.INFO: count ==2480 [2025-04-18 16:04:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:04:05 - End Time 2025-04-18 16:04:05 [2025-04-18 16:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936699', 'tblTempUsageDetail_20' ) start [2025-04-18 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936699', 'tblTempUsageDetail_20' ) end [2025-04-18 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936699', 'tblTempVendorCDR_20' ) start [2025-04-18 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936699', 'tblTempVendorCDR_20' ) end [2025-04-18 16:04:19] Production.INFO: ProcessCDR(1,14936699,1,1,2) [2025-04-18 16:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936699', 'tblTempUsageDetail_20' ) start [2025-04-18 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936699', 'tblTempUsageDetail_20' ) end [2025-04-18 16:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:04:24] Production.INFO: ==26738== Releasing lock... [2025-04-18 16:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:04:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-18 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:05:05 [end_date_ymd] => 2025-04-18 16:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:05:05' and `end` < '2025-04-18 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-04-18 16:05:18] Production.INFO: count ==2473 [2025-04-18 16:05:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:05:05 - End Time 2025-04-18 16:05:05 [2025-04-18 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936704', 'tblTempUsageDetail_20' ) start [2025-04-18 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936704', 'tblTempUsageDetail_20' ) end [2025-04-18 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936704', 'tblTempVendorCDR_20' ) start [2025-04-18 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936704', 'tblTempVendorCDR_20' ) end [2025-04-18 16:05:19] Production.INFO: ProcessCDR(1,14936704,1,1,2) [2025-04-18 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936704', 'tblTempUsageDetail_20' ) start [2025-04-18 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936704', 'tblTempUsageDetail_20' ) end [2025-04-18 16:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:05:25] Production.INFO: ==26812== Releasing lock... [2025-04-18 16:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:05:25] Production.INFO: 46.75 MB #Memory Used# [2025-04-18 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:06:05 [end_date_ymd] => 2025-04-18 16:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:06:05' and `end` < '2025-04-18 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-04-18 16:06:18] Production.INFO: count ==2462 [2025-04-18 16:06:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:06:05 - End Time 2025-04-18 16:06:05 [2025-04-18 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936709', 'tblTempUsageDetail_20' ) start [2025-04-18 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936709', 'tblTempUsageDetail_20' ) end [2025-04-18 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936709', 'tblTempVendorCDR_20' ) start [2025-04-18 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936709', 'tblTempVendorCDR_20' ) end [2025-04-18 16:06:19] Production.INFO: ProcessCDR(1,14936709,1,1,2) [2025-04-18 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936709', 'tblTempUsageDetail_20' ) start [2025-04-18 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936709', 'tblTempUsageDetail_20' ) end [2025-04-18 16:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:06:24] Production.INFO: ==26883== Releasing lock... [2025-04-18 16:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:06:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-18 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:07:05 [end_date_ymd] => 2025-04-18 16:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:07:05' and `end` < '2025-04-18 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-04-18 16:07:19] Production.INFO: count ==1625 [2025-04-18 16:07:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:07:05 - End Time 2025-04-18 16:07:05 [2025-04-18 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936714', 'tblTempUsageDetail_20' ) start [2025-04-18 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936714', 'tblTempUsageDetail_20' ) end [2025-04-18 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936714', 'tblTempVendorCDR_20' ) start [2025-04-18 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936714', 'tblTempVendorCDR_20' ) end [2025-04-18 16:07:20] Production.INFO: ProcessCDR(1,14936714,1,1,2) [2025-04-18 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936714', 'tblTempUsageDetail_20' ) start [2025-04-18 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936714', 'tblTempUsageDetail_20' ) end [2025-04-18 16:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:07:25] Production.INFO: ==26958== Releasing lock... [2025-04-18 16:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:07:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:08:05 [end_date_ymd] => 2025-04-18 16:08:05 [RateCDR] => 1 ) [2025-04-18 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:08:05' and `end` < '2025-04-18 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:08:19] Production.INFO: count ==1623 [2025-04-18 16:08:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:08:05 - End Time 2025-04-18 16:08:05 [2025-04-18 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936719', 'tblTempUsageDetail_20' ) start [2025-04-18 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936719', 'tblTempUsageDetail_20' ) end [2025-04-18 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936719', 'tblTempVendorCDR_20' ) start [2025-04-18 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936719', 'tblTempVendorCDR_20' ) end [2025-04-18 16:08:20] Production.INFO: ProcessCDR(1,14936719,1,1,2) [2025-04-18 16:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936719', 'tblTempUsageDetail_20' ) start [2025-04-18 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936719', 'tblTempUsageDetail_20' ) end [2025-04-18 16:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:08:25] Production.INFO: ==27032== Releasing lock... [2025-04-18 16:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:08:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:09:05 [end_date_ymd] => 2025-04-18 16:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:09:05' and `end` < '2025-04-18 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-04-18 16:09:19] Production.INFO: count ==1622 [2025-04-18 16:09:20] Production.ERROR: pbx CDR StartTime 2025-04-18 13:09:05 - End Time 2025-04-18 16:09:05 [2025-04-18 16:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936724', 'tblTempUsageDetail_20' ) start [2025-04-18 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936724', 'tblTempUsageDetail_20' ) end [2025-04-18 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936724', 'tblTempVendorCDR_20' ) start [2025-04-18 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936724', 'tblTempVendorCDR_20' ) end [2025-04-18 16:09:20] Production.INFO: ProcessCDR(1,14936724,1,1,2) [2025-04-18 16:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936724', 'tblTempUsageDetail_20' ) start [2025-04-18 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936724', 'tblTempUsageDetail_20' ) end [2025-04-18 16:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:09:25] Production.INFO: ==27150== Releasing lock... [2025-04-18 16:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:09:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:10:05 [end_date_ymd] => 2025-04-18 16:10:05 [RateCDR] => 1 ) [2025-04-18 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:10:05' and `end` < '2025-04-18 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:10:18] Production.INFO: count ==1624 [2025-04-18 16:10:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:10:05 - End Time 2025-04-18 16:10:05 [2025-04-18 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936730', 'tblTempUsageDetail_20' ) start [2025-04-18 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936730', 'tblTempUsageDetail_20' ) end [2025-04-18 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936730', 'tblTempVendorCDR_20' ) start [2025-04-18 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936730', 'tblTempVendorCDR_20' ) end [2025-04-18 16:10:19] Production.INFO: ProcessCDR(1,14936730,1,1,2) [2025-04-18 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936730', 'tblTempUsageDetail_20' ) start [2025-04-18 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936730', 'tblTempUsageDetail_20' ) end [2025-04-18 16:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:10:24] Production.INFO: ==27230== Releasing lock... [2025-04-18 16:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:10:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:11:05 [end_date_ymd] => 2025-04-18 16:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:11:05' and `end` < '2025-04-18 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-04-18 16:11:18] Production.INFO: count ==1653 [2025-04-18 16:11:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:11:05 - End Time 2025-04-18 16:11:05 [2025-04-18 16:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936735', 'tblTempUsageDetail_20' ) start [2025-04-18 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936735', 'tblTempUsageDetail_20' ) end [2025-04-18 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936735', 'tblTempVendorCDR_20' ) start [2025-04-18 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936735', 'tblTempVendorCDR_20' ) end [2025-04-18 16:11:19] Production.INFO: ProcessCDR(1,14936735,1,1,2) [2025-04-18 16:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936735', 'tblTempUsageDetail_20' ) start [2025-04-18 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936735', 'tblTempUsageDetail_20' ) end [2025-04-18 16:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:11:24] Production.INFO: ==27304== Releasing lock... [2025-04-18 16:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:11:24] Production.INFO: 41 MB #Memory Used# [2025-04-18 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:12:05 [end_date_ymd] => 2025-04-18 16:12:05 [RateCDR] => 1 ) [2025-04-18 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:12:05' and `end` < '2025-04-18 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:12:18] Production.INFO: count ==1632 [2025-04-18 16:12:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:12:05 - End Time 2025-04-18 16:12:05 [2025-04-18 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936740', 'tblTempUsageDetail_20' ) start [2025-04-18 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936740', 'tblTempUsageDetail_20' ) end [2025-04-18 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936740', 'tblTempVendorCDR_20' ) start [2025-04-18 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936740', 'tblTempVendorCDR_20' ) end [2025-04-18 16:12:19] Production.INFO: ProcessCDR(1,14936740,1,1,2) [2025-04-18 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936740', 'tblTempUsageDetail_20' ) start [2025-04-18 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936740', 'tblTempUsageDetail_20' ) end [2025-04-18 16:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:12:24] Production.INFO: ==27378== Releasing lock... [2025-04-18 16:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:12:24] Production.INFO: 41 MB #Memory Used# [2025-04-18 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:13:05 [end_date_ymd] => 2025-04-18 16:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:13:05' and `end` < '2025-04-18 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-04-18 16:13:18] Production.INFO: count ==1623 [2025-04-18 16:13:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:13:05 - End Time 2025-04-18 16:13:05 [2025-04-18 16:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936745', 'tblTempUsageDetail_20' ) start [2025-04-18 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936745', 'tblTempUsageDetail_20' ) end [2025-04-18 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936745', 'tblTempVendorCDR_20' ) start [2025-04-18 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936745', 'tblTempVendorCDR_20' ) end [2025-04-18 16:13:19] Production.INFO: ProcessCDR(1,14936745,1,1,2) [2025-04-18 16:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936745', 'tblTempUsageDetail_20' ) start [2025-04-18 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936745', 'tblTempUsageDetail_20' ) end [2025-04-18 16:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:13:24] Production.INFO: ==27454== Releasing lock... [2025-04-18 16:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:13:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:14:05 [end_date_ymd] => 2025-04-18 16:14:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:14:05' and `end` < '2025-04-18 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-04-18 16:14:18] Production.INFO: count ==1620 [2025-04-18 16:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:14:05 - End Time 2025-04-18 16:14:05 [2025-04-18 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936750', 'tblTempUsageDetail_20' ) start [2025-04-18 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936750', 'tblTempUsageDetail_20' ) end [2025-04-18 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936750', 'tblTempVendorCDR_20' ) start [2025-04-18 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936750', 'tblTempVendorCDR_20' ) end [2025-04-18 16:14:19] Production.INFO: ProcessCDR(1,14936750,1,1,2) [2025-04-18 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936750', 'tblTempUsageDetail_20' ) start [2025-04-18 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936750', 'tblTempUsageDetail_20' ) end [2025-04-18 16:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:14:24] Production.INFO: ==27528== Releasing lock... [2025-04-18 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:14:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:15:05 [end_date_ymd] => 2025-04-18 16:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:15:05' and `end` < '2025-04-18 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-04-18 16:15:19] Production.INFO: count ==1619 [2025-04-18 16:15:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:15:05 - End Time 2025-04-18 16:15:05 [2025-04-18 16:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936755', 'tblTempUsageDetail_20' ) start [2025-04-18 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936755', 'tblTempUsageDetail_20' ) end [2025-04-18 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936755', 'tblTempVendorCDR_20' ) start [2025-04-18 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936755', 'tblTempVendorCDR_20' ) end [2025-04-18 16:15:20] Production.INFO: ProcessCDR(1,14936755,1,1,2) [2025-04-18 16:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936755', 'tblTempUsageDetail_20' ) start [2025-04-18 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936755', 'tblTempUsageDetail_20' ) end [2025-04-18 16:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:15:25] Production.INFO: ==27621== Releasing lock... [2025-04-18 16:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:15:25] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:16:06 [end_date_ymd] => 2025-04-18 16:16:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:16:06' and `end` < '2025-04-18 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-04-18 16:16:19] Production.INFO: count ==1617 [2025-04-18 16:16:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:16:06 - End Time 2025-04-18 16:16:06 [2025-04-18 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936760', 'tblTempUsageDetail_20' ) start [2025-04-18 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936760', 'tblTempUsageDetail_20' ) end [2025-04-18 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936760', 'tblTempVendorCDR_20' ) start [2025-04-18 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936760', 'tblTempVendorCDR_20' ) end [2025-04-18 16:16:20] Production.INFO: ProcessCDR(1,14936760,1,1,2) [2025-04-18 16:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936760', 'tblTempUsageDetail_20' ) start [2025-04-18 16:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936760', 'tblTempUsageDetail_20' ) end [2025-04-18 16:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:16:25] Production.INFO: ==27692== Releasing lock... [2025-04-18 16:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:16:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:17:05 [end_date_ymd] => 2025-04-18 16:17:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:17:05' and `end` < '2025-04-18 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-04-18 16:17:19] Production.INFO: count ==1610 [2025-04-18 16:17:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:17:05 - End Time 2025-04-18 16:17:05 [2025-04-18 16:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936765', 'tblTempUsageDetail_20' ) start [2025-04-18 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936765', 'tblTempUsageDetail_20' ) end [2025-04-18 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936765', 'tblTempVendorCDR_20' ) start [2025-04-18 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936765', 'tblTempVendorCDR_20' ) end [2025-04-18 16:17:20] Production.INFO: ProcessCDR(1,14936765,1,1,2) [2025-04-18 16:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936765', 'tblTempUsageDetail_20' ) start [2025-04-18 16:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936765', 'tblTempUsageDetail_20' ) end [2025-04-18 16:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:17:24] Production.INFO: ==27765== Releasing lock... [2025-04-18 16:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:17:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:18:05 [end_date_ymd] => 2025-04-18 16:18:05 [RateCDR] => 1 ) [2025-04-18 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:18:05' and `end` < '2025-04-18 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:18:18] Production.INFO: count ==1584 [2025-04-18 16:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:18:05 - End Time 2025-04-18 16:18:05 [2025-04-18 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936770', 'tblTempUsageDetail_20' ) start [2025-04-18 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936770', 'tblTempUsageDetail_20' ) end [2025-04-18 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936770', 'tblTempVendorCDR_20' ) start [2025-04-18 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936770', 'tblTempVendorCDR_20' ) end [2025-04-18 16:18:19] Production.INFO: ProcessCDR(1,14936770,1,1,2) [2025-04-18 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936770', 'tblTempUsageDetail_20' ) start [2025-04-18 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936770', 'tblTempUsageDetail_20' ) end [2025-04-18 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:18:23] Production.INFO: ==27837== Releasing lock... [2025-04-18 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:18:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:19:05 [end_date_ymd] => 2025-04-18 16:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:19:05' and `end` < '2025-04-18 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-04-18 16:19:18] Production.INFO: count ==1577 [2025-04-18 16:19:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:19:05 - End Time 2025-04-18 16:19:05 [2025-04-18 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936775', 'tblTempUsageDetail_20' ) start [2025-04-18 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936775', 'tblTempUsageDetail_20' ) end [2025-04-18 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936775', 'tblTempVendorCDR_20' ) start [2025-04-18 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936775', 'tblTempVendorCDR_20' ) end [2025-04-18 16:19:19] Production.INFO: ProcessCDR(1,14936775,1,1,2) [2025-04-18 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936775', 'tblTempUsageDetail_20' ) start [2025-04-18 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936775', 'tblTempUsageDetail_20' ) end [2025-04-18 16:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:19:22] Production.INFO: ==27909== Releasing lock... [2025-04-18 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:19:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:20:06 [end_date_ymd] => 2025-04-18 16:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:20:06' and `end` < '2025-04-18 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-04-18 16:20:19] Production.INFO: count ==1581 [2025-04-18 16:20:20] Production.ERROR: pbx CDR StartTime 2025-04-18 13:20:06 - End Time 2025-04-18 16:20:06 [2025-04-18 16:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936781', 'tblTempUsageDetail_20' ) start [2025-04-18 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936781', 'tblTempUsageDetail_20' ) end [2025-04-18 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936781', 'tblTempVendorCDR_20' ) start [2025-04-18 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936781', 'tblTempVendorCDR_20' ) end [2025-04-18 16:20:20] Production.INFO: ProcessCDR(1,14936781,1,1,2) [2025-04-18 16:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936781', 'tblTempUsageDetail_20' ) start [2025-04-18 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936781', 'tblTempUsageDetail_20' ) end [2025-04-18 16:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:20:24] Production.INFO: ==27990== Releasing lock... [2025-04-18 16:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:20:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:21:05 [end_date_ymd] => 2025-04-18 16:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:21:05' and `end` < '2025-04-18 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-04-18 16:21:18] Production.INFO: count ==1615 [2025-04-18 16:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:21:05 - End Time 2025-04-18 16:21:05 [2025-04-18 16:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936786', 'tblTempUsageDetail_20' ) start [2025-04-18 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936786', 'tblTempUsageDetail_20' ) end [2025-04-18 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936786', 'tblTempVendorCDR_20' ) start [2025-04-18 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936786', 'tblTempVendorCDR_20' ) end [2025-04-18 16:21:19] Production.INFO: ProcessCDR(1,14936786,1,1,2) [2025-04-18 16:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936786', 'tblTempUsageDetail_20' ) start [2025-04-18 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936786', 'tblTempUsageDetail_20' ) end [2025-04-18 16:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:21:24] Production.INFO: ==28064== Releasing lock... [2025-04-18 16:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:21:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:22:05 [end_date_ymd] => 2025-04-18 16:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:22:05' and `end` < '2025-04-18 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-04-18 16:22:18] Production.INFO: count ==1610 [2025-04-18 16:22:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:22:05 - End Time 2025-04-18 16:22:05 [2025-04-18 16:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936791', 'tblTempUsageDetail_20' ) start [2025-04-18 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936791', 'tblTempUsageDetail_20' ) end [2025-04-18 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936791', 'tblTempVendorCDR_20' ) start [2025-04-18 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936791', 'tblTempVendorCDR_20' ) end [2025-04-18 16:22:19] Production.INFO: ProcessCDR(1,14936791,1,1,2) [2025-04-18 16:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936791', 'tblTempUsageDetail_20' ) start [2025-04-18 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936791', 'tblTempUsageDetail_20' ) end [2025-04-18 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:22:23] Production.INFO: ==28142== Releasing lock... [2025-04-18 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:22:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:23:05 [end_date_ymd] => 2025-04-18 16:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:23:05' and `end` < '2025-04-18 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-04-18 16:23:18] Production.INFO: count ==1603 [2025-04-18 16:23:18] Production.ERROR: pbx CDR StartTime 2025-04-18 13:23:05 - End Time 2025-04-18 16:23:05 [2025-04-18 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936796', 'tblTempUsageDetail_20' ) start [2025-04-18 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936796', 'tblTempUsageDetail_20' ) end [2025-04-18 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936796', 'tblTempVendorCDR_20' ) start [2025-04-18 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936796', 'tblTempVendorCDR_20' ) end [2025-04-18 16:23:19] Production.INFO: ProcessCDR(1,14936796,1,1,2) [2025-04-18 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936796', 'tblTempUsageDetail_20' ) start [2025-04-18 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936796', 'tblTempUsageDetail_20' ) end [2025-04-18 16:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:23:22] Production.INFO: ==28215== Releasing lock... [2025-04-18 16:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:23:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:24:05 [end_date_ymd] => 2025-04-18 16:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:24:05' and `end` < '2025-04-18 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-04-18 16:24:18] Production.INFO: count ==1607 [2025-04-18 16:24:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:24:05 - End Time 2025-04-18 16:24:05 [2025-04-18 16:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936801', 'tblTempUsageDetail_20' ) start [2025-04-18 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936801', 'tblTempUsageDetail_20' ) end [2025-04-18 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936801', 'tblTempVendorCDR_20' ) start [2025-04-18 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936801', 'tblTempVendorCDR_20' ) end [2025-04-18 16:24:19] Production.INFO: ProcessCDR(1,14936801,1,1,2) [2025-04-18 16:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936801', 'tblTempUsageDetail_20' ) start [2025-04-18 16:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936801', 'tblTempUsageDetail_20' ) end [2025-04-18 16:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:24:24] Production.INFO: ==28327== Releasing lock... [2025-04-18 16:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:24:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:25:05 [end_date_ymd] => 2025-04-18 16:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:25:05' and `end` < '2025-04-18 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-04-18 16:25:18] Production.INFO: count ==1603 [2025-04-18 16:25:18] Production.ERROR: pbx CDR StartTime 2025-04-18 13:25:05 - End Time 2025-04-18 16:25:05 [2025-04-18 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936806', 'tblTempUsageDetail_20' ) start [2025-04-18 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936806', 'tblTempUsageDetail_20' ) end [2025-04-18 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936806', 'tblTempVendorCDR_20' ) start [2025-04-18 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936806', 'tblTempVendorCDR_20' ) end [2025-04-18 16:25:18] Production.INFO: ProcessCDR(1,14936806,1,1,2) [2025-04-18 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936806', 'tblTempUsageDetail_20' ) start [2025-04-18 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936806', 'tblTempUsageDetail_20' ) end [2025-04-18 16:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:25:22] Production.INFO: ==28400== Releasing lock... [2025-04-18 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:25:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:26:05 [end_date_ymd] => 2025-04-18 16:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:26:05' and `end` < '2025-04-18 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-04-18 16:26:18] Production.INFO: count ==1605 [2025-04-18 16:26:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:26:05 - End Time 2025-04-18 16:26:05 [2025-04-18 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936811', 'tblTempUsageDetail_20' ) start [2025-04-18 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936811', 'tblTempUsageDetail_20' ) end [2025-04-18 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936811', 'tblTempVendorCDR_20' ) start [2025-04-18 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936811', 'tblTempVendorCDR_20' ) end [2025-04-18 16:26:19] Production.INFO: ProcessCDR(1,14936811,1,1,2) [2025-04-18 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936811', 'tblTempUsageDetail_20' ) start [2025-04-18 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936811', 'tblTempUsageDetail_20' ) end [2025-04-18 16:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:26:23] Production.INFO: ==28474== Releasing lock... [2025-04-18 16:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:26:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:27:05 [end_date_ymd] => 2025-04-18 16:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:27:05' and `end` < '2025-04-18 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-04-18 16:27:28] Production.INFO: count ==1610 [2025-04-18 16:27:28] Production.ERROR: pbx CDR StartTime 2025-04-18 13:27:05 - End Time 2025-04-18 16:27:05 [2025-04-18 16:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936816', 'tblTempUsageDetail_20' ) start [2025-04-18 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936816', 'tblTempUsageDetail_20' ) end [2025-04-18 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936816', 'tblTempVendorCDR_20' ) start [2025-04-18 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936816', 'tblTempVendorCDR_20' ) end [2025-04-18 16:27:29] Production.INFO: ProcessCDR(1,14936816,1,1,2) [2025-04-18 16:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:27:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936816', 'tblTempUsageDetail_20' ) start [2025-04-18 16:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936816', 'tblTempUsageDetail_20' ) end [2025-04-18 16:27:34] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:27:34] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:27:34] Production.INFO: ==28548== Releasing lock... [2025-04-18 16:27:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:27:34] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:28:05 [end_date_ymd] => 2025-04-18 16:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:28:05' and `end` < '2025-04-18 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-04-18 16:28:18] Production.INFO: count ==1611 [2025-04-18 16:28:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:28:05 - End Time 2025-04-18 16:28:05 [2025-04-18 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936821', 'tblTempUsageDetail_20' ) start [2025-04-18 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936821', 'tblTempUsageDetail_20' ) end [2025-04-18 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936821', 'tblTempVendorCDR_20' ) start [2025-04-18 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936821', 'tblTempVendorCDR_20' ) end [2025-04-18 16:28:19] Production.INFO: ProcessCDR(1,14936821,1,1,2) [2025-04-18 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936821', 'tblTempUsageDetail_20' ) start [2025-04-18 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936821', 'tblTempUsageDetail_20' ) end [2025-04-18 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:28:23] Production.INFO: ==28622== Releasing lock... [2025-04-18 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:28:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:29:05 [end_date_ymd] => 2025-04-18 16:29:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:29:05' and `end` < '2025-04-18 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-04-18 16:29:18] Production.INFO: count ==1606 [2025-04-18 16:29:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:29:05 - End Time 2025-04-18 16:29:05 [2025-04-18 16:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936826', 'tblTempUsageDetail_20' ) start [2025-04-18 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936826', 'tblTempUsageDetail_20' ) end [2025-04-18 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936826', 'tblTempVendorCDR_20' ) start [2025-04-18 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936826', 'tblTempVendorCDR_20' ) end [2025-04-18 16:29:19] Production.INFO: ProcessCDR(1,14936826,1,1,2) [2025-04-18 16:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936826', 'tblTempUsageDetail_20' ) start [2025-04-18 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936826', 'tblTempUsageDetail_20' ) end [2025-04-18 16:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:29:24] Production.INFO: ==28696== Releasing lock... [2025-04-18 16:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:29:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:30:06 [end_date_ymd] => 2025-04-18 16:30:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:30:06' and `end` < '2025-04-18 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-04-18 16:30:19] Production.INFO: count ==1611 [2025-04-18 16:30:20] Production.ERROR: pbx CDR StartTime 2025-04-18 13:30:06 - End Time 2025-04-18 16:30:06 [2025-04-18 16:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936831', 'tblTempUsageDetail_20' ) start [2025-04-18 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936831', 'tblTempUsageDetail_20' ) end [2025-04-18 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936831', 'tblTempVendorCDR_20' ) start [2025-04-18 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936831', 'tblTempVendorCDR_20' ) end [2025-04-18 16:30:20] Production.INFO: ProcessCDR(1,14936831,1,1,2) [2025-04-18 16:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936831', 'tblTempUsageDetail_20' ) start [2025-04-18 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936831', 'tblTempUsageDetail_20' ) end [2025-04-18 16:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:30:25] Production.INFO: ==28770== Releasing lock... [2025-04-18 16:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:30:25] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:31:05 [end_date_ymd] => 2025-04-18 16:31:05 [RateCDR] => 1 ) [2025-04-18 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:31:05' and `end` < '2025-04-18 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-04-18 16:31:18] Production.INFO: count ==1653 [2025-04-18 16:31:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:31:05 - End Time 2025-04-18 16:31:05 [2025-04-18 16:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936837', 'tblTempUsageDetail_20' ) start [2025-04-18 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936837', 'tblTempUsageDetail_20' ) end [2025-04-18 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936837', 'tblTempVendorCDR_20' ) start [2025-04-18 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936837', 'tblTempVendorCDR_20' ) end [2025-04-18 16:31:19] Production.INFO: ProcessCDR(1,14936837,1,1,2) [2025-04-18 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936837', 'tblTempUsageDetail_20' ) start [2025-04-18 16:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936837', 'tblTempUsageDetail_20' ) end [2025-04-18 16:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:31:24] Production.INFO: ==28845== Releasing lock... [2025-04-18 16:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:31:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:32:05 [end_date_ymd] => 2025-04-18 16:32:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:32:05' and `end` < '2025-04-18 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-04-18 16:32:18] Production.INFO: count ==1682 [2025-04-18 16:32:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:32:05 - End Time 2025-04-18 16:32:05 [2025-04-18 16:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936842', 'tblTempUsageDetail_20' ) start [2025-04-18 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936842', 'tblTempUsageDetail_20' ) end [2025-04-18 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936842', 'tblTempVendorCDR_20' ) start [2025-04-18 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936842', 'tblTempVendorCDR_20' ) end [2025-04-18 16:32:19] Production.INFO: ProcessCDR(1,14936842,1,1,2) [2025-04-18 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936842', 'tblTempUsageDetail_20' ) start [2025-04-18 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936842', 'tblTempUsageDetail_20' ) end [2025-04-18 16:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:32:23] Production.INFO: ==28916== Releasing lock... [2025-04-18 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:32:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:33:06 [end_date_ymd] => 2025-04-18 16:33:06 [RateCDR] => 1 ) [2025-04-18 16:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:33:06' and `end` < '2025-04-18 16:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:33:19] Production.INFO: count ==1681 [2025-04-18 16:33:20] Production.ERROR: pbx CDR StartTime 2025-04-18 13:33:06 - End Time 2025-04-18 16:33:06 [2025-04-18 16:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936847', 'tblTempUsageDetail_20' ) start [2025-04-18 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936847', 'tblTempUsageDetail_20' ) end [2025-04-18 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936847', 'tblTempVendorCDR_20' ) start [2025-04-18 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936847', 'tblTempVendorCDR_20' ) end [2025-04-18 16:33:20] Production.INFO: ProcessCDR(1,14936847,1,1,2) [2025-04-18 16:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936847', 'tblTempUsageDetail_20' ) start [2025-04-18 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936847', 'tblTempUsageDetail_20' ) end [2025-04-18 16:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:33:25] Production.INFO: ==28991== Releasing lock... [2025-04-18 16:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:33:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:34:05 [end_date_ymd] => 2025-04-18 16:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:34:05' and `end` < '2025-04-18 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-04-18 16:34:18] Production.INFO: count ==1673 [2025-04-18 16:34:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:34:05 - End Time 2025-04-18 16:34:05 [2025-04-18 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936852', 'tblTempUsageDetail_20' ) start [2025-04-18 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936852', 'tblTempUsageDetail_20' ) end [2025-04-18 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936852', 'tblTempVendorCDR_20' ) start [2025-04-18 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936852', 'tblTempVendorCDR_20' ) end [2025-04-18 16:34:19] Production.INFO: ProcessCDR(1,14936852,1,1,2) [2025-04-18 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936852', 'tblTempUsageDetail_20' ) start [2025-04-18 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936852', 'tblTempUsageDetail_20' ) end [2025-04-18 16:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:34:24] Production.INFO: ==29066== Releasing lock... [2025-04-18 16:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:34:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:35:05 [end_date_ymd] => 2025-04-18 16:35:05 [RateCDR] => 1 ) [2025-04-18 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:35:05' and `end` < '2025-04-18 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:35:18] Production.INFO: count ==1665 [2025-04-18 16:35:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:35:05 - End Time 2025-04-18 16:35:05 [2025-04-18 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936857', 'tblTempUsageDetail_20' ) start [2025-04-18 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936857', 'tblTempUsageDetail_20' ) end [2025-04-18 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936857', 'tblTempVendorCDR_20' ) start [2025-04-18 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936857', 'tblTempVendorCDR_20' ) end [2025-04-18 16:35:19] Production.INFO: ProcessCDR(1,14936857,1,1,2) [2025-04-18 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936857', 'tblTempUsageDetail_20' ) start [2025-04-18 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936857', 'tblTempUsageDetail_20' ) end [2025-04-18 16:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:35:24] Production.INFO: ==29137== Releasing lock... [2025-04-18 16:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:35:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:36:05 [end_date_ymd] => 2025-04-18 16:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:36:05' and `end` < '2025-04-18 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-04-18 16:36:18] Production.INFO: count ==1664 [2025-04-18 16:36:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:36:05 - End Time 2025-04-18 16:36:05 [2025-04-18 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936862', 'tblTempUsageDetail_20' ) start [2025-04-18 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936862', 'tblTempUsageDetail_20' ) end [2025-04-18 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936862', 'tblTempVendorCDR_20' ) start [2025-04-18 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936862', 'tblTempVendorCDR_20' ) end [2025-04-18 16:36:19] Production.INFO: ProcessCDR(1,14936862,1,1,2) [2025-04-18 16:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936862', 'tblTempUsageDetail_20' ) start [2025-04-18 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936862', 'tblTempUsageDetail_20' ) end [2025-04-18 16:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:36:22] Production.INFO: ==29207== Releasing lock... [2025-04-18 16:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:36:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:37:05 [end_date_ymd] => 2025-04-18 16:37:05 [RateCDR] => 1 ) [2025-04-18 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:37:05' and `end` < '2025-04-18 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:37:18] Production.INFO: count ==1659 [2025-04-18 16:37:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:37:05 - End Time 2025-04-18 16:37:05 [2025-04-18 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936867', 'tblTempUsageDetail_20' ) start [2025-04-18 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936867', 'tblTempUsageDetail_20' ) end [2025-04-18 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936867', 'tblTempVendorCDR_20' ) start [2025-04-18 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936867', 'tblTempVendorCDR_20' ) end [2025-04-18 16:37:19] Production.INFO: ProcessCDR(1,14936867,1,1,2) [2025-04-18 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936867', 'tblTempUsageDetail_20' ) start [2025-04-18 16:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936867', 'tblTempUsageDetail_20' ) end [2025-04-18 16:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:37:24] Production.INFO: ==29277== Releasing lock... [2025-04-18 16:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:37:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:38:05 [end_date_ymd] => 2025-04-18 16:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:38:05' and `end` < '2025-04-18 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-04-18 16:38:18] Production.INFO: count ==1647 [2025-04-18 16:38:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:38:05 - End Time 2025-04-18 16:38:05 [2025-04-18 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936872', 'tblTempUsageDetail_20' ) start [2025-04-18 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936872', 'tblTempUsageDetail_20' ) end [2025-04-18 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936872', 'tblTempVendorCDR_20' ) start [2025-04-18 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936872', 'tblTempVendorCDR_20' ) end [2025-04-18 16:38:19] Production.INFO: ProcessCDR(1,14936872,1,1,2) [2025-04-18 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936872', 'tblTempUsageDetail_20' ) start [2025-04-18 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936872', 'tblTempUsageDetail_20' ) end [2025-04-18 16:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:38:22] Production.INFO: ==29350== Releasing lock... [2025-04-18 16:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:38:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:39:06 [end_date_ymd] => 2025-04-18 16:39:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:39:06' and `end` < '2025-04-18 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-04-18 16:39:19] Production.INFO: count ==1627 [2025-04-18 16:39:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:39:06 - End Time 2025-04-18 16:39:06 [2025-04-18 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936877', 'tblTempUsageDetail_20' ) start [2025-04-18 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936877', 'tblTempUsageDetail_20' ) end [2025-04-18 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936877', 'tblTempVendorCDR_20' ) start [2025-04-18 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936877', 'tblTempVendorCDR_20' ) end [2025-04-18 16:39:20] Production.INFO: ProcessCDR(1,14936877,1,1,2) [2025-04-18 16:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936877', 'tblTempUsageDetail_20' ) start [2025-04-18 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936877', 'tblTempUsageDetail_20' ) end [2025-04-18 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:39:25] Production.INFO: ==29421== Releasing lock... [2025-04-18 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:39:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:40:06 [end_date_ymd] => 2025-04-18 16:40:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:40:06' and `end` < '2025-04-18 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-04-18 16:40:19] Production.INFO: count ==1636 [2025-04-18 16:40:20] Production.ERROR: pbx CDR StartTime 2025-04-18 13:40:06 - End Time 2025-04-18 16:40:06 [2025-04-18 16:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936883', 'tblTempUsageDetail_20' ) start [2025-04-18 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936883', 'tblTempUsageDetail_20' ) end [2025-04-18 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936883', 'tblTempVendorCDR_20' ) start [2025-04-18 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936883', 'tblTempVendorCDR_20' ) end [2025-04-18 16:40:20] Production.INFO: ProcessCDR(1,14936883,1,1,2) [2025-04-18 16:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936883', 'tblTempUsageDetail_20' ) start [2025-04-18 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936883', 'tblTempUsageDetail_20' ) end [2025-04-18 16:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:40:25] Production.INFO: ==29535== Releasing lock... [2025-04-18 16:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:40:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:41:06 [end_date_ymd] => 2025-04-18 16:41:06 [RateCDR] => 1 ) [2025-04-18 16: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-04-18 13:41:06' and `end` < '2025-04-18 16: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-04-18 16:41:19] Production.INFO: count ==1698 [2025-04-18 16:41:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:41:06 - End Time 2025-04-18 16:41:06 [2025-04-18 16:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936888', 'tblTempUsageDetail_20' ) start [2025-04-18 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936888', 'tblTempUsageDetail_20' ) end [2025-04-18 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936888', 'tblTempVendorCDR_20' ) start [2025-04-18 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936888', 'tblTempVendorCDR_20' ) end [2025-04-18 16:41:19] Production.INFO: ProcessCDR(1,14936888,1,1,2) [2025-04-18 16:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936888', 'tblTempUsageDetail_20' ) start [2025-04-18 16:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936888', 'tblTempUsageDetail_20' ) end [2025-04-18 16:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:41:24] Production.INFO: ==29609== Releasing lock... [2025-04-18 16:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:41:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:42:06 [end_date_ymd] => 2025-04-18 16:42:06 [RateCDR] => 1 ) [2025-04-18 16: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-04-18 13:42:06' and `end` < '2025-04-18 16: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-04-18 16:42:19] Production.INFO: count ==1700 [2025-04-18 16:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:42:06 - End Time 2025-04-18 16:42:06 [2025-04-18 16:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936893', 'tblTempUsageDetail_20' ) start [2025-04-18 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936893', 'tblTempUsageDetail_20' ) end [2025-04-18 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936893', 'tblTempVendorCDR_20' ) start [2025-04-18 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936893', 'tblTempVendorCDR_20' ) end [2025-04-18 16:42:20] Production.INFO: ProcessCDR(1,14936893,1,1,2) [2025-04-18 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936893', 'tblTempUsageDetail_20' ) start [2025-04-18 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936893', 'tblTempUsageDetail_20' ) end [2025-04-18 16:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:42:25] Production.INFO: ==29688== Releasing lock... [2025-04-18 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:42:25] Production.INFO: 41 MB #Memory Used# [2025-04-18 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:43:05 [end_date_ymd] => 2025-04-18 16:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:43:05' and `end` < '2025-04-18 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-04-18 16:43:18] Production.INFO: count ==1693 [2025-04-18 16:43:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:43:05 - End Time 2025-04-18 16:43:05 [2025-04-18 16:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936898', 'tblTempUsageDetail_20' ) start [2025-04-18 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936898', 'tblTempUsageDetail_20' ) end [2025-04-18 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936898', 'tblTempVendorCDR_20' ) start [2025-04-18 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936898', 'tblTempVendorCDR_20' ) end [2025-04-18 16:43:19] Production.INFO: ProcessCDR(1,14936898,1,1,2) [2025-04-18 16:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936898', 'tblTempUsageDetail_20' ) start [2025-04-18 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936898', 'tblTempUsageDetail_20' ) end [2025-04-18 16:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:43:24] Production.INFO: ==29766== Releasing lock... [2025-04-18 16:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:43:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:44:05 [end_date_ymd] => 2025-04-18 16:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:44:05' and `end` < '2025-04-18 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-04-18 16:44:18] Production.INFO: count ==1689 [2025-04-18 16:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:44:05 - End Time 2025-04-18 16:44:05 [2025-04-18 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936903', 'tblTempUsageDetail_20' ) start [2025-04-18 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936903', 'tblTempUsageDetail_20' ) end [2025-04-18 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936903', 'tblTempVendorCDR_20' ) start [2025-04-18 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936903', 'tblTempVendorCDR_20' ) end [2025-04-18 16:44:19] Production.INFO: ProcessCDR(1,14936903,1,1,2) [2025-04-18 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936903', 'tblTempUsageDetail_20' ) start [2025-04-18 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936903', 'tblTempUsageDetail_20' ) end [2025-04-18 16:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:44:23] Production.INFO: ==29837== Releasing lock... [2025-04-18 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:44:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:45:05 [end_date_ymd] => 2025-04-18 16:45:05 [RateCDR] => 1 ) [2025-04-18 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:45:05' and `end` < '2025-04-18 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:45:18] Production.INFO: count ==1691 [2025-04-18 16:45:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:45:05 - End Time 2025-04-18 16:45:05 [2025-04-18 16:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936908', 'tblTempUsageDetail_20' ) start [2025-04-18 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936908', 'tblTempUsageDetail_20' ) end [2025-04-18 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936908', 'tblTempVendorCDR_20' ) start [2025-04-18 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936908', 'tblTempVendorCDR_20' ) end [2025-04-18 16:45:19] Production.INFO: ProcessCDR(1,14936908,1,1,2) [2025-04-18 16:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936908', 'tblTempUsageDetail_20' ) start [2025-04-18 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936908', 'tblTempUsageDetail_20' ) end [2025-04-18 16:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:45:24] Production.INFO: ==29908== Releasing lock... [2025-04-18 16:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:45:24] Production.INFO: 41 MB #Memory Used# [2025-04-18 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:46:06 [end_date_ymd] => 2025-04-18 16:46:06 [RateCDR] => 1 ) [2025-04-18 16: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-04-18 13:46:06' and `end` < '2025-04-18 16: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-04-18 16:46:19] Production.INFO: count ==1688 [2025-04-18 16:46:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:46:06 - End Time 2025-04-18 16:46:06 [2025-04-18 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936913', 'tblTempUsageDetail_20' ) start [2025-04-18 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936913', 'tblTempUsageDetail_20' ) end [2025-04-18 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936913', 'tblTempVendorCDR_20' ) start [2025-04-18 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936913', 'tblTempVendorCDR_20' ) end [2025-04-18 16:46:20] Production.INFO: ProcessCDR(1,14936913,1,1,2) [2025-04-18 16:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936913', 'tblTempUsageDetail_20' ) start [2025-04-18 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936913', 'tblTempUsageDetail_20' ) end [2025-04-18 16:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:46:24] Production.INFO: ==29985== Releasing lock... [2025-04-18 16:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:46:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:47:05 [end_date_ymd] => 2025-04-18 16:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:47:05' and `end` < '2025-04-18 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-04-18 16:47:18] Production.INFO: count ==1680 [2025-04-18 16:47:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:47:05 - End Time 2025-04-18 16:47:05 [2025-04-18 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936918', 'tblTempUsageDetail_20' ) start [2025-04-18 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936918', 'tblTempUsageDetail_20' ) end [2025-04-18 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936918', 'tblTempVendorCDR_20' ) start [2025-04-18 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936918', 'tblTempVendorCDR_20' ) end [2025-04-18 16:47:19] Production.INFO: ProcessCDR(1,14936918,1,1,2) [2025-04-18 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936918', 'tblTempUsageDetail_20' ) start [2025-04-18 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936918', 'tblTempUsageDetail_20' ) end [2025-04-18 16:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:47:22] Production.INFO: ==30059== Releasing lock... [2025-04-18 16:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:47:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:48:05 [end_date_ymd] => 2025-04-18 16:48:05 [RateCDR] => 1 ) [2025-04-18 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:48:05' and `end` < '2025-04-18 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-04-18 16:48:18] Production.INFO: count ==1672 [2025-04-18 16:48:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:48:05 - End Time 2025-04-18 16:48:05 [2025-04-18 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936923', 'tblTempUsageDetail_20' ) start [2025-04-18 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936923', 'tblTempUsageDetail_20' ) end [2025-04-18 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936923', 'tblTempVendorCDR_20' ) start [2025-04-18 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936923', 'tblTempVendorCDR_20' ) end [2025-04-18 16:48:19] Production.INFO: ProcessCDR(1,14936923,1,1,2) [2025-04-18 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936923', 'tblTempUsageDetail_20' ) start [2025-04-18 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936923', 'tblTempUsageDetail_20' ) end [2025-04-18 16:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:48:22] Production.INFO: ==30131== Releasing lock... [2025-04-18 16:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:48:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:49:05 [end_date_ymd] => 2025-04-18 16:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:49:05' and `end` < '2025-04-18 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-04-18 16:49:18] Production.INFO: count ==1657 [2025-04-18 16:49:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:49:05 - End Time 2025-04-18 16:49:05 [2025-04-18 16:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936928', 'tblTempUsageDetail_20' ) start [2025-04-18 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936928', 'tblTempUsageDetail_20' ) end [2025-04-18 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936928', 'tblTempVendorCDR_20' ) start [2025-04-18 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936928', 'tblTempVendorCDR_20' ) end [2025-04-18 16:49:19] Production.INFO: ProcessCDR(1,14936928,1,1,2) [2025-04-18 16:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936928', 'tblTempUsageDetail_20' ) start [2025-04-18 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936928', 'tblTempUsageDetail_20' ) end [2025-04-18 16:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:49:24] Production.INFO: ==30201== Releasing lock... [2025-04-18 16:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:49:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:50:06 [end_date_ymd] => 2025-04-18 16:50:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:50:06' and `end` < '2025-04-18 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-04-18 16:50:19] Production.INFO: count ==1652 [2025-04-18 16:50:20] Production.ERROR: pbx CDR StartTime 2025-04-18 13:50:06 - End Time 2025-04-18 16:50:06 [2025-04-18 16:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936934', 'tblTempUsageDetail_20' ) start [2025-04-18 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936934', 'tblTempUsageDetail_20' ) end [2025-04-18 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936934', 'tblTempVendorCDR_20' ) start [2025-04-18 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936934', 'tblTempVendorCDR_20' ) end [2025-04-18 16:50:20] Production.INFO: ProcessCDR(1,14936934,1,1,2) [2025-04-18 16:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936934', 'tblTempUsageDetail_20' ) start [2025-04-18 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936934', 'tblTempUsageDetail_20' ) end [2025-04-18 16:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:50:25] Production.INFO: ==30275== Releasing lock... [2025-04-18 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:50:25] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:51:05 [end_date_ymd] => 2025-04-18 16:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:51:05' and `end` < '2025-04-18 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-04-18 16:51:18] Production.INFO: count ==1695 [2025-04-18 16:51:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:51:05 - End Time 2025-04-18 16:51:05 [2025-04-18 16:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936939', 'tblTempUsageDetail_20' ) start [2025-04-18 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936939', 'tblTempUsageDetail_20' ) end [2025-04-18 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936939', 'tblTempVendorCDR_20' ) start [2025-04-18 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936939', 'tblTempVendorCDR_20' ) end [2025-04-18 16:51:19] Production.INFO: ProcessCDR(1,14936939,1,1,2) [2025-04-18 16:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936939', 'tblTempUsageDetail_20' ) start [2025-04-18 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936939', 'tblTempUsageDetail_20' ) end [2025-04-18 16:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:51:23] Production.INFO: ==30346== Releasing lock... [2025-04-18 16:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:51:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:52:05 [end_date_ymd] => 2025-04-18 16:52:05 [RateCDR] => 1 ) [2025-04-18 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:52:05' and `end` < '2025-04-18 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:52:19] Production.INFO: count ==1693 [2025-04-18 16:52:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:52:05 - End Time 2025-04-18 16:52:05 [2025-04-18 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936944', 'tblTempUsageDetail_20' ) start [2025-04-18 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936944', 'tblTempUsageDetail_20' ) end [2025-04-18 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936944', 'tblTempVendorCDR_20' ) start [2025-04-18 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936944', 'tblTempVendorCDR_20' ) end [2025-04-18 16:52:19] Production.INFO: ProcessCDR(1,14936944,1,1,2) [2025-04-18 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936944', 'tblTempUsageDetail_20' ) start [2025-04-18 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936944', 'tblTempUsageDetail_20' ) end [2025-04-18 16:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:52:24] Production.INFO: ==30420== Releasing lock... [2025-04-18 16:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:52:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:53:04 [end_date_ymd] => 2025-04-18 16:53:04 [RateCDR] => 1 ) [2025-04-18 16: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-04-18 13:53:04' and `end` < '2025-04-18 16: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-04-18 16:53:17] Production.INFO: count ==1697 [2025-04-18 16:53:18] Production.ERROR: pbx CDR StartTime 2025-04-18 13:53:04 - End Time 2025-04-18 16:53:04 [2025-04-18 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936949', 'tblTempUsageDetail_20' ) start [2025-04-18 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936949', 'tblTempUsageDetail_20' ) end [2025-04-18 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936949', 'tblTempVendorCDR_20' ) start [2025-04-18 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936949', 'tblTempVendorCDR_20' ) end [2025-04-18 16:53:18] Production.INFO: ProcessCDR(1,14936949,1,1,2) [2025-04-18 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936949', 'tblTempUsageDetail_20' ) start [2025-04-18 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936949', 'tblTempUsageDetail_20' ) end [2025-04-18 16:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:53:23] Production.INFO: ==30491== Releasing lock... [2025-04-18 16:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:53:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:54:05 [end_date_ymd] => 2025-04-18 16:54:05 [RateCDR] => 1 ) [2025-04-18 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:54:05' and `end` < '2025-04-18 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:54:18] Production.INFO: count ==1686 [2025-04-18 16:54:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:54:05 - End Time 2025-04-18 16:54:05 [2025-04-18 16:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936954', 'tblTempUsageDetail_20' ) start [2025-04-18 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936954', 'tblTempUsageDetail_20' ) end [2025-04-18 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936954', 'tblTempVendorCDR_20' ) start [2025-04-18 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936954', 'tblTempVendorCDR_20' ) end [2025-04-18 16:54:19] Production.INFO: ProcessCDR(1,14936954,1,1,2) [2025-04-18 16:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936954', 'tblTempUsageDetail_20' ) start [2025-04-18 16:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936954', 'tblTempUsageDetail_20' ) end [2025-04-18 16:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:54:24] Production.INFO: ==30564== Releasing lock... [2025-04-18 16:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:54:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:55:05 [end_date_ymd] => 2025-04-18 16:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:55:05' and `end` < '2025-04-18 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-04-18 16:55:18] Production.INFO: count ==1687 [2025-04-18 16:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:55:05 - End Time 2025-04-18 16:55:05 [2025-04-18 16:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936959', 'tblTempUsageDetail_20' ) start [2025-04-18 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936959', 'tblTempUsageDetail_20' ) end [2025-04-18 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936959', 'tblTempVendorCDR_20' ) start [2025-04-18 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936959', 'tblTempVendorCDR_20' ) end [2025-04-18 16:55:19] Production.INFO: ProcessCDR(1,14936959,1,1,2) [2025-04-18 16:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936959', 'tblTempUsageDetail_20' ) start [2025-04-18 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936959', 'tblTempUsageDetail_20' ) end [2025-04-18 16:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:55:24] Production.INFO: ==30673== Releasing lock... [2025-04-18 16:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:55:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:56:05 [end_date_ymd] => 2025-04-18 16:56:05 [RateCDR] => 1 ) [2025-04-18 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 13:56:05' and `end` < '2025-04-18 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 16:56:18] Production.INFO: count ==1687 [2025-04-18 16:56:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:56:05 - End Time 2025-04-18 16:56:05 [2025-04-18 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936964', 'tblTempUsageDetail_20' ) start [2025-04-18 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936964', 'tblTempUsageDetail_20' ) end [2025-04-18 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936964', 'tblTempVendorCDR_20' ) start [2025-04-18 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936964', 'tblTempVendorCDR_20' ) end [2025-04-18 16:56:19] Production.INFO: ProcessCDR(1,14936964,1,1,2) [2025-04-18 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936964', 'tblTempUsageDetail_20' ) start [2025-04-18 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936964', 'tblTempUsageDetail_20' ) end [2025-04-18 16:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:56:24] Production.INFO: ==30746== Releasing lock... [2025-04-18 16:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:56:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:57:05 [end_date_ymd] => 2025-04-18 16:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:57:05' and `end` < '2025-04-18 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-04-18 16:57:18] Production.INFO: count ==1686 [2025-04-18 16:57:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:57:05 - End Time 2025-04-18 16:57:05 [2025-04-18 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936969', 'tblTempUsageDetail_20' ) start [2025-04-18 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936969', 'tblTempUsageDetail_20' ) end [2025-04-18 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936969', 'tblTempVendorCDR_20' ) start [2025-04-18 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936969', 'tblTempVendorCDR_20' ) end [2025-04-18 16:57:19] Production.INFO: ProcessCDR(1,14936969,1,1,2) [2025-04-18 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936969', 'tblTempUsageDetail_20' ) start [2025-04-18 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936969', 'tblTempUsageDetail_20' ) end [2025-04-18 16:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:57:25] Production.INFO: ==30817== Releasing lock... [2025-04-18 16:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:57:25] Production.INFO: 41 MB #Memory Used# [2025-04-18 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:58:05 [end_date_ymd] => 2025-04-18 16:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 13:58:05' and `end` < '2025-04-18 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-04-18 16:58:18] Production.INFO: count ==1684 [2025-04-18 16:58:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:58:05 - End Time 2025-04-18 16:58:05 [2025-04-18 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936974', 'tblTempUsageDetail_20' ) start [2025-04-18 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936974', 'tblTempUsageDetail_20' ) end [2025-04-18 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936974', 'tblTempVendorCDR_20' ) start [2025-04-18 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936974', 'tblTempVendorCDR_20' ) end [2025-04-18 16:58:19] Production.INFO: ProcessCDR(1,14936974,1,1,2) [2025-04-18 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936974', 'tblTempUsageDetail_20' ) start [2025-04-18 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936974', 'tblTempUsageDetail_20' ) end [2025-04-18 16:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:58:24] Production.INFO: ==30893== Releasing lock... [2025-04-18 16:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:58:24] Production.INFO: 41 MB #Memory Used# [2025-04-18 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 13:59:06 [end_date_ymd] => 2025-04-18 16:59:06 [RateCDR] => 1 ) [2025-04-18 16: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-04-18 13:59:06' and `end` < '2025-04-18 16: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-04-18 16:59:19] Production.INFO: count ==1684 [2025-04-18 16:59:19] Production.ERROR: pbx CDR StartTime 2025-04-18 13:59:06 - End Time 2025-04-18 16:59:06 [2025-04-18 16:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936979', 'tblTempUsageDetail_20' ) start [2025-04-18 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936979', 'tblTempUsageDetail_20' ) end [2025-04-18 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936979', 'tblTempVendorCDR_20' ) start [2025-04-18 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936979', 'tblTempVendorCDR_20' ) end [2025-04-18 16:59:19] Production.INFO: ProcessCDR(1,14936979,1,1,2) [2025-04-18 16:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 16:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936979', 'tblTempUsageDetail_20' ) start [2025-04-18 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936979', 'tblTempUsageDetail_20' ) end [2025-04-18 16:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 16:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 16:59:24] Production.INFO: ==30971== Releasing lock... [2025-04-18 16:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 16:59:24] Production.INFO: 41 MB #Memory Used# [2025-04-18 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:00:06 [end_date_ymd] => 2025-04-18 17:00:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:00:06' and `end` < '2025-04-18 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-04-18 17:00:19] Production.INFO: count ==1693 [2025-04-18 17:00:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:00:06 - End Time 2025-04-18 17:00:06 [2025-04-18 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936985', 'tblTempUsageDetail_20' ) start [2025-04-18 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936985', 'tblTempUsageDetail_20' ) end [2025-04-18 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936985', 'tblTempVendorCDR_20' ) start [2025-04-18 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936985', 'tblTempVendorCDR_20' ) end [2025-04-18 17:00:20] Production.INFO: ProcessCDR(1,14936985,1,1,2) [2025-04-18 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936985', 'tblTempUsageDetail_20' ) start [2025-04-18 17:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936985', 'tblTempUsageDetail_20' ) end [2025-04-18 17:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:00:23] Production.INFO: ==31049== Releasing lock... [2025-04-18 17:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:00:23] Production.INFO: 41 MB #Memory Used# [2025-04-18 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:01:05 [end_date_ymd] => 2025-04-18 17:01:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:01:05' and `end` < '2025-04-18 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-04-18 17:01:18] Production.INFO: count ==1732 [2025-04-18 17:01:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:01:05 - End Time 2025-04-18 17:01:05 [2025-04-18 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936990', 'tblTempUsageDetail_20' ) start [2025-04-18 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936990', 'tblTempUsageDetail_20' ) end [2025-04-18 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936990', 'tblTempVendorCDR_20' ) start [2025-04-18 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936990', 'tblTempVendorCDR_20' ) end [2025-04-18 17:01:19] Production.INFO: ProcessCDR(1,14936990,1,1,2) [2025-04-18 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936990', 'tblTempUsageDetail_20' ) start [2025-04-18 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936990', 'tblTempUsageDetail_20' ) end [2025-04-18 17:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:01:24] Production.INFO: ==31142== Releasing lock... [2025-04-18 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:01:24] Production.INFO: 41 MB #Memory Used# [2025-04-18 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:02:05 [end_date_ymd] => 2025-04-18 17:02:05 [RateCDR] => 1 ) [2025-04-18 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:02:05' and `end` < '2025-04-18 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:02:18] Production.INFO: count ==1733 [2025-04-18 17:02:18] Production.ERROR: pbx CDR StartTime 2025-04-18 14:02:05 - End Time 2025-04-18 17:02:05 [2025-04-18 17:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936995', 'tblTempUsageDetail_20' ) start [2025-04-18 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14936995', 'tblTempUsageDetail_20' ) end [2025-04-18 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936995', 'tblTempVendorCDR_20' ) start [2025-04-18 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14936995', 'tblTempVendorCDR_20' ) end [2025-04-18 17:02:18] Production.INFO: ProcessCDR(1,14936995,1,1,2) [2025-04-18 17:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14936995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14936995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14936995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14936995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936995', 'tblTempUsageDetail_20' ) start [2025-04-18 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14936995', 'tblTempUsageDetail_20' ) end [2025-04-18 17:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:02:22] Production.INFO: ==31219== Releasing lock... [2025-04-18 17:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:02:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:03:05 [end_date_ymd] => 2025-04-18 17:03:05 [RateCDR] => 1 ) [2025-04-18 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:03:05' and `end` < '2025-04-18 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:03:18] Production.INFO: count ==1735 [2025-04-18 17:03:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:03:05 - End Time 2025-04-18 17:03:05 [2025-04-18 17:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937000', 'tblTempUsageDetail_20' ) start [2025-04-18 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937000', 'tblTempUsageDetail_20' ) end [2025-04-18 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937000', 'tblTempVendorCDR_20' ) start [2025-04-18 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937000', 'tblTempVendorCDR_20' ) end [2025-04-18 17:03:19] Production.INFO: ProcessCDR(1,14937000,1,1,2) [2025-04-18 17:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937000', 'tblTempUsageDetail_20' ) start [2025-04-18 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937000', 'tblTempUsageDetail_20' ) end [2025-04-18 17:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:03:22] Production.INFO: ==31290== Releasing lock... [2025-04-18 17:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:03:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:04:05 [end_date_ymd] => 2025-04-18 17:04:05 [RateCDR] => 1 ) [2025-04-18 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:04:05' and `end` < '2025-04-18 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:04:18] Production.INFO: count ==1736 [2025-04-18 17:04:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:04:05 - End Time 2025-04-18 17:04:05 [2025-04-18 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937005', 'tblTempUsageDetail_20' ) start [2025-04-18 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937005', 'tblTempUsageDetail_20' ) end [2025-04-18 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937005', 'tblTempVendorCDR_20' ) start [2025-04-18 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937005', 'tblTempVendorCDR_20' ) end [2025-04-18 17:04:19] Production.INFO: ProcessCDR(1,14937005,1,1,2) [2025-04-18 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937005', 'tblTempUsageDetail_20' ) start [2025-04-18 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937005', 'tblTempUsageDetail_20' ) end [2025-04-18 17:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:04:23] Production.INFO: ==31361== Releasing lock... [2025-04-18 17:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:04:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:05:05 [end_date_ymd] => 2025-04-18 17:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:05:05' and `end` < '2025-04-18 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-04-18 17:05:18] Production.INFO: count ==1734 [2025-04-18 17:05:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:05:05 - End Time 2025-04-18 17:05:05 [2025-04-18 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937009', 'tblTempUsageDetail_20' ) start [2025-04-18 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937009', 'tblTempUsageDetail_20' ) end [2025-04-18 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937009', 'tblTempVendorCDR_20' ) start [2025-04-18 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937009', 'tblTempVendorCDR_20' ) end [2025-04-18 17:05:19] Production.INFO: ProcessCDR(1,14937009,1,1,2) [2025-04-18 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937009', 'tblTempUsageDetail_20' ) start [2025-04-18 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937009', 'tblTempUsageDetail_20' ) end [2025-04-18 17:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:05:22] Production.INFO: ==31434== Releasing lock... [2025-04-18 17:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:05:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:06:05 [end_date_ymd] => 2025-04-18 17:06:05 [RateCDR] => 1 ) [2025-04-18 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:06:05' and `end` < '2025-04-18 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:06:18] Production.INFO: count ==1738 [2025-04-18 17:06:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:06:05 - End Time 2025-04-18 17:06:05 [2025-04-18 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937015', 'tblTempUsageDetail_20' ) start [2025-04-18 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937015', 'tblTempUsageDetail_20' ) end [2025-04-18 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937015', 'tblTempVendorCDR_20' ) start [2025-04-18 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937015', 'tblTempVendorCDR_20' ) end [2025-04-18 17:06:19] Production.INFO: ProcessCDR(1,14937015,1,1,2) [2025-04-18 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937015', 'tblTempUsageDetail_20' ) start [2025-04-18 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937015', 'tblTempUsageDetail_20' ) end [2025-04-18 17:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:06:24] Production.INFO: ==31507== Releasing lock... [2025-04-18 17:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:06:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:07:05 [end_date_ymd] => 2025-04-18 17:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:07:05' and `end` < '2025-04-18 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-04-18 17:07:18] Production.INFO: count ==1722 [2025-04-18 17:07:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:07:05 - End Time 2025-04-18 17:07:05 [2025-04-18 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937020', 'tblTempUsageDetail_20' ) start [2025-04-18 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937020', 'tblTempUsageDetail_20' ) end [2025-04-18 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937020', 'tblTempVendorCDR_20' ) start [2025-04-18 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937020', 'tblTempVendorCDR_20' ) end [2025-04-18 17:07:19] Production.INFO: ProcessCDR(1,14937020,1,1,2) [2025-04-18 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937020', 'tblTempUsageDetail_20' ) start [2025-04-18 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937020', 'tblTempUsageDetail_20' ) end [2025-04-18 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:07:24] Production.INFO: ==31580== Releasing lock... [2025-04-18 17:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:07:24] Production.INFO: 41 MB #Memory Used# [2025-04-18 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:08:05 [end_date_ymd] => 2025-04-18 17:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:08:05' and `end` < '2025-04-18 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-04-18 17:08:18] Production.INFO: count ==1724 [2025-04-18 17:08:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:08:05 - End Time 2025-04-18 17:08:05 [2025-04-18 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937025', 'tblTempUsageDetail_20' ) start [2025-04-18 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937025', 'tblTempUsageDetail_20' ) end [2025-04-18 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937025', 'tblTempVendorCDR_20' ) start [2025-04-18 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937025', 'tblTempVendorCDR_20' ) end [2025-04-18 17:08:19] Production.INFO: ProcessCDR(1,14937025,1,1,2) [2025-04-18 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937025', 'tblTempUsageDetail_20' ) start [2025-04-18 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937025', 'tblTempUsageDetail_20' ) end [2025-04-18 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:08:24] Production.INFO: ==31651== Releasing lock... [2025-04-18 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:08:24] Production.INFO: 41 MB #Memory Used# [2025-04-18 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:09:05 [end_date_ymd] => 2025-04-18 17:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:09:05' and `end` < '2025-04-18 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-04-18 17:09:18] Production.INFO: count ==1724 [2025-04-18 17:09:18] Production.ERROR: pbx CDR StartTime 2025-04-18 14:09:05 - End Time 2025-04-18 17:09:05 [2025-04-18 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937030', 'tblTempUsageDetail_20' ) start [2025-04-18 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937030', 'tblTempUsageDetail_20' ) end [2025-04-18 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937030', 'tblTempVendorCDR_20' ) start [2025-04-18 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937030', 'tblTempVendorCDR_20' ) end [2025-04-18 17:09:19] Production.INFO: ProcessCDR(1,14937030,1,1,2) [2025-04-18 17:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937030', 'tblTempUsageDetail_20' ) start [2025-04-18 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937030', 'tblTempUsageDetail_20' ) end [2025-04-18 17:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:09:22] Production.INFO: ==31724== Releasing lock... [2025-04-18 17:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:09:22] Production.INFO: 41 MB #Memory Used# [2025-04-18 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:10:06 [end_date_ymd] => 2025-04-18 17:10:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:10:06' and `end` < '2025-04-18 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-04-18 17:10:19] Production.INFO: count ==1732 [2025-04-18 17:10:21] Production.ERROR: pbx CDR StartTime 2025-04-18 14:10:06 - End Time 2025-04-18 17:10:06 [2025-04-18 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937036', 'tblTempUsageDetail_20' ) start [2025-04-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937036', 'tblTempUsageDetail_20' ) end [2025-04-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937036', 'tblTempVendorCDR_20' ) start [2025-04-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937036', 'tblTempVendorCDR_20' ) end [2025-04-18 17:10:21] Production.INFO: ProcessCDR(1,14937036,1,1,2) [2025-04-18 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937036', 'tblTempUsageDetail_20' ) start [2025-04-18 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937036', 'tblTempUsageDetail_20' ) end [2025-04-18 17:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:10:25] Production.INFO: ==31797== Releasing lock... [2025-04-18 17:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:10:25] Production.INFO: 41 MB #Memory Used# [2025-04-18 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:11:05 [end_date_ymd] => 2025-04-18 17:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:11:05' and `end` < '2025-04-18 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-04-18 17:11:18] Production.INFO: count ==1783 [2025-04-18 17:11:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:11:05 - End Time 2025-04-18 17:11:05 [2025-04-18 17:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937041', 'tblTempUsageDetail_20' ) start [2025-04-18 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937041', 'tblTempUsageDetail_20' ) end [2025-04-18 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937041', 'tblTempVendorCDR_20' ) start [2025-04-18 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937041', 'tblTempVendorCDR_20' ) end [2025-04-18 17:11:19] Production.INFO: ProcessCDR(1,14937041,1,1,2) [2025-04-18 17:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937041', 'tblTempUsageDetail_20' ) start [2025-04-18 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937041', 'tblTempUsageDetail_20' ) end [2025-04-18 17:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:11:22] Production.INFO: ==31907== Releasing lock... [2025-04-18 17:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:11:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-18 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:12:05 [end_date_ymd] => 2025-04-18 17:12:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:12:05' and `end` < '2025-04-18 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-04-18 17:12:18] Production.INFO: count ==1783 [2025-04-18 17:12:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:12:05 - End Time 2025-04-18 17:12:05 [2025-04-18 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937046', 'tblTempUsageDetail_20' ) start [2025-04-18 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937046', 'tblTempUsageDetail_20' ) end [2025-04-18 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937046', 'tblTempVendorCDR_20' ) start [2025-04-18 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937046', 'tblTempVendorCDR_20' ) end [2025-04-18 17:12:19] Production.INFO: ProcessCDR(1,14937046,1,1,2) [2025-04-18 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937046', 'tblTempUsageDetail_20' ) start [2025-04-18 17:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937046', 'tblTempUsageDetail_20' ) end [2025-04-18 17:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:12:23] Production.INFO: ==31981== Releasing lock... [2025-04-18 17:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:12:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:13:05 [end_date_ymd] => 2025-04-18 17:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:13:05' and `end` < '2025-04-18 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-04-18 17:13:18] Production.INFO: count ==1789 [2025-04-18 17:13:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:13:05 - End Time 2025-04-18 17:13:05 [2025-04-18 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937051', 'tblTempUsageDetail_20' ) start [2025-04-18 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937051', 'tblTempUsageDetail_20' ) end [2025-04-18 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937051', 'tblTempVendorCDR_20' ) start [2025-04-18 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937051', 'tblTempVendorCDR_20' ) end [2025-04-18 17:13:19] Production.INFO: ProcessCDR(1,14937051,1,1,2) [2025-04-18 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937051', 'tblTempUsageDetail_20' ) start [2025-04-18 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937051', 'tblTempUsageDetail_20' ) end [2025-04-18 17:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:13:22] Production.INFO: ==32055== Releasing lock... [2025-04-18 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:13:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:14:05 [end_date_ymd] => 2025-04-18 17:14:05 [RateCDR] => 1 ) [2025-04-18 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:14:05' and `end` < '2025-04-18 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:14:18] Production.INFO: count ==1790 [2025-04-18 17:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:14:05 - End Time 2025-04-18 17:14:05 [2025-04-18 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937056', 'tblTempUsageDetail_20' ) start [2025-04-18 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937056', 'tblTempUsageDetail_20' ) end [2025-04-18 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937056', 'tblTempVendorCDR_20' ) start [2025-04-18 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937056', 'tblTempVendorCDR_20' ) end [2025-04-18 17:14:19] Production.INFO: ProcessCDR(1,14937056,1,1,2) [2025-04-18 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937056', 'tblTempUsageDetail_20' ) start [2025-04-18 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937056', 'tblTempUsageDetail_20' ) end [2025-04-18 17:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:14:24] Production.INFO: ==32125== Releasing lock... [2025-04-18 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:14:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:15:06 [end_date_ymd] => 2025-04-18 17:15:06 [RateCDR] => 1 ) [2025-04-18 17: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-04-18 14:15:06' and `end` < '2025-04-18 17: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-04-18 17:15:19] Production.INFO: count ==1794 [2025-04-18 17:15:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:15:06 - End Time 2025-04-18 17:15:06 [2025-04-18 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937061', 'tblTempUsageDetail_20' ) start [2025-04-18 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937061', 'tblTempUsageDetail_20' ) end [2025-04-18 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937061', 'tblTempVendorCDR_20' ) start [2025-04-18 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937061', 'tblTempVendorCDR_20' ) end [2025-04-18 17:15:19] Production.INFO: ProcessCDR(1,14937061,1,1,2) [2025-04-18 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937061', 'tblTempUsageDetail_20' ) start [2025-04-18 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937061', 'tblTempUsageDetail_20' ) end [2025-04-18 17:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:15:24] Production.INFO: ==32203== Releasing lock... [2025-04-18 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:15:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:16:05 [end_date_ymd] => 2025-04-18 17:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:16:05' and `end` < '2025-04-18 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-04-18 17:16:18] Production.INFO: count ==1798 [2025-04-18 17:16:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:16:05 - End Time 2025-04-18 17:16:05 [2025-04-18 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937066', 'tblTempUsageDetail_20' ) start [2025-04-18 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937066', 'tblTempUsageDetail_20' ) end [2025-04-18 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937066', 'tblTempVendorCDR_20' ) start [2025-04-18 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937066', 'tblTempVendorCDR_20' ) end [2025-04-18 17:16:19] Production.INFO: ProcessCDR(1,14937066,1,1,2) [2025-04-18 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937066', 'tblTempUsageDetail_20' ) start [2025-04-18 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937066', 'tblTempUsageDetail_20' ) end [2025-04-18 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:16:24] Production.INFO: ==32273== Releasing lock... [2025-04-18 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:16:24] Production.INFO: 42 MB #Memory Used# [2025-04-18 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:17:06 [end_date_ymd] => 2025-04-18 17:17:06 [RateCDR] => 1 ) [2025-04-18 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:17:06' and `end` < '2025-04-18 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:17:19] Production.INFO: count ==1804 [2025-04-18 17:17:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:17:06 - End Time 2025-04-18 17:17:06 [2025-04-18 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937071', 'tblTempUsageDetail_20' ) start [2025-04-18 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937071', 'tblTempUsageDetail_20' ) end [2025-04-18 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937071', 'tblTempVendorCDR_20' ) start [2025-04-18 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937071', 'tblTempVendorCDR_20' ) end [2025-04-18 17:17:20] Production.INFO: ProcessCDR(1,14937071,1,1,2) [2025-04-18 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937071', 'tblTempUsageDetail_20' ) start [2025-04-18 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937071', 'tblTempUsageDetail_20' ) end [2025-04-18 17:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:17:23] Production.INFO: ==32351== Releasing lock... [2025-04-18 17:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:17:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-18 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:18:05 [end_date_ymd] => 2025-04-18 17:18:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:18:05' and `end` < '2025-04-18 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-04-18 17:18:19] Production.INFO: count ==1799 [2025-04-18 17:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:18:05 - End Time 2025-04-18 17:18:05 [2025-04-18 17:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937076', 'tblTempUsageDetail_20' ) start [2025-04-18 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937076', 'tblTempUsageDetail_20' ) end [2025-04-18 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937076', 'tblTempVendorCDR_20' ) start [2025-04-18 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937076', 'tblTempVendorCDR_20' ) end [2025-04-18 17:18:19] Production.INFO: ProcessCDR(1,14937076,1,1,2) [2025-04-18 17:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937076', 'tblTempUsageDetail_20' ) start [2025-04-18 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937076', 'tblTempUsageDetail_20' ) end [2025-04-18 17:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:18:24] Production.INFO: ==32435== Releasing lock... [2025-04-18 17:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:18:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:19:05 [end_date_ymd] => 2025-04-18 17:19:05 [RateCDR] => 1 ) [2025-04-18 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:19:05' and `end` < '2025-04-18 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:19:18] Production.INFO: count ==1797 [2025-04-18 17:19:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:19:05 - End Time 2025-04-18 17:19:05 [2025-04-18 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937081', 'tblTempUsageDetail_20' ) start [2025-04-18 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937081', 'tblTempUsageDetail_20' ) end [2025-04-18 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937081', 'tblTempVendorCDR_20' ) start [2025-04-18 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937081', 'tblTempVendorCDR_20' ) end [2025-04-18 17:19:19] Production.INFO: ProcessCDR(1,14937081,1,1,2) [2025-04-18 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937081', 'tblTempUsageDetail_20' ) start [2025-04-18 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937081', 'tblTempUsageDetail_20' ) end [2025-04-18 17:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:19:24] Production.INFO: ==32506== Releasing lock... [2025-04-18 17:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:19:24] Production.INFO: 42 MB #Memory Used# [2025-04-18 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:20:05 [end_date_ymd] => 2025-04-18 17:20:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:20:05' and `end` < '2025-04-18 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-04-18 17:20:18] Production.INFO: count ==1804 [2025-04-18 17:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:20:05 - End Time 2025-04-18 17:20:05 [2025-04-18 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937087', 'tblTempUsageDetail_20' ) start [2025-04-18 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937087', 'tblTempUsageDetail_20' ) end [2025-04-18 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937087', 'tblTempVendorCDR_20' ) start [2025-04-18 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937087', 'tblTempVendorCDR_20' ) end [2025-04-18 17:20:19] Production.INFO: ProcessCDR(1,14937087,1,1,2) [2025-04-18 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937087', 'tblTempUsageDetail_20' ) start [2025-04-18 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937087', 'tblTempUsageDetail_20' ) end [2025-04-18 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:20:24] Production.INFO: ==32579== Releasing lock... [2025-04-18 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:20:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-18 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:21:05 [end_date_ymd] => 2025-04-18 17:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:21:05' and `end` < '2025-04-18 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-04-18 17:21:18] Production.INFO: count ==1867 [2025-04-18 17:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:21:05 - End Time 2025-04-18 17:21:05 [2025-04-18 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937092', 'tblTempUsageDetail_20' ) start [2025-04-18 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937092', 'tblTempUsageDetail_20' ) end [2025-04-18 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937092', 'tblTempVendorCDR_20' ) start [2025-04-18 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937092', 'tblTempVendorCDR_20' ) end [2025-04-18 17:21:19] Production.INFO: ProcessCDR(1,14937092,1,1,2) [2025-04-18 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937092', 'tblTempUsageDetail_20' ) start [2025-04-18 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937092', 'tblTempUsageDetail_20' ) end [2025-04-18 17:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:21:22] Production.INFO: ==32653== Releasing lock... [2025-04-18 17:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:21:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-18 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:22:06 [end_date_ymd] => 2025-04-18 17:22:06 [RateCDR] => 1 ) [2025-04-18 17: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-04-18 14:22:06' and `end` < '2025-04-18 17: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-04-18 17:22:19] Production.INFO: count ==1859 [2025-04-18 17:22:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:22:06 - End Time 2025-04-18 17:22:06 [2025-04-18 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937097', 'tblTempUsageDetail_20' ) start [2025-04-18 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937097', 'tblTempUsageDetail_20' ) end [2025-04-18 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937097', 'tblTempVendorCDR_20' ) start [2025-04-18 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937097', 'tblTempVendorCDR_20' ) end [2025-04-18 17:22:19] Production.INFO: ProcessCDR(1,14937097,1,1,2) [2025-04-18 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937097', 'tblTempUsageDetail_20' ) start [2025-04-18 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937097', 'tblTempUsageDetail_20' ) end [2025-04-18 17:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:22:24] Production.INFO: ==32728== Releasing lock... [2025-04-18 17:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:22:24] Production.INFO: 42 MB #Memory Used# [2025-04-18 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:23:05 [end_date_ymd] => 2025-04-18 17:23:05 [RateCDR] => 1 ) [2025-04-18 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:23:05' and `end` < '2025-04-18 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:23:18] Production.INFO: count ==1857 [2025-04-18 17:23:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:23:05 - End Time 2025-04-18 17:23:05 [2025-04-18 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937102', 'tblTempUsageDetail_20' ) start [2025-04-18 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937102', 'tblTempUsageDetail_20' ) end [2025-04-18 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937102', 'tblTempVendorCDR_20' ) start [2025-04-18 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937102', 'tblTempVendorCDR_20' ) end [2025-04-18 17:23:19] Production.INFO: ProcessCDR(1,14937102,1,1,2) [2025-04-18 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937102', 'tblTempUsageDetail_20' ) start [2025-04-18 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937102', 'tblTempUsageDetail_20' ) end [2025-04-18 17:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:23:24] Production.INFO: ==352== Releasing lock... [2025-04-18 17:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:23:24] Production.INFO: 42 MB #Memory Used# [2025-04-18 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:24:05 [end_date_ymd] => 2025-04-18 17:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:24:05' and `end` < '2025-04-18 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-04-18 17:24:18] Production.INFO: count ==1850 [2025-04-18 17:24:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:24:05 - End Time 2025-04-18 17:24:05 [2025-04-18 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937107', 'tblTempUsageDetail_20' ) start [2025-04-18 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937107', 'tblTempUsageDetail_20' ) end [2025-04-18 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937107', 'tblTempVendorCDR_20' ) start [2025-04-18 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937107', 'tblTempVendorCDR_20' ) end [2025-04-18 17:24:19] Production.INFO: ProcessCDR(1,14937107,1,1,2) [2025-04-18 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937107', 'tblTempUsageDetail_20' ) start [2025-04-18 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937107', 'tblTempUsageDetail_20' ) end [2025-04-18 17:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:24:24] Production.INFO: ==425== Releasing lock... [2025-04-18 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:24:24] Production.INFO: 42 MB #Memory Used# [2025-04-18 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:25:05 [end_date_ymd] => 2025-04-18 17:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:25:05' and `end` < '2025-04-18 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-04-18 17:25:18] Production.INFO: count ==1854 [2025-04-18 17:25:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:25:05 - End Time 2025-04-18 17:25:05 [2025-04-18 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937112', 'tblTempUsageDetail_20' ) start [2025-04-18 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937112', 'tblTempUsageDetail_20' ) end [2025-04-18 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937112', 'tblTempVendorCDR_20' ) start [2025-04-18 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937112', 'tblTempVendorCDR_20' ) end [2025-04-18 17:25:19] Production.INFO: ProcessCDR(1,14937112,1,1,2) [2025-04-18 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937112', 'tblTempUsageDetail_20' ) start [2025-04-18 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937112', 'tblTempUsageDetail_20' ) end [2025-04-18 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:25:24] Production.INFO: ==499== Releasing lock... [2025-04-18 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:25:24] Production.INFO: 42 MB #Memory Used# [2025-04-18 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:26:06 [end_date_ymd] => 2025-04-18 17:26:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:26:06' and `end` < '2025-04-18 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-04-18 17:26:18] Production.INFO: count ==1843 [2025-04-18 17:26:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:26:06 - End Time 2025-04-18 17:26:06 [2025-04-18 17:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937117', 'tblTempUsageDetail_20' ) start [2025-04-18 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937117', 'tblTempUsageDetail_20' ) end [2025-04-18 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937117', 'tblTempVendorCDR_20' ) start [2025-04-18 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937117', 'tblTempVendorCDR_20' ) end [2025-04-18 17:26:19] Production.INFO: ProcessCDR(1,14937117,1,1,2) [2025-04-18 17:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937117', 'tblTempUsageDetail_20' ) start [2025-04-18 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937117', 'tblTempUsageDetail_20' ) end [2025-04-18 17:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:26:24] Production.INFO: ==617== Releasing lock... [2025-04-18 17:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:26:24] Production.INFO: 42 MB #Memory Used# [2025-04-18 17:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:27:04 [end_date_ymd] => 2025-04-18 17:27:04 [RateCDR] => 1 ) [2025-04-18 17: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-04-18 14:27:04' and `end` < '2025-04-18 17: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-04-18 17:27:17] Production.INFO: count ==1849 [2025-04-18 17:27:18] Production.ERROR: pbx CDR StartTime 2025-04-18 14:27:04 - End Time 2025-04-18 17:27:04 [2025-04-18 17:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937122', 'tblTempUsageDetail_20' ) start [2025-04-18 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937122', 'tblTempUsageDetail_20' ) end [2025-04-18 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937122', 'tblTempVendorCDR_20' ) start [2025-04-18 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937122', 'tblTempVendorCDR_20' ) end [2025-04-18 17:27:18] Production.INFO: ProcessCDR(1,14937122,1,1,2) [2025-04-18 17:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937122', 'tblTempUsageDetail_20' ) start [2025-04-18 17:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937122', 'tblTempUsageDetail_20' ) end [2025-04-18 17:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:27:23] Production.INFO: ==712== Releasing lock... [2025-04-18 17:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:27:23] Production.INFO: 42 MB #Memory Used# [2025-04-18 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:28:06 [end_date_ymd] => 2025-04-18 17:28:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:28:06' and `end` < '2025-04-18 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-04-18 17:28:19] Production.INFO: count ==1845 [2025-04-18 17:28:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:28:06 - End Time 2025-04-18 17:28:06 [2025-04-18 17:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937127', 'tblTempUsageDetail_20' ) start [2025-04-18 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937127', 'tblTempUsageDetail_20' ) end [2025-04-18 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937127', 'tblTempVendorCDR_20' ) start [2025-04-18 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937127', 'tblTempVendorCDR_20' ) end [2025-04-18 17:28:20] Production.INFO: ProcessCDR(1,14937127,1,1,2) [2025-04-18 17:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937127', 'tblTempUsageDetail_20' ) start [2025-04-18 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937127', 'tblTempUsageDetail_20' ) end [2025-04-18 17:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:28:25] Production.INFO: ==792== Releasing lock... [2025-04-18 17:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:28:25] Production.INFO: 42 MB #Memory Used# [2025-04-18 17:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:29:04 [end_date_ymd] => 2025-04-18 17:29:04 [RateCDR] => 1 ) [2025-04-18 17:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:29:04' and `end` < '2025-04-18 17:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:29:17] Production.INFO: count ==1856 [2025-04-18 17:29:18] Production.ERROR: pbx CDR StartTime 2025-04-18 14:29:04 - End Time 2025-04-18 17:29:04 [2025-04-18 17:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937132', 'tblTempUsageDetail_20' ) start [2025-04-18 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937132', 'tblTempUsageDetail_20' ) end [2025-04-18 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937132', 'tblTempVendorCDR_20' ) start [2025-04-18 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937132', 'tblTempVendorCDR_20' ) end [2025-04-18 17:29:18] Production.INFO: ProcessCDR(1,14937132,1,1,2) [2025-04-18 17:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937132', 'tblTempUsageDetail_20' ) start [2025-04-18 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937132', 'tblTempUsageDetail_20' ) end [2025-04-18 17:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:29:23] Production.INFO: ==869== Releasing lock... [2025-04-18 17:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:29:23] Production.INFO: 42 MB #Memory Used# [2025-04-18 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:30:06 [end_date_ymd] => 2025-04-18 17:30:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:30:06' and `end` < '2025-04-18 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-04-18 17:30:19] Production.INFO: count ==1863 [2025-04-18 17:30:20] Production.ERROR: pbx CDR StartTime 2025-04-18 14:30:06 - End Time 2025-04-18 17:30:06 [2025-04-18 17:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937138', 'tblTempUsageDetail_20' ) start [2025-04-18 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937138', 'tblTempUsageDetail_20' ) end [2025-04-18 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937138', 'tblTempVendorCDR_20' ) start [2025-04-18 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937138', 'tblTempVendorCDR_20' ) end [2025-04-18 17:30:20] Production.INFO: ProcessCDR(1,14937138,1,1,2) [2025-04-18 17:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937138', 'tblTempUsageDetail_20' ) start [2025-04-18 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937138', 'tblTempUsageDetail_20' ) end [2025-04-18 17:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:30:25] Production.INFO: ==942== Releasing lock... [2025-04-18 17:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:30:25] Production.INFO: 42 MB #Memory Used# [2025-04-18 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:31:05 [end_date_ymd] => 2025-04-18 17:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:31:05' and `end` < '2025-04-18 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-04-18 17:31:17] Production.INFO: count ==1897 [2025-04-18 17:31:18] Production.ERROR: pbx CDR StartTime 2025-04-18 14:31:05 - End Time 2025-04-18 17:31:05 [2025-04-18 17:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937143', 'tblTempUsageDetail_20' ) start [2025-04-18 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937143', 'tblTempUsageDetail_20' ) end [2025-04-18 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937143', 'tblTempVendorCDR_20' ) start [2025-04-18 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937143', 'tblTempVendorCDR_20' ) end [2025-04-18 17:31:18] Production.INFO: ProcessCDR(1,14937143,1,1,2) [2025-04-18 17:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937143', 'tblTempUsageDetail_20' ) start [2025-04-18 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937143', 'tblTempUsageDetail_20' ) end [2025-04-18 17:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:31:23] Production.INFO: ==1016== Releasing lock... [2025-04-18 17:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:31:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-18 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:32:05 [end_date_ymd] => 2025-04-18 17:32:05 [RateCDR] => 1 ) [2025-04-18 17: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-04-18 14:32:05' and `end` < '2025-04-18 17: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-04-18 17:32:18] Production.INFO: count ==1898 [2025-04-18 17:32:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:32:05 - End Time 2025-04-18 17:32:05 [2025-04-18 17:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937148', 'tblTempUsageDetail_20' ) start [2025-04-18 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937148', 'tblTempUsageDetail_20' ) end [2025-04-18 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937148', 'tblTempVendorCDR_20' ) start [2025-04-18 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937148', 'tblTempVendorCDR_20' ) end [2025-04-18 17:32:19] Production.INFO: ProcessCDR(1,14937148,1,1,2) [2025-04-18 17:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937148', 'tblTempUsageDetail_20' ) start [2025-04-18 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937148', 'tblTempUsageDetail_20' ) end [2025-04-18 17:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:32:24] Production.INFO: ==1091== Releasing lock... [2025-04-18 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:32:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-18 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:33:05 [end_date_ymd] => 2025-04-18 17:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:33:05' and `end` < '2025-04-18 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-04-18 17:33:18] Production.INFO: count ==1894 [2025-04-18 17:33:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:33:05 - End Time 2025-04-18 17:33:05 [2025-04-18 17:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937153', 'tblTempUsageDetail_20' ) start [2025-04-18 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937153', 'tblTempUsageDetail_20' ) end [2025-04-18 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937153', 'tblTempVendorCDR_20' ) start [2025-04-18 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937153', 'tblTempVendorCDR_20' ) end [2025-04-18 17:33:19] Production.INFO: ProcessCDR(1,14937153,1,1,2) [2025-04-18 17:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937153', 'tblTempUsageDetail_20' ) start [2025-04-18 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937153', 'tblTempUsageDetail_20' ) end [2025-04-18 17:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:33:24] Production.INFO: ==1176== Releasing lock... [2025-04-18 17:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:33:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:34:05 [end_date_ymd] => 2025-04-18 17:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:34:05' and `end` < '2025-04-18 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-04-18 17:34:18] Production.INFO: count ==1900 [2025-04-18 17:34:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:34:05 - End Time 2025-04-18 17:34:05 [2025-04-18 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937158', 'tblTempUsageDetail_20' ) start [2025-04-18 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937158', 'tblTempUsageDetail_20' ) end [2025-04-18 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937158', 'tblTempVendorCDR_20' ) start [2025-04-18 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937158', 'tblTempVendorCDR_20' ) end [2025-04-18 17:34:19] Production.INFO: ProcessCDR(1,14937158,1,1,2) [2025-04-18 17:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937158', 'tblTempUsageDetail_20' ) start [2025-04-18 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937158', 'tblTempUsageDetail_20' ) end [2025-04-18 17:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:34:24] Production.INFO: ==1260== Releasing lock... [2025-04-18 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:34:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-18 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:35:05 [end_date_ymd] => 2025-04-18 17:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:35:05' and `end` < '2025-04-18 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-04-18 17:35:18] Production.INFO: count ==1905 [2025-04-18 17:35:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:35:05 - End Time 2025-04-18 17:35:05 [2025-04-18 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937163', 'tblTempUsageDetail_20' ) start [2025-04-18 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937163', 'tblTempUsageDetail_20' ) end [2025-04-18 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937163', 'tblTempVendorCDR_20' ) start [2025-04-18 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937163', 'tblTempVendorCDR_20' ) end [2025-04-18 17:35:19] Production.INFO: ProcessCDR(1,14937163,1,1,2) [2025-04-18 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937163', 'tblTempUsageDetail_20' ) start [2025-04-18 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937163', 'tblTempUsageDetail_20' ) end [2025-04-18 17:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:35:24] Production.INFO: ==1335== Releasing lock... [2025-04-18 17:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:35:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:36:05 [end_date_ymd] => 2025-04-18 17:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:36:05' and `end` < '2025-04-18 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-04-18 17:36:18] Production.INFO: count ==1901 [2025-04-18 17:36:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:36:05 - End Time 2025-04-18 17:36:05 [2025-04-18 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937168', 'tblTempUsageDetail_20' ) start [2025-04-18 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937168', 'tblTempUsageDetail_20' ) end [2025-04-18 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937168', 'tblTempVendorCDR_20' ) start [2025-04-18 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937168', 'tblTempVendorCDR_20' ) end [2025-04-18 17:36:19] Production.INFO: ProcessCDR(1,14937168,1,1,2) [2025-04-18 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937168', 'tblTempUsageDetail_20' ) start [2025-04-18 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937168', 'tblTempUsageDetail_20' ) end [2025-04-18 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:36:24] Production.INFO: ==1409== Releasing lock... [2025-04-18 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:36:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:37:05 [end_date_ymd] => 2025-04-18 17:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:37:05' and `end` < '2025-04-18 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-04-18 17:37:18] Production.INFO: count ==1903 [2025-04-18 17:37:18] Production.ERROR: pbx CDR StartTime 2025-04-18 14:37:05 - End Time 2025-04-18 17:37:05 [2025-04-18 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937173', 'tblTempUsageDetail_20' ) start [2025-04-18 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937173', 'tblTempUsageDetail_20' ) end [2025-04-18 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937173', 'tblTempVendorCDR_20' ) start [2025-04-18 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937173', 'tblTempVendorCDR_20' ) end [2025-04-18 17:37:19] Production.INFO: ProcessCDR(1,14937173,1,1,2) [2025-04-18 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937173', 'tblTempUsageDetail_20' ) start [2025-04-18 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937173', 'tblTempUsageDetail_20' ) end [2025-04-18 17:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:37:22] Production.INFO: ==1482== Releasing lock... [2025-04-18 17:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:37:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 17:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:38:04 [end_date_ymd] => 2025-04-18 17:38:04 [RateCDR] => 1 ) [2025-04-18 17:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:38:04' and `end` < '2025-04-18 17:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:38:17] Production.INFO: count ==1903 [2025-04-18 17:38:18] Production.ERROR: pbx CDR StartTime 2025-04-18 14:38:04 - End Time 2025-04-18 17:38:04 [2025-04-18 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937178', 'tblTempUsageDetail_20' ) start [2025-04-18 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937178', 'tblTempUsageDetail_20' ) end [2025-04-18 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937178', 'tblTempVendorCDR_20' ) start [2025-04-18 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937178', 'tblTempVendorCDR_20' ) end [2025-04-18 17:38:18] Production.INFO: ProcessCDR(1,14937178,1,1,2) [2025-04-18 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937178', 'tblTempUsageDetail_20' ) start [2025-04-18 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937178', 'tblTempUsageDetail_20' ) end [2025-04-18 17:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:38:23] Production.INFO: ==1592== Releasing lock... [2025-04-18 17:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:38:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:39:05 [end_date_ymd] => 2025-04-18 17:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:39:05' and `end` < '2025-04-18 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-04-18 17:39:18] Production.INFO: count ==1904 [2025-04-18 17:39:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:39:05 - End Time 2025-04-18 17:39:05 [2025-04-18 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937183', 'tblTempUsageDetail_20' ) start [2025-04-18 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937183', 'tblTempUsageDetail_20' ) end [2025-04-18 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937183', 'tblTempVendorCDR_20' ) start [2025-04-18 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937183', 'tblTempVendorCDR_20' ) end [2025-04-18 17:39:19] Production.INFO: ProcessCDR(1,14937183,1,1,2) [2025-04-18 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937183', 'tblTempUsageDetail_20' ) start [2025-04-18 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937183', 'tblTempUsageDetail_20' ) end [2025-04-18 17:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:39:22] Production.INFO: ==1664== Releasing lock... [2025-04-18 17:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:39:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:40:06 [end_date_ymd] => 2025-04-18 17:40:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:40:06' and `end` < '2025-04-18 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-04-18 17:40:19] Production.INFO: count ==1916 [2025-04-18 17:40:20] Production.ERROR: pbx CDR StartTime 2025-04-18 14:40:06 - End Time 2025-04-18 17:40:06 [2025-04-18 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937189', 'tblTempUsageDetail_20' ) start [2025-04-18 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937189', 'tblTempUsageDetail_20' ) end [2025-04-18 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937189', 'tblTempVendorCDR_20' ) start [2025-04-18 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937189', 'tblTempVendorCDR_20' ) end [2025-04-18 17:40:20] Production.INFO: ProcessCDR(1,14937189,1,1,2) [2025-04-18 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937189', 'tblTempUsageDetail_20' ) start [2025-04-18 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937189', 'tblTempUsageDetail_20' ) end [2025-04-18 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:40:25] Production.INFO: ==1745== Releasing lock... [2025-04-18 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:40:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:41:05 [end_date_ymd] => 2025-04-18 17:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:41:05' and `end` < '2025-04-18 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-04-18 17:41:18] Production.INFO: count ==1937 [2025-04-18 17:41:18] Production.ERROR: pbx CDR StartTime 2025-04-18 14:41:05 - End Time 2025-04-18 17:41:05 [2025-04-18 17:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937194', 'tblTempUsageDetail_20' ) start [2025-04-18 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937194', 'tblTempUsageDetail_20' ) end [2025-04-18 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937194', 'tblTempVendorCDR_20' ) start [2025-04-18 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937194', 'tblTempVendorCDR_20' ) end [2025-04-18 17:41:18] Production.INFO: ProcessCDR(1,14937194,1,1,2) [2025-04-18 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937194', 'tblTempUsageDetail_20' ) start [2025-04-18 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937194', 'tblTempUsageDetail_20' ) end [2025-04-18 17:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:41:23] Production.INFO: ==1861== Releasing lock... [2025-04-18 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:41:23] Production.INFO: 43 MB #Memory Used# [2025-04-18 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:42:06 [end_date_ymd] => 2025-04-18 17:42:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:42:06' and `end` < '2025-04-18 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-04-18 17:42:19] Production.INFO: count ==1935 [2025-04-18 17:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:42:06 - End Time 2025-04-18 17:42:06 [2025-04-18 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937199', 'tblTempUsageDetail_20' ) start [2025-04-18 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937199', 'tblTempUsageDetail_20' ) end [2025-04-18 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937199', 'tblTempVendorCDR_20' ) start [2025-04-18 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937199', 'tblTempVendorCDR_20' ) end [2025-04-18 17:42:19] Production.INFO: ProcessCDR(1,14937199,1,1,2) [2025-04-18 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937199', 'tblTempUsageDetail_20' ) start [2025-04-18 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937199', 'tblTempUsageDetail_20' ) end [2025-04-18 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:42:25] Production.INFO: ==1942== Releasing lock... [2025-04-18 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:42:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:43:05 [end_date_ymd] => 2025-04-18 17:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:43:05' and `end` < '2025-04-18 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-04-18 17:43:18] Production.INFO: count ==1941 [2025-04-18 17:43:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:43:05 - End Time 2025-04-18 17:43:05 [2025-04-18 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937204', 'tblTempUsageDetail_20' ) start [2025-04-18 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937204', 'tblTempUsageDetail_20' ) end [2025-04-18 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937204', 'tblTempVendorCDR_20' ) start [2025-04-18 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937204', 'tblTempVendorCDR_20' ) end [2025-04-18 17:43:19] Production.INFO: ProcessCDR(1,14937204,1,1,2) [2025-04-18 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937204', 'tblTempUsageDetail_20' ) start [2025-04-18 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937204', 'tblTempUsageDetail_20' ) end [2025-04-18 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:43:24] Production.INFO: ==2038== Releasing lock... [2025-04-18 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:43:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-18 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:44:05 [end_date_ymd] => 2025-04-18 17:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:44:05' and `end` < '2025-04-18 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-04-18 17:44:18] Production.INFO: count ==1938 [2025-04-18 17:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:44:05 - End Time 2025-04-18 17:44:05 [2025-04-18 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937209', 'tblTempUsageDetail_20' ) start [2025-04-18 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937209', 'tblTempUsageDetail_20' ) end [2025-04-18 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937209', 'tblTempVendorCDR_20' ) start [2025-04-18 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937209', 'tblTempVendorCDR_20' ) end [2025-04-18 17:44:19] Production.INFO: ProcessCDR(1,14937209,1,1,2) [2025-04-18 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937209', 'tblTempUsageDetail_20' ) start [2025-04-18 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937209', 'tblTempUsageDetail_20' ) end [2025-04-18 17:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:44:22] Production.INFO: ==2125== Releasing lock... [2025-04-18 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:44:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:45:05 [end_date_ymd] => 2025-04-18 17:45:05 [RateCDR] => 1 ) [2025-04-18 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:45:05' and `end` < '2025-04-18 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:45:18] Production.INFO: count ==1947 [2025-04-18 17:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 14:45:05 - End Time 2025-04-18 17:45:05 [2025-04-18 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937214', 'tblTempUsageDetail_20' ) start [2025-04-18 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937214', 'tblTempUsageDetail_20' ) end [2025-04-18 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937214', 'tblTempVendorCDR_20' ) start [2025-04-18 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937214', 'tblTempVendorCDR_20' ) end [2025-04-18 17:45:19] Production.INFO: ProcessCDR(1,14937214,1,1,2) [2025-04-18 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937214', 'tblTempUsageDetail_20' ) start [2025-04-18 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937214', 'tblTempUsageDetail_20' ) end [2025-04-18 17:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:45:24] Production.INFO: ==2213== Releasing lock... [2025-04-18 17:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:45:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:46:06 [end_date_ymd] => 2025-04-18 17:46:06 [RateCDR] => 1 ) [2025-04-18 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:46:06' and `end` < '2025-04-18 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:46:18] Production.INFO: count ==1941 [2025-04-18 17:46:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:46:06 - End Time 2025-04-18 17:46:06 [2025-04-18 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937219', 'tblTempUsageDetail_20' ) start [2025-04-18 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937219', 'tblTempUsageDetail_20' ) end [2025-04-18 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937219', 'tblTempVendorCDR_20' ) start [2025-04-18 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937219', 'tblTempVendorCDR_20' ) end [2025-04-18 17:46:19] Production.INFO: ProcessCDR(1,14937219,1,1,2) [2025-04-18 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937219', 'tblTempUsageDetail_20' ) start [2025-04-18 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937219', 'tblTempUsageDetail_20' ) end [2025-04-18 17:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:46:23] Production.INFO: ==2303== Releasing lock... [2025-04-18 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:46:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:47:05 [end_date_ymd] => 2025-04-18 17:47:05 [RateCDR] => 1 ) [2025-04-18 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:47:05' and `end` < '2025-04-18 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:47:18] Production.INFO: count ==1938 [2025-04-18 17:47:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:47:05 - End Time 2025-04-18 17:47:05 [2025-04-18 17:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937224', 'tblTempUsageDetail_20' ) start [2025-04-18 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937224', 'tblTempUsageDetail_20' ) end [2025-04-18 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937224', 'tblTempVendorCDR_20' ) start [2025-04-18 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937224', 'tblTempVendorCDR_20' ) end [2025-04-18 17:47:19] Production.INFO: ProcessCDR(1,14937224,1,1,2) [2025-04-18 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937224', 'tblTempUsageDetail_20' ) start [2025-04-18 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937224', 'tblTempUsageDetail_20' ) end [2025-04-18 17:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:47:24] Production.INFO: ==2387== Releasing lock... [2025-04-18 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:47:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:48:05 [end_date_ymd] => 2025-04-18 17:48:05 [RateCDR] => 1 ) [2025-04-18 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:48:05' and `end` < '2025-04-18 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:48:18] Production.INFO: count ==1936 [2025-04-18 17:48:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:48:05 - End Time 2025-04-18 17:48:05 [2025-04-18 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937229', 'tblTempUsageDetail_20' ) start [2025-04-18 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937229', 'tblTempUsageDetail_20' ) end [2025-04-18 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937229', 'tblTempVendorCDR_20' ) start [2025-04-18 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937229', 'tblTempVendorCDR_20' ) end [2025-04-18 17:48:19] Production.INFO: ProcessCDR(1,14937229,1,1,2) [2025-04-18 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937229', 'tblTempUsageDetail_20' ) start [2025-04-18 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937229', 'tblTempUsageDetail_20' ) end [2025-04-18 17:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:48:24] Production.INFO: ==2494== Releasing lock... [2025-04-18 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:48:24] Production.INFO: 43 MB #Memory Used# [2025-04-18 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:49:05 [end_date_ymd] => 2025-04-18 17:49:05 [RateCDR] => 1 ) [2025-04-18 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:49:05' and `end` < '2025-04-18 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:49:18] Production.INFO: count ==1938 [2025-04-18 17:49:18] Production.ERROR: pbx CDR StartTime 2025-04-18 14:49:05 - End Time 2025-04-18 17:49:05 [2025-04-18 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937234', 'tblTempUsageDetail_20' ) start [2025-04-18 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937234', 'tblTempUsageDetail_20' ) end [2025-04-18 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937234', 'tblTempVendorCDR_20' ) start [2025-04-18 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937234', 'tblTempVendorCDR_20' ) end [2025-04-18 17:49:19] Production.INFO: ProcessCDR(1,14937234,1,1,2) [2025-04-18 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937234', 'tblTempUsageDetail_20' ) start [2025-04-18 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937234', 'tblTempUsageDetail_20' ) end [2025-04-18 17:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:49:22] Production.INFO: ==2583== Releasing lock... [2025-04-18 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:49:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:50:05 [end_date_ymd] => 2025-04-18 17:50:05 [RateCDR] => 1 ) [2025-04-18 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:50:05' and `end` < '2025-04-18 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:50:18] Production.INFO: count ==1942 [2025-04-18 17:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:50:05 - End Time 2025-04-18 17:50:05 [2025-04-18 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937239', 'tblTempUsageDetail_20' ) start [2025-04-18 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937239', 'tblTempUsageDetail_20' ) end [2025-04-18 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937239', 'tblTempVendorCDR_20' ) start [2025-04-18 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937239', 'tblTempVendorCDR_20' ) end [2025-04-18 17:50:19] Production.INFO: ProcessCDR(1,14937239,1,1,2) [2025-04-18 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937239', 'tblTempUsageDetail_20' ) start [2025-04-18 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937239', 'tblTempUsageDetail_20' ) end [2025-04-18 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:50:24] Production.INFO: ==2676== Releasing lock... [2025-04-18 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:50:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 17:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:51:04 [end_date_ymd] => 2025-04-18 17:51:04 [RateCDR] => 1 ) [2025-04-18 17:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:51:04' and `end` < '2025-04-18 17:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:51:17] Production.INFO: count ==1981 [2025-04-18 17:51:18] Production.ERROR: pbx CDR StartTime 2025-04-18 14:51:04 - End Time 2025-04-18 17:51:04 [2025-04-18 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937245', 'tblTempUsageDetail_20' ) start [2025-04-18 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937245', 'tblTempUsageDetail_20' ) end [2025-04-18 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937245', 'tblTempVendorCDR_20' ) start [2025-04-18 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937245', 'tblTempVendorCDR_20' ) end [2025-04-18 17:51:18] Production.INFO: ProcessCDR(1,14937245,1,1,2) [2025-04-18 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937245', 'tblTempUsageDetail_20' ) start [2025-04-18 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937245', 'tblTempUsageDetail_20' ) end [2025-04-18 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:51:23] Production.INFO: ==2764== Releasing lock... [2025-04-18 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:51:23] Production.INFO: 43 MB #Memory Used# [2025-04-18 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:52:05 [end_date_ymd] => 2025-04-18 17:52:05 [RateCDR] => 1 ) [2025-04-18 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:52:05' and `end` < '2025-04-18 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:52:18] Production.INFO: count ==1983 [2025-04-18 17:52:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:52:05 - End Time 2025-04-18 17:52:05 [2025-04-18 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937250', 'tblTempUsageDetail_20' ) start [2025-04-18 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937250', 'tblTempUsageDetail_20' ) end [2025-04-18 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937250', 'tblTempVendorCDR_20' ) start [2025-04-18 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937250', 'tblTempVendorCDR_20' ) end [2025-04-18 17:52:19] Production.INFO: ProcessCDR(1,14937250,1,1,2) [2025-04-18 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937250', 'tblTempUsageDetail_20' ) start [2025-04-18 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937250', 'tblTempUsageDetail_20' ) end [2025-04-18 17:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:52:22] Production.INFO: ==2856== Releasing lock... [2025-04-18 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:52:22] Production.INFO: 43 MB #Memory Used# [2025-04-18 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:53:06 [end_date_ymd] => 2025-04-18 17:53:06 [RateCDR] => 1 ) [2025-04-18 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:53:06' and `end` < '2025-04-18 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:53:19] Production.INFO: count ==1977 [2025-04-18 17:53:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:53:06 - End Time 2025-04-18 17:53:06 [2025-04-18 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937255', 'tblTempUsageDetail_20' ) start [2025-04-18 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937255', 'tblTempUsageDetail_20' ) end [2025-04-18 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937255', 'tblTempVendorCDR_20' ) start [2025-04-18 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937255', 'tblTempVendorCDR_20' ) end [2025-04-18 17:53:19] Production.INFO: ProcessCDR(1,14937255,1,1,2) [2025-04-18 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937255', 'tblTempUsageDetail_20' ) start [2025-04-18 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937255', 'tblTempUsageDetail_20' ) end [2025-04-18 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:53:25] Production.INFO: ==2948== Releasing lock... [2025-04-18 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:53:25] Production.INFO: 43 MB #Memory Used# [2025-04-18 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:54:05 [end_date_ymd] => 2025-04-18 17:54:05 [RateCDR] => 1 ) [2025-04-18 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:54:05' and `end` < '2025-04-18 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:54:18] Production.INFO: count ==1979 [2025-04-18 17:54:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:54:05 - End Time 2025-04-18 17:54:05 [2025-04-18 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937260', 'tblTempUsageDetail_20' ) start [2025-04-18 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937260', 'tblTempUsageDetail_20' ) end [2025-04-18 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937260', 'tblTempVendorCDR_20' ) start [2025-04-18 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937260', 'tblTempVendorCDR_20' ) end [2025-04-18 17:54:19] Production.INFO: ProcessCDR(1,14937260,1,1,2) [2025-04-18 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937260', 'tblTempUsageDetail_20' ) start [2025-04-18 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937260', 'tblTempUsageDetail_20' ) end [2025-04-18 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:54:22] Production.INFO: ==3033== Releasing lock... [2025-04-18 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:54:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-18 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:55:06 [end_date_ymd] => 2025-04-18 17:55:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:55:06' and `end` < '2025-04-18 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-04-18 17:55:19] Production.INFO: count ==1988 [2025-04-18 17:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:55:06 - End Time 2025-04-18 17:55:06 [2025-04-18 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937265', 'tblTempUsageDetail_20' ) start [2025-04-18 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937265', 'tblTempUsageDetail_20' ) end [2025-04-18 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937265', 'tblTempVendorCDR_20' ) start [2025-04-18 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937265', 'tblTempVendorCDR_20' ) end [2025-04-18 17:55:20] Production.INFO: ProcessCDR(1,14937265,1,1,2) [2025-04-18 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937265', 'tblTempUsageDetail_20' ) start [2025-04-18 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937265', 'tblTempUsageDetail_20' ) end [2025-04-18 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:55:25] Production.INFO: ==3122== Releasing lock... [2025-04-18 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:55:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-18 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:56:05 [end_date_ymd] => 2025-04-18 17:56:05 [RateCDR] => 1 ) [2025-04-18 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:56:05' and `end` < '2025-04-18 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:56:18] Production.INFO: count ==1990 [2025-04-18 17:56:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:56:05 - End Time 2025-04-18 17:56:05 [2025-04-18 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937270', 'tblTempUsageDetail_20' ) start [2025-04-18 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937270', 'tblTempUsageDetail_20' ) end [2025-04-18 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937270', 'tblTempVendorCDR_20' ) start [2025-04-18 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937270', 'tblTempVendorCDR_20' ) end [2025-04-18 17:56:19] Production.INFO: ProcessCDR(1,14937270,1,1,2) [2025-04-18 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937270', 'tblTempUsageDetail_20' ) start [2025-04-18 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937270', 'tblTempUsageDetail_20' ) end [2025-04-18 17:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:56:22] Production.INFO: ==3214== Releasing lock... [2025-04-18 17:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:56:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-18 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:57:05 [end_date_ymd] => 2025-04-18 17:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:57:05' and `end` < '2025-04-18 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-04-18 17:57:18] Production.INFO: count ==1991 [2025-04-18 17:57:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:57:05 - End Time 2025-04-18 17:57:05 [2025-04-18 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937273', 'tblTempUsageDetail_20' ) start [2025-04-18 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937273', 'tblTempUsageDetail_20' ) end [2025-04-18 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937273', 'tblTempVendorCDR_20' ) start [2025-04-18 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937273', 'tblTempVendorCDR_20' ) end [2025-04-18 17:57:19] Production.INFO: ProcessCDR(1,14937273,1,1,2) [2025-04-18 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937273', 'tblTempUsageDetail_20' ) start [2025-04-18 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937273', 'tblTempUsageDetail_20' ) end [2025-04-18 17:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:57:22] Production.INFO: ==3345== Releasing lock... [2025-04-18 17:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:57:22] Production.INFO: 43 MB #Memory Used# [2025-04-18 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:58:05 [end_date_ymd] => 2025-04-18 17:58:05 [RateCDR] => 1 ) [2025-04-18 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 14:58:05' and `end` < '2025-04-18 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 17:58:18] Production.INFO: count ==1985 [2025-04-18 17:58:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:58:05 - End Time 2025-04-18 17:58:05 [2025-04-18 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937280', 'tblTempUsageDetail_20' ) start [2025-04-18 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937280', 'tblTempUsageDetail_20' ) end [2025-04-18 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937280', 'tblTempVendorCDR_20' ) start [2025-04-18 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937280', 'tblTempVendorCDR_20' ) end [2025-04-18 17:58:19] Production.INFO: ProcessCDR(1,14937280,1,1,2) [2025-04-18 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937280', 'tblTempUsageDetail_20' ) start [2025-04-18 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937280', 'tblTempUsageDetail_20' ) end [2025-04-18 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:58:22] Production.INFO: ==3436== Releasing lock... [2025-04-18 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:58:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-18 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 14:59:05 [end_date_ymd] => 2025-04-18 17:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 14:59:05' and `end` < '2025-04-18 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-04-18 17:59:18] Production.INFO: count ==1991 [2025-04-18 17:59:19] Production.ERROR: pbx CDR StartTime 2025-04-18 14:59:05 - End Time 2025-04-18 17:59:05 [2025-04-18 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937285', 'tblTempUsageDetail_20' ) start [2025-04-18 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937285', 'tblTempUsageDetail_20' ) end [2025-04-18 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937285', 'tblTempVendorCDR_20' ) start [2025-04-18 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937285', 'tblTempVendorCDR_20' ) end [2025-04-18 17:59:19] Production.INFO: ProcessCDR(1,14937285,1,1,2) [2025-04-18 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937285', 'tblTempUsageDetail_20' ) start [2025-04-18 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937285', 'tblTempUsageDetail_20' ) end [2025-04-18 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 17:59:24] Production.INFO: ==3521== Releasing lock... [2025-04-18 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 17:59:24] Production.INFO: 43 MB #Memory Used# [2025-04-18 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:00:05 [end_date_ymd] => 2025-04-18 18:00:05 [RateCDR] => 1 ) [2025-04-18 18: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-04-18 15:00:05' and `end` < '2025-04-18 18: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-04-18 18:00:18] Production.INFO: count ==1997 [2025-04-18 18:00:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:00:05 - End Time 2025-04-18 18:00:05 [2025-04-18 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937291', 'tblTempUsageDetail_20' ) start [2025-04-18 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937291', 'tblTempUsageDetail_20' ) end [2025-04-18 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937291', 'tblTempVendorCDR_20' ) start [2025-04-18 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937291', 'tblTempVendorCDR_20' ) end [2025-04-18 18:00:19] Production.INFO: ProcessCDR(1,14937291,1,1,2) [2025-04-18 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937291', 'tblTempUsageDetail_20' ) start [2025-04-18 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937291', 'tblTempUsageDetail_20' ) end [2025-04-18 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:00:24] Production.INFO: ==3608== Releasing lock... [2025-04-18 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:00:24] Production.INFO: 43 MB #Memory Used# [2025-04-18 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:01:05 [end_date_ymd] => 2025-04-18 18:01:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:01:05' and `end` < '2025-04-18 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-04-18 18:01:18] Production.INFO: count ==2068 [2025-04-18 18:01:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:01:05 - End Time 2025-04-18 18:01:05 [2025-04-18 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937296', 'tblTempUsageDetail_20' ) start [2025-04-18 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937296', 'tblTempUsageDetail_20' ) end [2025-04-18 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937296', 'tblTempVendorCDR_20' ) start [2025-04-18 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937296', 'tblTempVendorCDR_20' ) end [2025-04-18 18:01:19] Production.INFO: ProcessCDR(1,14937296,1,1,2) [2025-04-18 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937296', 'tblTempUsageDetail_20' ) start [2025-04-18 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937296', 'tblTempUsageDetail_20' ) end [2025-04-18 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:01:24] Production.INFO: ==3712== Releasing lock... [2025-04-18 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:01:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:02:05 [end_date_ymd] => 2025-04-18 18:02:05 [RateCDR] => 1 ) [2025-04-18 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:02:05' and `end` < '2025-04-18 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:02:18] Production.INFO: count ==2072 [2025-04-18 18:02:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:02:05 - End Time 2025-04-18 18:02:05 [2025-04-18 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937301', 'tblTempUsageDetail_20' ) start [2025-04-18 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937301', 'tblTempUsageDetail_20' ) end [2025-04-18 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937301', 'tblTempVendorCDR_20' ) start [2025-04-18 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937301', 'tblTempVendorCDR_20' ) end [2025-04-18 18:02:19] Production.INFO: ProcessCDR(1,14937301,1,1,2) [2025-04-18 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937301', 'tblTempUsageDetail_20' ) start [2025-04-18 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937301', 'tblTempUsageDetail_20' ) end [2025-04-18 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:02:23] Production.INFO: ==3804== Releasing lock... [2025-04-18 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:02:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:03:05 [end_date_ymd] => 2025-04-18 18:03:05 [RateCDR] => 1 ) [2025-04-18 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:03:05' and `end` < '2025-04-18 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:03:18] Production.INFO: count ==2065 [2025-04-18 18:03:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:03:05 - End Time 2025-04-18 18:03:05 [2025-04-18 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937306', 'tblTempUsageDetail_20' ) start [2025-04-18 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937306', 'tblTempUsageDetail_20' ) end [2025-04-18 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937306', 'tblTempVendorCDR_20' ) start [2025-04-18 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937306', 'tblTempVendorCDR_20' ) end [2025-04-18 18:03:18] Production.INFO: ProcessCDR(1,14937306,1,1,2) [2025-04-18 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937306', 'tblTempUsageDetail_20' ) start [2025-04-18 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937306', 'tblTempUsageDetail_20' ) end [2025-04-18 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:03:23] Production.INFO: ==3902== Releasing lock... [2025-04-18 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:03:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:04:06 [end_date_ymd] => 2025-04-18 18:04:06 [RateCDR] => 1 ) [2025-04-18 18: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-04-18 15:04:06' and `end` < '2025-04-18 18: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-04-18 18:04:19] Production.INFO: count ==2063 [2025-04-18 18:04:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:04:06 - End Time 2025-04-18 18:04:06 [2025-04-18 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937311', 'tblTempUsageDetail_20' ) start [2025-04-18 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937311', 'tblTempUsageDetail_20' ) end [2025-04-18 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937311', 'tblTempVendorCDR_20' ) start [2025-04-18 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937311', 'tblTempVendorCDR_20' ) end [2025-04-18 18:04:20] Production.INFO: ProcessCDR(1,14937311,1,1,2) [2025-04-18 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937311', 'tblTempUsageDetail_20' ) start [2025-04-18 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937311', 'tblTempUsageDetail_20' ) end [2025-04-18 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:04:24] Production.INFO: ==3996== Releasing lock... [2025-04-18 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:04:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:05:05 [end_date_ymd] => 2025-04-18 18:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:05:05' and `end` < '2025-04-18 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-04-18 18:05:18] Production.INFO: count ==2061 [2025-04-18 18:05:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:05:05 - End Time 2025-04-18 18:05:05 [2025-04-18 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937316', 'tblTempUsageDetail_20' ) start [2025-04-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937316', 'tblTempUsageDetail_20' ) end [2025-04-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937316', 'tblTempVendorCDR_20' ) start [2025-04-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937316', 'tblTempVendorCDR_20' ) end [2025-04-18 18:05:19] Production.INFO: ProcessCDR(1,14937316,1,1,2) [2025-04-18 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937316', 'tblTempUsageDetail_20' ) start [2025-04-18 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937316', 'tblTempUsageDetail_20' ) end [2025-04-18 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:05:24] Production.INFO: ==4078== Releasing lock... [2025-04-18 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:05:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-18 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:06:05 [end_date_ymd] => 2025-04-18 18:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:06:05' and `end` < '2025-04-18 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-04-18 18:06:18] Production.INFO: count ==2065 [2025-04-18 18:06:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:06:05 - End Time 2025-04-18 18:06:05 [2025-04-18 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937321', 'tblTempUsageDetail_20' ) start [2025-04-18 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937321', 'tblTempUsageDetail_20' ) end [2025-04-18 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937321', 'tblTempVendorCDR_20' ) start [2025-04-18 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937321', 'tblTempVendorCDR_20' ) end [2025-04-18 18:06:19] Production.INFO: ProcessCDR(1,14937321,1,1,2) [2025-04-18 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937321', 'tblTempUsageDetail_20' ) start [2025-04-18 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937321', 'tblTempUsageDetail_20' ) end [2025-04-18 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:06:24] Production.INFO: ==4164== Releasing lock... [2025-04-18 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:06:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:07:05 [end_date_ymd] => 2025-04-18 18:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:07:05' and `end` < '2025-04-18 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-04-18 18:07:18] Production.INFO: count ==2067 [2025-04-18 18:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:07:05 - End Time 2025-04-18 18:07:05 [2025-04-18 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937326', 'tblTempUsageDetail_20' ) start [2025-04-18 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937326', 'tblTempUsageDetail_20' ) end [2025-04-18 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937326', 'tblTempVendorCDR_20' ) start [2025-04-18 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937326', 'tblTempVendorCDR_20' ) end [2025-04-18 18:07:19] Production.INFO: ProcessCDR(1,14937326,1,1,2) [2025-04-18 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937326', 'tblTempUsageDetail_20' ) start [2025-04-18 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937326', 'tblTempUsageDetail_20' ) end [2025-04-18 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:07:24] Production.INFO: ==4254== Releasing lock... [2025-04-18 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:07:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:08:05 [end_date_ymd] => 2025-04-18 18:08:05 [RateCDR] => 1 ) [2025-04-18 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:08:05' and `end` < '2025-04-18 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:08:18] Production.INFO: count ==2059 [2025-04-18 18:08:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:08:05 - End Time 2025-04-18 18:08:05 [2025-04-18 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937331', 'tblTempUsageDetail_20' ) start [2025-04-18 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937331', 'tblTempUsageDetail_20' ) end [2025-04-18 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937331', 'tblTempVendorCDR_20' ) start [2025-04-18 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937331', 'tblTempVendorCDR_20' ) end [2025-04-18 18:08:19] Production.INFO: ProcessCDR(1,14937331,1,1,2) [2025-04-18 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937331', 'tblTempUsageDetail_20' ) start [2025-04-18 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937331', 'tblTempUsageDetail_20' ) end [2025-04-18 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:08:24] Production.INFO: ==4348== Releasing lock... [2025-04-18 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:08:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-18 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:09:05 [end_date_ymd] => 2025-04-18 18:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:09:05' and `end` < '2025-04-18 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-04-18 18:09:18] Production.INFO: count ==2047 [2025-04-18 18:09:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:09:05 - End Time 2025-04-18 18:09:05 [2025-04-18 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937336', 'tblTempUsageDetail_20' ) start [2025-04-18 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937336', 'tblTempUsageDetail_20' ) end [2025-04-18 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937336', 'tblTempVendorCDR_20' ) start [2025-04-18 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937336', 'tblTempVendorCDR_20' ) end [2025-04-18 18:09:19] Production.INFO: ProcessCDR(1,14937336,1,1,2) [2025-04-18 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937336', 'tblTempUsageDetail_20' ) start [2025-04-18 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937336', 'tblTempUsageDetail_20' ) end [2025-04-18 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:09:24] Production.INFO: ==4440== Releasing lock... [2025-04-18 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:09:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:10:06 [end_date_ymd] => 2025-04-18 18:10:06 [RateCDR] => 1 ) [2025-04-18 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:10:06' and `end` < '2025-04-18 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:10:19] Production.INFO: count ==2048 [2025-04-18 18:10:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:10:06 - End Time 2025-04-18 18:10:06 [2025-04-18 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937342', 'tblTempUsageDetail_20' ) start [2025-04-18 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937342', 'tblTempUsageDetail_20' ) end [2025-04-18 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937342', 'tblTempVendorCDR_20' ) start [2025-04-18 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937342', 'tblTempVendorCDR_20' ) end [2025-04-18 18:10:20] Production.INFO: ProcessCDR(1,14937342,1,1,2) [2025-04-18 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937342', 'tblTempUsageDetail_20' ) start [2025-04-18 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937342', 'tblTempUsageDetail_20' ) end [2025-04-18 18:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:10:23] Production.INFO: ==4522== Releasing lock... [2025-04-18 18:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:10:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:11:05 [end_date_ymd] => 2025-04-18 18:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:11:05' and `end` < '2025-04-18 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-04-18 18:11:18] Production.INFO: count ==2114 [2025-04-18 18:11:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:11:05 - End Time 2025-04-18 18:11:05 [2025-04-18 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937347', 'tblTempUsageDetail_20' ) start [2025-04-18 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937347', 'tblTempUsageDetail_20' ) end [2025-04-18 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937347', 'tblTempVendorCDR_20' ) start [2025-04-18 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937347', 'tblTempVendorCDR_20' ) end [2025-04-18 18:11:19] Production.INFO: ProcessCDR(1,14937347,1,1,2) [2025-04-18 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937347', 'tblTempUsageDetail_20' ) start [2025-04-18 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937347', 'tblTempUsageDetail_20' ) end [2025-04-18 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:11:24] Production.INFO: ==4601== Releasing lock... [2025-04-18 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:11:24] Production.INFO: 44 MB #Memory Used# [2025-04-18 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:12:05 [end_date_ymd] => 2025-04-18 18:12:05 [RateCDR] => 1 ) [2025-04-18 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:12:05' and `end` < '2025-04-18 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:12:18] Production.INFO: count ==2106 [2025-04-18 18:12:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:12:05 - End Time 2025-04-18 18:12:05 [2025-04-18 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937352', 'tblTempUsageDetail_20' ) start [2025-04-18 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937352', 'tblTempUsageDetail_20' ) end [2025-04-18 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937352', 'tblTempVendorCDR_20' ) start [2025-04-18 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937352', 'tblTempVendorCDR_20' ) end [2025-04-18 18:12:19] Production.INFO: ProcessCDR(1,14937352,1,1,2) [2025-04-18 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937352', 'tblTempUsageDetail_20' ) start [2025-04-18 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937352', 'tblTempUsageDetail_20' ) end [2025-04-18 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:12:23] Production.INFO: ==4712== Releasing lock... [2025-04-18 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:12:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:13:05 [end_date_ymd] => 2025-04-18 18:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:13:05' and `end` < '2025-04-18 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-04-18 18:13:18] Production.INFO: count ==2119 [2025-04-18 18:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:13:05 - End Time 2025-04-18 18:13:05 [2025-04-18 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937357', 'tblTempUsageDetail_20' ) start [2025-04-18 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937357', 'tblTempUsageDetail_20' ) end [2025-04-18 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937357', 'tblTempVendorCDR_20' ) start [2025-04-18 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937357', 'tblTempVendorCDR_20' ) end [2025-04-18 18:13:19] Production.INFO: ProcessCDR(1,14937357,1,1,2) [2025-04-18 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937357', 'tblTempUsageDetail_20' ) start [2025-04-18 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937357', 'tblTempUsageDetail_20' ) end [2025-04-18 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:13:24] Production.INFO: ==4782== Releasing lock... [2025-04-18 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:13:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:14:05 [end_date_ymd] => 2025-04-18 18:14:05 [RateCDR] => 1 ) [2025-04-18 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:14:05' and `end` < '2025-04-18 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:14:18] Production.INFO: count ==2117 [2025-04-18 18:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:14:05 - End Time 2025-04-18 18:14:05 [2025-04-18 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937362', 'tblTempUsageDetail_20' ) start [2025-04-18 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937362', 'tblTempUsageDetail_20' ) end [2025-04-18 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937362', 'tblTempVendorCDR_20' ) start [2025-04-18 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937362', 'tblTempVendorCDR_20' ) end [2025-04-18 18:14:19] Production.INFO: ProcessCDR(1,14937362,1,1,2) [2025-04-18 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937362', 'tblTempUsageDetail_20' ) start [2025-04-18 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937362', 'tblTempUsageDetail_20' ) end [2025-04-18 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:14:24] Production.INFO: ==4858== Releasing lock... [2025-04-18 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:14:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:15:05 [end_date_ymd] => 2025-04-18 18:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:15:05' and `end` < '2025-04-18 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-04-18 18:15:19] Production.INFO: count ==2142 [2025-04-18 18:15:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:15:05 - End Time 2025-04-18 18:15:05 [2025-04-18 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937367', 'tblTempUsageDetail_20' ) start [2025-04-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937367', 'tblTempUsageDetail_20' ) end [2025-04-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937367', 'tblTempVendorCDR_20' ) start [2025-04-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937367', 'tblTempVendorCDR_20' ) end [2025-04-18 18:15:19] Production.INFO: ProcessCDR(1,14937367,1,1,2) [2025-04-18 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937367', 'tblTempUsageDetail_20' ) start [2025-04-18 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937367', 'tblTempUsageDetail_20' ) end [2025-04-18 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:15:25] Production.INFO: ==4930== Releasing lock... [2025-04-18 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:15:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:16:05 [end_date_ymd] => 2025-04-18 18:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:16:05' and `end` < '2025-04-18 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-04-18 18:16:18] Production.INFO: count ==2160 [2025-04-18 18:16:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:16:05 - End Time 2025-04-18 18:16:05 [2025-04-18 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937372', 'tblTempUsageDetail_20' ) start [2025-04-18 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937372', 'tblTempUsageDetail_20' ) end [2025-04-18 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937372', 'tblTempVendorCDR_20' ) start [2025-04-18 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937372', 'tblTempVendorCDR_20' ) end [2025-04-18 18:16:19] Production.INFO: ProcessCDR(1,14937372,1,1,2) [2025-04-18 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937372', 'tblTempUsageDetail_20' ) start [2025-04-18 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937372', 'tblTempUsageDetail_20' ) end [2025-04-18 18:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:16:22] Production.INFO: ==5001== Releasing lock... [2025-04-18 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:16:22] Production.INFO: 45 MB #Memory Used# [2025-04-18 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:17:06 [end_date_ymd] => 2025-04-18 18:17:06 [RateCDR] => 1 ) [2025-04-18 18: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-04-18 15:17:06' and `end` < '2025-04-18 18: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-04-18 18:17:19] Production.INFO: count ==2164 [2025-04-18 18:17:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:17:06 - End Time 2025-04-18 18:17:06 [2025-04-18 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937377', 'tblTempUsageDetail_20' ) start [2025-04-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937377', 'tblTempUsageDetail_20' ) end [2025-04-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937377', 'tblTempVendorCDR_20' ) start [2025-04-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937377', 'tblTempVendorCDR_20' ) end [2025-04-18 18:17:19] Production.INFO: ProcessCDR(1,14937377,1,1,2) [2025-04-18 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937377', 'tblTempUsageDetail_20' ) start [2025-04-18 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937377', 'tblTempUsageDetail_20' ) end [2025-04-18 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:17:24] Production.INFO: ==5074== Releasing lock... [2025-04-18 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:17:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:18:05 [end_date_ymd] => 2025-04-18 18:18:05 [RateCDR] => 1 ) [2025-04-18 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:18:05' and `end` < '2025-04-18 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:18:18] Production.INFO: count ==2165 [2025-04-18 18:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:18:05 - End Time 2025-04-18 18:18:05 [2025-04-18 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937382', 'tblTempUsageDetail_20' ) start [2025-04-18 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937382', 'tblTempUsageDetail_20' ) end [2025-04-18 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937382', 'tblTempVendorCDR_20' ) start [2025-04-18 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937382', 'tblTempVendorCDR_20' ) end [2025-04-18 18:18:19] Production.INFO: ProcessCDR(1,14937382,1,1,2) [2025-04-18 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937382', 'tblTempUsageDetail_20' ) start [2025-04-18 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937382', 'tblTempUsageDetail_20' ) end [2025-04-18 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:18:24] Production.INFO: ==5147== Releasing lock... [2025-04-18 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:18:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:19:05 [end_date_ymd] => 2025-04-18 18:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:19:05' and `end` < '2025-04-18 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-04-18 18:19:18] Production.INFO: count ==2162 [2025-04-18 18:19:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:19:05 - End Time 2025-04-18 18:19:05 [2025-04-18 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937387', 'tblTempUsageDetail_20' ) start [2025-04-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937387', 'tblTempUsageDetail_20' ) end [2025-04-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937387', 'tblTempVendorCDR_20' ) start [2025-04-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937387', 'tblTempVendorCDR_20' ) end [2025-04-18 18:19:19] Production.INFO: ProcessCDR(1,14937387,1,1,2) [2025-04-18 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937387', 'tblTempUsageDetail_20' ) start [2025-04-18 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937387', 'tblTempUsageDetail_20' ) end [2025-04-18 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:19:23] Production.INFO: ==5222== Releasing lock... [2025-04-18 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:19:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:20:06 [end_date_ymd] => 2025-04-18 18:20:06 [RateCDR] => 1 ) [2025-04-18 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:20:06' and `end` < '2025-04-18 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:20:19] Production.INFO: count ==2157 [2025-04-18 18:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:20:06 - End Time 2025-04-18 18:20:06 [2025-04-18 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937392', 'tblTempUsageDetail_20' ) start [2025-04-18 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937392', 'tblTempUsageDetail_20' ) end [2025-04-18 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937392', 'tblTempVendorCDR_20' ) start [2025-04-18 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937392', 'tblTempVendorCDR_20' ) end [2025-04-18 18:20:19] Production.INFO: ProcessCDR(1,14937392,1,1,2) [2025-04-18 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937392', 'tblTempUsageDetail_20' ) start [2025-04-18 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937392', 'tblTempUsageDetail_20' ) end [2025-04-18 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:20:23] Production.INFO: ==5294== Releasing lock... [2025-04-18 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:20:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:21:05 [end_date_ymd] => 2025-04-18 18:21:05 [RateCDR] => 1 ) [2025-04-18 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:21:05' and `end` < '2025-04-18 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:21:18] Production.INFO: count ==2184 [2025-04-18 18:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:21:05 - End Time 2025-04-18 18:21:05 [2025-04-18 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937398', 'tblTempUsageDetail_20' ) start [2025-04-18 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937398', 'tblTempUsageDetail_20' ) end [2025-04-18 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937398', 'tblTempVendorCDR_20' ) start [2025-04-18 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937398', 'tblTempVendorCDR_20' ) end [2025-04-18 18:21:19] Production.INFO: ProcessCDR(1,14937398,1,1,2) [2025-04-18 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937398', 'tblTempUsageDetail_20' ) start [2025-04-18 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937398', 'tblTempUsageDetail_20' ) end [2025-04-18 18:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:21:22] Production.INFO: ==5372== Releasing lock... [2025-04-18 18:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:21:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:22:05 [end_date_ymd] => 2025-04-18 18:22:05 [RateCDR] => 1 ) [2025-04-18 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:22:05' and `end` < '2025-04-18 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:22:18] Production.INFO: count ==2175 [2025-04-18 18:22:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:22:05 - End Time 2025-04-18 18:22:05 [2025-04-18 18:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937403', 'tblTempUsageDetail_20' ) start [2025-04-18 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937403', 'tblTempUsageDetail_20' ) end [2025-04-18 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937403', 'tblTempVendorCDR_20' ) start [2025-04-18 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937403', 'tblTempVendorCDR_20' ) end [2025-04-18 18:22:19] Production.INFO: ProcessCDR(1,14937403,1,1,2) [2025-04-18 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937403', 'tblTempUsageDetail_20' ) start [2025-04-18 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937403', 'tblTempUsageDetail_20' ) end [2025-04-18 18:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:22:22] Production.INFO: ==5441== Releasing lock... [2025-04-18 18:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:22:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:23:05 [end_date_ymd] => 2025-04-18 18:23:05 [RateCDR] => 1 ) [2025-04-18 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:23:05' and `end` < '2025-04-18 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:23:18] Production.INFO: count ==2176 [2025-04-18 18:23:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:23:05 - End Time 2025-04-18 18:23:05 [2025-04-18 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937408', 'tblTempUsageDetail_20' ) start [2025-04-18 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937408', 'tblTempUsageDetail_20' ) end [2025-04-18 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937408', 'tblTempVendorCDR_20' ) start [2025-04-18 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937408', 'tblTempVendorCDR_20' ) end [2025-04-18 18:23:19] Production.INFO: ProcessCDR(1,14937408,1,1,2) [2025-04-18 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937408', 'tblTempUsageDetail_20' ) start [2025-04-18 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937408', 'tblTempUsageDetail_20' ) end [2025-04-18 18:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:23:22] Production.INFO: ==5520== Releasing lock... [2025-04-18 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:23:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:24:05 [end_date_ymd] => 2025-04-18 18:24:05 [RateCDR] => 1 ) [2025-04-18 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:24:05' and `end` < '2025-04-18 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:24:18] Production.INFO: count ==2177 [2025-04-18 18:24:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:24:05 - End Time 2025-04-18 18:24:05 [2025-04-18 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937413', 'tblTempUsageDetail_20' ) start [2025-04-18 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937413', 'tblTempUsageDetail_20' ) end [2025-04-18 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937413', 'tblTempVendorCDR_20' ) start [2025-04-18 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937413', 'tblTempVendorCDR_20' ) end [2025-04-18 18:24:19] Production.INFO: ProcessCDR(1,14937413,1,1,2) [2025-04-18 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937413', 'tblTempUsageDetail_20' ) start [2025-04-18 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937413', 'tblTempUsageDetail_20' ) end [2025-04-18 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:24:23] Production.INFO: ==5594== Releasing lock... [2025-04-18 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:24:23] Production.INFO: 45 MB #Memory Used# [2025-04-18 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:25:05 [end_date_ymd] => 2025-04-18 18:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:25:05' and `end` < '2025-04-18 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-04-18 18:25:18] Production.INFO: count ==2183 [2025-04-18 18:25:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:25:05 - End Time 2025-04-18 18:25:05 [2025-04-18 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937418', 'tblTempUsageDetail_20' ) start [2025-04-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937418', 'tblTempUsageDetail_20' ) end [2025-04-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937418', 'tblTempVendorCDR_20' ) start [2025-04-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937418', 'tblTempVendorCDR_20' ) end [2025-04-18 18:25:19] Production.INFO: ProcessCDR(1,14937418,1,1,2) [2025-04-18 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937418', 'tblTempUsageDetail_20' ) start [2025-04-18 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937418', 'tblTempUsageDetail_20' ) end [2025-04-18 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:25:23] Production.INFO: ==5667== Releasing lock... [2025-04-18 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:25:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:26:13] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:26:13 [end_date_ymd] => 2025-04-18 18:26:13 [RateCDR] => 1 ) [2025-04-18 18:26:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:26:13' and `end` < '2025-04-18 18:26:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:26:26] Production.INFO: count ==2177 [2025-04-18 18:26:49] Production.ERROR: pbx CDR StartTime 2025-04-18 15:26:13 - End Time 2025-04-18 18:26:13 [2025-04-18 18:26:49] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:26:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937423', 'tblTempUsageDetail_20' ) start [2025-04-18 18:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937423', 'tblTempUsageDetail_20' ) end [2025-04-18 18:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937423', 'tblTempVendorCDR_20' ) start [2025-04-18 18:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937423', 'tblTempVendorCDR_20' ) end [2025-04-18 18:26:51] Production.INFO: ProcessCDR(1,14937423,1,1,2) [2025-04-18 18:26:51] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:26:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:26:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937423', 'tblTempUsageDetail_20' ) start [2025-04-18 18:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937423', 'tblTempUsageDetail_20' ) end [2025-04-18 18:27:32] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:27:32] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:27:33] Production.INFO: ==5739== Releasing lock... [2025-04-18 18:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:27:33] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:28:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:28:18 [end_date_ymd] => 2025-04-18 18:28:18 [RateCDR] => 1 ) [2025-04-18 18:28:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:28:18' and `end` < '2025-04-18 18:28:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:28:31] Production.INFO: count ==2157 [2025-04-18 18:28:40] Production.ERROR: pbx CDR StartTime 2025-04-18 15:28:18 - End Time 2025-04-18 18:28:18 [2025-04-18 18:28:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:28:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937430', 'tblTempUsageDetail_20' ) start [2025-04-18 18:28:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937430', 'tblTempUsageDetail_20' ) end [2025-04-18 18:28:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937430', 'tblTempVendorCDR_20' ) start [2025-04-18 18:28:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937430', 'tblTempVendorCDR_20' ) end [2025-04-18 18:28:43] Production.INFO: ProcessCDR(1,14937430,1,1,2) [2025-04-18 18:28:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:28:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:28:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:29:02] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:29:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937430', 'tblTempUsageDetail_20' ) start [2025-04-18 18:29:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937430', 'tblTempUsageDetail_20' ) end [2025-04-18 18:29:02] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:29:02] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:29:04] Production.INFO: ==5910== Releasing lock... [2025-04-18 18:29:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:29:04] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:30:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:30:18 [end_date_ymd] => 2025-04-18 18:30:18 [RateCDR] => 1 ) [2025-04-18 18:30:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:30:18' and `end` < '2025-04-18 18:30:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:30:31] Production.INFO: count ==2131 [2025-04-18 18:30:39] Production.ERROR: pbx CDR StartTime 2025-04-18 15:30:18 - End Time 2025-04-18 18:30:18 [2025-04-18 18:30:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:30:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937439', 'tblTempUsageDetail_20' ) start [2025-04-18 18:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937439', 'tblTempUsageDetail_20' ) end [2025-04-18 18:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937439', 'tblTempVendorCDR_20' ) start [2025-04-18 18:30:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937439', 'tblTempVendorCDR_20' ) end [2025-04-18 18:30:44] Production.INFO: ProcessCDR(1,14937439,1,1,2) [2025-04-18 18:30:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:30:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:30:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:31:02] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:31:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937439', 'tblTempUsageDetail_20' ) start [2025-04-18 18:31:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937439', 'tblTempUsageDetail_20' ) end [2025-04-18 18:31:02] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:31:02] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:31:02] Production.INFO: ==6044== Releasing lock... [2025-04-18 18:31:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:31:02] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:31:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:31:18 [end_date_ymd] => 2025-04-18 18:31:18 [RateCDR] => 1 ) [2025-04-18 18:31:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:31:18' and `end` < '2025-04-18 18:31:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:31:31] Production.INFO: count ==2157 [2025-04-18 18:31:42] Production.ERROR: pbx CDR StartTime 2025-04-18 15:31:18 - End Time 2025-04-18 18:31:18 [2025-04-18 18:31:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:31:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937444', 'tblTempUsageDetail_20' ) start [2025-04-18 18:31:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937444', 'tblTempUsageDetail_20' ) end [2025-04-18 18:31:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937444', 'tblTempVendorCDR_20' ) start [2025-04-18 18:31:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937444', 'tblTempVendorCDR_20' ) end [2025-04-18 18:31:46] Production.INFO: ProcessCDR(1,14937444,1,1,2) [2025-04-18 18:31:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:32:13] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:32:13] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:32:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:32:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937444', 'tblTempUsageDetail_20' ) start [2025-04-18 18:32:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937444', 'tblTempUsageDetail_20' ) end [2025-04-18 18:32:17] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:32:17] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:32:17] Production.INFO: ==6120== Releasing lock... [2025-04-18 18:32:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:32:17] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:33:06 [end_date_ymd] => 2025-04-18 18:33:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:33:06' and `end` < '2025-04-18 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-04-18 18:33:19] Production.INFO: count ==2158 [2025-04-18 18:33:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:33:06 - End Time 2025-04-18 18:33:06 [2025-04-18 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937452', 'tblTempUsageDetail_20' ) start [2025-04-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937452', 'tblTempUsageDetail_20' ) end [2025-04-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937452', 'tblTempVendorCDR_20' ) start [2025-04-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937452', 'tblTempVendorCDR_20' ) end [2025-04-18 18:33:19] Production.INFO: ProcessCDR(1,14937452,1,1,2) [2025-04-18 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937452', 'tblTempUsageDetail_20' ) start [2025-04-18 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937452', 'tblTempUsageDetail_20' ) end [2025-04-18 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:33:23] Production.INFO: ==6264== Releasing lock... [2025-04-18 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:33:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:34:05 [end_date_ymd] => 2025-04-18 18:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:34:05' and `end` < '2025-04-18 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-04-18 18:34:18] Production.INFO: count ==2142 [2025-04-18 18:34:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:34:05 - End Time 2025-04-18 18:34:05 [2025-04-18 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937457', 'tblTempUsageDetail_20' ) start [2025-04-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937457', 'tblTempUsageDetail_20' ) end [2025-04-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937457', 'tblTempVendorCDR_20' ) start [2025-04-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937457', 'tblTempVendorCDR_20' ) end [2025-04-18 18:34:19] Production.INFO: ProcessCDR(1,14937457,1,1,2) [2025-04-18 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937457', 'tblTempUsageDetail_20' ) start [2025-04-18 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937457', 'tblTempUsageDetail_20' ) end [2025-04-18 18:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:34:23] Production.INFO: ==6335== Releasing lock... [2025-04-18 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:34:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:35:05 [end_date_ymd] => 2025-04-18 18:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:35:05' and `end` < '2025-04-18 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-04-18 18:35:18] Production.INFO: count ==2144 [2025-04-18 18:35:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:35:05 - End Time 2025-04-18 18:35:05 [2025-04-18 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937462', 'tblTempUsageDetail_20' ) start [2025-04-18 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937462', 'tblTempUsageDetail_20' ) end [2025-04-18 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937462', 'tblTempVendorCDR_20' ) start [2025-04-18 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937462', 'tblTempVendorCDR_20' ) end [2025-04-18 18:35:19] Production.INFO: ProcessCDR(1,14937462,1,1,2) [2025-04-18 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937462', 'tblTempUsageDetail_20' ) start [2025-04-18 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937462', 'tblTempUsageDetail_20' ) end [2025-04-18 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:35:23] Production.INFO: ==6409== Releasing lock... [2025-04-18 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:35:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 18:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:36:04 [end_date_ymd] => 2025-04-18 18:36:04 [RateCDR] => 1 ) [2025-04-18 18:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:36:04' and `end` < '2025-04-18 18:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:36:17] Production.INFO: count ==2139 [2025-04-18 18:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:36:04 - End Time 2025-04-18 18:36:04 [2025-04-18 18:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937467', 'tblTempUsageDetail_20' ) start [2025-04-18 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937467', 'tblTempUsageDetail_20' ) end [2025-04-18 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937467', 'tblTempVendorCDR_20' ) start [2025-04-18 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937467', 'tblTempVendorCDR_20' ) end [2025-04-18 18:36:18] Production.INFO: ProcessCDR(1,14937467,1,1,2) [2025-04-18 18:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937467', 'tblTempUsageDetail_20' ) start [2025-04-18 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937467', 'tblTempUsageDetail_20' ) end [2025-04-18 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:36:23] Production.INFO: ==6490== Releasing lock... [2025-04-18 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:36:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:37:05 [end_date_ymd] => 2025-04-18 18:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:37:05' and `end` < '2025-04-18 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-04-18 18:37:18] Production.INFO: count ==2135 [2025-04-18 18:37:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:37:05 - End Time 2025-04-18 18:37:05 [2025-04-18 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937472', 'tblTempUsageDetail_20' ) start [2025-04-18 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937472', 'tblTempUsageDetail_20' ) end [2025-04-18 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937472', 'tblTempVendorCDR_20' ) start [2025-04-18 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937472', 'tblTempVendorCDR_20' ) end [2025-04-18 18:37:19] Production.INFO: ProcessCDR(1,14937472,1,1,2) [2025-04-18 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937472', 'tblTempUsageDetail_20' ) start [2025-04-18 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937472', 'tblTempUsageDetail_20' ) end [2025-04-18 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:37:24] Production.INFO: ==6566== Releasing lock... [2025-04-18 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:37:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:38:06 [end_date_ymd] => 2025-04-18 18:38:06 [RateCDR] => 1 ) [2025-04-18 18: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-04-18 15:38:06' and `end` < '2025-04-18 18: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-04-18 18:38:18] Production.INFO: count ==2132 [2025-04-18 18:38:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:38:06 - End Time 2025-04-18 18:38:06 [2025-04-18 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937477', 'tblTempUsageDetail_20' ) start [2025-04-18 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937477', 'tblTempUsageDetail_20' ) end [2025-04-18 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937477', 'tblTempVendorCDR_20' ) start [2025-04-18 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937477', 'tblTempVendorCDR_20' ) end [2025-04-18 18:38:19] Production.INFO: ProcessCDR(1,14937477,1,1,2) [2025-04-18 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937477', 'tblTempUsageDetail_20' ) start [2025-04-18 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937477', 'tblTempUsageDetail_20' ) end [2025-04-18 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:38:25] Production.INFO: ==6639== Releasing lock... [2025-04-18 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:38:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:39:05 [end_date_ymd] => 2025-04-18 18:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:39:05' and `end` < '2025-04-18 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-04-18 18:39:18] Production.INFO: count ==2130 [2025-04-18 18:39:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:39:05 - End Time 2025-04-18 18:39:05 [2025-04-18 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937482', 'tblTempUsageDetail_20' ) start [2025-04-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937482', 'tblTempUsageDetail_20' ) end [2025-04-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937482', 'tblTempVendorCDR_20' ) start [2025-04-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937482', 'tblTempVendorCDR_20' ) end [2025-04-18 18:39:19] Production.INFO: ProcessCDR(1,14937482,1,1,2) [2025-04-18 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937482', 'tblTempUsageDetail_20' ) start [2025-04-18 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937482', 'tblTempUsageDetail_20' ) end [2025-04-18 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:39:22] Production.INFO: ==6714== Releasing lock... [2025-04-18 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:39:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:40:06 [end_date_ymd] => 2025-04-18 18:40:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:40:06' and `end` < '2025-04-18 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-04-18 18:40:19] Production.INFO: count ==2139 [2025-04-18 18:40:20] Production.ERROR: pbx CDR StartTime 2025-04-18 15:40:06 - End Time 2025-04-18 18:40:06 [2025-04-18 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937488', 'tblTempUsageDetail_20' ) start [2025-04-18 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937488', 'tblTempUsageDetail_20' ) end [2025-04-18 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937488', 'tblTempVendorCDR_20' ) start [2025-04-18 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937488', 'tblTempVendorCDR_20' ) end [2025-04-18 18:40:20] Production.INFO: ProcessCDR(1,14937488,1,1,2) [2025-04-18 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937488', 'tblTempUsageDetail_20' ) start [2025-04-18 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937488', 'tblTempUsageDetail_20' ) end [2025-04-18 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:40:26] Production.INFO: ==6787== Releasing lock... [2025-04-18 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:40:26] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:41:05 [end_date_ymd] => 2025-04-18 18:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:41:05' and `end` < '2025-04-18 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-04-18 18:41:18] Production.INFO: count ==2170 [2025-04-18 18:41:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:41:05 - End Time 2025-04-18 18:41:05 [2025-04-18 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937493', 'tblTempUsageDetail_20' ) start [2025-04-18 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937493', 'tblTempUsageDetail_20' ) end [2025-04-18 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937493', 'tblTempVendorCDR_20' ) start [2025-04-18 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937493', 'tblTempVendorCDR_20' ) end [2025-04-18 18:41:18] Production.INFO: ProcessCDR(1,14937493,1,1,2) [2025-04-18 18:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937493', 'tblTempUsageDetail_20' ) start [2025-04-18 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937493', 'tblTempUsageDetail_20' ) end [2025-04-18 18:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:41:22] Production.INFO: ==6861== Releasing lock... [2025-04-18 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:41:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:42:05 [end_date_ymd] => 2025-04-18 18:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:42:05' and `end` < '2025-04-18 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-04-18 18:42:18] Production.INFO: count ==2157 [2025-04-18 18:42:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:42:05 - End Time 2025-04-18 18:42:05 [2025-04-18 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937498', 'tblTempUsageDetail_20' ) start [2025-04-18 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937498', 'tblTempUsageDetail_20' ) end [2025-04-18 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937498', 'tblTempVendorCDR_20' ) start [2025-04-18 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937498', 'tblTempVendorCDR_20' ) end [2025-04-18 18:42:18] Production.INFO: ProcessCDR(1,14937498,1,1,2) [2025-04-18 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937498', 'tblTempUsageDetail_20' ) start [2025-04-18 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937498', 'tblTempUsageDetail_20' ) end [2025-04-18 18:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:42:22] Production.INFO: ==6934== Releasing lock... [2025-04-18 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:42:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:43:05 [end_date_ymd] => 2025-04-18 18:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:43:05' and `end` < '2025-04-18 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-04-18 18:43:17] Production.INFO: count ==2156 [2025-04-18 18:43:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:43:05 - End Time 2025-04-18 18:43:05 [2025-04-18 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937503', 'tblTempUsageDetail_20' ) start [2025-04-18 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937503', 'tblTempUsageDetail_20' ) end [2025-04-18 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937503', 'tblTempVendorCDR_20' ) start [2025-04-18 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937503', 'tblTempVendorCDR_20' ) end [2025-04-18 18:43:18] Production.INFO: ProcessCDR(1,14937503,1,1,2) [2025-04-18 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937503', 'tblTempUsageDetail_20' ) start [2025-04-18 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937503', 'tblTempUsageDetail_20' ) end [2025-04-18 18:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:43:22] Production.INFO: ==7057== Releasing lock... [2025-04-18 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:43:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:44:05 [end_date_ymd] => 2025-04-18 18:44:05 [RateCDR] => 1 ) [2025-04-18 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:44:05' and `end` < '2025-04-18 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:44:18] Production.INFO: count ==2146 [2025-04-18 18:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:44:05 - End Time 2025-04-18 18:44:05 [2025-04-18 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937508', 'tblTempUsageDetail_20' ) start [2025-04-18 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937508', 'tblTempUsageDetail_20' ) end [2025-04-18 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937508', 'tblTempVendorCDR_20' ) start [2025-04-18 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937508', 'tblTempVendorCDR_20' ) end [2025-04-18 18:44:19] Production.INFO: ProcessCDR(1,14937508,1,1,2) [2025-04-18 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937508', 'tblTempUsageDetail_20' ) start [2025-04-18 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937508', 'tblTempUsageDetail_20' ) end [2025-04-18 18:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:44:22] Production.INFO: ==7133== Releasing lock... [2025-04-18 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:44:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:45:06 [end_date_ymd] => 2025-04-18 18:45:06 [RateCDR] => 1 ) [2025-04-18 18: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-04-18 15:45:06' and `end` < '2025-04-18 18: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-04-18 18:45:18] Production.INFO: count ==2149 [2025-04-18 18:45:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:45:06 - End Time 2025-04-18 18:45:06 [2025-04-18 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937513', 'tblTempUsageDetail_20' ) start [2025-04-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937513', 'tblTempUsageDetail_20' ) end [2025-04-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937513', 'tblTempVendorCDR_20' ) start [2025-04-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937513', 'tblTempVendorCDR_20' ) end [2025-04-18 18:45:19] Production.INFO: ProcessCDR(1,14937513,1,1,2) [2025-04-18 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937513', 'tblTempUsageDetail_20' ) start [2025-04-18 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937513', 'tblTempUsageDetail_20' ) end [2025-04-18 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:45:24] Production.INFO: ==7209== Releasing lock... [2025-04-18 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:45:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:46:05 [end_date_ymd] => 2025-04-18 18:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:46:05' and `end` < '2025-04-18 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-04-18 18:46:18] Production.INFO: count ==2143 [2025-04-18 18:46:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:46:05 - End Time 2025-04-18 18:46:05 [2025-04-18 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937518', 'tblTempUsageDetail_20' ) start [2025-04-18 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937518', 'tblTempUsageDetail_20' ) end [2025-04-18 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937518', 'tblTempVendorCDR_20' ) start [2025-04-18 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937518', 'tblTempVendorCDR_20' ) end [2025-04-18 18:46:18] Production.INFO: ProcessCDR(1,14937518,1,1,2) [2025-04-18 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937518', 'tblTempUsageDetail_20' ) start [2025-04-18 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937518', 'tblTempUsageDetail_20' ) end [2025-04-18 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:46:22] Production.INFO: ==7283== Releasing lock... [2025-04-18 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:46:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:47:06 [end_date_ymd] => 2025-04-18 18:47:06 [RateCDR] => 1 ) [2025-04-18 18:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:47:06' and `end` < '2025-04-18 18:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:47:19] Production.INFO: count ==2139 [2025-04-18 18:47:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:47:06 - End Time 2025-04-18 18:47:06 [2025-04-18 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937523', 'tblTempUsageDetail_20' ) start [2025-04-18 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937523', 'tblTempUsageDetail_20' ) end [2025-04-18 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937523', 'tblTempVendorCDR_20' ) start [2025-04-18 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937523', 'tblTempVendorCDR_20' ) end [2025-04-18 18:47:19] Production.INFO: ProcessCDR(1,14937523,1,1,2) [2025-04-18 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937523', 'tblTempUsageDetail_20' ) start [2025-04-18 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937523', 'tblTempUsageDetail_20' ) end [2025-04-18 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:47:23] Production.INFO: ==7354== Releasing lock... [2025-04-18 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:47:23] Production.INFO: 45 MB #Memory Used# [2025-04-18 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:48:05 [end_date_ymd] => 2025-04-18 18:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:48:05' and `end` < '2025-04-18 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-04-18 18:48:18] Production.INFO: count ==2141 [2025-04-18 18:48:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:48:05 - End Time 2025-04-18 18:48:05 [2025-04-18 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937528', 'tblTempUsageDetail_20' ) start [2025-04-18 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937528', 'tblTempUsageDetail_20' ) end [2025-04-18 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937528', 'tblTempVendorCDR_20' ) start [2025-04-18 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937528', 'tblTempVendorCDR_20' ) end [2025-04-18 18:48:18] Production.INFO: ProcessCDR(1,14937528,1,1,2) [2025-04-18 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937528', 'tblTempUsageDetail_20' ) start [2025-04-18 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937528', 'tblTempUsageDetail_20' ) end [2025-04-18 18:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:48:22] Production.INFO: ==7427== Releasing lock... [2025-04-18 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:48:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:49:06 [end_date_ymd] => 2025-04-18 18:49:06 [RateCDR] => 1 ) [2025-04-18 18: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-04-18 15:49:06' and `end` < '2025-04-18 18: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-04-18 18:49:18] Production.INFO: count ==2137 [2025-04-18 18:49:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:49:06 - End Time 2025-04-18 18:49:06 [2025-04-18 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937533', 'tblTempUsageDetail_20' ) start [2025-04-18 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937533', 'tblTempUsageDetail_20' ) end [2025-04-18 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937533', 'tblTempVendorCDR_20' ) start [2025-04-18 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937533', 'tblTempVendorCDR_20' ) end [2025-04-18 18:49:19] Production.INFO: ProcessCDR(1,14937533,1,1,2) [2025-04-18 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937533', 'tblTempUsageDetail_20' ) start [2025-04-18 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937533', 'tblTempUsageDetail_20' ) end [2025-04-18 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:49:23] Production.INFO: ==7506== Releasing lock... [2025-04-18 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:49:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:50:05 [end_date_ymd] => 2025-04-18 18:50:05 [RateCDR] => 1 ) [2025-04-18 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:50:05' and `end` < '2025-04-18 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:50:18] Production.INFO: count ==2142 [2025-04-18 18:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:50:05 - End Time 2025-04-18 18:50:05 [2025-04-18 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937538', 'tblTempUsageDetail_20' ) start [2025-04-18 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937538', 'tblTempUsageDetail_20' ) end [2025-04-18 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937538', 'tblTempVendorCDR_20' ) start [2025-04-18 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937538', 'tblTempVendorCDR_20' ) end [2025-04-18 18:50:19] Production.INFO: ProcessCDR(1,14937538,1,1,2) [2025-04-18 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937538', 'tblTempUsageDetail_20' ) start [2025-04-18 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937538', 'tblTempUsageDetail_20' ) end [2025-04-18 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:50:24] Production.INFO: ==7587== Releasing lock... [2025-04-18 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:50:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:51:05 [end_date_ymd] => 2025-04-18 18:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:51:05' and `end` < '2025-04-18 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-04-18 18:51:18] Production.INFO: count ==2293 [2025-04-18 18:51:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:51:05 - End Time 2025-04-18 18:51:05 [2025-04-18 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937544', 'tblTempUsageDetail_20' ) start [2025-04-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937544', 'tblTempUsageDetail_20' ) end [2025-04-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937544', 'tblTempVendorCDR_20' ) start [2025-04-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937544', 'tblTempVendorCDR_20' ) end [2025-04-18 18:51:19] Production.INFO: ProcessCDR(1,14937544,1,1,2) [2025-04-18 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937544', 'tblTempUsageDetail_20' ) start [2025-04-18 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937544', 'tblTempUsageDetail_20' ) end [2025-04-18 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:51:23] Production.INFO: ==7662== Releasing lock... [2025-04-18 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:51:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-18 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:52:05 [end_date_ymd] => 2025-04-18 18:52:05 [RateCDR] => 1 ) [2025-04-18 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:52:05' and `end` < '2025-04-18 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:52:17] Production.INFO: count ==2297 [2025-04-18 18:52:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:52:05 - End Time 2025-04-18 18:52:05 [2025-04-18 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937549', 'tblTempUsageDetail_20' ) start [2025-04-18 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937549', 'tblTempUsageDetail_20' ) end [2025-04-18 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937549', 'tblTempVendorCDR_20' ) start [2025-04-18 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937549', 'tblTempVendorCDR_20' ) end [2025-04-18 18:52:18] Production.INFO: ProcessCDR(1,14937549,1,1,2) [2025-04-18 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937549', 'tblTempUsageDetail_20' ) start [2025-04-18 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937549', 'tblTempUsageDetail_20' ) end [2025-04-18 18:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:52:21] Production.INFO: ==7740== Releasing lock... [2025-04-18 18:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:52:21] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:53:05 [end_date_ymd] => 2025-04-18 18:53:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:53:05' and `end` < '2025-04-18 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-04-18 18:53:18] Production.INFO: count ==2304 [2025-04-18 18:53:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:53:05 - End Time 2025-04-18 18:53:05 [2025-04-18 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937554', 'tblTempUsageDetail_20' ) start [2025-04-18 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937554', 'tblTempUsageDetail_20' ) end [2025-04-18 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937554', 'tblTempVendorCDR_20' ) start [2025-04-18 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937554', 'tblTempVendorCDR_20' ) end [2025-04-18 18:53:19] Production.INFO: ProcessCDR(1,14937554,1,1,2) [2025-04-18 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937554', 'tblTempUsageDetail_20' ) start [2025-04-18 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937554', 'tblTempUsageDetail_20' ) end [2025-04-18 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:53:22] Production.INFO: ==7811== Releasing lock... [2025-04-18 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:53:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-18 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:54:05 [end_date_ymd] => 2025-04-18 18:54:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:54:05' and `end` < '2025-04-18 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-04-18 18:54:18] Production.INFO: count ==2305 [2025-04-18 18:54:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:54:05 - End Time 2025-04-18 18:54:05 [2025-04-18 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937559', 'tblTempUsageDetail_20' ) start [2025-04-18 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937559', 'tblTempUsageDetail_20' ) end [2025-04-18 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937559', 'tblTempVendorCDR_20' ) start [2025-04-18 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937559', 'tblTempVendorCDR_20' ) end [2025-04-18 18:54:19] Production.INFO: ProcessCDR(1,14937559,1,1,2) [2025-04-18 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937559', 'tblTempUsageDetail_20' ) start [2025-04-18 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937559', 'tblTempUsageDetail_20' ) end [2025-04-18 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:54:23] Production.INFO: ==7886== Releasing lock... [2025-04-18 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:54:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-18 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:55:05 [end_date_ymd] => 2025-04-18 18:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:55:05' and `end` < '2025-04-18 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-04-18 18:55:18] Production.INFO: count ==2307 [2025-04-18 18:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:55:05 - End Time 2025-04-18 18:55:05 [2025-04-18 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937564', 'tblTempUsageDetail_20' ) start [2025-04-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937564', 'tblTempUsageDetail_20' ) end [2025-04-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937564', 'tblTempVendorCDR_20' ) start [2025-04-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937564', 'tblTempVendorCDR_20' ) end [2025-04-18 18:55:19] Production.INFO: ProcessCDR(1,14937564,1,1,2) [2025-04-18 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937564', 'tblTempUsageDetail_20' ) start [2025-04-18 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937564', 'tblTempUsageDetail_20' ) end [2025-04-18 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:55:22] Production.INFO: ==7958== Releasing lock... [2025-04-18 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:55:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-18 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:56:05 [end_date_ymd] => 2025-04-18 18:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:56:05' and `end` < '2025-04-18 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-04-18 18:56:18] Production.INFO: count ==2309 [2025-04-18 18:56:19] Production.ERROR: pbx CDR StartTime 2025-04-18 15:56:05 - End Time 2025-04-18 18:56:05 [2025-04-18 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937569', 'tblTempUsageDetail_20' ) start [2025-04-18 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937569', 'tblTempUsageDetail_20' ) end [2025-04-18 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937569', 'tblTempVendorCDR_20' ) start [2025-04-18 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937569', 'tblTempVendorCDR_20' ) end [2025-04-18 18:56:19] Production.INFO: ProcessCDR(1,14937569,1,1,2) [2025-04-18 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937569', 'tblTempUsageDetail_20' ) start [2025-04-18 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937569', 'tblTempUsageDetail_20' ) end [2025-04-18 18:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:56:22] Production.INFO: ==8033== Releasing lock... [2025-04-18 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:56:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-18 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:57:05 [end_date_ymd] => 2025-04-18 18:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 15:57:05' and `end` < '2025-04-18 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-04-18 18:57:18] Production.INFO: count ==2304 [2025-04-18 18:57:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:57:05 - End Time 2025-04-18 18:57:05 [2025-04-18 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937574', 'tblTempUsageDetail_20' ) start [2025-04-18 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937574', 'tblTempUsageDetail_20' ) end [2025-04-18 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937574', 'tblTempVendorCDR_20' ) start [2025-04-18 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937574', 'tblTempVendorCDR_20' ) end [2025-04-18 18:57:18] Production.INFO: ProcessCDR(1,14937574,1,1,2) [2025-04-18 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937574', 'tblTempUsageDetail_20' ) start [2025-04-18 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937574', 'tblTempUsageDetail_20' ) end [2025-04-18 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:57:22] Production.INFO: ==8104== Releasing lock... [2025-04-18 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:57:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-18 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:58:06 [end_date_ymd] => 2025-04-18 18:58:06 [RateCDR] => 1 ) [2025-04-18 18: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-04-18 15:58:06' and `end` < '2025-04-18 18: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-04-18 18:58:19] Production.INFO: count ==2361 [2025-04-18 18:58:20] Production.ERROR: pbx CDR StartTime 2025-04-18 15:58:06 - End Time 2025-04-18 18:58:06 [2025-04-18 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937579', 'tblTempUsageDetail_20' ) start [2025-04-18 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937579', 'tblTempUsageDetail_20' ) end [2025-04-18 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937579', 'tblTempVendorCDR_20' ) start [2025-04-18 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937579', 'tblTempVendorCDR_20' ) end [2025-04-18 18:58:20] Production.INFO: ProcessCDR(1,14937579,1,1,2) [2025-04-18 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937579', 'tblTempUsageDetail_20' ) start [2025-04-18 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937579', 'tblTempUsageDetail_20' ) end [2025-04-18 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:58:23] Production.INFO: ==8178== Releasing lock... [2025-04-18 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:58:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-18 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 15:59:04 [end_date_ymd] => 2025-04-18 18:59:04 [RateCDR] => 1 ) [2025-04-18 18:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 15:59:04' and `end` < '2025-04-18 18:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 18:59:17] Production.INFO: count ==2406 [2025-04-18 18:59:18] Production.ERROR: pbx CDR StartTime 2025-04-18 15:59:04 - End Time 2025-04-18 18:59:04 [2025-04-18 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937584', 'tblTempUsageDetail_20' ) start [2025-04-18 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937584', 'tblTempUsageDetail_20' ) end [2025-04-18 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937584', 'tblTempVendorCDR_20' ) start [2025-04-18 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937584', 'tblTempVendorCDR_20' ) end [2025-04-18 18:59:18] Production.INFO: ProcessCDR(1,14937584,1,1,2) [2025-04-18 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937584', 'tblTempUsageDetail_20' ) start [2025-04-18 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937584', 'tblTempUsageDetail_20' ) end [2025-04-18 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 18:59:22] Production.INFO: ==8289== Releasing lock... [2025-04-18 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 18:59:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-18 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:00:06 [end_date_ymd] => 2025-04-18 19:00:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:00:06' and `end` < '2025-04-18 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-04-18 19:00:19] Production.INFO: count ==2409 [2025-04-18 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-18 16:00:06 - End Time 2025-04-18 19:00:06 [2025-04-18 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937590', 'tblTempUsageDetail_20' ) start [2025-04-18 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937590', 'tblTempUsageDetail_20' ) end [2025-04-18 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937590', 'tblTempVendorCDR_20' ) start [2025-04-18 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937590', 'tblTempVendorCDR_20' ) end [2025-04-18 19:00:20] Production.INFO: ProcessCDR(1,14937590,1,1,2) [2025-04-18 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937590', 'tblTempUsageDetail_20' ) start [2025-04-18 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937590', 'tblTempUsageDetail_20' ) end [2025-04-18 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:00:23] Production.INFO: ==8364== Releasing lock... [2025-04-18 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:00:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-18 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:01:05 [end_date_ymd] => 2025-04-18 19:01:05 [RateCDR] => 1 ) [2025-04-18 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:01:05' and `end` < '2025-04-18 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:01:18] Production.INFO: count ==2436 [2025-04-18 19:01:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:01:05 - End Time 2025-04-18 19:01:05 [2025-04-18 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937595', 'tblTempUsageDetail_20' ) start [2025-04-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937595', 'tblTempUsageDetail_20' ) end [2025-04-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937595', 'tblTempVendorCDR_20' ) start [2025-04-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937595', 'tblTempVendorCDR_20' ) end [2025-04-18 19:01:19] Production.INFO: ProcessCDR(1,14937595,1,1,2) [2025-04-18 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937595', 'tblTempUsageDetail_20' ) start [2025-04-18 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937595', 'tblTempUsageDetail_20' ) end [2025-04-18 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:01:22] Production.INFO: ==8450== Releasing lock... [2025-04-18 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:01:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-18 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:02:05 [end_date_ymd] => 2025-04-18 19:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:02:05' and `end` < '2025-04-18 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-04-18 19:02:18] Production.INFO: count ==2435 [2025-04-18 19:02:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:02:05 - End Time 2025-04-18 19:02:05 [2025-04-18 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937600', 'tblTempUsageDetail_20' ) start [2025-04-18 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937600', 'tblTempUsageDetail_20' ) end [2025-04-18 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937600', 'tblTempVendorCDR_20' ) start [2025-04-18 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937600', 'tblTempVendorCDR_20' ) end [2025-04-18 19:02:19] Production.INFO: ProcessCDR(1,14937600,1,1,2) [2025-04-18 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937600', 'tblTempUsageDetail_20' ) start [2025-04-18 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937600', 'tblTempUsageDetail_20' ) end [2025-04-18 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:02:24] Production.INFO: ==8603== Releasing lock... [2025-04-18 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:02:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-18 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:03:05 [end_date_ymd] => 2025-04-18 19:03:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:03:05' and `end` < '2025-04-18 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-04-18 19:03:18] Production.INFO: count ==2429 [2025-04-18 19:03:18] Production.ERROR: pbx CDR StartTime 2025-04-18 16:03:05 - End Time 2025-04-18 19:03:05 [2025-04-18 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937605', 'tblTempUsageDetail_20' ) start [2025-04-18 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937605', 'tblTempUsageDetail_20' ) end [2025-04-18 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937605', 'tblTempVendorCDR_20' ) start [2025-04-18 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937605', 'tblTempVendorCDR_20' ) end [2025-04-18 19:03:18] Production.INFO: ProcessCDR(1,14937605,1,1,2) [2025-04-18 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937605', 'tblTempUsageDetail_20' ) start [2025-04-18 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937605', 'tblTempUsageDetail_20' ) end [2025-04-18 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:03:22] Production.INFO: ==8678== Releasing lock... [2025-04-18 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:03:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-18 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:04:05 [end_date_ymd] => 2025-04-18 19:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:04:05' and `end` < '2025-04-18 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-04-18 19:04:18] Production.INFO: count ==2421 [2025-04-18 19:04:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:04:05 - End Time 2025-04-18 19:04:05 [2025-04-18 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937610', 'tblTempUsageDetail_20' ) start [2025-04-18 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937610', 'tblTempUsageDetail_20' ) end [2025-04-18 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937610', 'tblTempVendorCDR_20' ) start [2025-04-18 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937610', 'tblTempVendorCDR_20' ) end [2025-04-18 19:04:19] Production.INFO: ProcessCDR(1,14937610,1,1,2) [2025-04-18 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937610', 'tblTempUsageDetail_20' ) start [2025-04-18 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937610', 'tblTempUsageDetail_20' ) end [2025-04-18 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:04:22] Production.INFO: ==8756== Releasing lock... [2025-04-18 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:04:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-18 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:05:05 [end_date_ymd] => 2025-04-18 19:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:05:05' and `end` < '2025-04-18 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-04-18 19:05:18] Production.INFO: count ==2493 [2025-04-18 19:05:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:05:05 - End Time 2025-04-18 19:05:05 [2025-04-18 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937615', 'tblTempUsageDetail_20' ) start [2025-04-18 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937615', 'tblTempUsageDetail_20' ) end [2025-04-18 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937615', 'tblTempVendorCDR_20' ) start [2025-04-18 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937615', 'tblTempVendorCDR_20' ) end [2025-04-18 19:05:19] Production.INFO: ProcessCDR(1,14937615,1,1,2) [2025-04-18 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937615', 'tblTempUsageDetail_20' ) start [2025-04-18 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937615', 'tblTempUsageDetail_20' ) end [2025-04-18 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:05:22] Production.INFO: ==8912== Releasing lock... [2025-04-18 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:05:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-18 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:06:06 [end_date_ymd] => 2025-04-18 19:06:06 [RateCDR] => 1 ) [2025-04-18 19: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-04-18 16:06:06' and `end` < '2025-04-18 19: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-04-18 19:06:19] Production.INFO: count ==2492 [2025-04-18 19:06:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:06:06 - End Time 2025-04-18 19:06:06 [2025-04-18 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937620', 'tblTempUsageDetail_20' ) start [2025-04-18 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937620', 'tblTempUsageDetail_20' ) end [2025-04-18 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937620', 'tblTempVendorCDR_20' ) start [2025-04-18 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937620', 'tblTempVendorCDR_20' ) end [2025-04-18 19:06:20] Production.INFO: ProcessCDR(1,14937620,1,1,2) [2025-04-18 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937620', 'tblTempUsageDetail_20' ) start [2025-04-18 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937620', 'tblTempUsageDetail_20' ) end [2025-04-18 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:06:25] Production.INFO: ==8988== Releasing lock... [2025-04-18 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:06:25] Production.INFO: 46.75 MB #Memory Used# [2025-04-18 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:07:04 [end_date_ymd] => 2025-04-18 19:07:04 [RateCDR] => 1 ) [2025-04-18 19:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:07:04' and `end` < '2025-04-18 19:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:07:17] Production.INFO: count ==2491 [2025-04-18 19:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 16:07:04 - End Time 2025-04-18 19:07:04 [2025-04-18 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937625', 'tblTempUsageDetail_20' ) start [2025-04-18 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937625', 'tblTempUsageDetail_20' ) end [2025-04-18 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937625', 'tblTempVendorCDR_20' ) start [2025-04-18 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937625', 'tblTempVendorCDR_20' ) end [2025-04-18 19:07:18] Production.INFO: ProcessCDR(1,14937625,1,1,2) [2025-04-18 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937625', 'tblTempUsageDetail_20' ) start [2025-04-18 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937625', 'tblTempUsageDetail_20' ) end [2025-04-18 19:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:07:21] Production.INFO: ==9059== Releasing lock... [2025-04-18 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:07:21] Production.INFO: 46.75 MB #Memory Used# [2025-04-18 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:08:05 [end_date_ymd] => 2025-04-18 19:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:08:05' and `end` < '2025-04-18 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-04-18 19:08:18] Production.INFO: count ==2491 [2025-04-18 19:08:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:08:05 - End Time 2025-04-18 19:08:05 [2025-04-18 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937630', 'tblTempUsageDetail_20' ) start [2025-04-18 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937630', 'tblTempUsageDetail_20' ) end [2025-04-18 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937630', 'tblTempVendorCDR_20' ) start [2025-04-18 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937630', 'tblTempVendorCDR_20' ) end [2025-04-18 19:08:19] Production.INFO: ProcessCDR(1,14937630,1,1,2) [2025-04-18 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937630', 'tblTempUsageDetail_20' ) start [2025-04-18 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937630', 'tblTempUsageDetail_20' ) end [2025-04-18 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:08:24] Production.INFO: ==9211== Releasing lock... [2025-04-18 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:08:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-18 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:09:05 [end_date_ymd] => 2025-04-18 19:09:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:09:05' and `end` < '2025-04-18 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-04-18 19:09:18] Production.INFO: count ==2501 [2025-04-18 19:09:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:09:05 - End Time 2025-04-18 19:09:05 [2025-04-18 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937635', 'tblTempUsageDetail_20' ) start [2025-04-18 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937635', 'tblTempUsageDetail_20' ) end [2025-04-18 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937635', 'tblTempVendorCDR_20' ) start [2025-04-18 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937635', 'tblTempVendorCDR_20' ) end [2025-04-18 19:09:19] Production.INFO: ProcessCDR(1,14937635,1,1,2) [2025-04-18 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937635', 'tblTempUsageDetail_20' ) start [2025-04-18 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937635', 'tblTempUsageDetail_20' ) end [2025-04-18 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:09:23] Production.INFO: ==9284== Releasing lock... [2025-04-18 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:09:23] Production.INFO: 47 MB #Memory Used# [2025-04-18 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:10:05 [end_date_ymd] => 2025-04-18 19:10:05 [RateCDR] => 1 ) [2025-04-18 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:10:05' and `end` < '2025-04-18 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:10:18] Production.INFO: count ==2639 [2025-04-18 19:10:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:10:05 - End Time 2025-04-18 19:10:05 [2025-04-18 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937640', 'tblTempUsageDetail_20' ) start [2025-04-18 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937640', 'tblTempUsageDetail_20' ) end [2025-04-18 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937640', 'tblTempVendorCDR_20' ) start [2025-04-18 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937640', 'tblTempVendorCDR_20' ) end [2025-04-18 19:10:19] Production.INFO: ProcessCDR(1,14937640,1,1,2) [2025-04-18 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937640', 'tblTempUsageDetail_20' ) start [2025-04-18 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937640', 'tblTempUsageDetail_20' ) end [2025-04-18 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:10:23] Production.INFO: ==9362== Releasing lock... [2025-04-18 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:10:23] Production.INFO: 48 MB #Memory Used# [2025-04-18 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:11:05 [end_date_ymd] => 2025-04-18 19:11:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:11:05' and `end` < '2025-04-18 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-04-18 19:11:19] Production.INFO: count ==2695 [2025-04-18 19:11:20] Production.ERROR: pbx CDR StartTime 2025-04-18 16:11:05 - End Time 2025-04-18 19:11:05 [2025-04-18 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937646', 'tblTempUsageDetail_20' ) start [2025-04-18 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937646', 'tblTempUsageDetail_20' ) end [2025-04-18 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937646', 'tblTempVendorCDR_20' ) start [2025-04-18 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937646', 'tblTempVendorCDR_20' ) end [2025-04-18 19:11:20] Production.INFO: ProcessCDR(1,14937646,1,1,2) [2025-04-18 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937646', 'tblTempUsageDetail_20' ) start [2025-04-18 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937646', 'tblTempUsageDetail_20' ) end [2025-04-18 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:11:23] Production.INFO: ==9435== Releasing lock... [2025-04-18 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:11:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:12:05 [end_date_ymd] => 2025-04-18 19:12:05 [RateCDR] => 1 ) [2025-04-18 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:12:05' and `end` < '2025-04-18 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:12:18] Production.INFO: count ==2705 [2025-04-18 19:12:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:12:05 - End Time 2025-04-18 19:12:05 [2025-04-18 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937651', 'tblTempUsageDetail_20' ) start [2025-04-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937651', 'tblTempUsageDetail_20' ) end [2025-04-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937651', 'tblTempVendorCDR_20' ) start [2025-04-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937651', 'tblTempVendorCDR_20' ) end [2025-04-18 19:12:19] Production.INFO: ProcessCDR(1,14937651,1,1,2) [2025-04-18 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937651', 'tblTempUsageDetail_20' ) start [2025-04-18 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937651', 'tblTempUsageDetail_20' ) end [2025-04-18 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:12:22] Production.INFO: ==9589== Releasing lock... [2025-04-18 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:12:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:13:05 [end_date_ymd] => 2025-04-18 19:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:13:05' and `end` < '2025-04-18 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-04-18 19:13:18] Production.INFO: count ==2706 [2025-04-18 19:13:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:13:05 - End Time 2025-04-18 19:13:05 [2025-04-18 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937656', 'tblTempUsageDetail_20' ) start [2025-04-18 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937656', 'tblTempUsageDetail_20' ) end [2025-04-18 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937656', 'tblTempVendorCDR_20' ) start [2025-04-18 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937656', 'tblTempVendorCDR_20' ) end [2025-04-18 19:13:19] Production.INFO: ProcessCDR(1,14937656,1,1,2) [2025-04-18 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937656', 'tblTempUsageDetail_20' ) start [2025-04-18 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937656', 'tblTempUsageDetail_20' ) end [2025-04-18 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:13:22] Production.INFO: ==9663== Releasing lock... [2025-04-18 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:13:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:14:05 [end_date_ymd] => 2025-04-18 19:14:05 [RateCDR] => 1 ) [2025-04-18 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:14:05' and `end` < '2025-04-18 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:14:18] Production.INFO: count ==2706 [2025-04-18 19:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:14:05 - End Time 2025-04-18 19:14:05 [2025-04-18 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937661', 'tblTempUsageDetail_20' ) start [2025-04-18 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937661', 'tblTempUsageDetail_20' ) end [2025-04-18 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937661', 'tblTempVendorCDR_20' ) start [2025-04-18 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937661', 'tblTempVendorCDR_20' ) end [2025-04-18 19:14:19] Production.INFO: ProcessCDR(1,14937661,1,1,2) [2025-04-18 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937661', 'tblTempUsageDetail_20' ) start [2025-04-18 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937661', 'tblTempUsageDetail_20' ) end [2025-04-18 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:14:24] Production.INFO: ==9774== Releasing lock... [2025-04-18 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:14:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:15:05 [end_date_ymd] => 2025-04-18 19:15:05 [RateCDR] => 1 ) [2025-04-18 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:15:05' and `end` < '2025-04-18 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:15:18] Production.INFO: count ==2710 [2025-04-18 19:15:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:15:05 - End Time 2025-04-18 19:15:05 [2025-04-18 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937666', 'tblTempUsageDetail_20' ) start [2025-04-18 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937666', 'tblTempUsageDetail_20' ) end [2025-04-18 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937666', 'tblTempVendorCDR_20' ) start [2025-04-18 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937666', 'tblTempVendorCDR_20' ) end [2025-04-18 19:15:19] Production.INFO: ProcessCDR(1,14937666,1,1,2) [2025-04-18 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937666', 'tblTempUsageDetail_20' ) start [2025-04-18 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937666', 'tblTempUsageDetail_20' ) end [2025-04-18 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:15:23] Production.INFO: ==9923== Releasing lock... [2025-04-18 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:15:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:16:06 [end_date_ymd] => 2025-04-18 19:16:06 [RateCDR] => 1 ) [2025-04-18 19: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-04-18 16:16:06' and `end` < '2025-04-18 19: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-04-18 19:16:19] Production.INFO: count ==2713 [2025-04-18 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-18 16:16:06 - End Time 2025-04-18 19:16:06 [2025-04-18 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937671', 'tblTempUsageDetail_20' ) start [2025-04-18 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937671', 'tblTempUsageDetail_20' ) end [2025-04-18 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937671', 'tblTempVendorCDR_20' ) start [2025-04-18 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937671', 'tblTempVendorCDR_20' ) end [2025-04-18 19:16:20] Production.INFO: ProcessCDR(1,14937671,1,1,2) [2025-04-18 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937671', 'tblTempUsageDetail_20' ) start [2025-04-18 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937671', 'tblTempUsageDetail_20' ) end [2025-04-18 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:16:23] Production.INFO: ==9995== Releasing lock... [2025-04-18 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:16:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:17:05 [end_date_ymd] => 2025-04-18 19:17:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:17:05' and `end` < '2025-04-18 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-04-18 19:17:18] Production.INFO: count ==2713 [2025-04-18 19:17:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:17:05 - End Time 2025-04-18 19:17:05 [2025-04-18 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937676', 'tblTempUsageDetail_20' ) start [2025-04-18 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937676', 'tblTempUsageDetail_20' ) end [2025-04-18 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937676', 'tblTempVendorCDR_20' ) start [2025-04-18 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937676', 'tblTempVendorCDR_20' ) end [2025-04-18 19:17:19] Production.INFO: ProcessCDR(1,14937676,1,1,2) [2025-04-18 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937676', 'tblTempUsageDetail_20' ) start [2025-04-18 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937676', 'tblTempUsageDetail_20' ) end [2025-04-18 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:17:24] Production.INFO: ==10069== Releasing lock... [2025-04-18 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:17:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:18:05 [end_date_ymd] => 2025-04-18 19:18:05 [RateCDR] => 1 ) [2025-04-18 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:18:05' and `end` < '2025-04-18 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:18:18] Production.INFO: count ==2712 [2025-04-18 19:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:18:05 - End Time 2025-04-18 19:18:05 [2025-04-18 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937681', 'tblTempUsageDetail_20' ) start [2025-04-18 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937681', 'tblTempUsageDetail_20' ) end [2025-04-18 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937681', 'tblTempVendorCDR_20' ) start [2025-04-18 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937681', 'tblTempVendorCDR_20' ) end [2025-04-18 19:18:19] Production.INFO: ProcessCDR(1,14937681,1,1,2) [2025-04-18 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937681', 'tblTempUsageDetail_20' ) start [2025-04-18 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937681', 'tblTempUsageDetail_20' ) end [2025-04-18 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:18:22] Production.INFO: ==10143== Releasing lock... [2025-04-18 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:18:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:19:05 [end_date_ymd] => 2025-04-18 19:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:19:05' and `end` < '2025-04-18 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-04-18 19:19:18] Production.INFO: count ==2709 [2025-04-18 19:19:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:19:05 - End Time 2025-04-18 19:19:05 [2025-04-18 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937686', 'tblTempUsageDetail_20' ) start [2025-04-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937686', 'tblTempUsageDetail_20' ) end [2025-04-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937686', 'tblTempVendorCDR_20' ) start [2025-04-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937686', 'tblTempVendorCDR_20' ) end [2025-04-18 19:19:19] Production.INFO: ProcessCDR(1,14937686,1,1,2) [2025-04-18 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937686', 'tblTempUsageDetail_20' ) start [2025-04-18 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937686', 'tblTempUsageDetail_20' ) end [2025-04-18 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:19:22] Production.INFO: ==10215== Releasing lock... [2025-04-18 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:19:22] Production.INFO: 49 MB #Memory Used# [2025-04-18 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:20:06 [end_date_ymd] => 2025-04-18 19:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:20:06' and `end` < '2025-04-18 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-04-18 19:20:19] Production.INFO: count ==2717 [2025-04-18 19:20:20] Production.ERROR: pbx CDR StartTime 2025-04-18 16:20:06 - End Time 2025-04-18 19:20:06 [2025-04-18 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937692', 'tblTempUsageDetail_20' ) start [2025-04-18 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937692', 'tblTempUsageDetail_20' ) end [2025-04-18 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937692', 'tblTempVendorCDR_20' ) start [2025-04-18 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937692', 'tblTempVendorCDR_20' ) end [2025-04-18 19:20:20] Production.INFO: ProcessCDR(1,14937692,1,1,2) [2025-04-18 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937692', 'tblTempUsageDetail_20' ) start [2025-04-18 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937692', 'tblTempUsageDetail_20' ) end [2025-04-18 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:20:25] Production.INFO: ==10288== Releasing lock... [2025-04-18 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:20:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:21:04 [end_date_ymd] => 2025-04-18 19:21:04 [RateCDR] => 1 ) [2025-04-18 19:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:21:04' and `end` < '2025-04-18 19:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:21:17] Production.INFO: count ==2760 [2025-04-18 19:21:18] Production.ERROR: pbx CDR StartTime 2025-04-18 16:21:04 - End Time 2025-04-18 19:21:04 [2025-04-18 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937697', 'tblTempUsageDetail_20' ) start [2025-04-18 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937697', 'tblTempUsageDetail_20' ) end [2025-04-18 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937697', 'tblTempVendorCDR_20' ) start [2025-04-18 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937697', 'tblTempVendorCDR_20' ) end [2025-04-18 19:21:18] Production.INFO: ProcessCDR(1,14937697,1,1,2) [2025-04-18 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937697', 'tblTempUsageDetail_20' ) start [2025-04-18 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937697', 'tblTempUsageDetail_20' ) end [2025-04-18 19:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:21:21] Production.INFO: ==10366== Releasing lock... [2025-04-18 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:21:21] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:22:05 [end_date_ymd] => 2025-04-18 19:22:05 [RateCDR] => 1 ) [2025-04-18 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:22:05' and `end` < '2025-04-18 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:22:18] Production.INFO: count ==2778 [2025-04-18 19:22:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:22:05 - End Time 2025-04-18 19:22:05 [2025-04-18 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937702', 'tblTempUsageDetail_20' ) start [2025-04-18 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937702', 'tblTempUsageDetail_20' ) end [2025-04-18 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937702', 'tblTempVendorCDR_20' ) start [2025-04-18 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937702', 'tblTempVendorCDR_20' ) end [2025-04-18 19:22:19] Production.INFO: ProcessCDR(1,14937702,1,1,2) [2025-04-18 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937702', 'tblTempUsageDetail_20' ) start [2025-04-18 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937702', 'tblTempUsageDetail_20' ) end [2025-04-18 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:22:23] Production.INFO: ==10441== Releasing lock... [2025-04-18 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:22:23] Production.INFO: 49 MB #Memory Used# [2025-04-18 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:23:04 [end_date_ymd] => 2025-04-18 19:23:04 [RateCDR] => 1 ) [2025-04-18 19:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:23:04' and `end` < '2025-04-18 19:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:23:17] Production.INFO: count ==2778 [2025-04-18 19:23:18] Production.ERROR: pbx CDR StartTime 2025-04-18 16:23:04 - End Time 2025-04-18 19:23:04 [2025-04-18 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937707', 'tblTempUsageDetail_20' ) start [2025-04-18 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937707', 'tblTempUsageDetail_20' ) end [2025-04-18 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937707', 'tblTempVendorCDR_20' ) start [2025-04-18 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937707', 'tblTempVendorCDR_20' ) end [2025-04-18 19:23:18] Production.INFO: ProcessCDR(1,14937707,1,1,2) [2025-04-18 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937707', 'tblTempUsageDetail_20' ) start [2025-04-18 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937707', 'tblTempUsageDetail_20' ) end [2025-04-18 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:23:22] Production.INFO: ==10516== Releasing lock... [2025-04-18 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:23:22] Production.INFO: 49 MB #Memory Used# [2025-04-18 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:24:05 [end_date_ymd] => 2025-04-18 19:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:24:05' and `end` < '2025-04-18 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-04-18 19:24:18] Production.INFO: count ==2773 [2025-04-18 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:24:05 - End Time 2025-04-18 19:24:05 [2025-04-18 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937712', 'tblTempUsageDetail_20' ) start [2025-04-18 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937712', 'tblTempUsageDetail_20' ) end [2025-04-18 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937712', 'tblTempVendorCDR_20' ) start [2025-04-18 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937712', 'tblTempVendorCDR_20' ) end [2025-04-18 19:24:19] Production.INFO: ProcessCDR(1,14937712,1,1,2) [2025-04-18 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937712', 'tblTempUsageDetail_20' ) start [2025-04-18 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937712', 'tblTempUsageDetail_20' ) end [2025-04-18 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:24:24] Production.INFO: ==10619== Releasing lock... [2025-04-18 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:24:24] Production.INFO: 49 MB #Memory Used# [2025-04-18 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:25:05 [end_date_ymd] => 2025-04-18 19:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:25:05' and `end` < '2025-04-18 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-04-18 19:25:18] Production.INFO: count ==2775 [2025-04-18 19:25:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:25:05 - End Time 2025-04-18 19:25:05 [2025-04-18 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937717', 'tblTempUsageDetail_20' ) start [2025-04-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937717', 'tblTempUsageDetail_20' ) end [2025-04-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937717', 'tblTempVendorCDR_20' ) start [2025-04-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937717', 'tblTempVendorCDR_20' ) end [2025-04-18 19:25:19] Production.INFO: ProcessCDR(1,14937717,1,1,2) [2025-04-18 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937717', 'tblTempUsageDetail_20' ) start [2025-04-18 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937717', 'tblTempUsageDetail_20' ) end [2025-04-18 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:25:22] Production.INFO: ==10697== Releasing lock... [2025-04-18 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:25:22] Production.INFO: 49 MB #Memory Used# [2025-04-18 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:26:05 [end_date_ymd] => 2025-04-18 19:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:26:05' and `end` < '2025-04-18 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-04-18 19:26:18] Production.INFO: count ==2770 [2025-04-18 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:26:05 - End Time 2025-04-18 19:26:05 [2025-04-18 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937722', 'tblTempUsageDetail_20' ) start [2025-04-18 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937722', 'tblTempUsageDetail_20' ) end [2025-04-18 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937722', 'tblTempVendorCDR_20' ) start [2025-04-18 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937722', 'tblTempVendorCDR_20' ) end [2025-04-18 19:26:19] Production.INFO: ProcessCDR(1,14937722,1,1,2) [2025-04-18 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937722', 'tblTempUsageDetail_20' ) start [2025-04-18 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937722', 'tblTempUsageDetail_20' ) end [2025-04-18 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:26:22] Production.INFO: ==10785== Releasing lock... [2025-04-18 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:26:22] Production.INFO: 49 MB #Memory Used# [2025-04-18 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:27:05 [end_date_ymd] => 2025-04-18 19:27:05 [RateCDR] => 1 ) [2025-04-18 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:27:05' and `end` < '2025-04-18 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:27:18] Production.INFO: count ==2769 [2025-04-18 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:27:05 - End Time 2025-04-18 19:27:05 [2025-04-18 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937727', 'tblTempUsageDetail_20' ) start [2025-04-18 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937727', 'tblTempUsageDetail_20' ) end [2025-04-18 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937727', 'tblTempVendorCDR_20' ) start [2025-04-18 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937727', 'tblTempVendorCDR_20' ) end [2025-04-18 19:27:19] Production.INFO: ProcessCDR(1,14937727,1,1,2) [2025-04-18 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937727', 'tblTempUsageDetail_20' ) start [2025-04-18 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937727', 'tblTempUsageDetail_20' ) end [2025-04-18 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:27:22] Production.INFO: ==10877== Releasing lock... [2025-04-18 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:27:22] Production.INFO: 49 MB #Memory Used# [2025-04-18 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:28:05 [end_date_ymd] => 2025-04-18 19:28:05 [RateCDR] => 1 ) [2025-04-18 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:28:05' and `end` < '2025-04-18 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:28:18] Production.INFO: count ==2767 [2025-04-18 19:28:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:28:05 - End Time 2025-04-18 19:28:05 [2025-04-18 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937732', 'tblTempUsageDetail_20' ) start [2025-04-18 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937732', 'tblTempUsageDetail_20' ) end [2025-04-18 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937732', 'tblTempVendorCDR_20' ) start [2025-04-18 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937732', 'tblTempVendorCDR_20' ) end [2025-04-18 19:28:19] Production.INFO: ProcessCDR(1,14937732,1,1,2) [2025-04-18 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937732', 'tblTempUsageDetail_20' ) start [2025-04-18 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937732', 'tblTempUsageDetail_20' ) end [2025-04-18 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:28:22] Production.INFO: ==10970== Releasing lock... [2025-04-18 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:28:22] Production.INFO: 49 MB #Memory Used# [2025-04-18 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:29:05 [end_date_ymd] => 2025-04-18 19:29:05 [RateCDR] => 1 ) [2025-04-18 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:29:05' and `end` < '2025-04-18 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:29:18] Production.INFO: count ==2762 [2025-04-18 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:29:05 - End Time 2025-04-18 19:29:05 [2025-04-18 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937737', 'tblTempUsageDetail_20' ) start [2025-04-18 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937737', 'tblTempUsageDetail_20' ) end [2025-04-18 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937737', 'tblTempVendorCDR_20' ) start [2025-04-18 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937737', 'tblTempVendorCDR_20' ) end [2025-04-18 19:29:19] Production.INFO: ProcessCDR(1,14937737,1,1,2) [2025-04-18 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937737', 'tblTempUsageDetail_20' ) start [2025-04-18 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937737', 'tblTempUsageDetail_20' ) end [2025-04-18 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:29:22] Production.INFO: ==11065== Releasing lock... [2025-04-18 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:29:22] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:30:05 [end_date_ymd] => 2025-04-18 19:30:05 [RateCDR] => 1 ) [2025-04-18 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:30:05' and `end` < '2025-04-18 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:30:18] Production.INFO: count ==2761 [2025-04-18 19:30:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:30:05 - End Time 2025-04-18 19:30:05 [2025-04-18 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937743', 'tblTempUsageDetail_20' ) start [2025-04-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937743', 'tblTempUsageDetail_20' ) end [2025-04-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937743', 'tblTempVendorCDR_20' ) start [2025-04-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937743', 'tblTempVendorCDR_20' ) end [2025-04-18 19:30:19] Production.INFO: ProcessCDR(1,14937743,1,1,2) [2025-04-18 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937743', 'tblTempUsageDetail_20' ) start [2025-04-18 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937743', 'tblTempUsageDetail_20' ) end [2025-04-18 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:30:23] Production.INFO: ==11198== Releasing lock... [2025-04-18 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:30:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:31:05 [end_date_ymd] => 2025-04-18 19:31:05 [RateCDR] => 1 ) [2025-04-18 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:31:05' and `end` < '2025-04-18 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:31:18] Production.INFO: count ==2723 [2025-04-18 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:31:05 - End Time 2025-04-18 19:31:05 [2025-04-18 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937748', 'tblTempUsageDetail_20' ) start [2025-04-18 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937748', 'tblTempUsageDetail_20' ) end [2025-04-18 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937748', 'tblTempVendorCDR_20' ) start [2025-04-18 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937748', 'tblTempVendorCDR_20' ) end [2025-04-18 19:31:19] Production.INFO: ProcessCDR(1,14937748,1,1,2) [2025-04-18 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937748', 'tblTempUsageDetail_20' ) start [2025-04-18 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937748', 'tblTempUsageDetail_20' ) end [2025-04-18 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:31:22] Production.INFO: ==11293== Releasing lock... [2025-04-18 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:31:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:32:06 [end_date_ymd] => 2025-04-18 19:32:06 [RateCDR] => 1 ) [2025-04-18 19:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:32:06' and `end` < '2025-04-18 19:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:32:19] Production.INFO: count ==2701 [2025-04-18 19:32:20] Production.ERROR: pbx CDR StartTime 2025-04-18 16:32:06 - End Time 2025-04-18 19:32:06 [2025-04-18 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937753', 'tblTempUsageDetail_20' ) start [2025-04-18 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937753', 'tblTempUsageDetail_20' ) end [2025-04-18 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937753', 'tblTempVendorCDR_20' ) start [2025-04-18 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937753', 'tblTempVendorCDR_20' ) end [2025-04-18 19:32:20] Production.INFO: ProcessCDR(1,14937753,1,1,2) [2025-04-18 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937753', 'tblTempUsageDetail_20' ) start [2025-04-18 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937753', 'tblTempUsageDetail_20' ) end [2025-04-18 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:32:23] Production.INFO: ==11387== Releasing lock... [2025-04-18 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:32:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:33:06 [end_date_ymd] => 2025-04-18 19:33:06 [RateCDR] => 1 ) [2025-04-18 19: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-04-18 16:33:06' and `end` < '2025-04-18 19: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-04-18 19:33:18] Production.INFO: count ==2697 [2025-04-18 19:33:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:33:06 - End Time 2025-04-18 19:33:06 [2025-04-18 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937758', 'tblTempUsageDetail_20' ) start [2025-04-18 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937758', 'tblTempUsageDetail_20' ) end [2025-04-18 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937758', 'tblTempVendorCDR_20' ) start [2025-04-18 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937758', 'tblTempVendorCDR_20' ) end [2025-04-18 19:33:20] Production.INFO: ProcessCDR(1,14937758,1,1,2) [2025-04-18 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937758', 'tblTempUsageDetail_20' ) start [2025-04-18 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937758', 'tblTempUsageDetail_20' ) end [2025-04-18 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:33:23] Production.INFO: ==11470== Releasing lock... [2025-04-18 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:33:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:34:04 [end_date_ymd] => 2025-04-18 19:34:04 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:34:04' and `end` < '2025-04-18 19:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:34:17] Production.INFO: count ==2704 [2025-04-18 19:34:18] Production.ERROR: pbx CDR StartTime 2025-04-18 16:34:04 - End Time 2025-04-18 19:34:04 [2025-04-18 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937763', 'tblTempUsageDetail_20' ) start [2025-04-18 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937763', 'tblTempUsageDetail_20' ) end [2025-04-18 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937763', 'tblTempVendorCDR_20' ) start [2025-04-18 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937763', 'tblTempVendorCDR_20' ) end [2025-04-18 19:34:18] Production.INFO: ProcessCDR(1,14937763,1,1,2) [2025-04-18 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937763', 'tblTempUsageDetail_20' ) start [2025-04-18 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937763', 'tblTempUsageDetail_20' ) end [2025-04-18 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:34:22] Production.INFO: ==11563== Releasing lock... [2025-04-18 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:34:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:35:05 [end_date_ymd] => 2025-04-18 19:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:35:05' and `end` < '2025-04-18 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-04-18 19:35:18] Production.INFO: count ==2701 [2025-04-18 19:35:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:35:05 - End Time 2025-04-18 19:35:05 [2025-04-18 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937768', 'tblTempUsageDetail_20' ) start [2025-04-18 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937768', 'tblTempUsageDetail_20' ) end [2025-04-18 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937768', 'tblTempVendorCDR_20' ) start [2025-04-18 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937768', 'tblTempVendorCDR_20' ) end [2025-04-18 19:35:19] Production.INFO: ProcessCDR(1,14937768,1,1,2) [2025-04-18 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937768', 'tblTempUsageDetail_20' ) start [2025-04-18 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937768', 'tblTempUsageDetail_20' ) end [2025-04-18 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:35:24] Production.INFO: ==11656== Releasing lock... [2025-04-18 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:35:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:36:05 [end_date_ymd] => 2025-04-18 19:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:36:05' and `end` < '2025-04-18 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-04-18 19:36:18] Production.INFO: count ==2702 [2025-04-18 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:36:05 - End Time 2025-04-18 19:36:05 [2025-04-18 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937773', 'tblTempUsageDetail_20' ) start [2025-04-18 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937773', 'tblTempUsageDetail_20' ) end [2025-04-18 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937773', 'tblTempVendorCDR_20' ) start [2025-04-18 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937773', 'tblTempVendorCDR_20' ) end [2025-04-18 19:36:19] Production.INFO: ProcessCDR(1,14937773,1,1,2) [2025-04-18 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937773', 'tblTempUsageDetail_20' ) start [2025-04-18 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937773', 'tblTempUsageDetail_20' ) end [2025-04-18 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:36:24] Production.INFO: ==11734== Releasing lock... [2025-04-18 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:36:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:37:05 [end_date_ymd] => 2025-04-18 19:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:37:05' and `end` < '2025-04-18 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-04-18 19:37:18] Production.INFO: count ==2696 [2025-04-18 19:37:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:37:05 - End Time 2025-04-18 19:37:05 [2025-04-18 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937778', 'tblTempUsageDetail_20' ) start [2025-04-18 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937778', 'tblTempUsageDetail_20' ) end [2025-04-18 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937778', 'tblTempVendorCDR_20' ) start [2025-04-18 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937778', 'tblTempVendorCDR_20' ) end [2025-04-18 19:37:19] Production.INFO: ProcessCDR(1,14937778,1,1,2) [2025-04-18 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937778', 'tblTempUsageDetail_20' ) start [2025-04-18 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937778', 'tblTempUsageDetail_20' ) end [2025-04-18 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:37:22] Production.INFO: ==11807== Releasing lock... [2025-04-18 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:37:22] Production.INFO: 48 MB #Memory Used# [2025-04-18 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:38:05 [end_date_ymd] => 2025-04-18 19:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:38:05' and `end` < '2025-04-18 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-04-18 19:38:18] Production.INFO: count ==2712 [2025-04-18 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:38:05 - End Time 2025-04-18 19:38:05 [2025-04-18 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937783', 'tblTempUsageDetail_20' ) start [2025-04-18 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937783', 'tblTempUsageDetail_20' ) end [2025-04-18 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937783', 'tblTempVendorCDR_20' ) start [2025-04-18 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937783', 'tblTempVendorCDR_20' ) end [2025-04-18 19:38:19] Production.INFO: ProcessCDR(1,14937783,1,1,2) [2025-04-18 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937783', 'tblTempUsageDetail_20' ) start [2025-04-18 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937783', 'tblTempUsageDetail_20' ) end [2025-04-18 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:38:24] Production.INFO: ==11879== Releasing lock... [2025-04-18 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:38:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:39:04 [end_date_ymd] => 2025-04-18 19:39:04 [RateCDR] => 1 ) [2025-04-18 19:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:39:04' and `end` < '2025-04-18 19:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:39:17] Production.INFO: count ==2719 [2025-04-18 19:39:18] Production.ERROR: pbx CDR StartTime 2025-04-18 16:39:04 - End Time 2025-04-18 19:39:04 [2025-04-18 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937784', 'tblTempUsageDetail_20' ) start [2025-04-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937784', 'tblTempUsageDetail_20' ) end [2025-04-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937784', 'tblTempVendorCDR_20' ) start [2025-04-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937784', 'tblTempVendorCDR_20' ) end [2025-04-18 19:39:18] Production.INFO: ProcessCDR(1,14937784,1,1,2) [2025-04-18 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937784', 'tblTempUsageDetail_20' ) start [2025-04-18 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937784', 'tblTempUsageDetail_20' ) end [2025-04-18 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:39:22] Production.INFO: ==11952== Releasing lock... [2025-04-18 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:39:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:40:06 [end_date_ymd] => 2025-04-18 19:40:06 [RateCDR] => 1 ) [2025-04-18 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:40:06' and `end` < '2025-04-18 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:40:19] Production.INFO: count ==2707 [2025-04-18 19:40:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:40:06 - End Time 2025-04-18 19:40:06 [2025-04-18 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937794', 'tblTempUsageDetail_20' ) start [2025-04-18 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937794', 'tblTempUsageDetail_20' ) end [2025-04-18 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937794', 'tblTempVendorCDR_20' ) start [2025-04-18 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937794', 'tblTempVendorCDR_20' ) end [2025-04-18 19:40:20] Production.INFO: ProcessCDR(1,14937794,1,1,2) [2025-04-18 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937794', 'tblTempUsageDetail_20' ) start [2025-04-18 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937794', 'tblTempUsageDetail_20' ) end [2025-04-18 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:40:23] Production.INFO: ==12031== Releasing lock... [2025-04-18 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:40:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:41:05 [end_date_ymd] => 2025-04-18 19:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:41:05' and `end` < '2025-04-18 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-04-18 19:41:18] Production.INFO: count ==2683 [2025-04-18 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:41:05 - End Time 2025-04-18 19:41:05 [2025-04-18 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937799', 'tblTempUsageDetail_20' ) start [2025-04-18 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937799', 'tblTempUsageDetail_20' ) end [2025-04-18 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937799', 'tblTempVendorCDR_20' ) start [2025-04-18 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937799', 'tblTempVendorCDR_20' ) end [2025-04-18 19:41:19] Production.INFO: ProcessCDR(1,14937799,1,1,2) [2025-04-18 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937799', 'tblTempUsageDetail_20' ) start [2025-04-18 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937799', 'tblTempUsageDetail_20' ) end [2025-04-18 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:41:22] Production.INFO: ==12109== Releasing lock... [2025-04-18 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:41:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:42:05 [end_date_ymd] => 2025-04-18 19:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:42:05' and `end` < '2025-04-18 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-04-18 19:42:18] Production.INFO: count ==2684 [2025-04-18 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:42:05 - End Time 2025-04-18 19:42:05 [2025-04-18 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937804', 'tblTempUsageDetail_20' ) start [2025-04-18 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937804', 'tblTempUsageDetail_20' ) end [2025-04-18 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937804', 'tblTempVendorCDR_20' ) start [2025-04-18 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937804', 'tblTempVendorCDR_20' ) end [2025-04-18 19:42:19] Production.INFO: ProcessCDR(1,14937804,1,1,2) [2025-04-18 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937804', 'tblTempUsageDetail_20' ) start [2025-04-18 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937804', 'tblTempUsageDetail_20' ) end [2025-04-18 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:42:24] Production.INFO: ==12188== Releasing lock... [2025-04-18 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:42:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:43:05 [end_date_ymd] => 2025-04-18 19:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:43:05' and `end` < '2025-04-18 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-04-18 19:43:18] Production.INFO: count ==2678 [2025-04-18 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:43:05 - End Time 2025-04-18 19:43:05 [2025-04-18 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937809', 'tblTempUsageDetail_20' ) start [2025-04-18 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937809', 'tblTempUsageDetail_20' ) end [2025-04-18 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937809', 'tblTempVendorCDR_20' ) start [2025-04-18 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937809', 'tblTempVendorCDR_20' ) end [2025-04-18 19:43:19] Production.INFO: ProcessCDR(1,14937809,1,1,2) [2025-04-18 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937809', 'tblTempUsageDetail_20' ) start [2025-04-18 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937809', 'tblTempUsageDetail_20' ) end [2025-04-18 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:43:23] Production.INFO: ==12262== Releasing lock... [2025-04-18 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:43:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:44:05 [end_date_ymd] => 2025-04-18 19:44:05 [RateCDR] => 1 ) [2025-04-18 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:44:05' and `end` < '2025-04-18 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:44:18] Production.INFO: count ==2680 [2025-04-18 19:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:44:05 - End Time 2025-04-18 19:44:05 [2025-04-18 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937814', 'tblTempUsageDetail_20' ) start [2025-04-18 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937814', 'tblTempUsageDetail_20' ) end [2025-04-18 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937814', 'tblTempVendorCDR_20' ) start [2025-04-18 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937814', 'tblTempVendorCDR_20' ) end [2025-04-18 19:44:19] Production.INFO: ProcessCDR(1,14937814,1,1,2) [2025-04-18 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937814', 'tblTempUsageDetail_20' ) start [2025-04-18 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937814', 'tblTempUsageDetail_20' ) end [2025-04-18 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:44:24] Production.INFO: ==12342== Releasing lock... [2025-04-18 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:44:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:45:05 [end_date_ymd] => 2025-04-18 19:45:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:45:05' and `end` < '2025-04-18 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-04-18 19:45:18] Production.INFO: count ==2677 [2025-04-18 19:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 16:45:05 - End Time 2025-04-18 19:45:05 [2025-04-18 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937819', 'tblTempUsageDetail_20' ) start [2025-04-18 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937819', 'tblTempUsageDetail_20' ) end [2025-04-18 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937819', 'tblTempVendorCDR_20' ) start [2025-04-18 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937819', 'tblTempVendorCDR_20' ) end [2025-04-18 19:45:19] Production.INFO: ProcessCDR(1,14937819,1,1,2) [2025-04-18 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937819', 'tblTempUsageDetail_20' ) start [2025-04-18 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937819', 'tblTempUsageDetail_20' ) end [2025-04-18 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:45:24] Production.INFO: ==12451== Releasing lock... [2025-04-18 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:45:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:46:05 [end_date_ymd] => 2025-04-18 19:46:05 [RateCDR] => 1 ) [2025-04-18 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:46:05' and `end` < '2025-04-18 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:46:18] Production.INFO: count ==2670 [2025-04-18 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:46:05 - End Time 2025-04-18 19:46:05 [2025-04-18 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937824', 'tblTempUsageDetail_20' ) start [2025-04-18 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937824', 'tblTempUsageDetail_20' ) end [2025-04-18 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937824', 'tblTempVendorCDR_20' ) start [2025-04-18 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937824', 'tblTempVendorCDR_20' ) end [2025-04-18 19:46:19] Production.INFO: ProcessCDR(1,14937824,1,1,2) [2025-04-18 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937824', 'tblTempUsageDetail_20' ) start [2025-04-18 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937824', 'tblTempUsageDetail_20' ) end [2025-04-18 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:46:22] Production.INFO: ==12527== Releasing lock... [2025-04-18 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:46:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:47:05 [end_date_ymd] => 2025-04-18 19:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:47:05' and `end` < '2025-04-18 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-04-18 19:47:18] Production.INFO: count ==2672 [2025-04-18 19:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 16:47:05 - End Time 2025-04-18 19:47:05 [2025-04-18 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937829', 'tblTempUsageDetail_20' ) start [2025-04-18 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937829', 'tblTempUsageDetail_20' ) end [2025-04-18 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937829', 'tblTempVendorCDR_20' ) start [2025-04-18 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937829', 'tblTempVendorCDR_20' ) end [2025-04-18 19:47:19] Production.INFO: ProcessCDR(1,14937829,1,1,2) [2025-04-18 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937829', 'tblTempUsageDetail_20' ) start [2025-04-18 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937829', 'tblTempUsageDetail_20' ) end [2025-04-18 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:47:22] Production.INFO: ==12599== Releasing lock... [2025-04-18 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:47:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:48:05 [end_date_ymd] => 2025-04-18 19:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:48:05' and `end` < '2025-04-18 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-04-18 19:48:18] Production.INFO: count ==2670 [2025-04-18 19:48:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:48:05 - End Time 2025-04-18 19:48:05 [2025-04-18 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937834', 'tblTempUsageDetail_20' ) start [2025-04-18 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937834', 'tblTempUsageDetail_20' ) end [2025-04-18 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937834', 'tblTempVendorCDR_20' ) start [2025-04-18 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937834', 'tblTempVendorCDR_20' ) end [2025-04-18 19:48:19] Production.INFO: ProcessCDR(1,14937834,1,1,2) [2025-04-18 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937834', 'tblTempUsageDetail_20' ) start [2025-04-18 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937834', 'tblTempUsageDetail_20' ) end [2025-04-18 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:48:22] Production.INFO: ==12698== Releasing lock... [2025-04-18 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:48:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:49:05 [end_date_ymd] => 2025-04-18 19:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:49:05' and `end` < '2025-04-18 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-04-18 19:49:18] Production.INFO: count ==2674 [2025-04-18 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:49:05 - End Time 2025-04-18 19:49:05 [2025-04-18 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937839', 'tblTempUsageDetail_20' ) start [2025-04-18 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937839', 'tblTempUsageDetail_20' ) end [2025-04-18 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937839', 'tblTempVendorCDR_20' ) start [2025-04-18 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937839', 'tblTempVendorCDR_20' ) end [2025-04-18 19:49:19] Production.INFO: ProcessCDR(1,14937839,1,1,2) [2025-04-18 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937839', 'tblTempUsageDetail_20' ) start [2025-04-18 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937839', 'tblTempUsageDetail_20' ) end [2025-04-18 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:49:24] Production.INFO: ==12775== Releasing lock... [2025-04-18 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:49:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:50:06 [end_date_ymd] => 2025-04-18 19:50:06 [RateCDR] => 1 ) [2025-04-18 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:50:06' and `end` < '2025-04-18 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:50:19] Production.INFO: count ==2681 [2025-04-18 19:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:50:06 - End Time 2025-04-18 19:50:06 [2025-04-18 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937845', 'tblTempUsageDetail_20' ) start [2025-04-18 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937845', 'tblTempUsageDetail_20' ) end [2025-04-18 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937845', 'tblTempVendorCDR_20' ) start [2025-04-18 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937845', 'tblTempVendorCDR_20' ) end [2025-04-18 19:50:20] Production.INFO: ProcessCDR(1,14937845,1,1,2) [2025-04-18 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937845', 'tblTempUsageDetail_20' ) start [2025-04-18 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937845', 'tblTempUsageDetail_20' ) end [2025-04-18 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:50:25] Production.INFO: ==12849== Releasing lock... [2025-04-18 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:50:25] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:51:05 [end_date_ymd] => 2025-04-18 19:51:05 [RateCDR] => 1 ) [2025-04-18 19: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-04-18 16:51:05' and `end` < '2025-04-18 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-04-18 19:51:19] Production.INFO: count ==2712 [2025-04-18 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:51:05 - End Time 2025-04-18 19:51:05 [2025-04-18 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937850', 'tblTempUsageDetail_20' ) start [2025-04-18 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937850', 'tblTempUsageDetail_20' ) end [2025-04-18 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937850', 'tblTempVendorCDR_20' ) start [2025-04-18 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937850', 'tblTempVendorCDR_20' ) end [2025-04-18 19:51:20] Production.INFO: ProcessCDR(1,14937850,1,1,2) [2025-04-18 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937850', 'tblTempUsageDetail_20' ) start [2025-04-18 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937850', 'tblTempUsageDetail_20' ) end [2025-04-18 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:51:24] Production.INFO: ==12928== Releasing lock... [2025-04-18 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:51:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:52:05 [end_date_ymd] => 2025-04-18 19:52:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:52:05' and `end` < '2025-04-18 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-04-18 19:52:18] Production.INFO: count ==2704 [2025-04-18 19:52:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:52:05 - End Time 2025-04-18 19:52:05 [2025-04-18 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937855', 'tblTempUsageDetail_20' ) start [2025-04-18 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937855', 'tblTempUsageDetail_20' ) end [2025-04-18 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937855', 'tblTempVendorCDR_20' ) start [2025-04-18 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937855', 'tblTempVendorCDR_20' ) end [2025-04-18 19:52:19] Production.INFO: ProcessCDR(1,14937855,1,1,2) [2025-04-18 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937855', 'tblTempUsageDetail_20' ) start [2025-04-18 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937855', 'tblTempUsageDetail_20' ) end [2025-04-18 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:52:22] Production.INFO: ==13002== Releasing lock... [2025-04-18 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:52:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:53:05 [end_date_ymd] => 2025-04-18 19:53:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:53:05' and `end` < '2025-04-18 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-04-18 19:53:18] Production.INFO: count ==2701 [2025-04-18 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:53:05 - End Time 2025-04-18 19:53:05 [2025-04-18 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937860', 'tblTempUsageDetail_20' ) start [2025-04-18 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937860', 'tblTempUsageDetail_20' ) end [2025-04-18 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937860', 'tblTempVendorCDR_20' ) start [2025-04-18 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937860', 'tblTempVendorCDR_20' ) end [2025-04-18 19:53:20] Production.INFO: ProcessCDR(1,14937860,1,1,2) [2025-04-18 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937860', 'tblTempUsageDetail_20' ) start [2025-04-18 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937860', 'tblTempUsageDetail_20' ) end [2025-04-18 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:53:23] Production.INFO: ==13080== Releasing lock... [2025-04-18 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:53:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:54:05 [end_date_ymd] => 2025-04-18 19:54:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:54:05' and `end` < '2025-04-18 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-04-18 19:54:18] Production.INFO: count ==2700 [2025-04-18 19:54:18] Production.ERROR: pbx CDR StartTime 2025-04-18 16:54:05 - End Time 2025-04-18 19:54:05 [2025-04-18 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937865', 'tblTempUsageDetail_20' ) start [2025-04-18 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937865', 'tblTempUsageDetail_20' ) end [2025-04-18 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937865', 'tblTempVendorCDR_20' ) start [2025-04-18 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937865', 'tblTempVendorCDR_20' ) end [2025-04-18 19:54:19] Production.INFO: ProcessCDR(1,14937865,1,1,2) [2025-04-18 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937865', 'tblTempUsageDetail_20' ) start [2025-04-18 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937865', 'tblTempUsageDetail_20' ) end [2025-04-18 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:54:22] Production.INFO: ==13155== Releasing lock... [2025-04-18 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:54:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:55:05 [end_date_ymd] => 2025-04-18 19:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:55:05' and `end` < '2025-04-18 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-04-18 19:55:19] Production.INFO: count ==2704 [2025-04-18 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:55:05 - End Time 2025-04-18 19:55:05 [2025-04-18 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937870', 'tblTempUsageDetail_20' ) start [2025-04-18 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937870', 'tblTempUsageDetail_20' ) end [2025-04-18 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937870', 'tblTempVendorCDR_20' ) start [2025-04-18 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937870', 'tblTempVendorCDR_20' ) end [2025-04-18 19:55:20] Production.INFO: ProcessCDR(1,14937870,1,1,2) [2025-04-18 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937870', 'tblTempUsageDetail_20' ) start [2025-04-18 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937870', 'tblTempUsageDetail_20' ) end [2025-04-18 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:55:23] Production.INFO: ==13228== Releasing lock... [2025-04-18 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:55:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:56:05 [end_date_ymd] => 2025-04-18 19:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:56:05' and `end` < '2025-04-18 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-04-18 19:56:18] Production.INFO: count ==2705 [2025-04-18 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:56:05 - End Time 2025-04-18 19:56:05 [2025-04-18 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937875', 'tblTempUsageDetail_20' ) start [2025-04-18 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937875', 'tblTempUsageDetail_20' ) end [2025-04-18 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937875', 'tblTempVendorCDR_20' ) start [2025-04-18 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937875', 'tblTempVendorCDR_20' ) end [2025-04-18 19:56:19] Production.INFO: ProcessCDR(1,14937875,1,1,2) [2025-04-18 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937875', 'tblTempUsageDetail_20' ) start [2025-04-18 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937875', 'tblTempUsageDetail_20' ) end [2025-04-18 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:56:22] Production.INFO: ==13302== Releasing lock... [2025-04-18 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:56:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:57:05 [end_date_ymd] => 2025-04-18 19:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 16:57:05' and `end` < '2025-04-18 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-04-18 19:57:18] Production.INFO: count ==2705 [2025-04-18 19:57:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:57:05 - End Time 2025-04-18 19:57:05 [2025-04-18 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937880', 'tblTempUsageDetail_20' ) start [2025-04-18 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937880', 'tblTempUsageDetail_20' ) end [2025-04-18 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937880', 'tblTempVendorCDR_20' ) start [2025-04-18 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937880', 'tblTempVendorCDR_20' ) end [2025-04-18 19:57:19] Production.INFO: ProcessCDR(1,14937880,1,1,2) [2025-04-18 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937880', 'tblTempUsageDetail_20' ) start [2025-04-18 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937880', 'tblTempUsageDetail_20' ) end [2025-04-18 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:57:23] Production.INFO: ==13381== Releasing lock... [2025-04-18 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:57:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:58:05 [end_date_ymd] => 2025-04-18 19:58:05 [RateCDR] => 1 ) [2025-04-18 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:58:05' and `end` < '2025-04-18 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:58:18] Production.INFO: count ==2723 [2025-04-18 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:58:05 - End Time 2025-04-18 19:58:05 [2025-04-18 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937885', 'tblTempUsageDetail_20' ) start [2025-04-18 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937885', 'tblTempUsageDetail_20' ) end [2025-04-18 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937885', 'tblTempVendorCDR_20' ) start [2025-04-18 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937885', 'tblTempVendorCDR_20' ) end [2025-04-18 19:58:19] Production.INFO: ProcessCDR(1,14937885,1,1,2) [2025-04-18 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937885', 'tblTempUsageDetail_20' ) start [2025-04-18 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937885', 'tblTempUsageDetail_20' ) end [2025-04-18 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:58:23] Production.INFO: ==13459== Releasing lock... [2025-04-18 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:58:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 16:59:05 [end_date_ymd] => 2025-04-18 19:59:05 [RateCDR] => 1 ) [2025-04-18 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 16:59:05' and `end` < '2025-04-18 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 19:59:18] Production.INFO: count ==2743 [2025-04-18 19:59:19] Production.ERROR: pbx CDR StartTime 2025-04-18 16:59:05 - End Time 2025-04-18 19:59:05 [2025-04-18 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937890', 'tblTempUsageDetail_20' ) start [2025-04-18 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937890', 'tblTempUsageDetail_20' ) end [2025-04-18 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937890', 'tblTempVendorCDR_20' ) start [2025-04-18 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937890', 'tblTempVendorCDR_20' ) end [2025-04-18 19:59:19] Production.INFO: ProcessCDR(1,14937890,1,1,2) [2025-04-18 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937890', 'tblTempUsageDetail_20' ) start [2025-04-18 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937890', 'tblTempUsageDetail_20' ) end [2025-04-18 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 19:59:23] Production.INFO: ==13538== Releasing lock... [2025-04-18 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 19:59:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:00:05 [end_date_ymd] => 2025-04-18 20:00:05 [RateCDR] => 1 ) [2025-04-18 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:00:05' and `end` < '2025-04-18 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:00:18] Production.INFO: count ==2748 [2025-04-18 20:00:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:00:05 - End Time 2025-04-18 20:00:05 [2025-04-18 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937895', 'tblTempUsageDetail_20' ) start [2025-04-18 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937895', 'tblTempUsageDetail_20' ) end [2025-04-18 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937895', 'tblTempVendorCDR_20' ) start [2025-04-18 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937895', 'tblTempVendorCDR_20' ) end [2025-04-18 20:00:19] Production.INFO: ProcessCDR(1,14937895,1,1,2) [2025-04-18 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937895', 'tblTempUsageDetail_20' ) start [2025-04-18 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937895', 'tblTempUsageDetail_20' ) end [2025-04-18 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:00:25] Production.INFO: ==13612== Releasing lock... [2025-04-18 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:00:25] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:01:05 [end_date_ymd] => 2025-04-18 20:01:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:01:05' and `end` < '2025-04-18 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-04-18 20:01:18] Production.INFO: count ==2761 [2025-04-18 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:01:05 - End Time 2025-04-18 20:01:05 [2025-04-18 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937901', 'tblTempUsageDetail_20' ) start [2025-04-18 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937901', 'tblTempUsageDetail_20' ) end [2025-04-18 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937901', 'tblTempVendorCDR_20' ) start [2025-04-18 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937901', 'tblTempVendorCDR_20' ) end [2025-04-18 20:01:19] Production.INFO: ProcessCDR(1,14937901,1,1,2) [2025-04-18 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937901', 'tblTempUsageDetail_20' ) start [2025-04-18 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937901', 'tblTempUsageDetail_20' ) end [2025-04-18 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:01:23] Production.INFO: ==13783== Releasing lock... [2025-04-18 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:01:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:02:05 [end_date_ymd] => 2025-04-18 20:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:02:05' and `end` < '2025-04-18 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-04-18 20:02:18] Production.INFO: count ==2762 [2025-04-18 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:02:05 - End Time 2025-04-18 20:02:05 [2025-04-18 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937906', 'tblTempUsageDetail_20' ) start [2025-04-18 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937906', 'tblTempUsageDetail_20' ) end [2025-04-18 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937906', 'tblTempVendorCDR_20' ) start [2025-04-18 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937906', 'tblTempVendorCDR_20' ) end [2025-04-18 20:02:19] Production.INFO: ProcessCDR(1,14937906,1,1,2) [2025-04-18 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937906', 'tblTempUsageDetail_20' ) start [2025-04-18 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937906', 'tblTempUsageDetail_20' ) end [2025-04-18 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:02:23] Production.INFO: ==13858== Releasing lock... [2025-04-18 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:02:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:03:05 [end_date_ymd] => 2025-04-18 20:03:05 [RateCDR] => 1 ) [2025-04-18 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:03:05' and `end` < '2025-04-18 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:03:18] Production.INFO: count ==2767 [2025-04-18 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:03:05 - End Time 2025-04-18 20:03:05 [2025-04-18 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937911', 'tblTempUsageDetail_20' ) start [2025-04-18 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937911', 'tblTempUsageDetail_20' ) end [2025-04-18 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937911', 'tblTempVendorCDR_20' ) start [2025-04-18 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937911', 'tblTempVendorCDR_20' ) end [2025-04-18 20:03:19] Production.INFO: ProcessCDR(1,14937911,1,1,2) [2025-04-18 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937911', 'tblTempUsageDetail_20' ) start [2025-04-18 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937911', 'tblTempUsageDetail_20' ) end [2025-04-18 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:03:24] Production.INFO: ==13932== Releasing lock... [2025-04-18 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:03:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:04:05 [end_date_ymd] => 2025-04-18 20:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:04:05' and `end` < '2025-04-18 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-04-18 20:04:18] Production.INFO: count ==2774 [2025-04-18 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:04:05 - End Time 2025-04-18 20:04:05 [2025-04-18 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937916', 'tblTempUsageDetail_20' ) start [2025-04-18 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937916', 'tblTempUsageDetail_20' ) end [2025-04-18 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937916', 'tblTempVendorCDR_20' ) start [2025-04-18 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937916', 'tblTempVendorCDR_20' ) end [2025-04-18 20:04:19] Production.INFO: ProcessCDR(1,14937916,1,1,2) [2025-04-18 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937916', 'tblTempUsageDetail_20' ) start [2025-04-18 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937916', 'tblTempUsageDetail_20' ) end [2025-04-18 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:04:23] Production.INFO: ==14006== Releasing lock... [2025-04-18 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:04:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 20:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:05:04 [end_date_ymd] => 2025-04-18 20:05:04 [RateCDR] => 1 ) [2025-04-18 20: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-04-18 17:05:04' and `end` < '2025-04-18 20: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-04-18 20:05:17] Production.INFO: count ==2773 [2025-04-18 20:05:18] Production.ERROR: pbx CDR StartTime 2025-04-18 17:05:04 - End Time 2025-04-18 20:05:04 [2025-04-18 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937921', 'tblTempUsageDetail_20' ) start [2025-04-18 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937921', 'tblTempUsageDetail_20' ) end [2025-04-18 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937921', 'tblTempVendorCDR_20' ) start [2025-04-18 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937921', 'tblTempVendorCDR_20' ) end [2025-04-18 20:05:18] Production.INFO: ProcessCDR(1,14937921,1,1,2) [2025-04-18 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937921', 'tblTempUsageDetail_20' ) start [2025-04-18 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937921', 'tblTempUsageDetail_20' ) end [2025-04-18 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:05:23] Production.INFO: ==14080== Releasing lock... [2025-04-18 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:05:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:06:05 [end_date_ymd] => 2025-04-18 20:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:06:05' and `end` < '2025-04-18 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-04-18 20:06:18] Production.INFO: count ==2775 [2025-04-18 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:06:05 - End Time 2025-04-18 20:06:05 [2025-04-18 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937926', 'tblTempUsageDetail_20' ) start [2025-04-18 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937926', 'tblTempUsageDetail_20' ) end [2025-04-18 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937926', 'tblTempVendorCDR_20' ) start [2025-04-18 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937926', 'tblTempVendorCDR_20' ) end [2025-04-18 20:06:19] Production.INFO: ProcessCDR(1,14937926,1,1,2) [2025-04-18 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937926', 'tblTempUsageDetail_20' ) start [2025-04-18 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937926', 'tblTempUsageDetail_20' ) end [2025-04-18 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:06:23] Production.INFO: ==14157== Releasing lock... [2025-04-18 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:06:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:07:05 [end_date_ymd] => 2025-04-18 20:07:05 [RateCDR] => 1 ) [2025-04-18 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:07:05' and `end` < '2025-04-18 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:07:18] Production.INFO: count ==2775 [2025-04-18 20:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 17:07:05 - End Time 2025-04-18 20:07:05 [2025-04-18 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937931', 'tblTempUsageDetail_20' ) start [2025-04-18 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937931', 'tblTempUsageDetail_20' ) end [2025-04-18 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937931', 'tblTempVendorCDR_20' ) start [2025-04-18 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937931', 'tblTempVendorCDR_20' ) end [2025-04-18 20:07:19] Production.INFO: ProcessCDR(1,14937931,1,1,2) [2025-04-18 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937931', 'tblTempUsageDetail_20' ) start [2025-04-18 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937931', 'tblTempUsageDetail_20' ) end [2025-04-18 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:07:22] Production.INFO: ==14231== Releasing lock... [2025-04-18 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:07:22] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:08:05 [end_date_ymd] => 2025-04-18 20:08:05 [RateCDR] => 1 ) [2025-04-18 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:08:05' and `end` < '2025-04-18 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:08:18] Production.INFO: count ==2795 [2025-04-18 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:08:05 - End Time 2025-04-18 20:08:05 [2025-04-18 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937936', 'tblTempUsageDetail_20' ) start [2025-04-18 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937936', 'tblTempUsageDetail_20' ) end [2025-04-18 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937936', 'tblTempVendorCDR_20' ) start [2025-04-18 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937936', 'tblTempVendorCDR_20' ) end [2025-04-18 20:08:19] Production.INFO: ProcessCDR(1,14937936,1,1,2) [2025-04-18 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937936', 'tblTempUsageDetail_20' ) start [2025-04-18 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937936', 'tblTempUsageDetail_20' ) end [2025-04-18 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:08:23] Production.INFO: ==14311== Releasing lock... [2025-04-18 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:08:23] Production.INFO: 49 MB #Memory Used# [2025-04-18 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:09:05 [end_date_ymd] => 2025-04-18 20:09:05 [RateCDR] => 1 ) [2025-04-18 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:09:05' and `end` < '2025-04-18 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:09:18] Production.INFO: count ==2922 [2025-04-18 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:09:05 - End Time 2025-04-18 20:09:05 [2025-04-18 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937941', 'tblTempUsageDetail_20' ) start [2025-04-18 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937941', 'tblTempUsageDetail_20' ) end [2025-04-18 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937941', 'tblTempVendorCDR_20' ) start [2025-04-18 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937941', 'tblTempVendorCDR_20' ) end [2025-04-18 20:09:19] Production.INFO: ProcessCDR(1,14937941,1,1,2) [2025-04-18 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937941', 'tblTempUsageDetail_20' ) start [2025-04-18 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937941', 'tblTempUsageDetail_20' ) end [2025-04-18 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:09:23] Production.INFO: ==14386== Releasing lock... [2025-04-18 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:09:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:10:06 [end_date_ymd] => 2025-04-18 20:10:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:10:06' and `end` < '2025-04-18 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-04-18 20:10:19] Production.INFO: count ==2923 [2025-04-18 20:10:20] Production.ERROR: pbx CDR StartTime 2025-04-18 17:10:06 - End Time 2025-04-18 20:10:06 [2025-04-18 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937947', 'tblTempUsageDetail_20' ) start [2025-04-18 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937947', 'tblTempUsageDetail_20' ) end [2025-04-18 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937947', 'tblTempVendorCDR_20' ) start [2025-04-18 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937947', 'tblTempVendorCDR_20' ) end [2025-04-18 20:10:21] Production.INFO: ProcessCDR(1,14937947,1,1,2) [2025-04-18 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937947', 'tblTempUsageDetail_20' ) start [2025-04-18 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937947', 'tblTempUsageDetail_20' ) end [2025-04-18 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:10:25] Production.INFO: ==14463== Releasing lock... [2025-04-18 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:10:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:11:05 [end_date_ymd] => 2025-04-18 20:11:05 [RateCDR] => 1 ) [2025-04-18 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:11:05' and `end` < '2025-04-18 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:11:18] Production.INFO: count ==2913 [2025-04-18 20:11:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:11:05 - End Time 2025-04-18 20:11:05 [2025-04-18 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937952', 'tblTempUsageDetail_20' ) start [2025-04-18 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937952', 'tblTempUsageDetail_20' ) end [2025-04-18 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937952', 'tblTempVendorCDR_20' ) start [2025-04-18 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937952', 'tblTempVendorCDR_20' ) end [2025-04-18 20:11:19] Production.INFO: ProcessCDR(1,14937952,1,1,2) [2025-04-18 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937952', 'tblTempUsageDetail_20' ) start [2025-04-18 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937952', 'tblTempUsageDetail_20' ) end [2025-04-18 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:11:24] Production.INFO: ==14549== Releasing lock... [2025-04-18 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:11:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:12:06 [end_date_ymd] => 2025-04-18 20:12:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:12:06' and `end` < '2025-04-18 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-04-18 20:12:18] Production.INFO: count ==2915 [2025-04-18 20:12:20] Production.ERROR: pbx CDR StartTime 2025-04-18 17:12:06 - End Time 2025-04-18 20:12:06 [2025-04-18 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937957', 'tblTempUsageDetail_20' ) start [2025-04-18 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937957', 'tblTempUsageDetail_20' ) end [2025-04-18 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937957', 'tblTempVendorCDR_20' ) start [2025-04-18 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937957', 'tblTempVendorCDR_20' ) end [2025-04-18 20:12:20] Production.INFO: ProcessCDR(1,14937957,1,1,2) [2025-04-18 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937957', 'tblTempUsageDetail_20' ) start [2025-04-18 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937957', 'tblTempUsageDetail_20' ) end [2025-04-18 20:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:12:25] Production.INFO: ==14640== Releasing lock... [2025-04-18 20:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:12:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:13:05 [end_date_ymd] => 2025-04-18 20:13:05 [RateCDR] => 1 ) [2025-04-18 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:13:05' and `end` < '2025-04-18 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:13:17] Production.INFO: count ==2910 [2025-04-18 20:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 17:13:05 - End Time 2025-04-18 20:13:05 [2025-04-18 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937962', 'tblTempUsageDetail_20' ) start [2025-04-18 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937962', 'tblTempUsageDetail_20' ) end [2025-04-18 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937962', 'tblTempVendorCDR_20' ) start [2025-04-18 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937962', 'tblTempVendorCDR_20' ) end [2025-04-18 20:13:19] Production.INFO: ProcessCDR(1,14937962,1,1,2) [2025-04-18 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937962', 'tblTempUsageDetail_20' ) start [2025-04-18 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937962', 'tblTempUsageDetail_20' ) end [2025-04-18 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:13:23] Production.INFO: ==14726== Releasing lock... [2025-04-18 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:13:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:14:05 [end_date_ymd] => 2025-04-18 20:14:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:14:05' and `end` < '2025-04-18 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-04-18 20:14:18] Production.INFO: count ==2962 [2025-04-18 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:14:05 - End Time 2025-04-18 20:14:05 [2025-04-18 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937967', 'tblTempUsageDetail_20' ) start [2025-04-18 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937967', 'tblTempUsageDetail_20' ) end [2025-04-18 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937967', 'tblTempVendorCDR_20' ) start [2025-04-18 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937967', 'tblTempVendorCDR_20' ) end [2025-04-18 20:14:19] Production.INFO: ProcessCDR(1,14937967,1,1,2) [2025-04-18 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937967', 'tblTempUsageDetail_20' ) start [2025-04-18 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937967', 'tblTempUsageDetail_20' ) end [2025-04-18 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:14:24] Production.INFO: ==14807== Releasing lock... [2025-04-18 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:14:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:15:05 [end_date_ymd] => 2025-04-18 20:15:05 [RateCDR] => 1 ) [2025-04-18 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:15:05' and `end` < '2025-04-18 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:15:18] Production.INFO: count ==2969 [2025-04-18 20:15:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:15:05 - End Time 2025-04-18 20:15:05 [2025-04-18 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937972', 'tblTempUsageDetail_20' ) start [2025-04-18 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937972', 'tblTempUsageDetail_20' ) end [2025-04-18 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937972', 'tblTempVendorCDR_20' ) start [2025-04-18 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937972', 'tblTempVendorCDR_20' ) end [2025-04-18 20:15:19] Production.INFO: ProcessCDR(1,14937972,1,1,2) [2025-04-18 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937972', 'tblTempUsageDetail_20' ) start [2025-04-18 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937972', 'tblTempUsageDetail_20' ) end [2025-04-18 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:15:23] Production.INFO: ==14886== Releasing lock... [2025-04-18 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:15:23] Production.INFO: 50 MB #Memory Used# [2025-04-18 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:16:05 [end_date_ymd] => 2025-04-18 20:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:16:05' and `end` < '2025-04-18 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-04-18 20:16:18] Production.INFO: count ==2973 [2025-04-18 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:16:05 - End Time 2025-04-18 20:16:05 [2025-04-18 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937977', 'tblTempUsageDetail_20' ) start [2025-04-18 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937977', 'tblTempUsageDetail_20' ) end [2025-04-18 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937977', 'tblTempVendorCDR_20' ) start [2025-04-18 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937977', 'tblTempVendorCDR_20' ) end [2025-04-18 20:16:19] Production.INFO: ProcessCDR(1,14937977,1,1,2) [2025-04-18 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937977', 'tblTempUsageDetail_20' ) start [2025-04-18 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937977', 'tblTempUsageDetail_20' ) end [2025-04-18 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:16:24] Production.INFO: ==15007== Releasing lock... [2025-04-18 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:16:24] Production.INFO: 50 MB #Memory Used# [2025-04-18 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:17:05 [end_date_ymd] => 2025-04-18 20:17:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:17:05' and `end` < '2025-04-18 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-04-18 20:17:18] Production.INFO: count ==2976 [2025-04-18 20:17:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:17:05 - End Time 2025-04-18 20:17:05 [2025-04-18 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937982', 'tblTempUsageDetail_20' ) start [2025-04-18 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937982', 'tblTempUsageDetail_20' ) end [2025-04-18 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937982', 'tblTempVendorCDR_20' ) start [2025-04-18 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937982', 'tblTempVendorCDR_20' ) end [2025-04-18 20:17:19] Production.INFO: ProcessCDR(1,14937982,1,1,2) [2025-04-18 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937982', 'tblTempUsageDetail_20' ) start [2025-04-18 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937982', 'tblTempUsageDetail_20' ) end [2025-04-18 20:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:17:25] Production.INFO: ==15086== Releasing lock... [2025-04-18 20:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:17:25] Production.INFO: 50 MB #Memory Used# [2025-04-18 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:18:05 [end_date_ymd] => 2025-04-18 20:18:05 [RateCDR] => 1 ) [2025-04-18 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:18:05' and `end` < '2025-04-18 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:18:18] Production.INFO: count ==2973 [2025-04-18 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:18:05 - End Time 2025-04-18 20:18:05 [2025-04-18 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937987', 'tblTempUsageDetail_20' ) start [2025-04-18 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937987', 'tblTempUsageDetail_20' ) end [2025-04-18 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937987', 'tblTempVendorCDR_20' ) start [2025-04-18 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937987', 'tblTempVendorCDR_20' ) end [2025-04-18 20:18:19] Production.INFO: ProcessCDR(1,14937987,1,1,2) [2025-04-18 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937987', 'tblTempUsageDetail_20' ) start [2025-04-18 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937987', 'tblTempUsageDetail_20' ) end [2025-04-18 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:18:24] Production.INFO: ==15165== Releasing lock... [2025-04-18 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:18:24] Production.INFO: 50 MB #Memory Used# [2025-04-18 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:19:06 [end_date_ymd] => 2025-04-18 20:19:06 [RateCDR] => 1 ) [2025-04-18 20: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-04-18 17:19:06' and `end` < '2025-04-18 20: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-04-18 20:19:19] Production.INFO: count ==2974 [2025-04-18 20:19:20] Production.ERROR: pbx CDR StartTime 2025-04-18 17:19:06 - End Time 2025-04-18 20:19:06 [2025-04-18 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937992', 'tblTempUsageDetail_20' ) start [2025-04-18 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937992', 'tblTempUsageDetail_20' ) end [2025-04-18 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937992', 'tblTempVendorCDR_20' ) start [2025-04-18 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937992', 'tblTempVendorCDR_20' ) end [2025-04-18 20:19:20] Production.INFO: ProcessCDR(1,14937992,1,1,2) [2025-04-18 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937992', 'tblTempUsageDetail_20' ) start [2025-04-18 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937992', 'tblTempUsageDetail_20' ) end [2025-04-18 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:19:23] Production.INFO: ==15248== Releasing lock... [2025-04-18 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:19:23] Production.INFO: 50.25 MB #Memory Used# [2025-04-18 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:20:06 [end_date_ymd] => 2025-04-18 20:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:20:06' and `end` < '2025-04-18 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-04-18 20:20:19] Production.INFO: count ==2967 [2025-04-18 20:20:20] Production.ERROR: pbx CDR StartTime 2025-04-18 17:20:06 - End Time 2025-04-18 20:20:06 [2025-04-18 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937998', 'tblTempUsageDetail_20' ) start [2025-04-18 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14937998', 'tblTempUsageDetail_20' ) end [2025-04-18 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937998', 'tblTempVendorCDR_20' ) start [2025-04-18 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14937998', 'tblTempVendorCDR_20' ) end [2025-04-18 20:20:20] Production.INFO: ProcessCDR(1,14937998,1,1,2) [2025-04-18 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14937998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14937998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14937998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14937998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937998', 'tblTempUsageDetail_20' ) start [2025-04-18 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14937998', 'tblTempUsageDetail_20' ) end [2025-04-18 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:20:25] Production.INFO: ==15331== Releasing lock... [2025-04-18 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:20:25] Production.INFO: 50 MB #Memory Used# [2025-04-18 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:21:05 [end_date_ymd] => 2025-04-18 20:21:05 [RateCDR] => 1 ) [2025-04-18 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:21:05' and `end` < '2025-04-18 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:21:18] Production.INFO: count ==2937 [2025-04-18 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:21:05 - End Time 2025-04-18 20:21:05 [2025-04-18 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938003', 'tblTempUsageDetail_20' ) start [2025-04-18 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938003', 'tblTempUsageDetail_20' ) end [2025-04-18 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938003', 'tblTempVendorCDR_20' ) start [2025-04-18 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938003', 'tblTempVendorCDR_20' ) end [2025-04-18 20:21:20] Production.INFO: ProcessCDR(1,14938003,1,1,2) [2025-04-18 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938003', 'tblTempUsageDetail_20' ) start [2025-04-18 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938003', 'tblTempUsageDetail_20' ) end [2025-04-18 20:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:21:25] Production.INFO: ==15416== Releasing lock... [2025-04-18 20:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:21:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:22:05 [end_date_ymd] => 2025-04-18 20:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:22:05' and `end` < '2025-04-18 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-04-18 20:22:17] Production.INFO: count ==2931 [2025-04-18 20:22:18] Production.ERROR: pbx CDR StartTime 2025-04-18 17:22:05 - End Time 2025-04-18 20:22:05 [2025-04-18 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938008', 'tblTempUsageDetail_20' ) start [2025-04-18 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938008', 'tblTempUsageDetail_20' ) end [2025-04-18 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938008', 'tblTempVendorCDR_20' ) start [2025-04-18 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938008', 'tblTempVendorCDR_20' ) end [2025-04-18 20:22:19] Production.INFO: ProcessCDR(1,14938008,1,1,2) [2025-04-18 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938008', 'tblTempUsageDetail_20' ) start [2025-04-18 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938008', 'tblTempUsageDetail_20' ) end [2025-04-18 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:22:22] Production.INFO: ==15505== Releasing lock... [2025-04-18 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:22:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:23:05 [end_date_ymd] => 2025-04-18 20:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:23:05' and `end` < '2025-04-18 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-04-18 20:23:18] Production.INFO: count ==2926 [2025-04-18 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:23:05 - End Time 2025-04-18 20:23:05 [2025-04-18 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938013', 'tblTempUsageDetail_20' ) start [2025-04-18 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938013', 'tblTempUsageDetail_20' ) end [2025-04-18 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938013', 'tblTempVendorCDR_20' ) start [2025-04-18 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938013', 'tblTempVendorCDR_20' ) end [2025-04-18 20:23:20] Production.INFO: ProcessCDR(1,14938013,1,1,2) [2025-04-18 20:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938013', 'tblTempUsageDetail_20' ) start [2025-04-18 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938013', 'tblTempUsageDetail_20' ) end [2025-04-18 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:23:23] Production.INFO: ==15615== Releasing lock... [2025-04-18 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:23:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:24:05 [end_date_ymd] => 2025-04-18 20:24:05 [RateCDR] => 1 ) [2025-04-18 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:24:05' and `end` < '2025-04-18 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:24:18] Production.INFO: count ==2926 [2025-04-18 20:24:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:24:05 - End Time 2025-04-18 20:24:05 [2025-04-18 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938018', 'tblTempUsageDetail_20' ) start [2025-04-18 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938018', 'tblTempUsageDetail_20' ) end [2025-04-18 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938018', 'tblTempVendorCDR_20' ) start [2025-04-18 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938018', 'tblTempVendorCDR_20' ) end [2025-04-18 20:24:19] Production.INFO: ProcessCDR(1,14938018,1,1,2) [2025-04-18 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938018', 'tblTempUsageDetail_20' ) start [2025-04-18 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938018', 'tblTempUsageDetail_20' ) end [2025-04-18 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:24:22] Production.INFO: ==15728== Releasing lock... [2025-04-18 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:24:22] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:25:05 [end_date_ymd] => 2025-04-18 20:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:25:05' and `end` < '2025-04-18 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-04-18 20:25:18] Production.INFO: count ==2921 [2025-04-18 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:25:05 - End Time 2025-04-18 20:25:05 [2025-04-18 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938023', 'tblTempUsageDetail_20' ) start [2025-04-18 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938023', 'tblTempUsageDetail_20' ) end [2025-04-18 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938023', 'tblTempVendorCDR_20' ) start [2025-04-18 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938023', 'tblTempVendorCDR_20' ) end [2025-04-18 20:25:19] Production.INFO: ProcessCDR(1,14938023,1,1,2) [2025-04-18 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938023', 'tblTempUsageDetail_20' ) start [2025-04-18 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938023', 'tblTempUsageDetail_20' ) end [2025-04-18 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:25:23] Production.INFO: ==15843== Releasing lock... [2025-04-18 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:25:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:26:05 [end_date_ymd] => 2025-04-18 20:26:05 [RateCDR] => 1 ) [2025-04-18 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:26:05' and `end` < '2025-04-18 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:26:18] Production.INFO: count ==2917 [2025-04-18 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:26:05 - End Time 2025-04-18 20:26:05 [2025-04-18 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938028', 'tblTempUsageDetail_20' ) start [2025-04-18 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938028', 'tblTempUsageDetail_20' ) end [2025-04-18 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938028', 'tblTempVendorCDR_20' ) start [2025-04-18 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938028', 'tblTempVendorCDR_20' ) end [2025-04-18 20:26:19] Production.INFO: ProcessCDR(1,14938028,1,1,2) [2025-04-18 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938028', 'tblTempUsageDetail_20' ) start [2025-04-18 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938028', 'tblTempUsageDetail_20' ) end [2025-04-18 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:26:22] Production.INFO: ==15954== Releasing lock... [2025-04-18 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:26:22] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:27:05 [end_date_ymd] => 2025-04-18 20:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:27:05' and `end` < '2025-04-18 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-04-18 20:27:18] Production.INFO: count ==2908 [2025-04-18 20:27:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:27:05 - End Time 2025-04-18 20:27:05 [2025-04-18 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938033', 'tblTempUsageDetail_20' ) start [2025-04-18 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938033', 'tblTempUsageDetail_20' ) end [2025-04-18 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938033', 'tblTempVendorCDR_20' ) start [2025-04-18 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938033', 'tblTempVendorCDR_20' ) end [2025-04-18 20:27:19] Production.INFO: ProcessCDR(1,14938033,1,1,2) [2025-04-18 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938033', 'tblTempUsageDetail_20' ) start [2025-04-18 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938033', 'tblTempUsageDetail_20' ) end [2025-04-18 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:27:23] Production.INFO: ==16057== Releasing lock... [2025-04-18 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:27:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:28:05 [end_date_ymd] => 2025-04-18 20:28:05 [RateCDR] => 1 ) [2025-04-18 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:28:05' and `end` < '2025-04-18 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:28:18] Production.INFO: count ==2900 [2025-04-18 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:28:05 - End Time 2025-04-18 20:28:05 [2025-04-18 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938038', 'tblTempUsageDetail_20' ) start [2025-04-18 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938038', 'tblTempUsageDetail_20' ) end [2025-04-18 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938038', 'tblTempVendorCDR_20' ) start [2025-04-18 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938038', 'tblTempVendorCDR_20' ) end [2025-04-18 20:28:19] Production.INFO: ProcessCDR(1,14938038,1,1,2) [2025-04-18 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938038', 'tblTempUsageDetail_20' ) start [2025-04-18 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938038', 'tblTempUsageDetail_20' ) end [2025-04-18 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:28:23] Production.INFO: ==16175== Releasing lock... [2025-04-18 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:28:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:29:06 [end_date_ymd] => 2025-04-18 20:29:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:29:06' and `end` < '2025-04-18 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-04-18 20:29:18] Production.INFO: count ==2896 [2025-04-18 20:29:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:29:06 - End Time 2025-04-18 20:29:06 [2025-04-18 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938043', 'tblTempUsageDetail_20' ) start [2025-04-18 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938043', 'tblTempUsageDetail_20' ) end [2025-04-18 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938043', 'tblTempVendorCDR_20' ) start [2025-04-18 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938043', 'tblTempVendorCDR_20' ) end [2025-04-18 20:29:20] Production.INFO: ProcessCDR(1,14938043,1,1,2) [2025-04-18 20:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938043', 'tblTempUsageDetail_20' ) start [2025-04-18 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938043', 'tblTempUsageDetail_20' ) end [2025-04-18 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:29:23] Production.INFO: ==16284== Releasing lock... [2025-04-18 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:29:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:30:05 [end_date_ymd] => 2025-04-18 20:30:05 [RateCDR] => 1 ) [2025-04-18 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:30:05' and `end` < '2025-04-18 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:30:18] Production.INFO: count ==2896 [2025-04-18 20:30:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:30:05 - End Time 2025-04-18 20:30:05 [2025-04-18 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938049', 'tblTempUsageDetail_20' ) start [2025-04-18 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938049', 'tblTempUsageDetail_20' ) end [2025-04-18 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938049', 'tblTempVendorCDR_20' ) start [2025-04-18 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938049', 'tblTempVendorCDR_20' ) end [2025-04-18 20:30:19] Production.INFO: ProcessCDR(1,14938049,1,1,2) [2025-04-18 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938049', 'tblTempUsageDetail_20' ) start [2025-04-18 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938049', 'tblTempUsageDetail_20' ) end [2025-04-18 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:30:23] Production.INFO: ==16397== Releasing lock... [2025-04-18 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:30:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:31:05 [end_date_ymd] => 2025-04-18 20:31:05 [RateCDR] => 1 ) [2025-04-18 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:31:05' and `end` < '2025-04-18 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:31:18] Production.INFO: count ==2900 [2025-04-18 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:31:05 - End Time 2025-04-18 20:31:05 [2025-04-18 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938054', 'tblTempUsageDetail_20' ) start [2025-04-18 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938054', 'tblTempUsageDetail_20' ) end [2025-04-18 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938054', 'tblTempVendorCDR_20' ) start [2025-04-18 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938054', 'tblTempVendorCDR_20' ) end [2025-04-18 20:31:19] Production.INFO: ProcessCDR(1,14938054,1,1,2) [2025-04-18 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938054', 'tblTempUsageDetail_20' ) start [2025-04-18 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938054', 'tblTempUsageDetail_20' ) end [2025-04-18 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:31:22] Production.INFO: ==16549== Releasing lock... [2025-04-18 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:31:22] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:32:05 [end_date_ymd] => 2025-04-18 20:32:05 [RateCDR] => 1 ) [2025-04-18 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:32:05' and `end` < '2025-04-18 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:32:18] Production.INFO: count ==2896 [2025-04-18 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:32:05 - End Time 2025-04-18 20:32:05 [2025-04-18 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938059', 'tblTempUsageDetail_20' ) start [2025-04-18 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938059', 'tblTempUsageDetail_20' ) end [2025-04-18 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938059', 'tblTempVendorCDR_20' ) start [2025-04-18 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938059', 'tblTempVendorCDR_20' ) end [2025-04-18 20:32:20] Production.INFO: ProcessCDR(1,14938059,1,1,2) [2025-04-18 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938059', 'tblTempUsageDetail_20' ) start [2025-04-18 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938059', 'tblTempUsageDetail_20' ) end [2025-04-18 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:32:23] Production.INFO: ==16656== Releasing lock... [2025-04-18 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:32:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:33:05 [end_date_ymd] => 2025-04-18 20:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:33:05' and `end` < '2025-04-18 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-04-18 20:33:18] Production.INFO: count ==2897 [2025-04-18 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:33:05 - End Time 2025-04-18 20:33:05 [2025-04-18 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938064', 'tblTempUsageDetail_20' ) start [2025-04-18 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938064', 'tblTempUsageDetail_20' ) end [2025-04-18 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938064', 'tblTempVendorCDR_20' ) start [2025-04-18 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938064', 'tblTempVendorCDR_20' ) end [2025-04-18 20:33:19] Production.INFO: ProcessCDR(1,14938064,1,1,2) [2025-04-18 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938064', 'tblTempUsageDetail_20' ) start [2025-04-18 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938064', 'tblTempUsageDetail_20' ) end [2025-04-18 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:33:24] Production.INFO: ==16767== Releasing lock... [2025-04-18 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:33:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:34:06 [end_date_ymd] => 2025-04-18 20:34:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:34:06' and `end` < '2025-04-18 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-04-18 20:34:19] Production.INFO: count ==2891 [2025-04-18 20:34:20] Production.ERROR: pbx CDR StartTime 2025-04-18 17:34:06 - End Time 2025-04-18 20:34:06 [2025-04-18 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938069', 'tblTempUsageDetail_20' ) start [2025-04-18 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938069', 'tblTempUsageDetail_20' ) end [2025-04-18 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938069', 'tblTempVendorCDR_20' ) start [2025-04-18 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938069', 'tblTempVendorCDR_20' ) end [2025-04-18 20:34:20] Production.INFO: ProcessCDR(1,14938069,1,1,2) [2025-04-18 20:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938069', 'tblTempUsageDetail_20' ) start [2025-04-18 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938069', 'tblTempUsageDetail_20' ) end [2025-04-18 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:34:23] Production.INFO: ==16878== Releasing lock... [2025-04-18 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:34:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:35:05 [end_date_ymd] => 2025-04-18 20:35:05 [RateCDR] => 1 ) [2025-04-18 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:35:05' and `end` < '2025-04-18 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:35:18] Production.INFO: count ==2904 [2025-04-18 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:35:05 - End Time 2025-04-18 20:35:05 [2025-04-18 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938074', 'tblTempUsageDetail_20' ) start [2025-04-18 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938074', 'tblTempUsageDetail_20' ) end [2025-04-18 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938074', 'tblTempVendorCDR_20' ) start [2025-04-18 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938074', 'tblTempVendorCDR_20' ) end [2025-04-18 20:35:19] Production.INFO: ProcessCDR(1,14938074,1,1,2) [2025-04-18 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938074', 'tblTempUsageDetail_20' ) start [2025-04-18 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938074', 'tblTempUsageDetail_20' ) end [2025-04-18 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:35:23] Production.INFO: ==16989== Releasing lock... [2025-04-18 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:35:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:36:05 [end_date_ymd] => 2025-04-18 20:36:05 [RateCDR] => 1 ) [2025-04-18 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:36:05' and `end` < '2025-04-18 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:36:18] Production.INFO: count ==2902 [2025-04-18 20:36:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:36:05 - End Time 2025-04-18 20:36:05 [2025-04-18 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938079', 'tblTempUsageDetail_20' ) start [2025-04-18 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938079', 'tblTempUsageDetail_20' ) end [2025-04-18 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938079', 'tblTempVendorCDR_20' ) start [2025-04-18 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938079', 'tblTempVendorCDR_20' ) end [2025-04-18 20:36:19] Production.INFO: ProcessCDR(1,14938079,1,1,2) [2025-04-18 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938079', 'tblTempUsageDetail_20' ) start [2025-04-18 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938079', 'tblTempUsageDetail_20' ) end [2025-04-18 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:36:23] Production.INFO: ==17096== Releasing lock... [2025-04-18 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:36:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:37:05 [end_date_ymd] => 2025-04-18 20:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:37:05' and `end` < '2025-04-18 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-04-18 20:37:18] Production.INFO: count ==2904 [2025-04-18 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:37:05 - End Time 2025-04-18 20:37:05 [2025-04-18 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938084', 'tblTempUsageDetail_20' ) start [2025-04-18 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938084', 'tblTempUsageDetail_20' ) end [2025-04-18 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938084', 'tblTempVendorCDR_20' ) start [2025-04-18 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938084', 'tblTempVendorCDR_20' ) end [2025-04-18 20:37:19] Production.INFO: ProcessCDR(1,14938084,1,1,2) [2025-04-18 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938084', 'tblTempUsageDetail_20' ) start [2025-04-18 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938084', 'tblTempUsageDetail_20' ) end [2025-04-18 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:37:23] Production.INFO: ==17194== Releasing lock... [2025-04-18 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:37:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:38:05 [end_date_ymd] => 2025-04-18 20:38:05 [RateCDR] => 1 ) [2025-04-18 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:38:05' and `end` < '2025-04-18 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:38:18] Production.INFO: count ==2904 [2025-04-18 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:38:05 - End Time 2025-04-18 20:38:05 [2025-04-18 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938089', 'tblTempUsageDetail_20' ) start [2025-04-18 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938089', 'tblTempUsageDetail_20' ) end [2025-04-18 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938089', 'tblTempVendorCDR_20' ) start [2025-04-18 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938089', 'tblTempVendorCDR_20' ) end [2025-04-18 20:38:19] Production.INFO: ProcessCDR(1,14938089,1,1,2) [2025-04-18 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938089', 'tblTempUsageDetail_20' ) start [2025-04-18 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938089', 'tblTempUsageDetail_20' ) end [2025-04-18 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:38:23] Production.INFO: ==17270== Releasing lock... [2025-04-18 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:38:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:39:05 [end_date_ymd] => 2025-04-18 20:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:39:05' and `end` < '2025-04-18 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-04-18 20:39:18] Production.INFO: count ==2902 [2025-04-18 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:39:05 - End Time 2025-04-18 20:39:05 [2025-04-18 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938094', 'tblTempUsageDetail_20' ) start [2025-04-18 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938094', 'tblTempUsageDetail_20' ) end [2025-04-18 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938094', 'tblTempVendorCDR_20' ) start [2025-04-18 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938094', 'tblTempVendorCDR_20' ) end [2025-04-18 20:39:19] Production.INFO: ProcessCDR(1,14938094,1,1,2) [2025-04-18 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938094', 'tblTempUsageDetail_20' ) start [2025-04-18 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938094', 'tblTempUsageDetail_20' ) end [2025-04-18 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:39:23] Production.INFO: ==17351== Releasing lock... [2025-04-18 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:39:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:40:06 [end_date_ymd] => 2025-04-18 20:40:06 [RateCDR] => 1 ) [2025-04-18 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:40:06' and `end` < '2025-04-18 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:40:19] Production.INFO: count ==2900 [2025-04-18 20:40:20] Production.ERROR: pbx CDR StartTime 2025-04-18 17:40:06 - End Time 2025-04-18 20:40:06 [2025-04-18 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938099', 'tblTempUsageDetail_20' ) start [2025-04-18 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938099', 'tblTempUsageDetail_20' ) end [2025-04-18 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938099', 'tblTempVendorCDR_20' ) start [2025-04-18 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938099', 'tblTempVendorCDR_20' ) end [2025-04-18 20:40:20] Production.INFO: ProcessCDR(1,14938099,1,1,2) [2025-04-18 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938099', 'tblTempUsageDetail_20' ) start [2025-04-18 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938099', 'tblTempUsageDetail_20' ) end [2025-04-18 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:40:24] Production.INFO: ==17438== Releasing lock... [2025-04-18 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:40:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:41:05 [end_date_ymd] => 2025-04-18 20:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:41:05' and `end` < '2025-04-18 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-04-18 20:41:18] Production.INFO: count ==2936 [2025-04-18 20:41:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:41:05 - End Time 2025-04-18 20:41:05 [2025-04-18 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938105', 'tblTempUsageDetail_20' ) start [2025-04-18 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938105', 'tblTempUsageDetail_20' ) end [2025-04-18 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938105', 'tblTempVendorCDR_20' ) start [2025-04-18 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938105', 'tblTempVendorCDR_20' ) end [2025-04-18 20:41:19] Production.INFO: ProcessCDR(1,14938105,1,1,2) [2025-04-18 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938105', 'tblTempUsageDetail_20' ) start [2025-04-18 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938105', 'tblTempUsageDetail_20' ) end [2025-04-18 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:41:23] Production.INFO: ==17518== Releasing lock... [2025-04-18 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:41:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:42:05 [end_date_ymd] => 2025-04-18 20:42:05 [RateCDR] => 1 ) [2025-04-18 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:42:05' and `end` < '2025-04-18 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:42:18] Production.INFO: count ==2939 [2025-04-18 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:42:05 - End Time 2025-04-18 20:42:05 [2025-04-18 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938110', 'tblTempUsageDetail_20' ) start [2025-04-18 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938110', 'tblTempUsageDetail_20' ) end [2025-04-18 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938110', 'tblTempVendorCDR_20' ) start [2025-04-18 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938110', 'tblTempVendorCDR_20' ) end [2025-04-18 20:42:19] Production.INFO: ProcessCDR(1,14938110,1,1,2) [2025-04-18 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938110', 'tblTempUsageDetail_20' ) start [2025-04-18 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938110', 'tblTempUsageDetail_20' ) end [2025-04-18 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:42:22] Production.INFO: ==17597== Releasing lock... [2025-04-18 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:42:22] Production.INFO: 50 MB #Memory Used# [2025-04-18 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:43:05 [end_date_ymd] => 2025-04-18 20:43:05 [RateCDR] => 1 ) [2025-04-18 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:43:05' and `end` < '2025-04-18 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:43:17] Production.INFO: count ==2933 [2025-04-18 20:43:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:43:05 - End Time 2025-04-18 20:43:05 [2025-04-18 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938115', 'tblTempUsageDetail_20' ) start [2025-04-18 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938115', 'tblTempUsageDetail_20' ) end [2025-04-18 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938115', 'tblTempVendorCDR_20' ) start [2025-04-18 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938115', 'tblTempVendorCDR_20' ) end [2025-04-18 20:43:19] Production.INFO: ProcessCDR(1,14938115,1,1,2) [2025-04-18 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938115', 'tblTempUsageDetail_20' ) start [2025-04-18 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938115', 'tblTempUsageDetail_20' ) end [2025-04-18 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:43:22] Production.INFO: ==17670== Releasing lock... [2025-04-18 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:43:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:44:05 [end_date_ymd] => 2025-04-18 20:44:05 [RateCDR] => 1 ) [2025-04-18 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:44:05' and `end` < '2025-04-18 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:44:18] Production.INFO: count ==2932 [2025-04-18 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:44:05 - End Time 2025-04-18 20:44:05 [2025-04-18 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938120', 'tblTempUsageDetail_20' ) start [2025-04-18 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938120', 'tblTempUsageDetail_20' ) end [2025-04-18 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938120', 'tblTempVendorCDR_20' ) start [2025-04-18 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938120', 'tblTempVendorCDR_20' ) end [2025-04-18 20:44:19] Production.INFO: ProcessCDR(1,14938120,1,1,2) [2025-04-18 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938120', 'tblTempUsageDetail_20' ) start [2025-04-18 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938120', 'tblTempUsageDetail_20' ) end [2025-04-18 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:44:23] Production.INFO: ==17745== Releasing lock... [2025-04-18 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:44:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:45:05 [end_date_ymd] => 2025-04-18 20:45:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:45:05' and `end` < '2025-04-18 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-04-18 20:45:18] Production.INFO: count ==3019 [2025-04-18 20:45:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:45:05 - End Time 2025-04-18 20:45:05 [2025-04-18 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938125', 'tblTempUsageDetail_20' ) start [2025-04-18 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938125', 'tblTempUsageDetail_20' ) end [2025-04-18 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938125', 'tblTempVendorCDR_20' ) start [2025-04-18 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938125', 'tblTempVendorCDR_20' ) end [2025-04-18 20:45:19] Production.INFO: ProcessCDR(1,14938125,1,1,2) [2025-04-18 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938125', 'tblTempUsageDetail_20' ) start [2025-04-18 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938125', 'tblTempUsageDetail_20' ) end [2025-04-18 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:45:23] Production.INFO: ==17825== Releasing lock... [2025-04-18 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:45:23] Production.INFO: 50.5 MB #Memory Used# [2025-04-18 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:46:05 [end_date_ymd] => 2025-04-18 20:46:05 [RateCDR] => 1 ) [2025-04-18 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:46:05' and `end` < '2025-04-18 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:46:18] Production.INFO: count ==3020 [2025-04-18 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:46:05 - End Time 2025-04-18 20:46:05 [2025-04-18 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938130', 'tblTempUsageDetail_20' ) start [2025-04-18 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938130', 'tblTempUsageDetail_20' ) end [2025-04-18 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938130', 'tblTempVendorCDR_20' ) start [2025-04-18 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938130', 'tblTempVendorCDR_20' ) end [2025-04-18 20:46:19] Production.INFO: ProcessCDR(1,14938130,1,1,2) [2025-04-18 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938130', 'tblTempUsageDetail_20' ) start [2025-04-18 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938130', 'tblTempUsageDetail_20' ) end [2025-04-18 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:46:23] Production.INFO: ==17899== Releasing lock... [2025-04-18 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:46:23] Production.INFO: 50.5 MB #Memory Used# [2025-04-18 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:47:06 [end_date_ymd] => 2025-04-18 20:47:06 [RateCDR] => 1 ) [2025-04-18 20: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-04-18 17:47:06' and `end` < '2025-04-18 20: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-04-18 20:47:19] Production.INFO: count ==3022 [2025-04-18 20:47:20] Production.ERROR: pbx CDR StartTime 2025-04-18 17:47:06 - End Time 2025-04-18 20:47:06 [2025-04-18 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938135', 'tblTempUsageDetail_20' ) start [2025-04-18 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938135', 'tblTempUsageDetail_20' ) end [2025-04-18 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938135', 'tblTempVendorCDR_20' ) start [2025-04-18 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938135', 'tblTempVendorCDR_20' ) end [2025-04-18 20:47:20] Production.INFO: ProcessCDR(1,14938135,1,1,2) [2025-04-18 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938135', 'tblTempUsageDetail_20' ) start [2025-04-18 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938135', 'tblTempUsageDetail_20' ) end [2025-04-18 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:47:23] Production.INFO: ==18016== Releasing lock... [2025-04-18 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:47:23] Production.INFO: 50.5 MB #Memory Used# [2025-04-18 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:48:05 [end_date_ymd] => 2025-04-18 20:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:48:05' and `end` < '2025-04-18 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-04-18 20:48:18] Production.INFO: count ==3021 [2025-04-18 20:48:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:48:05 - End Time 2025-04-18 20:48:05 [2025-04-18 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938140', 'tblTempUsageDetail_20' ) start [2025-04-18 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938140', 'tblTempUsageDetail_20' ) end [2025-04-18 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938140', 'tblTempVendorCDR_20' ) start [2025-04-18 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938140', 'tblTempVendorCDR_20' ) end [2025-04-18 20:48:19] Production.INFO: ProcessCDR(1,14938140,1,1,2) [2025-04-18 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938140', 'tblTempUsageDetail_20' ) start [2025-04-18 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938140', 'tblTempUsageDetail_20' ) end [2025-04-18 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:48:23] Production.INFO: ==18087== Releasing lock... [2025-04-18 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:48:23] Production.INFO: 50.5 MB #Memory Used# [2025-04-18 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:49:05 [end_date_ymd] => 2025-04-18 20:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:49:05' and `end` < '2025-04-18 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-04-18 20:49:18] Production.INFO: count ==3020 [2025-04-18 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:49:05 - End Time 2025-04-18 20:49:05 [2025-04-18 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938145', 'tblTempUsageDetail_20' ) start [2025-04-18 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938145', 'tblTempUsageDetail_20' ) end [2025-04-18 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938145', 'tblTempVendorCDR_20' ) start [2025-04-18 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938145', 'tblTempVendorCDR_20' ) end [2025-04-18 20:49:19] Production.INFO: ProcessCDR(1,14938145,1,1,2) [2025-04-18 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938145', 'tblTempUsageDetail_20' ) start [2025-04-18 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938145', 'tblTempUsageDetail_20' ) end [2025-04-18 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:49:23] Production.INFO: ==18167== Releasing lock... [2025-04-18 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:49:23] Production.INFO: 50.5 MB #Memory Used# [2025-04-18 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:50:06 [end_date_ymd] => 2025-04-18 20:50:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:50:06' and `end` < '2025-04-18 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-04-18 20:50:19] Production.INFO: count ==3015 [2025-04-18 20:50:20] Production.ERROR: pbx CDR StartTime 2025-04-18 17:50:06 - End Time 2025-04-18 20:50:06 [2025-04-18 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938151', 'tblTempUsageDetail_20' ) start [2025-04-18 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938151', 'tblTempUsageDetail_20' ) end [2025-04-18 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938151', 'tblTempVendorCDR_20' ) start [2025-04-18 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938151', 'tblTempVendorCDR_20' ) end [2025-04-18 20:50:20] Production.INFO: ProcessCDR(1,14938151,1,1,2) [2025-04-18 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938151', 'tblTempUsageDetail_20' ) start [2025-04-18 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938151', 'tblTempUsageDetail_20' ) end [2025-04-18 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:50:24] Production.INFO: ==18243== Releasing lock... [2025-04-18 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:50:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-18 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:51:05 [end_date_ymd] => 2025-04-18 20:51:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:51:05' and `end` < '2025-04-18 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-04-18 20:51:18] Production.INFO: count ==2994 [2025-04-18 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:51:05 - End Time 2025-04-18 20:51:05 [2025-04-18 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938156', 'tblTempUsageDetail_20' ) start [2025-04-18 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938156', 'tblTempUsageDetail_20' ) end [2025-04-18 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938156', 'tblTempVendorCDR_20' ) start [2025-04-18 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938156', 'tblTempVendorCDR_20' ) end [2025-04-18 20:51:19] Production.INFO: ProcessCDR(1,14938156,1,1,2) [2025-04-18 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938156', 'tblTempUsageDetail_20' ) start [2025-04-18 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938156', 'tblTempUsageDetail_20' ) end [2025-04-18 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:51:22] Production.INFO: ==18325== Releasing lock... [2025-04-18 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:51:22] Production.INFO: 50.25 MB #Memory Used# [2025-04-18 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:52:05 [end_date_ymd] => 2025-04-18 20:52:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:52:05' and `end` < '2025-04-18 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-04-18 20:52:18] Production.INFO: count ==2990 [2025-04-18 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:52:05 - End Time 2025-04-18 20:52:05 [2025-04-18 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938161', 'tblTempUsageDetail_20' ) start [2025-04-18 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938161', 'tblTempUsageDetail_20' ) end [2025-04-18 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938161', 'tblTempVendorCDR_20' ) start [2025-04-18 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938161', 'tblTempVendorCDR_20' ) end [2025-04-18 20:52:19] Production.INFO: ProcessCDR(1,14938161,1,1,2) [2025-04-18 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938161', 'tblTempUsageDetail_20' ) start [2025-04-18 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938161', 'tblTempUsageDetail_20' ) end [2025-04-18 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:52:22] Production.INFO: ==18396== Releasing lock... [2025-04-18 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:52:22] Production.INFO: 50.25 MB #Memory Used# [2025-04-18 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:53:05 [end_date_ymd] => 2025-04-18 20:53:05 [RateCDR] => 1 ) [2025-04-18 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:53:05' and `end` < '2025-04-18 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:53:18] Production.INFO: count ==2994 [2025-04-18 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:53:05 - End Time 2025-04-18 20:53:05 [2025-04-18 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938166', 'tblTempUsageDetail_20' ) start [2025-04-18 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938166', 'tblTempUsageDetail_20' ) end [2025-04-18 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938166', 'tblTempVendorCDR_20' ) start [2025-04-18 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938166', 'tblTempVendorCDR_20' ) end [2025-04-18 20:53:19] Production.INFO: ProcessCDR(1,14938166,1,1,2) [2025-04-18 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938166', 'tblTempUsageDetail_20' ) start [2025-04-18 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938166', 'tblTempUsageDetail_20' ) end [2025-04-18 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:53:24] Production.INFO: ==18475== Releasing lock... [2025-04-18 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:53:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-18 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:54:05 [end_date_ymd] => 2025-04-18 20:54:05 [RateCDR] => 1 ) [2025-04-18 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:54:05' and `end` < '2025-04-18 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:54:18] Production.INFO: count ==2994 [2025-04-18 20:54:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:54:05 - End Time 2025-04-18 20:54:05 [2025-04-18 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938171', 'tblTempUsageDetail_20' ) start [2025-04-18 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938171', 'tblTempUsageDetail_20' ) end [2025-04-18 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938171', 'tblTempVendorCDR_20' ) start [2025-04-18 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938171', 'tblTempVendorCDR_20' ) end [2025-04-18 20:54:19] Production.INFO: ProcessCDR(1,14938171,1,1,2) [2025-04-18 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938171', 'tblTempUsageDetail_20' ) start [2025-04-18 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938171', 'tblTempUsageDetail_20' ) end [2025-04-18 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:54:24] Production.INFO: ==18552== Releasing lock... [2025-04-18 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:54:24] Production.INFO: 50.25 MB #Memory Used# [2025-04-18 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:55:06 [end_date_ymd] => 2025-04-18 20:55:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:55:06' and `end` < '2025-04-18 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-04-18 20:55:18] Production.INFO: count ==2989 [2025-04-18 20:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:55:06 - End Time 2025-04-18 20:55:06 [2025-04-18 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938176', 'tblTempUsageDetail_20' ) start [2025-04-18 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938176', 'tblTempUsageDetail_20' ) end [2025-04-18 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938176', 'tblTempVendorCDR_20' ) start [2025-04-18 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938176', 'tblTempVendorCDR_20' ) end [2025-04-18 20:55:20] Production.INFO: ProcessCDR(1,14938176,1,1,2) [2025-04-18 20:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938176', 'tblTempUsageDetail_20' ) start [2025-04-18 20:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938176', 'tblTempUsageDetail_20' ) end [2025-04-18 20:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:55:25] Production.INFO: ==18626== Releasing lock... [2025-04-18 20:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:55:25] Production.INFO: 50.25 MB #Memory Used# [2025-04-18 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:56:06 [end_date_ymd] => 2025-04-18 20:56:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:56:06' and `end` < '2025-04-18 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-04-18 20:56:18] Production.INFO: count ==2982 [2025-04-18 20:56:20] Production.ERROR: pbx CDR StartTime 2025-04-18 17:56:06 - End Time 2025-04-18 20:56:06 [2025-04-18 20:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938181', 'tblTempUsageDetail_20' ) start [2025-04-18 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938181', 'tblTempUsageDetail_20' ) end [2025-04-18 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938181', 'tblTempVendorCDR_20' ) start [2025-04-18 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938181', 'tblTempVendorCDR_20' ) end [2025-04-18 20:56:20] Production.INFO: ProcessCDR(1,14938181,1,1,2) [2025-04-18 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938181', 'tblTempUsageDetail_20' ) start [2025-04-18 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938181', 'tblTempUsageDetail_20' ) end [2025-04-18 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:56:23] Production.INFO: ==18700== Releasing lock... [2025-04-18 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:56:23] Production.INFO: 50.25 MB #Memory Used# [2025-04-18 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:57:05 [end_date_ymd] => 2025-04-18 20:57:05 [RateCDR] => 1 ) [2025-04-18 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 17:57:05' and `end` < '2025-04-18 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 20:57:18] Production.INFO: count ==2972 [2025-04-18 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:57:05 - End Time 2025-04-18 20:57:05 [2025-04-18 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938186', 'tblTempUsageDetail_20' ) start [2025-04-18 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938186', 'tblTempUsageDetail_20' ) end [2025-04-18 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938186', 'tblTempVendorCDR_20' ) start [2025-04-18 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938186', 'tblTempVendorCDR_20' ) end [2025-04-18 20:57:19] Production.INFO: ProcessCDR(1,14938186,1,1,2) [2025-04-18 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938186', 'tblTempUsageDetail_20' ) start [2025-04-18 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938186', 'tblTempUsageDetail_20' ) end [2025-04-18 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:57:23] Production.INFO: ==18779== Releasing lock... [2025-04-18 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:57:23] Production.INFO: 50 MB #Memory Used# [2025-04-18 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:58:05 [end_date_ymd] => 2025-04-18 20:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:58:05' and `end` < '2025-04-18 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-04-18 20:58:18] Production.INFO: count ==2969 [2025-04-18 20:58:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:58:05 - End Time 2025-04-18 20:58:05 [2025-04-18 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938191', 'tblTempUsageDetail_20' ) start [2025-04-18 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938191', 'tblTempUsageDetail_20' ) end [2025-04-18 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938191', 'tblTempVendorCDR_20' ) start [2025-04-18 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938191', 'tblTempVendorCDR_20' ) end [2025-04-18 20:58:19] Production.INFO: ProcessCDR(1,14938191,1,1,2) [2025-04-18 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938191', 'tblTempUsageDetail_20' ) start [2025-04-18 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938191', 'tblTempUsageDetail_20' ) end [2025-04-18 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:58:22] Production.INFO: ==18856== Releasing lock... [2025-04-18 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:58:22] Production.INFO: 50.25 MB #Memory Used# [2025-04-18 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 17:59:05 [end_date_ymd] => 2025-04-18 20:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 17:59:05' and `end` < '2025-04-18 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-04-18 20:59:18] Production.INFO: count ==2965 [2025-04-18 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-18 17:59:05 - End Time 2025-04-18 20:59:05 [2025-04-18 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938196', 'tblTempUsageDetail_20' ) start [2025-04-18 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938196', 'tblTempUsageDetail_20' ) end [2025-04-18 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938196', 'tblTempVendorCDR_20' ) start [2025-04-18 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938196', 'tblTempVendorCDR_20' ) end [2025-04-18 20:59:19] Production.INFO: ProcessCDR(1,14938196,1,1,2) [2025-04-18 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938196', 'tblTempUsageDetail_20' ) start [2025-04-18 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938196', 'tblTempUsageDetail_20' ) end [2025-04-18 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 20:59:22] Production.INFO: ==18929== Releasing lock... [2025-04-18 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 20:59:22] Production.INFO: 50 MB #Memory Used# [2025-04-18 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:00:07 [end_date_ymd] => 2025-04-18 21:00:07 [RateCDR] => 1 ) [2025-04-18 21: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-04-18 18:00:07' and `end` < '2025-04-18 21: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-04-18 21:00:20] Production.INFO: count ==2961 [2025-04-18 21:00:21] Production.ERROR: pbx CDR StartTime 2025-04-18 18:00:07 - End Time 2025-04-18 21:00:07 [2025-04-18 21:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938202', 'tblTempUsageDetail_20' ) start [2025-04-18 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938202', 'tblTempUsageDetail_20' ) end [2025-04-18 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938202', 'tblTempVendorCDR_20' ) start [2025-04-18 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938202', 'tblTempVendorCDR_20' ) end [2025-04-18 21:00:21] Production.INFO: ProcessCDR(1,14938202,1,1,2) [2025-04-18 21:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938202', 'tblTempUsageDetail_20' ) start [2025-04-18 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938202', 'tblTempUsageDetail_20' ) end [2025-04-18 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:00:24] Production.INFO: ==19014== Releasing lock... [2025-04-18 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:00:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:01:05 [end_date_ymd] => 2025-04-18 21:01:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:01:05' and `end` < '2025-04-18 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-04-18 21:01:18] Production.INFO: count ==2901 [2025-04-18 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:01:05 - End Time 2025-04-18 21:01:05 [2025-04-18 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938207', 'tblTempUsageDetail_20' ) start [2025-04-18 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938207', 'tblTempUsageDetail_20' ) end [2025-04-18 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938207', 'tblTempVendorCDR_20' ) start [2025-04-18 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938207', 'tblTempVendorCDR_20' ) end [2025-04-18 21:01:19] Production.INFO: ProcessCDR(1,14938207,1,1,2) [2025-04-18 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938207', 'tblTempUsageDetail_20' ) start [2025-04-18 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938207', 'tblTempUsageDetail_20' ) end [2025-04-18 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:01:23] Production.INFO: ==19103== Releasing lock... [2025-04-18 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:01:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:02:06 [end_date_ymd] => 2025-04-18 21:02:06 [RateCDR] => 1 ) [2025-04-18 21: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-04-18 18:02:06' and `end` < '2025-04-18 21: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-04-18 21:02:18] Production.INFO: count ==2897 [2025-04-18 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:02:06 - End Time 2025-04-18 21:02:06 [2025-04-18 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938212', 'tblTempUsageDetail_20' ) start [2025-04-18 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938212', 'tblTempUsageDetail_20' ) end [2025-04-18 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938212', 'tblTempVendorCDR_20' ) start [2025-04-18 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938212', 'tblTempVendorCDR_20' ) end [2025-04-18 21:02:20] Production.INFO: ProcessCDR(1,14938212,1,1,2) [2025-04-18 21:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938212', 'tblTempUsageDetail_20' ) start [2025-04-18 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938212', 'tblTempUsageDetail_20' ) end [2025-04-18 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:02:23] Production.INFO: ==19214== Releasing lock... [2025-04-18 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:02:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:03:04 [end_date_ymd] => 2025-04-18 21:03:04 [RateCDR] => 1 ) [2025-04-18 21:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:03:04' and `end` < '2025-04-18 21:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:03:17] Production.INFO: count ==2893 [2025-04-18 21:03:18] Production.ERROR: pbx CDR StartTime 2025-04-18 18:03:04 - End Time 2025-04-18 21:03:04 [2025-04-18 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938217', 'tblTempUsageDetail_20' ) start [2025-04-18 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938217', 'tblTempUsageDetail_20' ) end [2025-04-18 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938217', 'tblTempVendorCDR_20' ) start [2025-04-18 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938217', 'tblTempVendorCDR_20' ) end [2025-04-18 21:03:18] Production.INFO: ProcessCDR(1,14938217,1,1,2) [2025-04-18 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938217', 'tblTempUsageDetail_20' ) start [2025-04-18 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938217', 'tblTempUsageDetail_20' ) end [2025-04-18 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:03:23] Production.INFO: ==19297== Releasing lock... [2025-04-18 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:03:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:04:06 [end_date_ymd] => 2025-04-18 21:04:06 [RateCDR] => 1 ) [2025-04-18 21: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-04-18 18:04:06' and `end` < '2025-04-18 21: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-04-18 21:04:19] Production.INFO: count ==2893 [2025-04-18 21:04:20] Production.ERROR: pbx CDR StartTime 2025-04-18 18:04:06 - End Time 2025-04-18 21:04:06 [2025-04-18 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938222', 'tblTempUsageDetail_20' ) start [2025-04-18 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938222', 'tblTempUsageDetail_20' ) end [2025-04-18 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938222', 'tblTempVendorCDR_20' ) start [2025-04-18 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938222', 'tblTempVendorCDR_20' ) end [2025-04-18 21:04:20] Production.INFO: ProcessCDR(1,14938222,1,1,2) [2025-04-18 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938222', 'tblTempUsageDetail_20' ) start [2025-04-18 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938222', 'tblTempUsageDetail_20' ) end [2025-04-18 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:04:24] Production.INFO: ==19369== Releasing lock... [2025-04-18 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:04:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:05:05 [end_date_ymd] => 2025-04-18 21:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:05:05' and `end` < '2025-04-18 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-04-18 21:05:18] Production.INFO: count ==2895 [2025-04-18 21:05:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:05:05 - End Time 2025-04-18 21:05:05 [2025-04-18 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938227', 'tblTempUsageDetail_20' ) start [2025-04-18 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938227', 'tblTempUsageDetail_20' ) end [2025-04-18 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938227', 'tblTempVendorCDR_20' ) start [2025-04-18 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938227', 'tblTempVendorCDR_20' ) end [2025-04-18 21:05:19] Production.INFO: ProcessCDR(1,14938227,1,1,2) [2025-04-18 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938227', 'tblTempUsageDetail_20' ) start [2025-04-18 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938227', 'tblTempUsageDetail_20' ) end [2025-04-18 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:05:22] Production.INFO: ==19446== Releasing lock... [2025-04-18 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:05:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:06:05 [end_date_ymd] => 2025-04-18 21:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:06:05' and `end` < '2025-04-18 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-04-18 21:06:18] Production.INFO: count ==2887 [2025-04-18 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:06:05 - End Time 2025-04-18 21:06:05 [2025-04-18 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938232', 'tblTempUsageDetail_20' ) start [2025-04-18 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938232', 'tblTempUsageDetail_20' ) end [2025-04-18 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938232', 'tblTempVendorCDR_20' ) start [2025-04-18 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938232', 'tblTempVendorCDR_20' ) end [2025-04-18 21:06:19] Production.INFO: ProcessCDR(1,14938232,1,1,2) [2025-04-18 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938232', 'tblTempUsageDetail_20' ) start [2025-04-18 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938232', 'tblTempUsageDetail_20' ) end [2025-04-18 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:06:23] Production.INFO: ==19526== Releasing lock... [2025-04-18 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:06:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:07:05 [end_date_ymd] => 2025-04-18 21:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:07:05' and `end` < '2025-04-18 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-04-18 21:07:17] Production.INFO: count ==2882 [2025-04-18 21:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 18:07:05 - End Time 2025-04-18 21:07:05 [2025-04-18 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938237', 'tblTempUsageDetail_20' ) start [2025-04-18 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938237', 'tblTempUsageDetail_20' ) end [2025-04-18 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938237', 'tblTempVendorCDR_20' ) start [2025-04-18 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938237', 'tblTempVendorCDR_20' ) end [2025-04-18 21:07:19] Production.INFO: ProcessCDR(1,14938237,1,1,2) [2025-04-18 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938237', 'tblTempUsageDetail_20' ) start [2025-04-18 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938237', 'tblTempUsageDetail_20' ) end [2025-04-18 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:07:22] Production.INFO: ==19600== Releasing lock... [2025-04-18 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:07:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:08:06 [end_date_ymd] => 2025-04-18 21:08:06 [RateCDR] => 1 ) [2025-04-18 21: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-04-18 18:08:06' and `end` < '2025-04-18 21: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-04-18 21:08:19] Production.INFO: count ==2881 [2025-04-18 21:08:20] Production.ERROR: pbx CDR StartTime 2025-04-18 18:08:06 - End Time 2025-04-18 21:08:06 [2025-04-18 21:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938242', 'tblTempUsageDetail_20' ) start [2025-04-18 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938242', 'tblTempUsageDetail_20' ) end [2025-04-18 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938242', 'tblTempVendorCDR_20' ) start [2025-04-18 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938242', 'tblTempVendorCDR_20' ) end [2025-04-18 21:08:20] Production.INFO: ProcessCDR(1,14938242,1,1,2) [2025-04-18 21:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938242', 'tblTempUsageDetail_20' ) start [2025-04-18 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938242', 'tblTempUsageDetail_20' ) end [2025-04-18 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:08:23] Production.INFO: ==19675== Releasing lock... [2025-04-18 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:08:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:09:05 [end_date_ymd] => 2025-04-18 21:09:05 [RateCDR] => 1 ) [2025-04-18 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:09:05' and `end` < '2025-04-18 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:09:18] Production.INFO: count ==2866 [2025-04-18 21:09:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:09:05 - End Time 2025-04-18 21:09:05 [2025-04-18 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938247', 'tblTempUsageDetail_20' ) start [2025-04-18 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938247', 'tblTempUsageDetail_20' ) end [2025-04-18 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938247', 'tblTempVendorCDR_20' ) start [2025-04-18 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938247', 'tblTempVendorCDR_20' ) end [2025-04-18 21:09:19] Production.INFO: ProcessCDR(1,14938247,1,1,2) [2025-04-18 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938247', 'tblTempUsageDetail_20' ) start [2025-04-18 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938247', 'tblTempUsageDetail_20' ) end [2025-04-18 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:09:24] Production.INFO: ==19755== Releasing lock... [2025-04-18 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:09:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:10:06 [end_date_ymd] => 2025-04-18 21:10:06 [RateCDR] => 1 ) [2025-04-18 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:10:06' and `end` < '2025-04-18 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:10:19] Production.INFO: count ==2855 [2025-04-18 21:10:20] Production.ERROR: pbx CDR StartTime 2025-04-18 18:10:06 - End Time 2025-04-18 21:10:06 [2025-04-18 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938253', 'tblTempUsageDetail_20' ) start [2025-04-18 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938253', 'tblTempUsageDetail_20' ) end [2025-04-18 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938253', 'tblTempVendorCDR_20' ) start [2025-04-18 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938253', 'tblTempVendorCDR_20' ) end [2025-04-18 21:10:20] Production.INFO: ProcessCDR(1,14938253,1,1,2) [2025-04-18 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938253', 'tblTempUsageDetail_20' ) start [2025-04-18 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938253', 'tblTempUsageDetail_20' ) end [2025-04-18 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:10:23] Production.INFO: ==19838== Releasing lock... [2025-04-18 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:10:23] Production.INFO: 49 MB #Memory Used# [2025-04-18 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:11:04 [end_date_ymd] => 2025-04-18 21:11:04 [RateCDR] => 1 ) [2025-04-18 21:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:11:04' and `end` < '2025-04-18 21:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:11:17] Production.INFO: count ==2831 [2025-04-18 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-18 18:11:04 - End Time 2025-04-18 21:11:04 [2025-04-18 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938258', 'tblTempUsageDetail_20' ) start [2025-04-18 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938258', 'tblTempUsageDetail_20' ) end [2025-04-18 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938258', 'tblTempVendorCDR_20' ) start [2025-04-18 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938258', 'tblTempVendorCDR_20' ) end [2025-04-18 21:11:18] Production.INFO: ProcessCDR(1,14938258,1,1,2) [2025-04-18 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938258', 'tblTempUsageDetail_20' ) start [2025-04-18 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938258', 'tblTempUsageDetail_20' ) end [2025-04-18 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:11:22] Production.INFO: ==19914== Releasing lock... [2025-04-18 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:11:22] Production.INFO: 49 MB #Memory Used# [2025-04-18 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:12:05 [end_date_ymd] => 2025-04-18 21:12:05 [RateCDR] => 1 ) [2025-04-18 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:12:05' and `end` < '2025-04-18 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:12:18] Production.INFO: count ==2953 [2025-04-18 21:12:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:12:05 - End Time 2025-04-18 21:12:05 [2025-04-18 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938263', 'tblTempUsageDetail_20' ) start [2025-04-18 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938263', 'tblTempUsageDetail_20' ) end [2025-04-18 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938263', 'tblTempVendorCDR_20' ) start [2025-04-18 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938263', 'tblTempVendorCDR_20' ) end [2025-04-18 21:12:19] Production.INFO: ProcessCDR(1,14938263,1,1,2) [2025-04-18 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938263', 'tblTempUsageDetail_20' ) start [2025-04-18 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938263', 'tblTempUsageDetail_20' ) end [2025-04-18 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:12:24] Production.INFO: ==19989== Releasing lock... [2025-04-18 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:12:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:13:05 [end_date_ymd] => 2025-04-18 21:13:05 [RateCDR] => 1 ) [2025-04-18 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:13:05' and `end` < '2025-04-18 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-04-18 21:13:18] Production.INFO: count ==2948 [2025-04-18 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:13:05 - End Time 2025-04-18 21:13:05 [2025-04-18 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938268', 'tblTempUsageDetail_20' ) start [2025-04-18 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938268', 'tblTempUsageDetail_20' ) end [2025-04-18 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938268', 'tblTempVendorCDR_20' ) start [2025-04-18 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938268', 'tblTempVendorCDR_20' ) end [2025-04-18 21:13:19] Production.INFO: ProcessCDR(1,14938268,1,1,2) [2025-04-18 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938268', 'tblTempUsageDetail_20' ) start [2025-04-18 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938268', 'tblTempUsageDetail_20' ) end [2025-04-18 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:13:24] Production.INFO: ==20064== Releasing lock... [2025-04-18 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:13:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:14:05 [end_date_ymd] => 2025-04-18 21:14:05 [RateCDR] => 1 ) [2025-04-18 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:14:05' and `end` < '2025-04-18 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:14:18] Production.INFO: count ==2936 [2025-04-18 21:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:14:05 - End Time 2025-04-18 21:14:05 [2025-04-18 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938273', 'tblTempUsageDetail_20' ) start [2025-04-18 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938273', 'tblTempUsageDetail_20' ) end [2025-04-18 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938273', 'tblTempVendorCDR_20' ) start [2025-04-18 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938273', 'tblTempVendorCDR_20' ) end [2025-04-18 21:14:19] Production.INFO: ProcessCDR(1,14938273,1,1,2) [2025-04-18 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938273', 'tblTempUsageDetail_20' ) start [2025-04-18 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938273', 'tblTempUsageDetail_20' ) end [2025-04-18 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:14:24] Production.INFO: ==20142== Releasing lock... [2025-04-18 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:14:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-18 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:15:05 [end_date_ymd] => 2025-04-18 21:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:15:05' and `end` < '2025-04-18 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-04-18 21:15:18] Production.INFO: count ==2913 [2025-04-18 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:15:05 - End Time 2025-04-18 21:15:05 [2025-04-18 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938278', 'tblTempUsageDetail_20' ) start [2025-04-18 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938278', 'tblTempUsageDetail_20' ) end [2025-04-18 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938278', 'tblTempVendorCDR_20' ) start [2025-04-18 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938278', 'tblTempVendorCDR_20' ) end [2025-04-18 21:15:20] Production.INFO: ProcessCDR(1,14938278,1,1,2) [2025-04-18 21:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938278', 'tblTempUsageDetail_20' ) start [2025-04-18 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938278', 'tblTempUsageDetail_20' ) end [2025-04-18 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:15:23] Production.INFO: ==20214== Releasing lock... [2025-04-18 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:15:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:16:05 [end_date_ymd] => 2025-04-18 21:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:16:05' and `end` < '2025-04-18 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-04-18 21:16:18] Production.INFO: count ==2909 [2025-04-18 21:16:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:16:05 - End Time 2025-04-18 21:16:05 [2025-04-18 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938283', 'tblTempUsageDetail_20' ) start [2025-04-18 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938283', 'tblTempUsageDetail_20' ) end [2025-04-18 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938283', 'tblTempVendorCDR_20' ) start [2025-04-18 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938283', 'tblTempVendorCDR_20' ) end [2025-04-18 21:16:19] Production.INFO: ProcessCDR(1,14938283,1,1,2) [2025-04-18 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938283', 'tblTempUsageDetail_20' ) start [2025-04-18 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938283', 'tblTempUsageDetail_20' ) end [2025-04-18 21:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:16:24] Production.INFO: ==20287== Releasing lock... [2025-04-18 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:16:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:17:05 [end_date_ymd] => 2025-04-18 21:17:05 [RateCDR] => 1 ) [2025-04-18 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:17:05' and `end` < '2025-04-18 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:17:18] Production.INFO: count ==2909 [2025-04-18 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:17:05 - End Time 2025-04-18 21:17:05 [2025-04-18 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938288', 'tblTempUsageDetail_20' ) start [2025-04-18 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938288', 'tblTempUsageDetail_20' ) end [2025-04-18 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938288', 'tblTempVendorCDR_20' ) start [2025-04-18 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938288', 'tblTempVendorCDR_20' ) end [2025-04-18 21:17:19] Production.INFO: ProcessCDR(1,14938288,1,1,2) [2025-04-18 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938288', 'tblTempUsageDetail_20' ) start [2025-04-18 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938288', 'tblTempUsageDetail_20' ) end [2025-04-18 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:17:23] Production.INFO: ==20362== Releasing lock... [2025-04-18 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:17:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:18:05 [end_date_ymd] => 2025-04-18 21:18:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:18:05' and `end` < '2025-04-18 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-04-18 21:18:18] Production.INFO: count ==2905 [2025-04-18 21:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:18:05 - End Time 2025-04-18 21:18:05 [2025-04-18 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938293', 'tblTempUsageDetail_20' ) start [2025-04-18 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938293', 'tblTempUsageDetail_20' ) end [2025-04-18 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938293', 'tblTempVendorCDR_20' ) start [2025-04-18 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938293', 'tblTempVendorCDR_20' ) end [2025-04-18 21:18:19] Production.INFO: ProcessCDR(1,14938293,1,1,2) [2025-04-18 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938293', 'tblTempUsageDetail_20' ) start [2025-04-18 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938293', 'tblTempUsageDetail_20' ) end [2025-04-18 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:18:22] Production.INFO: ==20487== Releasing lock... [2025-04-18 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:18:22] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:19:05 [end_date_ymd] => 2025-04-18 21:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:19:05' and `end` < '2025-04-18 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-04-18 21:19:18] Production.INFO: count ==2902 [2025-04-18 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:19:05 - End Time 2025-04-18 21:19:05 [2025-04-18 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938298', 'tblTempUsageDetail_20' ) start [2025-04-18 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938298', 'tblTempUsageDetail_20' ) end [2025-04-18 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938298', 'tblTempVendorCDR_20' ) start [2025-04-18 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938298', 'tblTempVendorCDR_20' ) end [2025-04-18 21:19:19] Production.INFO: ProcessCDR(1,14938298,1,1,2) [2025-04-18 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938298', 'tblTempUsageDetail_20' ) start [2025-04-18 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938298', 'tblTempUsageDetail_20' ) end [2025-04-18 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:19:23] Production.INFO: ==20565== Releasing lock... [2025-04-18 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:19:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:20:05 [end_date_ymd] => 2025-04-18 21:20:05 [RateCDR] => 1 ) [2025-04-18 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:20:05' and `end` < '2025-04-18 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:20:18] Production.INFO: count ==2900 [2025-04-18 21:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:20:05 - End Time 2025-04-18 21:20:05 [2025-04-18 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938304', 'tblTempUsageDetail_20' ) start [2025-04-18 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938304', 'tblTempUsageDetail_20' ) end [2025-04-18 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938304', 'tblTempVendorCDR_20' ) start [2025-04-18 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938304', 'tblTempVendorCDR_20' ) end [2025-04-18 21:20:19] Production.INFO: ProcessCDR(1,14938304,1,1,2) [2025-04-18 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938304', 'tblTempUsageDetail_20' ) start [2025-04-18 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938304', 'tblTempUsageDetail_20' ) end [2025-04-18 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:20:23] Production.INFO: ==20644== Releasing lock... [2025-04-18 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:20:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-18 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:21:05 [end_date_ymd] => 2025-04-18 21:21:05 [RateCDR] => 1 ) [2025-04-18 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:21:05' and `end` < '2025-04-18 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:21:18] Production.INFO: count ==2893 [2025-04-18 21:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:21:05 - End Time 2025-04-18 21:21:05 [2025-04-18 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938309', 'tblTempUsageDetail_20' ) start [2025-04-18 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938309', 'tblTempUsageDetail_20' ) end [2025-04-18 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938309', 'tblTempVendorCDR_20' ) start [2025-04-18 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938309', 'tblTempVendorCDR_20' ) end [2025-04-18 21:21:19] Production.INFO: ProcessCDR(1,14938309,1,1,2) [2025-04-18 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938309', 'tblTempUsageDetail_20' ) start [2025-04-18 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938309', 'tblTempUsageDetail_20' ) end [2025-04-18 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:21:22] Production.INFO: ==20720== Releasing lock... [2025-04-18 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:21:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:22:06 [end_date_ymd] => 2025-04-18 21:22:06 [RateCDR] => 1 ) [2025-04-18 21: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-04-18 18:22:06' and `end` < '2025-04-18 21: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-04-18 21:22:18] Production.INFO: count ==2889 [2025-04-18 21:22:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:22:06 - End Time 2025-04-18 21:22:06 [2025-04-18 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938314', 'tblTempUsageDetail_20' ) start [2025-04-18 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938314', 'tblTempUsageDetail_20' ) end [2025-04-18 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938314', 'tblTempVendorCDR_20' ) start [2025-04-18 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938314', 'tblTempVendorCDR_20' ) end [2025-04-18 21:22:20] Production.INFO: ProcessCDR(1,14938314,1,1,2) [2025-04-18 21:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938314', 'tblTempUsageDetail_20' ) start [2025-04-18 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938314', 'tblTempUsageDetail_20' ) end [2025-04-18 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:22:23] Production.INFO: ==20791== Releasing lock... [2025-04-18 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:22:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:23:05 [end_date_ymd] => 2025-04-18 21:23:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:23:05' and `end` < '2025-04-18 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-04-18 21:23:18] Production.INFO: count ==2885 [2025-04-18 21:23:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:23:05 - End Time 2025-04-18 21:23:05 [2025-04-18 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938319', 'tblTempUsageDetail_20' ) start [2025-04-18 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938319', 'tblTempUsageDetail_20' ) end [2025-04-18 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938319', 'tblTempVendorCDR_20' ) start [2025-04-18 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938319', 'tblTempVendorCDR_20' ) end [2025-04-18 21:23:19] Production.INFO: ProcessCDR(1,14938319,1,1,2) [2025-04-18 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938319', 'tblTempUsageDetail_20' ) start [2025-04-18 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938319', 'tblTempUsageDetail_20' ) end [2025-04-18 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:23:23] Production.INFO: ==20866== Releasing lock... [2025-04-18 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:23:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:24:05 [end_date_ymd] => 2025-04-18 21:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:24:05' and `end` < '2025-04-18 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-04-18 21:24:18] Production.INFO: count ==2886 [2025-04-18 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:24:05 - End Time 2025-04-18 21:24:05 [2025-04-18 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938324', 'tblTempUsageDetail_20' ) start [2025-04-18 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938324', 'tblTempUsageDetail_20' ) end [2025-04-18 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938324', 'tblTempVendorCDR_20' ) start [2025-04-18 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938324', 'tblTempVendorCDR_20' ) end [2025-04-18 21:24:19] Production.INFO: ProcessCDR(1,14938324,1,1,2) [2025-04-18 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938324', 'tblTempUsageDetail_20' ) start [2025-04-18 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938324', 'tblTempUsageDetail_20' ) end [2025-04-18 21:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:24:24] Production.INFO: ==20940== Releasing lock... [2025-04-18 21:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:24:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:25:05 [end_date_ymd] => 2025-04-18 21:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:25:05' and `end` < '2025-04-18 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-04-18 21:25:18] Production.INFO: count ==2882 [2025-04-18 21:25:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:25:05 - End Time 2025-04-18 21:25:05 [2025-04-18 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938329', 'tblTempUsageDetail_20' ) start [2025-04-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938329', 'tblTempUsageDetail_20' ) end [2025-04-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938329', 'tblTempVendorCDR_20' ) start [2025-04-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938329', 'tblTempVendorCDR_20' ) end [2025-04-18 21:25:19] Production.INFO: ProcessCDR(1,14938329,1,1,2) [2025-04-18 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938329', 'tblTempUsageDetail_20' ) start [2025-04-18 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938329', 'tblTempUsageDetail_20' ) end [2025-04-18 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:25:24] Production.INFO: ==21016== Releasing lock... [2025-04-18 21:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:25:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:26:05 [end_date_ymd] => 2025-04-18 21:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:26:05' and `end` < '2025-04-18 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-04-18 21:26:19] Production.INFO: count ==2882 [2025-04-18 21:26:20] Production.ERROR: pbx CDR StartTime 2025-04-18 18:26:05 - End Time 2025-04-18 21:26:05 [2025-04-18 21:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938334', 'tblTempUsageDetail_20' ) start [2025-04-18 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938334', 'tblTempUsageDetail_20' ) end [2025-04-18 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938334', 'tblTempVendorCDR_20' ) start [2025-04-18 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938334', 'tblTempVendorCDR_20' ) end [2025-04-18 21:26:20] Production.INFO: ProcessCDR(1,14938334,1,1,2) [2025-04-18 21:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938334', 'tblTempUsageDetail_20' ) start [2025-04-18 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938334', 'tblTempUsageDetail_20' ) end [2025-04-18 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:26:23] Production.INFO: ==21103== Releasing lock... [2025-04-18 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:26:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:27:05 [end_date_ymd] => 2025-04-18 21:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:27:05' and `end` < '2025-04-18 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-04-18 21:27:18] Production.INFO: count ==2886 [2025-04-18 21:27:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:27:05 - End Time 2025-04-18 21:27:05 [2025-04-18 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938339', 'tblTempUsageDetail_20' ) start [2025-04-18 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938339', 'tblTempUsageDetail_20' ) end [2025-04-18 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938339', 'tblTempVendorCDR_20' ) start [2025-04-18 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938339', 'tblTempVendorCDR_20' ) end [2025-04-18 21:27:19] Production.INFO: ProcessCDR(1,14938339,1,1,2) [2025-04-18 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938339', 'tblTempUsageDetail_20' ) start [2025-04-18 21:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938339', 'tblTempUsageDetail_20' ) end [2025-04-18 21:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:27:24] Production.INFO: ==21181== Releasing lock... [2025-04-18 21:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:27:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:28:04 [end_date_ymd] => 2025-04-18 21:28:04 [RateCDR] => 1 ) [2025-04-18 21:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:28:04' and `end` < '2025-04-18 21:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:28:17] Production.INFO: count ==2880 [2025-04-18 21:28:18] Production.ERROR: pbx CDR StartTime 2025-04-18 18:28:04 - End Time 2025-04-18 21:28:04 [2025-04-18 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938344', 'tblTempUsageDetail_20' ) start [2025-04-18 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938344', 'tblTempUsageDetail_20' ) end [2025-04-18 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938344', 'tblTempVendorCDR_20' ) start [2025-04-18 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938344', 'tblTempVendorCDR_20' ) end [2025-04-18 21:28:19] Production.INFO: ProcessCDR(1,14938344,1,1,2) [2025-04-18 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938344', 'tblTempUsageDetail_20' ) start [2025-04-18 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938344', 'tblTempUsageDetail_20' ) end [2025-04-18 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:28:22] Production.INFO: ==21259== Releasing lock... [2025-04-18 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:28:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:29:06 [end_date_ymd] => 2025-04-18 21:29:06 [RateCDR] => 1 ) [2025-04-18 21: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-04-18 18:29:06' and `end` < '2025-04-18 21: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-04-18 21:29:18] Production.INFO: count ==2875 [2025-04-18 21:29:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:29:06 - End Time 2025-04-18 21:29:06 [2025-04-18 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938349', 'tblTempUsageDetail_20' ) start [2025-04-18 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938349', 'tblTempUsageDetail_20' ) end [2025-04-18 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938349', 'tblTempVendorCDR_20' ) start [2025-04-18 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938349', 'tblTempVendorCDR_20' ) end [2025-04-18 21:29:20] Production.INFO: ProcessCDR(1,14938349,1,1,2) [2025-04-18 21:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938349', 'tblTempUsageDetail_20' ) start [2025-04-18 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938349', 'tblTempUsageDetail_20' ) end [2025-04-18 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:29:23] Production.INFO: ==21339== Releasing lock... [2025-04-18 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:29:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:30:06 [end_date_ymd] => 2025-04-18 21:30:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:30:06' and `end` < '2025-04-18 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-04-18 21:30:19] Production.INFO: count ==2873 [2025-04-18 21:30:20] Production.ERROR: pbx CDR StartTime 2025-04-18 18:30:06 - End Time 2025-04-18 21:30:06 [2025-04-18 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938355', 'tblTempUsageDetail_20' ) start [2025-04-18 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938355', 'tblTempUsageDetail_20' ) end [2025-04-18 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938355', 'tblTempVendorCDR_20' ) start [2025-04-18 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938355', 'tblTempVendorCDR_20' ) end [2025-04-18 21:30:20] Production.INFO: ProcessCDR(1,14938355,1,1,2) [2025-04-18 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938355', 'tblTempUsageDetail_20' ) start [2025-04-18 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938355', 'tblTempUsageDetail_20' ) end [2025-04-18 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:30:23] Production.INFO: ==21425== Releasing lock... [2025-04-18 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:30:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-18 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:31:05 [end_date_ymd] => 2025-04-18 21:31:05 [RateCDR] => 1 ) [2025-04-18 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:31:05' and `end` < '2025-04-18 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:31:17] Production.INFO: count ==2843 [2025-04-18 21:31:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:31:05 - End Time 2025-04-18 21:31:05 [2025-04-18 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938360', 'tblTempUsageDetail_20' ) start [2025-04-18 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938360', 'tblTempUsageDetail_20' ) end [2025-04-18 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938360', 'tblTempVendorCDR_20' ) start [2025-04-18 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938360', 'tblTempVendorCDR_20' ) end [2025-04-18 21:31:19] Production.INFO: ProcessCDR(1,14938360,1,1,2) [2025-04-18 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938360', 'tblTempUsageDetail_20' ) start [2025-04-18 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938360', 'tblTempUsageDetail_20' ) end [2025-04-18 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:31:22] Production.INFO: ==21507== Releasing lock... [2025-04-18 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:31:22] Production.INFO: 49 MB #Memory Used# [2025-04-18 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:32:05 [end_date_ymd] => 2025-04-18 21:32:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:32:05' and `end` < '2025-04-18 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-04-18 21:32:18] Production.INFO: count ==2840 [2025-04-18 21:32:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:32:05 - End Time 2025-04-18 21:32:05 [2025-04-18 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938365', 'tblTempUsageDetail_20' ) start [2025-04-18 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938365', 'tblTempUsageDetail_20' ) end [2025-04-18 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938365', 'tblTempVendorCDR_20' ) start [2025-04-18 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938365', 'tblTempVendorCDR_20' ) end [2025-04-18 21:32:19] Production.INFO: ProcessCDR(1,14938365,1,1,2) [2025-04-18 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938365', 'tblTempUsageDetail_20' ) start [2025-04-18 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938365', 'tblTempUsageDetail_20' ) end [2025-04-18 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:32:22] Production.INFO: ==21592== Releasing lock... [2025-04-18 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:32:22] Production.INFO: 49 MB #Memory Used# [2025-04-18 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:33:05 [end_date_ymd] => 2025-04-18 21:33:05 [RateCDR] => 1 ) [2025-04-18 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:33:05' and `end` < '2025-04-18 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:33:18] Production.INFO: count ==2828 [2025-04-18 21:33:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:33:05 - End Time 2025-04-18 21:33:05 [2025-04-18 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938370', 'tblTempUsageDetail_20' ) start [2025-04-18 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938370', 'tblTempUsageDetail_20' ) end [2025-04-18 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938370', 'tblTempVendorCDR_20' ) start [2025-04-18 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938370', 'tblTempVendorCDR_20' ) end [2025-04-18 21:33:19] Production.INFO: ProcessCDR(1,14938370,1,1,2) [2025-04-18 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938370', 'tblTempUsageDetail_20' ) start [2025-04-18 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938370', 'tblTempUsageDetail_20' ) end [2025-04-18 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:33:23] Production.INFO: ==21715== Releasing lock... [2025-04-18 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:33:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:34:05 [end_date_ymd] => 2025-04-18 21:34:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:34:05' and `end` < '2025-04-18 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-04-18 21:34:18] Production.INFO: count ==2825 [2025-04-18 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:34:05 - End Time 2025-04-18 21:34:05 [2025-04-18 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938375', 'tblTempUsageDetail_20' ) start [2025-04-18 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938375', 'tblTempUsageDetail_20' ) end [2025-04-18 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938375', 'tblTempVendorCDR_20' ) start [2025-04-18 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938375', 'tblTempVendorCDR_20' ) end [2025-04-18 21:34:19] Production.INFO: ProcessCDR(1,14938375,1,1,2) [2025-04-18 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938375', 'tblTempUsageDetail_20' ) start [2025-04-18 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938375', 'tblTempUsageDetail_20' ) end [2025-04-18 21:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:34:24] Production.INFO: ==21795== Releasing lock... [2025-04-18 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:34:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:35:05 [end_date_ymd] => 2025-04-18 21:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:35:05' and `end` < '2025-04-18 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-04-18 21:35:18] Production.INFO: count ==2819 [2025-04-18 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:35:05 - End Time 2025-04-18 21:35:05 [2025-04-18 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938380', 'tblTempUsageDetail_20' ) start [2025-04-18 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938380', 'tblTempUsageDetail_20' ) end [2025-04-18 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938380', 'tblTempVendorCDR_20' ) start [2025-04-18 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938380', 'tblTempVendorCDR_20' ) end [2025-04-18 21:35:19] Production.INFO: ProcessCDR(1,14938380,1,1,2) [2025-04-18 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938380', 'tblTempUsageDetail_20' ) start [2025-04-18 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938380', 'tblTempUsageDetail_20' ) end [2025-04-18 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:35:23] Production.INFO: ==21865== Releasing lock... [2025-04-18 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:35:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:36:05 [end_date_ymd] => 2025-04-18 21:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:36:05' and `end` < '2025-04-18 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-04-18 21:36:18] Production.INFO: count ==2817 [2025-04-18 21:36:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:36:05 - End Time 2025-04-18 21:36:05 [2025-04-18 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938385', 'tblTempUsageDetail_20' ) start [2025-04-18 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938385', 'tblTempUsageDetail_20' ) end [2025-04-18 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938385', 'tblTempVendorCDR_20' ) start [2025-04-18 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938385', 'tblTempVendorCDR_20' ) end [2025-04-18 21:36:19] Production.INFO: ProcessCDR(1,14938385,1,1,2) [2025-04-18 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938385', 'tblTempUsageDetail_20' ) start [2025-04-18 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938385', 'tblTempUsageDetail_20' ) end [2025-04-18 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:36:23] Production.INFO: ==21942== Releasing lock... [2025-04-18 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:36:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:37:05 [end_date_ymd] => 2025-04-18 21:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:37:05' and `end` < '2025-04-18 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-04-18 21:37:18] Production.INFO: count ==2816 [2025-04-18 21:37:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:37:05 - End Time 2025-04-18 21:37:05 [2025-04-18 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938390', 'tblTempUsageDetail_20' ) start [2025-04-18 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938390', 'tblTempUsageDetail_20' ) end [2025-04-18 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938390', 'tblTempVendorCDR_20' ) start [2025-04-18 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938390', 'tblTempVendorCDR_20' ) end [2025-04-18 21:37:19] Production.INFO: ProcessCDR(1,14938390,1,1,2) [2025-04-18 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938390', 'tblTempUsageDetail_20' ) start [2025-04-18 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938390', 'tblTempUsageDetail_20' ) end [2025-04-18 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:37:22] Production.INFO: ==22016== Releasing lock... [2025-04-18 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:37:22] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:38:05 [end_date_ymd] => 2025-04-18 21:38:05 [RateCDR] => 1 ) [2025-04-18 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:38:05' and `end` < '2025-04-18 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:38:18] Production.INFO: count ==2814 [2025-04-18 21:38:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:38:05 - End Time 2025-04-18 21:38:05 [2025-04-18 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938395', 'tblTempUsageDetail_20' ) start [2025-04-18 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938395', 'tblTempUsageDetail_20' ) end [2025-04-18 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938395', 'tblTempVendorCDR_20' ) start [2025-04-18 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938395', 'tblTempVendorCDR_20' ) end [2025-04-18 21:38:19] Production.INFO: ProcessCDR(1,14938395,1,1,2) [2025-04-18 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938395', 'tblTempUsageDetail_20' ) start [2025-04-18 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938395', 'tblTempUsageDetail_20' ) end [2025-04-18 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:38:23] Production.INFO: ==22095== Releasing lock... [2025-04-18 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:38:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:39:05 [end_date_ymd] => 2025-04-18 21:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:39:05' and `end` < '2025-04-18 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-04-18 21:39:18] Production.INFO: count ==2811 [2025-04-18 21:39:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:39:05 - End Time 2025-04-18 21:39:05 [2025-04-18 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938400', 'tblTempUsageDetail_20' ) start [2025-04-18 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938400', 'tblTempUsageDetail_20' ) end [2025-04-18 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938400', 'tblTempVendorCDR_20' ) start [2025-04-18 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938400', 'tblTempVendorCDR_20' ) end [2025-04-18 21:39:19] Production.INFO: ProcessCDR(1,14938400,1,1,2) [2025-04-18 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938400', 'tblTempUsageDetail_20' ) start [2025-04-18 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938400', 'tblTempUsageDetail_20' ) end [2025-04-18 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:39:22] Production.INFO: ==22169== Releasing lock... [2025-04-18 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:39:22] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:40:06 [end_date_ymd] => 2025-04-18 21:40:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:40:06' and `end` < '2025-04-18 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-04-18 21:40:18] Production.INFO: count ==2809 [2025-04-18 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:40:06 - End Time 2025-04-18 21:40:06 [2025-04-18 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938406', 'tblTempUsageDetail_20' ) start [2025-04-18 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938406', 'tblTempUsageDetail_20' ) end [2025-04-18 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938406', 'tblTempVendorCDR_20' ) start [2025-04-18 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938406', 'tblTempVendorCDR_20' ) end [2025-04-18 21:40:19] Production.INFO: ProcessCDR(1,14938406,1,1,2) [2025-04-18 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938406', 'tblTempUsageDetail_20' ) start [2025-04-18 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938406', 'tblTempUsageDetail_20' ) end [2025-04-18 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:40:24] Production.INFO: ==22248== Releasing lock... [2025-04-18 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:40:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:41:04 [end_date_ymd] => 2025-04-18 21:41:04 [RateCDR] => 1 ) [2025-04-18 21: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-04-18 18:41:04' and `end` < '2025-04-18 21: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-04-18 21:41:17] Production.INFO: count ==2786 [2025-04-18 21:41:18] Production.ERROR: pbx CDR StartTime 2025-04-18 18:41:04 - End Time 2025-04-18 21:41:04 [2025-04-18 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938411', 'tblTempUsageDetail_20' ) start [2025-04-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938411', 'tblTempUsageDetail_20' ) end [2025-04-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938411', 'tblTempVendorCDR_20' ) start [2025-04-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938411', 'tblTempVendorCDR_20' ) end [2025-04-18 21:41:18] Production.INFO: ProcessCDR(1,14938411,1,1,2) [2025-04-18 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938411', 'tblTempUsageDetail_20' ) start [2025-04-18 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938411', 'tblTempUsageDetail_20' ) end [2025-04-18 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:41:22] Production.INFO: ==22322== Releasing lock... [2025-04-18 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:41:22] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:42:05 [end_date_ymd] => 2025-04-18 21:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:42:05' and `end` < '2025-04-18 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-04-18 21:42:18] Production.INFO: count ==2773 [2025-04-18 21:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:42:05 - End Time 2025-04-18 21:42:05 [2025-04-18 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938416', 'tblTempUsageDetail_20' ) start [2025-04-18 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938416', 'tblTempUsageDetail_20' ) end [2025-04-18 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938416', 'tblTempVendorCDR_20' ) start [2025-04-18 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938416', 'tblTempVendorCDR_20' ) end [2025-04-18 21:42:20] Production.INFO: ProcessCDR(1,14938416,1,1,2) [2025-04-18 21:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938416', 'tblTempUsageDetail_20' ) start [2025-04-18 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938416', 'tblTempUsageDetail_20' ) end [2025-04-18 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:42:23] Production.INFO: ==22402== Releasing lock... [2025-04-18 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:42:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:43:04 [end_date_ymd] => 2025-04-18 21:43:04 [RateCDR] => 1 ) [2025-04-18 21:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:43:04' and `end` < '2025-04-18 21:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:43:17] Production.INFO: count ==2757 [2025-04-18 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-18 18:43:04 - End Time 2025-04-18 21:43:04 [2025-04-18 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938421', 'tblTempUsageDetail_20' ) start [2025-04-18 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938421', 'tblTempUsageDetail_20' ) end [2025-04-18 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938421', 'tblTempVendorCDR_20' ) start [2025-04-18 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938421', 'tblTempVendorCDR_20' ) end [2025-04-18 21:43:18] Production.INFO: ProcessCDR(1,14938421,1,1,2) [2025-04-18 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938421', 'tblTempUsageDetail_20' ) start [2025-04-18 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938421', 'tblTempUsageDetail_20' ) end [2025-04-18 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:43:23] Production.INFO: ==22479== Releasing lock... [2025-04-18 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:43:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:44:05 [end_date_ymd] => 2025-04-18 21:44:05 [RateCDR] => 1 ) [2025-04-18 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:44:05' and `end` < '2025-04-18 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:44:18] Production.INFO: count ==2743 [2025-04-18 21:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:44:05 - End Time 2025-04-18 21:44:05 [2025-04-18 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938426', 'tblTempUsageDetail_20' ) start [2025-04-18 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938426', 'tblTempUsageDetail_20' ) end [2025-04-18 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938426', 'tblTempVendorCDR_20' ) start [2025-04-18 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938426', 'tblTempVendorCDR_20' ) end [2025-04-18 21:44:19] Production.INFO: ProcessCDR(1,14938426,1,1,2) [2025-04-18 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938426', 'tblTempUsageDetail_20' ) start [2025-04-18 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938426', 'tblTempUsageDetail_20' ) end [2025-04-18 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:44:22] Production.INFO: ==22557== Releasing lock... [2025-04-18 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:44:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 21:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:45:06 [end_date_ymd] => 2025-04-18 21:45:06 [RateCDR] => 1 ) [2025-04-18 21: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-04-18 18:45:06' and `end` < '2025-04-18 21: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-04-18 21:45:19] Production.INFO: count ==2734 [2025-04-18 21:45:20] Production.ERROR: pbx CDR StartTime 2025-04-18 18:45:06 - End Time 2025-04-18 21:45:06 [2025-04-18 21:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938431', 'tblTempUsageDetail_20' ) start [2025-04-18 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938431', 'tblTempUsageDetail_20' ) end [2025-04-18 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938431', 'tblTempVendorCDR_20' ) start [2025-04-18 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938431', 'tblTempVendorCDR_20' ) end [2025-04-18 21:45:20] Production.INFO: ProcessCDR(1,14938431,1,1,2) [2025-04-18 21:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938431', 'tblTempUsageDetail_20' ) start [2025-04-18 21:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938431', 'tblTempUsageDetail_20' ) end [2025-04-18 21:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:45:25] Production.INFO: ==22629== Releasing lock... [2025-04-18 21:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:45:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:46:05 [end_date_ymd] => 2025-04-18 21:46:05 [RateCDR] => 1 ) [2025-04-18 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:46:05' and `end` < '2025-04-18 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:46:18] Production.INFO: count ==2725 [2025-04-18 21:46:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:46:05 - End Time 2025-04-18 21:46:05 [2025-04-18 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938436', 'tblTempUsageDetail_20' ) start [2025-04-18 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938436', 'tblTempUsageDetail_20' ) end [2025-04-18 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938436', 'tblTempVendorCDR_20' ) start [2025-04-18 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938436', 'tblTempVendorCDR_20' ) end [2025-04-18 21:46:19] Production.INFO: ProcessCDR(1,14938436,1,1,2) [2025-04-18 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938436', 'tblTempUsageDetail_20' ) start [2025-04-18 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938436', 'tblTempUsageDetail_20' ) end [2025-04-18 21:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:46:24] Production.INFO: ==22703== Releasing lock... [2025-04-18 21:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:46:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:47:05 [end_date_ymd] => 2025-04-18 21:47:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:47:05' and `end` < '2025-04-18 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-04-18 21:47:17] Production.INFO: count ==2717 [2025-04-18 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 18:47:05 - End Time 2025-04-18 21:47:05 [2025-04-18 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938441', 'tblTempUsageDetail_20' ) start [2025-04-18 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938441', 'tblTempUsageDetail_20' ) end [2025-04-18 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938441', 'tblTempVendorCDR_20' ) start [2025-04-18 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938441', 'tblTempVendorCDR_20' ) end [2025-04-18 21:47:18] Production.INFO: ProcessCDR(1,14938441,1,1,2) [2025-04-18 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938441', 'tblTempUsageDetail_20' ) start [2025-04-18 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938441', 'tblTempUsageDetail_20' ) end [2025-04-18 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:47:23] Production.INFO: ==22788== Releasing lock... [2025-04-18 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:47:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-18 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:48:05 [end_date_ymd] => 2025-04-18 21:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:48:05' and `end` < '2025-04-18 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-04-18 21:48:18] Production.INFO: count ==2703 [2025-04-18 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:48:05 - End Time 2025-04-18 21:48:05 [2025-04-18 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938446', 'tblTempUsageDetail_20' ) start [2025-04-18 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938446', 'tblTempUsageDetail_20' ) end [2025-04-18 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938446', 'tblTempVendorCDR_20' ) start [2025-04-18 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938446', 'tblTempVendorCDR_20' ) end [2025-04-18 21:48:19] Production.INFO: ProcessCDR(1,14938446,1,1,2) [2025-04-18 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938446', 'tblTempUsageDetail_20' ) start [2025-04-18 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938446', 'tblTempUsageDetail_20' ) end [2025-04-18 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:48:23] Production.INFO: ==22874== Releasing lock... [2025-04-18 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:48:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-18 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:49:05 [end_date_ymd] => 2025-04-18 21:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:49:05' and `end` < '2025-04-18 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-04-18 21:49:18] Production.INFO: count ==2692 [2025-04-18 21:49:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:49:05 - End Time 2025-04-18 21:49:05 [2025-04-18 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938451', 'tblTempUsageDetail_20' ) start [2025-04-18 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938451', 'tblTempUsageDetail_20' ) end [2025-04-18 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938451', 'tblTempVendorCDR_20' ) start [2025-04-18 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938451', 'tblTempVendorCDR_20' ) end [2025-04-18 21:49:19] Production.INFO: ProcessCDR(1,14938451,1,1,2) [2025-04-18 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938451', 'tblTempUsageDetail_20' ) start [2025-04-18 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938451', 'tblTempUsageDetail_20' ) end [2025-04-18 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:49:23] Production.INFO: ==23002== Releasing lock... [2025-04-18 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:49:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:50:06 [end_date_ymd] => 2025-04-18 21:50:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:50:06' and `end` < '2025-04-18 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-04-18 21:50:19] Production.INFO: count ==2678 [2025-04-18 21:50:20] Production.ERROR: pbx CDR StartTime 2025-04-18 18:50:06 - End Time 2025-04-18 21:50:06 [2025-04-18 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938457', 'tblTempUsageDetail_20' ) start [2025-04-18 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938457', 'tblTempUsageDetail_20' ) end [2025-04-18 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938457', 'tblTempVendorCDR_20' ) start [2025-04-18 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938457', 'tblTempVendorCDR_20' ) end [2025-04-18 21:50:20] Production.INFO: ProcessCDR(1,14938457,1,1,2) [2025-04-18 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938457', 'tblTempUsageDetail_20' ) start [2025-04-18 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938457', 'tblTempUsageDetail_20' ) end [2025-04-18 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:50:23] Production.INFO: ==23091== Releasing lock... [2025-04-18 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:50:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:51:06 [end_date_ymd] => 2025-04-18 21:51:06 [RateCDR] => 1 ) [2025-04-18 21: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-04-18 18:51:06' and `end` < '2025-04-18 21: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-04-18 21:51:19] Production.INFO: count ==2694 [2025-04-18 21:51:20] Production.ERROR: pbx CDR StartTime 2025-04-18 18:51:06 - End Time 2025-04-18 21:51:06 [2025-04-18 21:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938462', 'tblTempUsageDetail_20' ) start [2025-04-18 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938462', 'tblTempUsageDetail_20' ) end [2025-04-18 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938462', 'tblTempVendorCDR_20' ) start [2025-04-18 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938462', 'tblTempVendorCDR_20' ) end [2025-04-18 21:51:20] Production.INFO: ProcessCDR(1,14938462,1,1,2) [2025-04-18 21:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938462', 'tblTempUsageDetail_20' ) start [2025-04-18 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938462', 'tblTempUsageDetail_20' ) end [2025-04-18 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:51:23] Production.INFO: ==23174== Releasing lock... [2025-04-18 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:51:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:52:05 [end_date_ymd] => 2025-04-18 21:52:05 [RateCDR] => 1 ) [2025-04-18 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:52:05' and `end` < '2025-04-18 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:52:18] Production.INFO: count ==2687 [2025-04-18 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:52:05 - End Time 2025-04-18 21:52:05 [2025-04-18 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938467', 'tblTempUsageDetail_20' ) start [2025-04-18 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938467', 'tblTempUsageDetail_20' ) end [2025-04-18 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938467', 'tblTempVendorCDR_20' ) start [2025-04-18 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938467', 'tblTempVendorCDR_20' ) end [2025-04-18 21:52:19] Production.INFO: ProcessCDR(1,14938467,1,1,2) [2025-04-18 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938467', 'tblTempUsageDetail_20' ) start [2025-04-18 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938467', 'tblTempUsageDetail_20' ) end [2025-04-18 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:52:22] Production.INFO: ==23256== Releasing lock... [2025-04-18 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:52:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:53:05 [end_date_ymd] => 2025-04-18 21:53:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:53:05' and `end` < '2025-04-18 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-04-18 21:53:18] Production.INFO: count ==2702 [2025-04-18 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:53:05 - End Time 2025-04-18 21:53:05 [2025-04-18 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938472', 'tblTempUsageDetail_20' ) start [2025-04-18 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938472', 'tblTempUsageDetail_20' ) end [2025-04-18 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938472', 'tblTempVendorCDR_20' ) start [2025-04-18 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938472', 'tblTempVendorCDR_20' ) end [2025-04-18 21:53:19] Production.INFO: ProcessCDR(1,14938472,1,1,2) [2025-04-18 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938472', 'tblTempUsageDetail_20' ) start [2025-04-18 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938472', 'tblTempUsageDetail_20' ) end [2025-04-18 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:53:22] Production.INFO: ==23345== Releasing lock... [2025-04-18 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:53:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:54:05 [end_date_ymd] => 2025-04-18 21:54:05 [RateCDR] => 1 ) [2025-04-18 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 18:54:05' and `end` < '2025-04-18 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 21:54:17] Production.INFO: count ==2701 [2025-04-18 21:54:18] Production.ERROR: pbx CDR StartTime 2025-04-18 18:54:05 - End Time 2025-04-18 21:54:05 [2025-04-18 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938477', 'tblTempUsageDetail_20' ) start [2025-04-18 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938477', 'tblTempUsageDetail_20' ) end [2025-04-18 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938477', 'tblTempVendorCDR_20' ) start [2025-04-18 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938477', 'tblTempVendorCDR_20' ) end [2025-04-18 21:54:18] Production.INFO: ProcessCDR(1,14938477,1,1,2) [2025-04-18 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938477', 'tblTempUsageDetail_20' ) start [2025-04-18 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938477', 'tblTempUsageDetail_20' ) end [2025-04-18 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:54:22] Production.INFO: ==23425== Releasing lock... [2025-04-18 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:54:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:55:05 [end_date_ymd] => 2025-04-18 21:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:55:05' and `end` < '2025-04-18 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-04-18 21:55:19] Production.INFO: count ==2691 [2025-04-18 21:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:55:05 - End Time 2025-04-18 21:55:05 [2025-04-18 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938482', 'tblTempUsageDetail_20' ) start [2025-04-18 21:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938482', 'tblTempUsageDetail_20' ) end [2025-04-18 21:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938482', 'tblTempVendorCDR_20' ) start [2025-04-18 21:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938482', 'tblTempVendorCDR_20' ) end [2025-04-18 21:55:20] Production.INFO: ProcessCDR(1,14938482,1,1,2) [2025-04-18 21:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938482', 'tblTempUsageDetail_20' ) start [2025-04-18 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938482', 'tblTempUsageDetail_20' ) end [2025-04-18 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:55:23] Production.INFO: ==23503== Releasing lock... [2025-04-18 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:55:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:56:06 [end_date_ymd] => 2025-04-18 21:56:06 [RateCDR] => 1 ) [2025-04-18 21: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-04-18 18:56:06' and `end` < '2025-04-18 21: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-04-18 21:56:19] Production.INFO: count ==2670 [2025-04-18 21:56:20] Production.ERROR: pbx CDR StartTime 2025-04-18 18:56:06 - End Time 2025-04-18 21:56:06 [2025-04-18 21:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938487', 'tblTempUsageDetail_20' ) start [2025-04-18 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938487', 'tblTempUsageDetail_20' ) end [2025-04-18 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938487', 'tblTempVendorCDR_20' ) start [2025-04-18 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938487', 'tblTempVendorCDR_20' ) end [2025-04-18 21:56:20] Production.INFO: ProcessCDR(1,14938487,1,1,2) [2025-04-18 21:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938487', 'tblTempUsageDetail_20' ) start [2025-04-18 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938487', 'tblTempUsageDetail_20' ) end [2025-04-18 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:56:23] Production.INFO: ==23580== Releasing lock... [2025-04-18 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:56:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-18 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:57:05 [end_date_ymd] => 2025-04-18 21:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:57:05' and `end` < '2025-04-18 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-04-18 21:57:18] Production.INFO: count ==2649 [2025-04-18 21:57:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:57:05 - End Time 2025-04-18 21:57:05 [2025-04-18 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938492', 'tblTempUsageDetail_20' ) start [2025-04-18 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938492', 'tblTempUsageDetail_20' ) end [2025-04-18 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938492', 'tblTempVendorCDR_20' ) start [2025-04-18 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938492', 'tblTempVendorCDR_20' ) end [2025-04-18 21:57:19] Production.INFO: ProcessCDR(1,14938492,1,1,2) [2025-04-18 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938492', 'tblTempUsageDetail_20' ) start [2025-04-18 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938492', 'tblTempUsageDetail_20' ) end [2025-04-18 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:57:22] Production.INFO: ==23653== Releasing lock... [2025-04-18 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:57:22] Production.INFO: 48 MB #Memory Used# [2025-04-18 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:58:05 [end_date_ymd] => 2025-04-18 21:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:58:05' and `end` < '2025-04-18 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-04-18 21:58:18] Production.INFO: count ==2632 [2025-04-18 21:58:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:58:05 - End Time 2025-04-18 21:58:05 [2025-04-18 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938497', 'tblTempUsageDetail_20' ) start [2025-04-18 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938497', 'tblTempUsageDetail_20' ) end [2025-04-18 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938497', 'tblTempVendorCDR_20' ) start [2025-04-18 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938497', 'tblTempVendorCDR_20' ) end [2025-04-18 21:58:19] Production.INFO: ProcessCDR(1,14938497,1,1,2) [2025-04-18 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938497', 'tblTempUsageDetail_20' ) start [2025-04-18 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938497', 'tblTempUsageDetail_20' ) end [2025-04-18 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:58:23] Production.INFO: ==23728== Releasing lock... [2025-04-18 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:58:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-18 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 18:59:05 [end_date_ymd] => 2025-04-18 21:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 18:59:05' and `end` < '2025-04-18 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-04-18 21:59:18] Production.INFO: count ==2610 [2025-04-18 21:59:19] Production.ERROR: pbx CDR StartTime 2025-04-18 18:59:05 - End Time 2025-04-18 21:59:05 [2025-04-18 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938502', 'tblTempUsageDetail_20' ) start [2025-04-18 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938502', 'tblTempUsageDetail_20' ) end [2025-04-18 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938502', 'tblTempVendorCDR_20' ) start [2025-04-18 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938502', 'tblTempVendorCDR_20' ) end [2025-04-18 21:59:19] Production.INFO: ProcessCDR(1,14938502,1,1,2) [2025-04-18 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938502', 'tblTempUsageDetail_20' ) start [2025-04-18 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938502', 'tblTempUsageDetail_20' ) end [2025-04-18 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 21:59:22] Production.INFO: ==23802== Releasing lock... [2025-04-18 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 21:59:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-18 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:00:06 [end_date_ymd] => 2025-04-18 22:00:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:00:06' and `end` < '2025-04-18 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-04-18 22:00:19] Production.INFO: count ==2602 [2025-04-18 22:00:20] Production.ERROR: pbx CDR StartTime 2025-04-18 19:00:06 - End Time 2025-04-18 22:00:06 [2025-04-18 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938508', 'tblTempUsageDetail_20' ) start [2025-04-18 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938508', 'tblTempUsageDetail_20' ) end [2025-04-18 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938508', 'tblTempVendorCDR_20' ) start [2025-04-18 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938508', 'tblTempVendorCDR_20' ) end [2025-04-18 22:00:20] Production.INFO: ProcessCDR(1,14938508,1,1,2) [2025-04-18 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938508', 'tblTempUsageDetail_20' ) start [2025-04-18 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938508', 'tblTempUsageDetail_20' ) end [2025-04-18 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:00:24] Production.INFO: ==23880== Releasing lock... [2025-04-18 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:00:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-18 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:01:05 [end_date_ymd] => 2025-04-18 22:01:05 [RateCDR] => 1 ) [2025-04-18 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:01:05' and `end` < '2025-04-18 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:01:17] Production.INFO: count ==2592 [2025-04-18 22:01:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:01:05 - End Time 2025-04-18 22:01:05 [2025-04-18 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938513', 'tblTempUsageDetail_20' ) start [2025-04-18 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938513', 'tblTempUsageDetail_20' ) end [2025-04-18 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938513', 'tblTempVendorCDR_20' ) start [2025-04-18 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938513', 'tblTempVendorCDR_20' ) end [2025-04-18 22:01:18] Production.INFO: ProcessCDR(1,14938513,1,1,2) [2025-04-18 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938513', 'tblTempUsageDetail_20' ) start [2025-04-18 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938513', 'tblTempUsageDetail_20' ) end [2025-04-18 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:01:23] Production.INFO: ==23969== Releasing lock... [2025-04-18 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:01:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-18 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:02:05 [end_date_ymd] => 2025-04-18 22:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:02:05' and `end` < '2025-04-18 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-04-18 22:02:18] Production.INFO: count ==2570 [2025-04-18 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:02:05 - End Time 2025-04-18 22:02:05 [2025-04-18 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938518', 'tblTempUsageDetail_20' ) start [2025-04-18 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938518', 'tblTempUsageDetail_20' ) end [2025-04-18 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938518', 'tblTempVendorCDR_20' ) start [2025-04-18 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938518', 'tblTempVendorCDR_20' ) end [2025-04-18 22:02:19] Production.INFO: ProcessCDR(1,14938518,1,1,2) [2025-04-18 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938518', 'tblTempUsageDetail_20' ) start [2025-04-18 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938518', 'tblTempUsageDetail_20' ) end [2025-04-18 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:02:22] Production.INFO: ==24043== Releasing lock... [2025-04-18 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:02:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-18 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:03:05 [end_date_ymd] => 2025-04-18 22:03:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:03:05' and `end` < '2025-04-18 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-04-18 22:03:18] Production.INFO: count ==2545 [2025-04-18 22:03:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:03:05 - End Time 2025-04-18 22:03:05 [2025-04-18 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938523', 'tblTempUsageDetail_20' ) start [2025-04-18 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938523', 'tblTempUsageDetail_20' ) end [2025-04-18 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938523', 'tblTempVendorCDR_20' ) start [2025-04-18 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938523', 'tblTempVendorCDR_20' ) end [2025-04-18 22:03:18] Production.INFO: ProcessCDR(1,14938523,1,1,2) [2025-04-18 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938523', 'tblTempUsageDetail_20' ) start [2025-04-18 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938523', 'tblTempUsageDetail_20' ) end [2025-04-18 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:03:22] Production.INFO: ==24116== Releasing lock... [2025-04-18 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:03:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-18 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:04:05 [end_date_ymd] => 2025-04-18 22:04:05 [RateCDR] => 1 ) [2025-04-18 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:04:05' and `end` < '2025-04-18 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:04:18] Production.INFO: count ==2518 [2025-04-18 22:04:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:04:05 - End Time 2025-04-18 22:04:05 [2025-04-18 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938528', 'tblTempUsageDetail_20' ) start [2025-04-18 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938528', 'tblTempUsageDetail_20' ) end [2025-04-18 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938528', 'tblTempVendorCDR_20' ) start [2025-04-18 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938528', 'tblTempVendorCDR_20' ) end [2025-04-18 22:04:19] Production.INFO: ProcessCDR(1,14938528,1,1,2) [2025-04-18 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938528', 'tblTempUsageDetail_20' ) start [2025-04-18 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938528', 'tblTempUsageDetail_20' ) end [2025-04-18 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:04:22] Production.INFO: ==24229== Releasing lock... [2025-04-18 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:04:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-18 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:05:05 [end_date_ymd] => 2025-04-18 22:05:05 [RateCDR] => 1 ) [2025-04-18 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:05:05' and `end` < '2025-04-18 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:05:18] Production.INFO: count ==2496 [2025-04-18 22:05:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:05:05 - End Time 2025-04-18 22:05:05 [2025-04-18 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938533', 'tblTempUsageDetail_20' ) start [2025-04-18 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938533', 'tblTempUsageDetail_20' ) end [2025-04-18 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938533', 'tblTempVendorCDR_20' ) start [2025-04-18 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938533', 'tblTempVendorCDR_20' ) end [2025-04-18 22:05:19] Production.INFO: ProcessCDR(1,14938533,1,1,2) [2025-04-18 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938533', 'tblTempUsageDetail_20' ) start [2025-04-18 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938533', 'tblTempUsageDetail_20' ) end [2025-04-18 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:05:22] Production.INFO: ==24305== Releasing lock... [2025-04-18 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:05:22] Production.INFO: 47 MB #Memory Used# [2025-04-18 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:06:05 [end_date_ymd] => 2025-04-18 22:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:06:05' and `end` < '2025-04-18 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-04-18 22:06:18] Production.INFO: count ==2472 [2025-04-18 22:06:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:06:05 - End Time 2025-04-18 22:06:05 [2025-04-18 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938538', 'tblTempUsageDetail_20' ) start [2025-04-18 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938538', 'tblTempUsageDetail_20' ) end [2025-04-18 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938538', 'tblTempVendorCDR_20' ) start [2025-04-18 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938538', 'tblTempVendorCDR_20' ) end [2025-04-18 22:06:19] Production.INFO: ProcessCDR(1,14938538,1,1,2) [2025-04-18 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938538', 'tblTempUsageDetail_20' ) start [2025-04-18 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938538', 'tblTempUsageDetail_20' ) end [2025-04-18 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:06:22] Production.INFO: ==24381== Releasing lock... [2025-04-18 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:06:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-18 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:07:05 [end_date_ymd] => 2025-04-18 22:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:07:05' and `end` < '2025-04-18 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-04-18 22:07:17] Production.INFO: count ==2444 [2025-04-18 22:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:07:05 - End Time 2025-04-18 22:07:05 [2025-04-18 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938543', 'tblTempUsageDetail_20' ) start [2025-04-18 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938543', 'tblTempUsageDetail_20' ) end [2025-04-18 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938543', 'tblTempVendorCDR_20' ) start [2025-04-18 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938543', 'tblTempVendorCDR_20' ) end [2025-04-18 22:07:18] Production.INFO: ProcessCDR(1,14938543,1,1,2) [2025-04-18 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938543', 'tblTempUsageDetail_20' ) start [2025-04-18 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938543', 'tblTempUsageDetail_20' ) end [2025-04-18 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:07:21] Production.INFO: ==24451== Releasing lock... [2025-04-18 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:07:21] Production.INFO: 46.5 MB #Memory Used# [2025-04-18 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:08:04 [end_date_ymd] => 2025-04-18 22:08:04 [RateCDR] => 1 ) [2025-04-18 22: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-04-18 19:08:04' and `end` < '2025-04-18 22: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-04-18 22:08:17] Production.INFO: count ==2422 [2025-04-18 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:08:04 - End Time 2025-04-18 22:08:04 [2025-04-18 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938548', 'tblTempUsageDetail_20' ) start [2025-04-18 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938548', 'tblTempUsageDetail_20' ) end [2025-04-18 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938548', 'tblTempVendorCDR_20' ) start [2025-04-18 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938548', 'tblTempVendorCDR_20' ) end [2025-04-18 22:08:18] Production.INFO: ProcessCDR(1,14938548,1,1,2) [2025-04-18 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938548', 'tblTempUsageDetail_20' ) start [2025-04-18 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938548', 'tblTempUsageDetail_20' ) end [2025-04-18 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:08:21] Production.INFO: ==24525== Releasing lock... [2025-04-18 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:08:21] Production.INFO: 46.5 MB #Memory Used# [2025-04-18 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:09:05 [end_date_ymd] => 2025-04-18 22:09:05 [RateCDR] => 1 ) [2025-04-18 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:09:05' and `end` < '2025-04-18 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:09:18] Production.INFO: count ==2393 [2025-04-18 22:09:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:09:05 - End Time 2025-04-18 22:09:05 [2025-04-18 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938553', 'tblTempUsageDetail_20' ) start [2025-04-18 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938553', 'tblTempUsageDetail_20' ) end [2025-04-18 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938553', 'tblTempVendorCDR_20' ) start [2025-04-18 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938553', 'tblTempVendorCDR_20' ) end [2025-04-18 22:09:19] Production.INFO: ProcessCDR(1,14938553,1,1,2) [2025-04-18 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938553', 'tblTempUsageDetail_20' ) start [2025-04-18 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938553', 'tblTempUsageDetail_20' ) end [2025-04-18 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:09:22] Production.INFO: ==24600== Releasing lock... [2025-04-18 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:09:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-18 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:10:05 [end_date_ymd] => 2025-04-18 22:10:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:10:05' and `end` < '2025-04-18 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-04-18 22:10:17] Production.INFO: count ==2370 [2025-04-18 22:10:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:10:05 - End Time 2025-04-18 22:10:05 [2025-04-18 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938558', 'tblTempUsageDetail_20' ) start [2025-04-18 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938558', 'tblTempUsageDetail_20' ) end [2025-04-18 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938558', 'tblTempVendorCDR_20' ) start [2025-04-18 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938558', 'tblTempVendorCDR_20' ) end [2025-04-18 22:10:18] Production.INFO: ProcessCDR(1,14938558,1,1,2) [2025-04-18 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938558', 'tblTempUsageDetail_20' ) start [2025-04-18 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938558', 'tblTempUsageDetail_20' ) end [2025-04-18 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:10:22] Production.INFO: ==24678== Releasing lock... [2025-04-18 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:10:22] Production.INFO: 46 MB #Memory Used# [2025-04-18 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:11:05 [end_date_ymd] => 2025-04-18 22:11:05 [RateCDR] => 1 ) [2025-04-18 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:11:05' and `end` < '2025-04-18 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:11:18] Production.INFO: count ==2281 [2025-04-18 22:11:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:11:05 - End Time 2025-04-18 22:11:05 [2025-04-18 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938564', 'tblTempUsageDetail_20' ) start [2025-04-18 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938564', 'tblTempUsageDetail_20' ) end [2025-04-18 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938564', 'tblTempVendorCDR_20' ) start [2025-04-18 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938564', 'tblTempVendorCDR_20' ) end [2025-04-18 22:11:19] Production.INFO: ProcessCDR(1,14938564,1,1,2) [2025-04-18 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938564', 'tblTempUsageDetail_20' ) start [2025-04-18 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938564', 'tblTempUsageDetail_20' ) end [2025-04-18 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:11:22] Production.INFO: ==24759== Releasing lock... [2025-04-18 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:11:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:12:05 [end_date_ymd] => 2025-04-18 22:12:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:12:05' and `end` < '2025-04-18 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-04-18 22:12:18] Production.INFO: count ==2277 [2025-04-18 22:12:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:12:05 - End Time 2025-04-18 22:12:05 [2025-04-18 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938569', 'tblTempUsageDetail_20' ) start [2025-04-18 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938569', 'tblTempUsageDetail_20' ) end [2025-04-18 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938569', 'tblTempVendorCDR_20' ) start [2025-04-18 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938569', 'tblTempVendorCDR_20' ) end [2025-04-18 22:12:19] Production.INFO: ProcessCDR(1,14938569,1,1,2) [2025-04-18 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938569', 'tblTempUsageDetail_20' ) start [2025-04-18 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938569', 'tblTempUsageDetail_20' ) end [2025-04-18 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:12:22] Production.INFO: ==24831== Releasing lock... [2025-04-18 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:12:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:13:04 [end_date_ymd] => 2025-04-18 22:13:04 [RateCDR] => 1 ) [2025-04-18 22:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:13:04' and `end` < '2025-04-18 22:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:13:17] Production.INFO: count ==2270 [2025-04-18 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:13:04 - End Time 2025-04-18 22:13:04 [2025-04-18 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938574', 'tblTempUsageDetail_20' ) start [2025-04-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938574', 'tblTempUsageDetail_20' ) end [2025-04-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938574', 'tblTempVendorCDR_20' ) start [2025-04-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938574', 'tblTempVendorCDR_20' ) end [2025-04-18 22:13:18] Production.INFO: ProcessCDR(1,14938574,1,1,2) [2025-04-18 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938574', 'tblTempUsageDetail_20' ) start [2025-04-18 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938574', 'tblTempUsageDetail_20' ) end [2025-04-18 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:13:22] Production.INFO: ==24904== Releasing lock... [2025-04-18 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:13:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:14:05 [end_date_ymd] => 2025-04-18 22:14:05 [RateCDR] => 1 ) [2025-04-18 22: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-04-18 19:14:05' and `end` < '2025-04-18 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-04-18 22:14:18] Production.INFO: count ==2268 [2025-04-18 22:14:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:14:05 - End Time 2025-04-18 22:14:05 [2025-04-18 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938579', 'tblTempUsageDetail_20' ) start [2025-04-18 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938579', 'tblTempUsageDetail_20' ) end [2025-04-18 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938579', 'tblTempVendorCDR_20' ) start [2025-04-18 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938579', 'tblTempVendorCDR_20' ) end [2025-04-18 22:14:19] Production.INFO: ProcessCDR(1,14938579,1,1,2) [2025-04-18 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938579', 'tblTempUsageDetail_20' ) start [2025-04-18 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938579', 'tblTempUsageDetail_20' ) end [2025-04-18 22:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:14:24] Production.INFO: ==24982== Releasing lock... [2025-04-18 22:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:14:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-18 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:15:05 [end_date_ymd] => 2025-04-18 22:15:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:15:05' and `end` < '2025-04-18 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-04-18 22:15:18] Production.INFO: count ==2260 [2025-04-18 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:15:05 - End Time 2025-04-18 22:15:05 [2025-04-18 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938584', 'tblTempUsageDetail_20' ) start [2025-04-18 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938584', 'tblTempUsageDetail_20' ) end [2025-04-18 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938584', 'tblTempVendorCDR_20' ) start [2025-04-18 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938584', 'tblTempVendorCDR_20' ) end [2025-04-18 22:15:18] Production.INFO: ProcessCDR(1,14938584,1,1,2) [2025-04-18 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938584', 'tblTempUsageDetail_20' ) start [2025-04-18 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938584', 'tblTempUsageDetail_20' ) end [2025-04-18 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:15:22] Production.INFO: ==25054== Releasing lock... [2025-04-18 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:15:22] Production.INFO: 45 MB #Memory Used# [2025-04-18 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:16:05 [end_date_ymd] => 2025-04-18 22:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:16:05' and `end` < '2025-04-18 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-04-18 22:16:18] Production.INFO: count ==2255 [2025-04-18 22:16:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:16:05 - End Time 2025-04-18 22:16:05 [2025-04-18 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938589', 'tblTempUsageDetail_20' ) start [2025-04-18 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938589', 'tblTempUsageDetail_20' ) end [2025-04-18 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938589', 'tblTempVendorCDR_20' ) start [2025-04-18 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938589', 'tblTempVendorCDR_20' ) end [2025-04-18 22:16:19] Production.INFO: ProcessCDR(1,14938589,1,1,2) [2025-04-18 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938589', 'tblTempUsageDetail_20' ) start [2025-04-18 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938589', 'tblTempUsageDetail_20' ) end [2025-04-18 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:16:22] Production.INFO: ==25129== Releasing lock... [2025-04-18 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:16:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:17:04 [end_date_ymd] => 2025-04-18 22:17:04 [RateCDR] => 1 ) [2025-04-18 22: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-04-18 19:17:04' and `end` < '2025-04-18 22: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-04-18 22:17:17] Production.INFO: count ==2251 [2025-04-18 22:17:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:17:04 - End Time 2025-04-18 22:17:04 [2025-04-18 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938594', 'tblTempUsageDetail_20' ) start [2025-04-18 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938594', 'tblTempUsageDetail_20' ) end [2025-04-18 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938594', 'tblTempVendorCDR_20' ) start [2025-04-18 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938594', 'tblTempVendorCDR_20' ) end [2025-04-18 22:17:18] Production.INFO: ProcessCDR(1,14938594,1,1,2) [2025-04-18 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938594', 'tblTempUsageDetail_20' ) start [2025-04-18 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938594', 'tblTempUsageDetail_20' ) end [2025-04-18 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:17:21] Production.INFO: ==25201== Releasing lock... [2025-04-18 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:17:21] Production.INFO: 45 MB #Memory Used# [2025-04-18 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:18:05 [end_date_ymd] => 2025-04-18 22:18:05 [RateCDR] => 1 ) [2025-04-18 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:18:05' and `end` < '2025-04-18 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:18:18] Production.INFO: count ==2284 [2025-04-18 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:18:05 - End Time 2025-04-18 22:18:05 [2025-04-18 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938599', 'tblTempUsageDetail_20' ) start [2025-04-18 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938599', 'tblTempUsageDetail_20' ) end [2025-04-18 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938599', 'tblTempVendorCDR_20' ) start [2025-04-18 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938599', 'tblTempVendorCDR_20' ) end [2025-04-18 22:18:19] Production.INFO: ProcessCDR(1,14938599,1,1,2) [2025-04-18 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938599', 'tblTempUsageDetail_20' ) start [2025-04-18 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938599', 'tblTempUsageDetail_20' ) end [2025-04-18 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:18:22] Production.INFO: ==25272== Releasing lock... [2025-04-18 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:18:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:19:05 [end_date_ymd] => 2025-04-18 22:19:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:19:05' and `end` < '2025-04-18 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-04-18 22:19:18] Production.INFO: count ==2285 [2025-04-18 22:19:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:19:05 - End Time 2025-04-18 22:19:05 [2025-04-18 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938604', 'tblTempUsageDetail_20' ) start [2025-04-18 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938604', 'tblTempUsageDetail_20' ) end [2025-04-18 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938604', 'tblTempVendorCDR_20' ) start [2025-04-18 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938604', 'tblTempVendorCDR_20' ) end [2025-04-18 22:19:19] Production.INFO: ProcessCDR(1,14938604,1,1,2) [2025-04-18 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938604', 'tblTempUsageDetail_20' ) start [2025-04-18 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938604', 'tblTempUsageDetail_20' ) end [2025-04-18 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:19:22] Production.INFO: ==25349== Releasing lock... [2025-04-18 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:19:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-18 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:20:06 [end_date_ymd] => 2025-04-18 22:20:06 [RateCDR] => 1 ) [2025-04-18 22: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-04-18 19:20:06' and `end` < '2025-04-18 22: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-04-18 22:20:18] Production.INFO: count ==2278 [2025-04-18 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:20:06 - End Time 2025-04-18 22:20:06 [2025-04-18 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938610', 'tblTempUsageDetail_20' ) start [2025-04-18 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938610', 'tblTempUsageDetail_20' ) end [2025-04-18 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938610', 'tblTempVendorCDR_20' ) start [2025-04-18 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938610', 'tblTempVendorCDR_20' ) end [2025-04-18 22:20:19] Production.INFO: ProcessCDR(1,14938610,1,1,2) [2025-04-18 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938610', 'tblTempUsageDetail_20' ) start [2025-04-18 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938610', 'tblTempUsageDetail_20' ) end [2025-04-18 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:20:22] Production.INFO: ==25463== Releasing lock... [2025-04-18 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:20:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:21:05 [end_date_ymd] => 2025-04-18 22:21:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:21:05' and `end` < '2025-04-18 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-04-18 22:21:18] Production.INFO: count ==2201 [2025-04-18 22:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:21:05 - End Time 2025-04-18 22:21:05 [2025-04-18 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938615', 'tblTempUsageDetail_20' ) start [2025-04-18 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938615', 'tblTempUsageDetail_20' ) end [2025-04-18 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938615', 'tblTempVendorCDR_20' ) start [2025-04-18 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938615', 'tblTempVendorCDR_20' ) end [2025-04-18 22:21:19] Production.INFO: ProcessCDR(1,14938615,1,1,2) [2025-04-18 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938615', 'tblTempUsageDetail_20' ) start [2025-04-18 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938615', 'tblTempUsageDetail_20' ) end [2025-04-18 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:21:22] Production.INFO: ==25539== Releasing lock... [2025-04-18 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:21:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:22:05 [end_date_ymd] => 2025-04-18 22:22:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:22:05' and `end` < '2025-04-18 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-04-18 22:22:18] Production.INFO: count ==2183 [2025-04-18 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:22:05 - End Time 2025-04-18 22:22:05 [2025-04-18 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938620', 'tblTempUsageDetail_20' ) start [2025-04-18 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938620', 'tblTempUsageDetail_20' ) end [2025-04-18 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938620', 'tblTempVendorCDR_20' ) start [2025-04-18 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938620', 'tblTempVendorCDR_20' ) end [2025-04-18 22:22:18] Production.INFO: ProcessCDR(1,14938620,1,1,2) [2025-04-18 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938620', 'tblTempUsageDetail_20' ) start [2025-04-18 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938620', 'tblTempUsageDetail_20' ) end [2025-04-18 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:22:23] Production.INFO: ==25613== Releasing lock... [2025-04-18 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:22:23] Production.INFO: 45 MB #Memory Used# [2025-04-18 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:23:05 [end_date_ymd] => 2025-04-18 22:23:05 [RateCDR] => 1 ) [2025-04-18 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:23:05' and `end` < '2025-04-18 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:23:18] Production.INFO: count ==2180 [2025-04-18 22:23:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:23:05 - End Time 2025-04-18 22:23:05 [2025-04-18 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938625', 'tblTempUsageDetail_20' ) start [2025-04-18 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938625', 'tblTempUsageDetail_20' ) end [2025-04-18 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938625', 'tblTempVendorCDR_20' ) start [2025-04-18 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938625', 'tblTempVendorCDR_20' ) end [2025-04-18 22:23:19] Production.INFO: ProcessCDR(1,14938625,1,1,2) [2025-04-18 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938625', 'tblTempUsageDetail_20' ) start [2025-04-18 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938625', 'tblTempUsageDetail_20' ) end [2025-04-18 22:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:23:24] Production.INFO: ==25687== Releasing lock... [2025-04-18 22:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:23:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:24:05 [end_date_ymd] => 2025-04-18 22:24:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:24:05' and `end` < '2025-04-18 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-04-18 22:24:18] Production.INFO: count ==2178 [2025-04-18 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:24:05 - End Time 2025-04-18 22:24:05 [2025-04-18 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938630', 'tblTempUsageDetail_20' ) start [2025-04-18 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938630', 'tblTempUsageDetail_20' ) end [2025-04-18 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938630', 'tblTempVendorCDR_20' ) start [2025-04-18 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938630', 'tblTempVendorCDR_20' ) end [2025-04-18 22:24:19] Production.INFO: ProcessCDR(1,14938630,1,1,2) [2025-04-18 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938630', 'tblTempUsageDetail_20' ) start [2025-04-18 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938630', 'tblTempUsageDetail_20' ) end [2025-04-18 22:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:24:24] Production.INFO: ==25758== Releasing lock... [2025-04-18 22:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:24:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:25:05 [end_date_ymd] => 2025-04-18 22:25:05 [RateCDR] => 1 ) [2025-04-18 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:25:05' and `end` < '2025-04-18 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:25:18] Production.INFO: count ==2173 [2025-04-18 22:25:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:25:05 - End Time 2025-04-18 22:25:05 [2025-04-18 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938635', 'tblTempUsageDetail_20' ) start [2025-04-18 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938635', 'tblTempUsageDetail_20' ) end [2025-04-18 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938635', 'tblTempVendorCDR_20' ) start [2025-04-18 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938635', 'tblTempVendorCDR_20' ) end [2025-04-18 22:25:19] Production.INFO: ProcessCDR(1,14938635,1,1,2) [2025-04-18 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938635', 'tblTempUsageDetail_20' ) start [2025-04-18 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938635', 'tblTempUsageDetail_20' ) end [2025-04-18 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:25:22] Production.INFO: ==25831== Releasing lock... [2025-04-18 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:25:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:26:05 [end_date_ymd] => 2025-04-18 22:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:26:05' and `end` < '2025-04-18 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-04-18 22:26:18] Production.INFO: count ==2221 [2025-04-18 22:26:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:26:05 - End Time 2025-04-18 22:26:05 [2025-04-18 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938640', 'tblTempUsageDetail_20' ) start [2025-04-18 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938640', 'tblTempUsageDetail_20' ) end [2025-04-18 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938640', 'tblTempVendorCDR_20' ) start [2025-04-18 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938640', 'tblTempVendorCDR_20' ) end [2025-04-18 22:26:19] Production.INFO: ProcessCDR(1,14938640,1,1,2) [2025-04-18 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938640', 'tblTempUsageDetail_20' ) start [2025-04-18 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938640', 'tblTempUsageDetail_20' ) end [2025-04-18 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:26:22] Production.INFO: ==25904== Releasing lock... [2025-04-18 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:26:22] Production.INFO: 45 MB #Memory Used# [2025-04-18 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:27:05 [end_date_ymd] => 2025-04-18 22:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:27:05' and `end` < '2025-04-18 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-04-18 22:27:17] Production.INFO: count ==2220 [2025-04-18 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:27:05 - End Time 2025-04-18 22:27:05 [2025-04-18 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938645', 'tblTempUsageDetail_20' ) start [2025-04-18 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938645', 'tblTempUsageDetail_20' ) end [2025-04-18 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938645', 'tblTempVendorCDR_20' ) start [2025-04-18 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938645', 'tblTempVendorCDR_20' ) end [2025-04-18 22:27:18] Production.INFO: ProcessCDR(1,14938645,1,1,2) [2025-04-18 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938645', 'tblTempUsageDetail_20' ) start [2025-04-18 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938645', 'tblTempUsageDetail_20' ) end [2025-04-18 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:27:22] Production.INFO: ==25979== Releasing lock... [2025-04-18 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:27:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:28:05 [end_date_ymd] => 2025-04-18 22:28:05 [RateCDR] => 1 ) [2025-04-18 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:28:05' and `end` < '2025-04-18 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:28:18] Production.INFO: count ==2223 [2025-04-18 22:28:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:28:05 - End Time 2025-04-18 22:28:05 [2025-04-18 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938650', 'tblTempUsageDetail_20' ) start [2025-04-18 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938650', 'tblTempUsageDetail_20' ) end [2025-04-18 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938650', 'tblTempVendorCDR_20' ) start [2025-04-18 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938650', 'tblTempVendorCDR_20' ) end [2025-04-18 22:28:19] Production.INFO: ProcessCDR(1,14938650,1,1,2) [2025-04-18 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938650', 'tblTempUsageDetail_20' ) start [2025-04-18 22:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938650', 'tblTempUsageDetail_20' ) end [2025-04-18 22:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:28:24] Production.INFO: ==26062== Releasing lock... [2025-04-18 22:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:28:24] Production.INFO: 45 MB #Memory Used# [2025-04-18 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:29:05 [end_date_ymd] => 2025-04-18 22:29:05 [RateCDR] => 1 ) [2025-04-18 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:29:05' and `end` < '2025-04-18 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:29:18] Production.INFO: count ==2237 [2025-04-18 22:29:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:29:05 - End Time 2025-04-18 22:29:05 [2025-04-18 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938655', 'tblTempUsageDetail_20' ) start [2025-04-18 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938655', 'tblTempUsageDetail_20' ) end [2025-04-18 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938655', 'tblTempVendorCDR_20' ) start [2025-04-18 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938655', 'tblTempVendorCDR_20' ) end [2025-04-18 22:29:18] Production.INFO: ProcessCDR(1,14938655,1,1,2) [2025-04-18 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938655', 'tblTempUsageDetail_20' ) start [2025-04-18 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938655', 'tblTempUsageDetail_20' ) end [2025-04-18 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:29:22] Production.INFO: ==26135== Releasing lock... [2025-04-18 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:29:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-18 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:30:05 [end_date_ymd] => 2025-04-18 22:30:05 [RateCDR] => 1 ) [2025-04-18 22: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-04-18 19:30:05' and `end` < '2025-04-18 22: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-04-18 22:30:18] Production.INFO: count ==2234 [2025-04-18 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:30:05 - End Time 2025-04-18 22:30:05 [2025-04-18 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938661', 'tblTempUsageDetail_20' ) start [2025-04-18 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938661', 'tblTempUsageDetail_20' ) end [2025-04-18 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938661', 'tblTempVendorCDR_20' ) start [2025-04-18 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938661', 'tblTempVendorCDR_20' ) end [2025-04-18 22:30:19] Production.INFO: ProcessCDR(1,14938661,1,1,2) [2025-04-18 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938661', 'tblTempUsageDetail_20' ) start [2025-04-18 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938661', 'tblTempUsageDetail_20' ) end [2025-04-18 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:30:22] Production.INFO: ==26211== Releasing lock... [2025-04-18 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:30:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:31:05 [end_date_ymd] => 2025-04-18 22:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:31:05' and `end` < '2025-04-18 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-04-18 22:31:18] Production.INFO: count ==2216 [2025-04-18 22:31:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:31:05 - End Time 2025-04-18 22:31:05 [2025-04-18 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938663', 'tblTempUsageDetail_20' ) start [2025-04-18 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938663', 'tblTempUsageDetail_20' ) end [2025-04-18 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938663', 'tblTempVendorCDR_20' ) start [2025-04-18 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938663', 'tblTempVendorCDR_20' ) end [2025-04-18 22:31:19] Production.INFO: ProcessCDR(1,14938663,1,1,2) [2025-04-18 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938663', 'tblTempUsageDetail_20' ) start [2025-04-18 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938663', 'tblTempUsageDetail_20' ) end [2025-04-18 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:31:22] Production.INFO: ==26285== Releasing lock... [2025-04-18 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:31:22] Production.INFO: 45 MB #Memory Used# [2025-04-18 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:32:06 [end_date_ymd] => 2025-04-18 22:32:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:32:06' and `end` < '2025-04-18 22:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:32:19] Production.INFO: count ==2218 [2025-04-18 22:32:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:32:06 - End Time 2025-04-18 22:32:06 [2025-04-18 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938671', 'tblTempUsageDetail_20' ) start [2025-04-18 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938671', 'tblTempUsageDetail_20' ) end [2025-04-18 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938671', 'tblTempVendorCDR_20' ) start [2025-04-18 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938671', 'tblTempVendorCDR_20' ) end [2025-04-18 22:32:19] Production.INFO: ProcessCDR(1,14938671,1,1,2) [2025-04-18 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938671', 'tblTempUsageDetail_20' ) start [2025-04-18 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938671', 'tblTempUsageDetail_20' ) end [2025-04-18 22:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:32:24] Production.INFO: ==26357== Releasing lock... [2025-04-18 22:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:32:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:33:05 [end_date_ymd] => 2025-04-18 22:33:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:33:05' and `end` < '2025-04-18 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-04-18 22:33:18] Production.INFO: count ==2215 [2025-04-18 22:33:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:33:05 - End Time 2025-04-18 22:33:05 [2025-04-18 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938676', 'tblTempUsageDetail_20' ) start [2025-04-18 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938676', 'tblTempUsageDetail_20' ) end [2025-04-18 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938676', 'tblTempVendorCDR_20' ) start [2025-04-18 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938676', 'tblTempVendorCDR_20' ) end [2025-04-18 22:33:19] Production.INFO: ProcessCDR(1,14938676,1,1,2) [2025-04-18 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938676', 'tblTempUsageDetail_20' ) start [2025-04-18 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938676', 'tblTempUsageDetail_20' ) end [2025-04-18 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:33:23] Production.INFO: ==26432== Releasing lock... [2025-04-18 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:33:23] Production.INFO: 45 MB #Memory Used# [2025-04-18 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:34:05 [end_date_ymd] => 2025-04-18 22:34:05 [RateCDR] => 1 ) [2025-04-18 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:34:05' and `end` < '2025-04-18 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:34:18] Production.INFO: count ==2206 [2025-04-18 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:34:05 - End Time 2025-04-18 22:34:05 [2025-04-18 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938681', 'tblTempUsageDetail_20' ) start [2025-04-18 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938681', 'tblTempUsageDetail_20' ) end [2025-04-18 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938681', 'tblTempVendorCDR_20' ) start [2025-04-18 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938681', 'tblTempVendorCDR_20' ) end [2025-04-18 22:34:18] Production.INFO: ProcessCDR(1,14938681,1,1,2) [2025-04-18 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938681', 'tblTempUsageDetail_20' ) start [2025-04-18 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938681', 'tblTempUsageDetail_20' ) end [2025-04-18 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:34:23] Production.INFO: ==26510== Releasing lock... [2025-04-18 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:34:23] Production.INFO: 45 MB #Memory Used# [2025-04-18 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:35:05 [end_date_ymd] => 2025-04-18 22:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:35:05' and `end` < '2025-04-18 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-04-18 22:35:18] Production.INFO: count ==2205 [2025-04-18 22:35:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:35:05 - End Time 2025-04-18 22:35:05 [2025-04-18 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938686', 'tblTempUsageDetail_20' ) start [2025-04-18 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938686', 'tblTempUsageDetail_20' ) end [2025-04-18 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938686', 'tblTempVendorCDR_20' ) start [2025-04-18 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938686', 'tblTempVendorCDR_20' ) end [2025-04-18 22:35:19] Production.INFO: ProcessCDR(1,14938686,1,1,2) [2025-04-18 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938686', 'tblTempUsageDetail_20' ) start [2025-04-18 22:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938686', 'tblTempUsageDetail_20' ) end [2025-04-18 22:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:35:24] Production.INFO: ==26631== Releasing lock... [2025-04-18 22:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:35:24] Production.INFO: 45 MB #Memory Used# [2025-04-18 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:36:05 [end_date_ymd] => 2025-04-18 22:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:36:05' and `end` < '2025-04-18 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-04-18 22:36:17] Production.INFO: count ==2208 [2025-04-18 22:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:36:05 - End Time 2025-04-18 22:36:05 [2025-04-18 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938691', 'tblTempUsageDetail_20' ) start [2025-04-18 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938691', 'tblTempUsageDetail_20' ) end [2025-04-18 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938691', 'tblTempVendorCDR_20' ) start [2025-04-18 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938691', 'tblTempVendorCDR_20' ) end [2025-04-18 22:36:18] Production.INFO: ProcessCDR(1,14938691,1,1,2) [2025-04-18 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938691', 'tblTempUsageDetail_20' ) start [2025-04-18 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938691', 'tblTempUsageDetail_20' ) end [2025-04-18 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:36:23] Production.INFO: ==26703== Releasing lock... [2025-04-18 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:36:23] Production.INFO: 45 MB #Memory Used# [2025-04-18 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:37:05 [end_date_ymd] => 2025-04-18 22:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:37:05' and `end` < '2025-04-18 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-04-18 22:37:18] Production.INFO: count ==2198 [2025-04-18 22:37:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:37:05 - End Time 2025-04-18 22:37:05 [2025-04-18 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938696', 'tblTempUsageDetail_20' ) start [2025-04-18 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938696', 'tblTempUsageDetail_20' ) end [2025-04-18 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938696', 'tblTempVendorCDR_20' ) start [2025-04-18 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938696', 'tblTempVendorCDR_20' ) end [2025-04-18 22:37:19] Production.INFO: ProcessCDR(1,14938696,1,1,2) [2025-04-18 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938696', 'tblTempUsageDetail_20' ) start [2025-04-18 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938696', 'tblTempUsageDetail_20' ) end [2025-04-18 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:37:23] Production.INFO: ==26776== Releasing lock... [2025-04-18 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:37:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:38:05 [end_date_ymd] => 2025-04-18 22:38:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:38:05' and `end` < '2025-04-18 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-04-18 22:38:18] Production.INFO: count ==2192 [2025-04-18 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:38:05 - End Time 2025-04-18 22:38:05 [2025-04-18 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938701', 'tblTempUsageDetail_20' ) start [2025-04-18 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938701', 'tblTempUsageDetail_20' ) end [2025-04-18 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938701', 'tblTempVendorCDR_20' ) start [2025-04-18 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938701', 'tblTempVendorCDR_20' ) end [2025-04-18 22:38:18] Production.INFO: ProcessCDR(1,14938701,1,1,2) [2025-04-18 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938701', 'tblTempUsageDetail_20' ) start [2025-04-18 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938701', 'tblTempUsageDetail_20' ) end [2025-04-18 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:38:23] Production.INFO: ==26848== Releasing lock... [2025-04-18 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:38:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:39:05 [end_date_ymd] => 2025-04-18 22:39:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:39:05' and `end` < '2025-04-18 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-04-18 22:39:18] Production.INFO: count ==2184 [2025-04-18 22:39:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:39:05 - End Time 2025-04-18 22:39:05 [2025-04-18 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938706', 'tblTempUsageDetail_20' ) start [2025-04-18 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938706', 'tblTempUsageDetail_20' ) end [2025-04-18 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938706', 'tblTempVendorCDR_20' ) start [2025-04-18 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938706', 'tblTempVendorCDR_20' ) end [2025-04-18 22:39:19] Production.INFO: ProcessCDR(1,14938706,1,1,2) [2025-04-18 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938706', 'tblTempUsageDetail_20' ) start [2025-04-18 22:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938706', 'tblTempUsageDetail_20' ) end [2025-04-18 22:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:39:24] Production.INFO: ==26924== Releasing lock... [2025-04-18 22:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:39:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:40:06 [end_date_ymd] => 2025-04-18 22:40:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:40:06' and `end` < '2025-04-18 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-04-18 22:40:18] Production.INFO: count ==2184 [2025-04-18 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:40:06 - End Time 2025-04-18 22:40:06 [2025-04-18 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938712', 'tblTempUsageDetail_20' ) start [2025-04-18 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938712', 'tblTempUsageDetail_20' ) end [2025-04-18 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938712', 'tblTempVendorCDR_20' ) start [2025-04-18 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938712', 'tblTempVendorCDR_20' ) end [2025-04-18 22:40:19] Production.INFO: ProcessCDR(1,14938712,1,1,2) [2025-04-18 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938712', 'tblTempUsageDetail_20' ) start [2025-04-18 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938712', 'tblTempUsageDetail_20' ) end [2025-04-18 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:40:23] Production.INFO: ==27000== Releasing lock... [2025-04-18 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:40:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:41:05 [end_date_ymd] => 2025-04-18 22:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:41:05' and `end` < '2025-04-18 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-04-18 22:41:18] Production.INFO: count ==2156 [2025-04-18 22:41:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:41:05 - End Time 2025-04-18 22:41:05 [2025-04-18 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938717', 'tblTempUsageDetail_20' ) start [2025-04-18 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938717', 'tblTempUsageDetail_20' ) end [2025-04-18 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938717', 'tblTempVendorCDR_20' ) start [2025-04-18 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938717', 'tblTempVendorCDR_20' ) end [2025-04-18 22:41:19] Production.INFO: ProcessCDR(1,14938717,1,1,2) [2025-04-18 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938717', 'tblTempUsageDetail_20' ) start [2025-04-18 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938717', 'tblTempUsageDetail_20' ) end [2025-04-18 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:41:22] Production.INFO: ==27081== Releasing lock... [2025-04-18 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:41:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-18 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:42:05 [end_date_ymd] => 2025-04-18 22:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:42:05' and `end` < '2025-04-18 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-04-18 22:42:18] Production.INFO: count ==2149 [2025-04-18 22:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:42:05 - End Time 2025-04-18 22:42:05 [2025-04-18 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938722', 'tblTempUsageDetail_20' ) start [2025-04-18 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938722', 'tblTempUsageDetail_20' ) end [2025-04-18 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938722', 'tblTempVendorCDR_20' ) start [2025-04-18 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938722', 'tblTempVendorCDR_20' ) end [2025-04-18 22:42:19] Production.INFO: ProcessCDR(1,14938722,1,1,2) [2025-04-18 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938722', 'tblTempUsageDetail_20' ) start [2025-04-18 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938722', 'tblTempUsageDetail_20' ) end [2025-04-18 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:42:22] Production.INFO: ==27161== Releasing lock... [2025-04-18 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:42:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:43:05 [end_date_ymd] => 2025-04-18 22:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:43:05' and `end` < '2025-04-18 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-04-18 22:43:18] Production.INFO: count ==2140 [2025-04-18 22:43:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:43:05 - End Time 2025-04-18 22:43:05 [2025-04-18 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938727', 'tblTempUsageDetail_20' ) start [2025-04-18 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938727', 'tblTempUsageDetail_20' ) end [2025-04-18 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938727', 'tblTempVendorCDR_20' ) start [2025-04-18 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938727', 'tblTempVendorCDR_20' ) end [2025-04-18 22:43:19] Production.INFO: ProcessCDR(1,14938727,1,1,2) [2025-04-18 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938727', 'tblTempUsageDetail_20' ) start [2025-04-18 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938727', 'tblTempUsageDetail_20' ) end [2025-04-18 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:43:22] Production.INFO: ==27233== Releasing lock... [2025-04-18 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:43:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:44:06 [end_date_ymd] => 2025-04-18 22:44:06 [RateCDR] => 1 ) [2025-04-18 22: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-04-18 19:44:06' and `end` < '2025-04-18 22: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-04-18 22:44:18] Production.INFO: count ==2137 [2025-04-18 22:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:44:06 - End Time 2025-04-18 22:44:06 [2025-04-18 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938732', 'tblTempUsageDetail_20' ) start [2025-04-18 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938732', 'tblTempUsageDetail_20' ) end [2025-04-18 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938732', 'tblTempVendorCDR_20' ) start [2025-04-18 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938732', 'tblTempVendorCDR_20' ) end [2025-04-18 22:44:19] Production.INFO: ProcessCDR(1,14938732,1,1,2) [2025-04-18 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938732', 'tblTempUsageDetail_20' ) start [2025-04-18 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938732', 'tblTempUsageDetail_20' ) end [2025-04-18 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:44:22] Production.INFO: ==27304== Releasing lock... [2025-04-18 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:44:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:45:05 [end_date_ymd] => 2025-04-18 22:45:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:45:05' and `end` < '2025-04-18 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:45:17] Production.INFO: count ==2133 [2025-04-18 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:45:05 - End Time 2025-04-18 22:45:05 [2025-04-18 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938737', 'tblTempUsageDetail_20' ) start [2025-04-18 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938737', 'tblTempUsageDetail_20' ) end [2025-04-18 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938737', 'tblTempVendorCDR_20' ) start [2025-04-18 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938737', 'tblTempVendorCDR_20' ) end [2025-04-18 22:45:18] Production.INFO: ProcessCDR(1,14938737,1,1,2) [2025-04-18 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938737', 'tblTempUsageDetail_20' ) start [2025-04-18 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938737', 'tblTempUsageDetail_20' ) end [2025-04-18 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:45:21] Production.INFO: ==27378== Releasing lock... [2025-04-18 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:45:21] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:46:05 [end_date_ymd] => 2025-04-18 22:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:46:05' and `end` < '2025-04-18 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-04-18 22:46:18] Production.INFO: count ==2129 [2025-04-18 22:46:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:46:05 - End Time 2025-04-18 22:46:05 [2025-04-18 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938742', 'tblTempUsageDetail_20' ) start [2025-04-18 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938742', 'tblTempUsageDetail_20' ) end [2025-04-18 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938742', 'tblTempVendorCDR_20' ) start [2025-04-18 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938742', 'tblTempVendorCDR_20' ) end [2025-04-18 22:46:19] Production.INFO: ProcessCDR(1,14938742,1,1,2) [2025-04-18 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938742', 'tblTempUsageDetail_20' ) start [2025-04-18 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938742', 'tblTempUsageDetail_20' ) end [2025-04-18 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:46:22] Production.INFO: ==27454== Releasing lock... [2025-04-18 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:46:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:47:05 [end_date_ymd] => 2025-04-18 22:47:05 [RateCDR] => 1 ) [2025-04-18 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:47:05' and `end` < '2025-04-18 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:47:17] Production.INFO: count ==2127 [2025-04-18 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:47:05 - End Time 2025-04-18 22:47:05 [2025-04-18 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938747', 'tblTempUsageDetail_20' ) start [2025-04-18 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938747', 'tblTempUsageDetail_20' ) end [2025-04-18 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938747', 'tblTempVendorCDR_20' ) start [2025-04-18 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938747', 'tblTempVendorCDR_20' ) end [2025-04-18 22:47:18] Production.INFO: ProcessCDR(1,14938747,1,1,2) [2025-04-18 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938747', 'tblTempUsageDetail_20' ) start [2025-04-18 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938747', 'tblTempUsageDetail_20' ) end [2025-04-18 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:47:21] Production.INFO: ==27524== Releasing lock... [2025-04-18 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:47:21] Production.INFO: 44.25 MB #Memory Used# [2025-04-18 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:48:05 [end_date_ymd] => 2025-04-18 22:48:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:48:05' and `end` < '2025-04-18 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-04-18 22:48:18] Production.INFO: count ==2126 [2025-04-18 22:48:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:48:05 - End Time 2025-04-18 22:48:05 [2025-04-18 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938752', 'tblTempUsageDetail_20' ) start [2025-04-18 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938752', 'tblTempUsageDetail_20' ) end [2025-04-18 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938752', 'tblTempVendorCDR_20' ) start [2025-04-18 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938752', 'tblTempVendorCDR_20' ) end [2025-04-18 22:48:18] Production.INFO: ProcessCDR(1,14938752,1,1,2) [2025-04-18 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938752', 'tblTempUsageDetail_20' ) start [2025-04-18 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938752', 'tblTempUsageDetail_20' ) end [2025-04-18 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:48:22] Production.INFO: ==27597== Releasing lock... [2025-04-18 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:48:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:49:05 [end_date_ymd] => 2025-04-18 22:49:05 [RateCDR] => 1 ) [2025-04-18 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:49:05' and `end` < '2025-04-18 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:49:17] Production.INFO: count ==2121 [2025-04-18 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:49:05 - End Time 2025-04-18 22:49:05 [2025-04-18 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938757', 'tblTempUsageDetail_20' ) start [2025-04-18 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938757', 'tblTempUsageDetail_20' ) end [2025-04-18 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938757', 'tblTempVendorCDR_20' ) start [2025-04-18 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938757', 'tblTempVendorCDR_20' ) end [2025-04-18 22:49:18] Production.INFO: ProcessCDR(1,14938757,1,1,2) [2025-04-18 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938757', 'tblTempUsageDetail_20' ) start [2025-04-18 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938757', 'tblTempUsageDetail_20' ) end [2025-04-18 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:49:21] Production.INFO: ==27672== Releasing lock... [2025-04-18 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:49:21] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:50:06 [end_date_ymd] => 2025-04-18 22:50:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:50:06' and `end` < '2025-04-18 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-04-18 22:50:18] Production.INFO: count ==2112 [2025-04-18 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:50:06 - End Time 2025-04-18 22:50:06 [2025-04-18 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938763', 'tblTempUsageDetail_20' ) start [2025-04-18 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938763', 'tblTempUsageDetail_20' ) end [2025-04-18 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938763', 'tblTempVendorCDR_20' ) start [2025-04-18 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938763', 'tblTempVendorCDR_20' ) end [2025-04-18 22:50:19] Production.INFO: ProcessCDR(1,14938763,1,1,2) [2025-04-18 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938763', 'tblTempUsageDetail_20' ) start [2025-04-18 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938763', 'tblTempUsageDetail_20' ) end [2025-04-18 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:50:22] Production.INFO: ==27747== Releasing lock... [2025-04-18 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:50:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-18 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:51:05 [end_date_ymd] => 2025-04-18 22:51:05 [RateCDR] => 1 ) [2025-04-18 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 19:51:05' and `end` < '2025-04-18 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 22:51:18] Production.INFO: count ==2041 [2025-04-18 22:51:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:51:05 - End Time 2025-04-18 22:51:05 [2025-04-18 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938768', 'tblTempUsageDetail_20' ) start [2025-04-18 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938768', 'tblTempUsageDetail_20' ) end [2025-04-18 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938768', 'tblTempVendorCDR_20' ) start [2025-04-18 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938768', 'tblTempVendorCDR_20' ) end [2025-04-18 22:51:19] Production.INFO: ProcessCDR(1,14938768,1,1,2) [2025-04-18 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938768', 'tblTempUsageDetail_20' ) start [2025-04-18 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938768', 'tblTempUsageDetail_20' ) end [2025-04-18 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:51:22] Production.INFO: ==27867== Releasing lock... [2025-04-18 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:51:22] Production.INFO: 44 MB #Memory Used# [2025-04-18 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:52:05 [end_date_ymd] => 2025-04-18 22:52:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:52:05' and `end` < '2025-04-18 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-04-18 22:52:18] Production.INFO: count ==2041 [2025-04-18 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:52:05 - End Time 2025-04-18 22:52:05 [2025-04-18 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938773', 'tblTempUsageDetail_20' ) start [2025-04-18 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938773', 'tblTempUsageDetail_20' ) end [2025-04-18 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938773', 'tblTempVendorCDR_20' ) start [2025-04-18 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938773', 'tblTempVendorCDR_20' ) end [2025-04-18 22:52:18] Production.INFO: ProcessCDR(1,14938773,1,1,2) [2025-04-18 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938773', 'tblTempUsageDetail_20' ) start [2025-04-18 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938773', 'tblTempUsageDetail_20' ) end [2025-04-18 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:52:22] Production.INFO: ==27938== Releasing lock... [2025-04-18 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:52:22] Production.INFO: 44 MB #Memory Used# [2025-04-18 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:53:06 [end_date_ymd] => 2025-04-18 22:53:06 [RateCDR] => 1 ) [2025-04-18 22: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-04-18 19:53:06' and `end` < '2025-04-18 22: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-04-18 22:53:18] Production.INFO: count ==2035 [2025-04-18 22:53:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:53:06 - End Time 2025-04-18 22:53:06 [2025-04-18 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938778', 'tblTempUsageDetail_20' ) start [2025-04-18 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938778', 'tblTempUsageDetail_20' ) end [2025-04-18 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938778', 'tblTempVendorCDR_20' ) start [2025-04-18 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938778', 'tblTempVendorCDR_20' ) end [2025-04-18 22:53:19] Production.INFO: ProcessCDR(1,14938778,1,1,2) [2025-04-18 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938778', 'tblTempUsageDetail_20' ) start [2025-04-18 22:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938778', 'tblTempUsageDetail_20' ) end [2025-04-18 22:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:53:24] Production.INFO: ==28009== Releasing lock... [2025-04-18 22:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:53:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-18 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:54:05 [end_date_ymd] => 2025-04-18 22:54:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:54:05' and `end` < '2025-04-18 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-04-18 22:54:18] Production.INFO: count ==2032 [2025-04-18 22:54:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:54:05 - End Time 2025-04-18 22:54:05 [2025-04-18 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938783', 'tblTempUsageDetail_20' ) start [2025-04-18 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938783', 'tblTempUsageDetail_20' ) end [2025-04-18 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938783', 'tblTempVendorCDR_20' ) start [2025-04-18 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938783', 'tblTempVendorCDR_20' ) end [2025-04-18 22:54:19] Production.INFO: ProcessCDR(1,14938783,1,1,2) [2025-04-18 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938783', 'tblTempUsageDetail_20' ) start [2025-04-18 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938783', 'tblTempUsageDetail_20' ) end [2025-04-18 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:54:23] Production.INFO: ==28082== Releasing lock... [2025-04-18 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:54:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-18 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:55:05 [end_date_ymd] => 2025-04-18 22:55:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:55:05' and `end` < '2025-04-18 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-04-18 22:55:18] Production.INFO: count ==2026 [2025-04-18 22:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:55:05 - End Time 2025-04-18 22:55:05 [2025-04-18 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938788', 'tblTempUsageDetail_20' ) start [2025-04-18 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938788', 'tblTempUsageDetail_20' ) end [2025-04-18 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938788', 'tblTempVendorCDR_20' ) start [2025-04-18 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938788', 'tblTempVendorCDR_20' ) end [2025-04-18 22:55:19] Production.INFO: ProcessCDR(1,14938788,1,1,2) [2025-04-18 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938788', 'tblTempUsageDetail_20' ) start [2025-04-18 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938788', 'tblTempUsageDetail_20' ) end [2025-04-18 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:55:22] Production.INFO: ==28161== Releasing lock... [2025-04-18 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:55:22] Production.INFO: 44 MB #Memory Used# [2025-04-18 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:56:05 [end_date_ymd] => 2025-04-18 22:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:56:05' and `end` < '2025-04-18 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-04-18 22:56:18] Production.INFO: count ==2011 [2025-04-18 22:56:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:56:05 - End Time 2025-04-18 22:56:05 [2025-04-18 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938793', 'tblTempUsageDetail_20' ) start [2025-04-18 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938793', 'tblTempUsageDetail_20' ) end [2025-04-18 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938793', 'tblTempVendorCDR_20' ) start [2025-04-18 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938793', 'tblTempVendorCDR_20' ) end [2025-04-18 22:56:18] Production.INFO: ProcessCDR(1,14938793,1,1,2) [2025-04-18 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938793', 'tblTempUsageDetail_20' ) start [2025-04-18 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938793', 'tblTempUsageDetail_20' ) end [2025-04-18 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:56:23] Production.INFO: ==28233== Releasing lock... [2025-04-18 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:56:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-18 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:57:05 [end_date_ymd] => 2025-04-18 22:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:57:05' and `end` < '2025-04-18 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-04-18 22:57:18] Production.INFO: count ==1983 [2025-04-18 22:57:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:57:05 - End Time 2025-04-18 22:57:05 [2025-04-18 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938798', 'tblTempUsageDetail_20' ) start [2025-04-18 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938798', 'tblTempUsageDetail_20' ) end [2025-04-18 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938798', 'tblTempVendorCDR_20' ) start [2025-04-18 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938798', 'tblTempVendorCDR_20' ) end [2025-04-18 22:57:19] Production.INFO: ProcessCDR(1,14938798,1,1,2) [2025-04-18 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938798', 'tblTempUsageDetail_20' ) start [2025-04-18 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938798', 'tblTempUsageDetail_20' ) end [2025-04-18 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:57:22] Production.INFO: ==28309== Releasing lock... [2025-04-18 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:57:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-18 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:58:04 [end_date_ymd] => 2025-04-18 22:58:04 [RateCDR] => 1 ) [2025-04-18 22: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-04-18 19:58:04' and `end` < '2025-04-18 22: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-04-18 22:58:17] Production.INFO: count ==1969 [2025-04-18 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-18 19:58:04 - End Time 2025-04-18 22:58:04 [2025-04-18 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938803', 'tblTempUsageDetail_20' ) start [2025-04-18 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938803', 'tblTempUsageDetail_20' ) end [2025-04-18 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938803', 'tblTempVendorCDR_20' ) start [2025-04-18 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938803', 'tblTempVendorCDR_20' ) end [2025-04-18 22:58:18] Production.INFO: ProcessCDR(1,14938803,1,1,2) [2025-04-18 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938803', 'tblTempUsageDetail_20' ) start [2025-04-18 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938803', 'tblTempUsageDetail_20' ) end [2025-04-18 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:58:21] Production.INFO: ==28383== Releasing lock... [2025-04-18 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:58:21] Production.INFO: 43 MB #Memory Used# [2025-04-18 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 19:59:05 [end_date_ymd] => 2025-04-18 22:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 19:59:05' and `end` < '2025-04-18 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-04-18 22:59:18] Production.INFO: count ==1951 [2025-04-18 22:59:19] Production.ERROR: pbx CDR StartTime 2025-04-18 19:59:05 - End Time 2025-04-18 22:59:05 [2025-04-18 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938808', 'tblTempUsageDetail_20' ) start [2025-04-18 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938808', 'tblTempUsageDetail_20' ) end [2025-04-18 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938808', 'tblTempVendorCDR_20' ) start [2025-04-18 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938808', 'tblTempVendorCDR_20' ) end [2025-04-18 22:59:19] Production.INFO: ProcessCDR(1,14938808,1,1,2) [2025-04-18 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938808', 'tblTempUsageDetail_20' ) start [2025-04-18 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938808', 'tblTempUsageDetail_20' ) end [2025-04-18 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 22:59:22] Production.INFO: ==28455== Releasing lock... [2025-04-18 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 22:59:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-18 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:00:06 [end_date_ymd] => 2025-04-18 23:00:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:00:06' and `end` < '2025-04-18 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-04-18 23:00:19] Production.INFO: count ==1941 [2025-04-18 23:00:20] Production.ERROR: pbx CDR StartTime 2025-04-18 20:00:06 - End Time 2025-04-18 23:00:06 [2025-04-18 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938813', 'tblTempUsageDetail_20' ) start [2025-04-18 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938813', 'tblTempUsageDetail_20' ) end [2025-04-18 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938813', 'tblTempVendorCDR_20' ) start [2025-04-18 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938813', 'tblTempVendorCDR_20' ) end [2025-04-18 23:00:20] Production.INFO: ProcessCDR(1,14938813,1,1,2) [2025-04-18 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938813', 'tblTempUsageDetail_20' ) start [2025-04-18 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938813', 'tblTempUsageDetail_20' ) end [2025-04-18 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:00:23] Production.INFO: ==28531== Releasing lock... [2025-04-18 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:00:23] Production.INFO: 43 MB #Memory Used# [2025-04-18 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:01:05 [end_date_ymd] => 2025-04-18 23:01:05 [RateCDR] => 1 ) [2025-04-18 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:01:05' and `end` < '2025-04-18 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:01:18] Production.INFO: count ==1942 [2025-04-18 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:01:05 - End Time 2025-04-18 23:01:05 [2025-04-18 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938819', 'tblTempUsageDetail_20' ) start [2025-04-18 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938819', 'tblTempUsageDetail_20' ) end [2025-04-18 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938819', 'tblTempVendorCDR_20' ) start [2025-04-18 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938819', 'tblTempVendorCDR_20' ) end [2025-04-18 23:01:19] Production.INFO: ProcessCDR(1,14938819,1,1,2) [2025-04-18 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938819', 'tblTempUsageDetail_20' ) start [2025-04-18 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938819', 'tblTempUsageDetail_20' ) end [2025-04-18 23:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:01:24] Production.INFO: ==28621== Releasing lock... [2025-04-18 23:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:01:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-18 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:02:05 [end_date_ymd] => 2025-04-18 23:02:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:02:05' and `end` < '2025-04-18 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-04-18 23:02:18] Production.INFO: count ==1926 [2025-04-18 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:02:05 - End Time 2025-04-18 23:02:05 [2025-04-18 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938824', 'tblTempUsageDetail_20' ) start [2025-04-18 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938824', 'tblTempUsageDetail_20' ) end [2025-04-18 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938824', 'tblTempVendorCDR_20' ) start [2025-04-18 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938824', 'tblTempVendorCDR_20' ) end [2025-04-18 23:02:18] Production.INFO: ProcessCDR(1,14938824,1,1,2) [2025-04-18 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938824', 'tblTempUsageDetail_20' ) start [2025-04-18 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938824', 'tblTempUsageDetail_20' ) end [2025-04-18 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:02:22] Production.INFO: ==28772== Releasing lock... [2025-04-18 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:02:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:03:05 [end_date_ymd] => 2025-04-18 23:03:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:03:05' and `end` < '2025-04-18 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-04-18 23:03:18] Production.INFO: count ==1916 [2025-04-18 23:03:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:03:05 - End Time 2025-04-18 23:03:05 [2025-04-18 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938829', 'tblTempUsageDetail_20' ) start [2025-04-18 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938829', 'tblTempUsageDetail_20' ) end [2025-04-18 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938829', 'tblTempVendorCDR_20' ) start [2025-04-18 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938829', 'tblTempVendorCDR_20' ) end [2025-04-18 23:03:19] Production.INFO: ProcessCDR(1,14938829,1,1,2) [2025-04-18 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938829', 'tblTempUsageDetail_20' ) start [2025-04-18 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938829', 'tblTempUsageDetail_20' ) end [2025-04-18 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:03:22] Production.INFO: ==28844== Releasing lock... [2025-04-18 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:03:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-18 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:04:05 [end_date_ymd] => 2025-04-18 23:04:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:04:05' and `end` < '2025-04-18 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-04-18 23:04:18] Production.INFO: count ==1898 [2025-04-18 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:04:05 - End Time 2025-04-18 23:04:05 [2025-04-18 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938834', 'tblTempUsageDetail_20' ) start [2025-04-18 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938834', 'tblTempUsageDetail_20' ) end [2025-04-18 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938834', 'tblTempVendorCDR_20' ) start [2025-04-18 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938834', 'tblTempVendorCDR_20' ) end [2025-04-18 23:04:18] Production.INFO: ProcessCDR(1,14938834,1,1,2) [2025-04-18 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938834', 'tblTempUsageDetail_20' ) start [2025-04-18 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938834', 'tblTempUsageDetail_20' ) end [2025-04-18 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:04:22] Production.INFO: ==28919== Releasing lock... [2025-04-18 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:04:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:05:05 [end_date_ymd] => 2025-04-18 23:05:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:05:05' and `end` < '2025-04-18 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-04-18 23:05:18] Production.INFO: count ==1885 [2025-04-18 23:05:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:05:05 - End Time 2025-04-18 23:05:05 [2025-04-18 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938839', 'tblTempUsageDetail_20' ) start [2025-04-18 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938839', 'tblTempUsageDetail_20' ) end [2025-04-18 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938839', 'tblTempVendorCDR_20' ) start [2025-04-18 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938839', 'tblTempVendorCDR_20' ) end [2025-04-18 23:05:19] Production.INFO: ProcessCDR(1,14938839,1,1,2) [2025-04-18 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938839', 'tblTempUsageDetail_20' ) start [2025-04-18 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938839', 'tblTempUsageDetail_20' ) end [2025-04-18 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:05:22] Production.INFO: ==29070== Releasing lock... [2025-04-18 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:05:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:06:05 [end_date_ymd] => 2025-04-18 23:06:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:06:05' and `end` < '2025-04-18 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-04-18 23:06:18] Production.INFO: count ==1858 [2025-04-18 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:06:05 - End Time 2025-04-18 23:06:05 [2025-04-18 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938844', 'tblTempUsageDetail_20' ) start [2025-04-18 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938844', 'tblTempUsageDetail_20' ) end [2025-04-18 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938844', 'tblTempVendorCDR_20' ) start [2025-04-18 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938844', 'tblTempVendorCDR_20' ) end [2025-04-18 23:06:18] Production.INFO: ProcessCDR(1,14938844,1,1,2) [2025-04-18 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938844', 'tblTempUsageDetail_20' ) start [2025-04-18 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938844', 'tblTempUsageDetail_20' ) end [2025-04-18 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:06:22] Production.INFO: ==29183== Releasing lock... [2025-04-18 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:06:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-18 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:07:05 [end_date_ymd] => 2025-04-18 23:07:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:07:05' and `end` < '2025-04-18 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-04-18 23:07:18] Production.INFO: count ==1833 [2025-04-18 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:07:05 - End Time 2025-04-18 23:07:05 [2025-04-18 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938849', 'tblTempUsageDetail_20' ) start [2025-04-18 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938849', 'tblTempUsageDetail_20' ) end [2025-04-18 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938849', 'tblTempVendorCDR_20' ) start [2025-04-18 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938849', 'tblTempVendorCDR_20' ) end [2025-04-18 23:07:18] Production.INFO: ProcessCDR(1,14938849,1,1,2) [2025-04-18 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938849', 'tblTempUsageDetail_20' ) start [2025-04-18 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938849', 'tblTempUsageDetail_20' ) end [2025-04-18 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:07:22] Production.INFO: ==29258== Releasing lock... [2025-04-18 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:07:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-18 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:08:05 [end_date_ymd] => 2025-04-18 23:08:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:08:05' and `end` < '2025-04-18 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-04-18 23:08:18] Production.INFO: count ==1815 [2025-04-18 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:08:05 - End Time 2025-04-18 23:08:05 [2025-04-18 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938854', 'tblTempUsageDetail_20' ) start [2025-04-18 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938854', 'tblTempUsageDetail_20' ) end [2025-04-18 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938854', 'tblTempVendorCDR_20' ) start [2025-04-18 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938854', 'tblTempVendorCDR_20' ) end [2025-04-18 23:08:18] Production.INFO: ProcessCDR(1,14938854,1,1,2) [2025-04-18 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938854', 'tblTempUsageDetail_20' ) start [2025-04-18 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938854', 'tblTempUsageDetail_20' ) end [2025-04-18 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:08:21] Production.INFO: ==29372== Releasing lock... [2025-04-18 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:08:21] Production.INFO: 42.25 MB #Memory Used# [2025-04-18 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:09:05 [end_date_ymd] => 2025-04-18 23:09:05 [RateCDR] => 1 ) [2025-04-18 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:09:05' and `end` < '2025-04-18 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:09:18] Production.INFO: count ==1804 [2025-04-18 23:09:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:09:05 - End Time 2025-04-18 23:09:05 [2025-04-18 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938859', 'tblTempUsageDetail_20' ) start [2025-04-18 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938859', 'tblTempUsageDetail_20' ) end [2025-04-18 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938859', 'tblTempVendorCDR_20' ) start [2025-04-18 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938859', 'tblTempVendorCDR_20' ) end [2025-04-18 23:09:18] Production.INFO: ProcessCDR(1,14938859,1,1,2) [2025-04-18 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938859', 'tblTempUsageDetail_20' ) start [2025-04-18 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938859', 'tblTempUsageDetail_20' ) end [2025-04-18 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:09:22] Production.INFO: ==29488== Releasing lock... [2025-04-18 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:09:22] Production.INFO: 42 MB #Memory Used# [2025-04-18 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:10:06 [end_date_ymd] => 2025-04-18 23:10:06 [RateCDR] => 1 ) [2025-04-18 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:10:06' and `end` < '2025-04-18 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:10:18] Production.INFO: count ==1790 [2025-04-18 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:10:06 - End Time 2025-04-18 23:10:06 [2025-04-18 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938865', 'tblTempUsageDetail_20' ) start [2025-04-18 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938865', 'tblTempUsageDetail_20' ) end [2025-04-18 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938865', 'tblTempVendorCDR_20' ) start [2025-04-18 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938865', 'tblTempVendorCDR_20' ) end [2025-04-18 23:10:19] Production.INFO: ProcessCDR(1,14938865,1,1,2) [2025-04-18 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938865', 'tblTempUsageDetail_20' ) start [2025-04-18 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938865', 'tblTempUsageDetail_20' ) end [2025-04-18 23:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:10:24] Production.INFO: ==29565== Releasing lock... [2025-04-18 23:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:10:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-18 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:11:05 [end_date_ymd] => 2025-04-18 23:11:05 [RateCDR] => 1 ) [2025-04-18 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:11:05' and `end` < '2025-04-18 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:11:18] Production.INFO: count ==1750 [2025-04-18 23:11:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:11:05 - End Time 2025-04-18 23:11:05 [2025-04-18 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938870', 'tblTempUsageDetail_20' ) start [2025-04-18 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938870', 'tblTempUsageDetail_20' ) end [2025-04-18 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938870', 'tblTempVendorCDR_20' ) start [2025-04-18 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938870', 'tblTempVendorCDR_20' ) end [2025-04-18 23:11:19] Production.INFO: ProcessCDR(1,14938870,1,1,2) [2025-04-18 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938870', 'tblTempUsageDetail_20' ) start [2025-04-18 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938870', 'tblTempUsageDetail_20' ) end [2025-04-18 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:11:22] Production.INFO: ==29639== Releasing lock... [2025-04-18 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:11:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:12:05 [end_date_ymd] => 2025-04-18 23:12:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:12:05' and `end` < '2025-04-18 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-04-18 23:12:18] Production.INFO: count ==1736 [2025-04-18 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:12:05 - End Time 2025-04-18 23:12:05 [2025-04-18 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938875', 'tblTempUsageDetail_20' ) start [2025-04-18 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938875', 'tblTempUsageDetail_20' ) end [2025-04-18 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938875', 'tblTempVendorCDR_20' ) start [2025-04-18 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938875', 'tblTempVendorCDR_20' ) end [2025-04-18 23:12:18] Production.INFO: ProcessCDR(1,14938875,1,1,2) [2025-04-18 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938875', 'tblTempUsageDetail_20' ) start [2025-04-18 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938875', 'tblTempUsageDetail_20' ) end [2025-04-18 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:12:23] Production.INFO: ==29801== Releasing lock... [2025-04-18 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:12:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:13:05 [end_date_ymd] => 2025-04-18 23:13:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:13:05' and `end` < '2025-04-18 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-04-18 23:13:18] Production.INFO: count ==1714 [2025-04-18 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:13:05 - End Time 2025-04-18 23:13:05 [2025-04-18 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938880', 'tblTempUsageDetail_20' ) start [2025-04-18 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938880', 'tblTempUsageDetail_20' ) end [2025-04-18 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938880', 'tblTempVendorCDR_20' ) start [2025-04-18 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938880', 'tblTempVendorCDR_20' ) end [2025-04-18 23:13:18] Production.INFO: ProcessCDR(1,14938880,1,1,2) [2025-04-18 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938880', 'tblTempUsageDetail_20' ) start [2025-04-18 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938880', 'tblTempUsageDetail_20' ) end [2025-04-18 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:13:21] Production.INFO: ==29877== Releasing lock... [2025-04-18 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:13:21] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:14:05 [end_date_ymd] => 2025-04-18 23:14:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:14:05' and `end` < '2025-04-18 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-04-18 23:14:18] Production.INFO: count ==1723 [2025-04-18 23:14:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:14:05 - End Time 2025-04-18 23:14:05 [2025-04-18 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938885', 'tblTempUsageDetail_20' ) start [2025-04-18 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938885', 'tblTempUsageDetail_20' ) end [2025-04-18 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938885', 'tblTempVendorCDR_20' ) start [2025-04-18 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938885', 'tblTempVendorCDR_20' ) end [2025-04-18 23:14:18] Production.INFO: ProcessCDR(1,14938885,1,1,2) [2025-04-18 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938885', 'tblTempUsageDetail_20' ) start [2025-04-18 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938885', 'tblTempUsageDetail_20' ) end [2025-04-18 23:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:14:23] Production.INFO: ==29951== Releasing lock... [2025-04-18 23:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:14:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 23:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:15:04 [end_date_ymd] => 2025-04-18 23:15:04 [RateCDR] => 1 ) [2025-04-18 23:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:15:04' and `end` < '2025-04-18 23:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:15:17] Production.INFO: count ==1715 [2025-04-18 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:15:04 - End Time 2025-04-18 23:15:04 [2025-04-18 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938890', 'tblTempUsageDetail_20' ) start [2025-04-18 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938890', 'tblTempUsageDetail_20' ) end [2025-04-18 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938890', 'tblTempVendorCDR_20' ) start [2025-04-18 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938890', 'tblTempVendorCDR_20' ) end [2025-04-18 23:15:18] Production.INFO: ProcessCDR(1,14938890,1,1,2) [2025-04-18 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938890', 'tblTempUsageDetail_20' ) start [2025-04-18 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938890', 'tblTempUsageDetail_20' ) end [2025-04-18 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:15:22] Production.INFO: ==30099== Releasing lock... [2025-04-18 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:15:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:16:05 [end_date_ymd] => 2025-04-18 23:16:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:16:05' and `end` < '2025-04-18 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-04-18 23:16:18] Production.INFO: count ==1710 [2025-04-18 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:16:05 - End Time 2025-04-18 23:16:05 [2025-04-18 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938895', 'tblTempUsageDetail_20' ) start [2025-04-18 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938895', 'tblTempUsageDetail_20' ) end [2025-04-18 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938895', 'tblTempVendorCDR_20' ) start [2025-04-18 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938895', 'tblTempVendorCDR_20' ) end [2025-04-18 23:16:18] Production.INFO: ProcessCDR(1,14938895,1,1,2) [2025-04-18 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938895', 'tblTempUsageDetail_20' ) start [2025-04-18 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938895', 'tblTempUsageDetail_20' ) end [2025-04-18 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:16:22] Production.INFO: ==30171== Releasing lock... [2025-04-18 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:16:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:17:05 [end_date_ymd] => 2025-04-18 23:17:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:17:05' and `end` < '2025-04-18 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-04-18 23:17:18] Production.INFO: count ==1702 [2025-04-18 23:17:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:17:05 - End Time 2025-04-18 23:17:05 [2025-04-18 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938900', 'tblTempUsageDetail_20' ) start [2025-04-18 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938900', 'tblTempUsageDetail_20' ) end [2025-04-18 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938900', 'tblTempVendorCDR_20' ) start [2025-04-18 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938900', 'tblTempVendorCDR_20' ) end [2025-04-18 23:17:19] Production.INFO: ProcessCDR(1,14938900,1,1,2) [2025-04-18 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938900', 'tblTempUsageDetail_20' ) start [2025-04-18 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938900', 'tblTempUsageDetail_20' ) end [2025-04-18 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:17:23] Production.INFO: ==30245== Releasing lock... [2025-04-18 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:17:23] Production.INFO: 41 MB #Memory Used# [2025-04-18 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:18:05 [end_date_ymd] => 2025-04-18 23:18:05 [RateCDR] => 1 ) [2025-04-18 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:18:05' and `end` < '2025-04-18 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:18:17] Production.INFO: count ==1700 [2025-04-18 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:18:05 - End Time 2025-04-18 23:18:05 [2025-04-18 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938905', 'tblTempUsageDetail_20' ) start [2025-04-18 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938905', 'tblTempUsageDetail_20' ) end [2025-04-18 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938905', 'tblTempVendorCDR_20' ) start [2025-04-18 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938905', 'tblTempVendorCDR_20' ) end [2025-04-18 23:18:18] Production.INFO: ProcessCDR(1,14938905,1,1,2) [2025-04-18 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938905', 'tblTempUsageDetail_20' ) start [2025-04-18 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938905', 'tblTempUsageDetail_20' ) end [2025-04-18 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:18:23] Production.INFO: ==30323== Releasing lock... [2025-04-18 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:18:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 23:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:19:06 [end_date_ymd] => 2025-04-18 23:19:06 [RateCDR] => 1 ) [2025-04-18 23:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:19:06' and `end` < '2025-04-18 23:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:19:19] Production.INFO: count ==1700 [2025-04-18 23:19:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:19:06 - End Time 2025-04-18 23:19:06 [2025-04-18 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938910', 'tblTempUsageDetail_20' ) start [2025-04-18 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938910', 'tblTempUsageDetail_20' ) end [2025-04-18 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938910', 'tblTempVendorCDR_20' ) start [2025-04-18 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938910', 'tblTempVendorCDR_20' ) end [2025-04-18 23:19:19] Production.INFO: ProcessCDR(1,14938910,1,1,2) [2025-04-18 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938910', 'tblTempUsageDetail_20' ) start [2025-04-18 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938910', 'tblTempUsageDetail_20' ) end [2025-04-18 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:19:23] Production.INFO: ==30401== Releasing lock... [2025-04-18 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:19:23] Production.INFO: 41 MB #Memory Used# [2025-04-18 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:20:06 [end_date_ymd] => 2025-04-18 23:20:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:20:06' and `end` < '2025-04-18 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-04-18 23:20:19] Production.INFO: count ==1695 [2025-04-18 23:20:20] Production.ERROR: pbx CDR StartTime 2025-04-18 20:20:06 - End Time 2025-04-18 23:20:06 [2025-04-18 23:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938916', 'tblTempUsageDetail_20' ) start [2025-04-18 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938916', 'tblTempUsageDetail_20' ) end [2025-04-18 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938916', 'tblTempVendorCDR_20' ) start [2025-04-18 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938916', 'tblTempVendorCDR_20' ) end [2025-04-18 23:20:20] Production.INFO: ProcessCDR(1,14938916,1,1,2) [2025-04-18 23:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938916', 'tblTempUsageDetail_20' ) start [2025-04-18 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938916', 'tblTempUsageDetail_20' ) end [2025-04-18 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:20:23] Production.INFO: ==30476== Releasing lock... [2025-04-18 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:20:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:21:06 [end_date_ymd] => 2025-04-18 23:21:06 [RateCDR] => 1 ) [2025-04-18 23: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-04-18 20:21:06' and `end` < '2025-04-18 23: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-04-18 23:21:18] Production.INFO: count ==1721 [2025-04-18 23:21:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:21:06 - End Time 2025-04-18 23:21:06 [2025-04-18 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938921', 'tblTempUsageDetail_20' ) start [2025-04-18 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938921', 'tblTempUsageDetail_20' ) end [2025-04-18 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938921', 'tblTempVendorCDR_20' ) start [2025-04-18 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938921', 'tblTempVendorCDR_20' ) end [2025-04-18 23:21:19] Production.INFO: ProcessCDR(1,14938921,1,1,2) [2025-04-18 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938921', 'tblTempUsageDetail_20' ) start [2025-04-18 23:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938921', 'tblTempUsageDetail_20' ) end [2025-04-18 23:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:21:24] Production.INFO: ==30589== Releasing lock... [2025-04-18 23:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:21:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-18 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:22:05 [end_date_ymd] => 2025-04-18 23:22:05 [RateCDR] => 1 ) [2025-04-18 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:22:05' and `end` < '2025-04-18 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:22:18] Production.INFO: count ==1722 [2025-04-18 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:22:05 - End Time 2025-04-18 23:22:05 [2025-04-18 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938926', 'tblTempUsageDetail_20' ) start [2025-04-18 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938926', 'tblTempUsageDetail_20' ) end [2025-04-18 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938926', 'tblTempVendorCDR_20' ) start [2025-04-18 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938926', 'tblTempVendorCDR_20' ) end [2025-04-18 23:22:18] Production.INFO: ProcessCDR(1,14938926,1,1,2) [2025-04-18 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938926', 'tblTempUsageDetail_20' ) start [2025-04-18 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938926', 'tblTempUsageDetail_20' ) end [2025-04-18 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:22:22] Production.INFO: ==30665== Releasing lock... [2025-04-18 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:22:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:23:06 [end_date_ymd] => 2025-04-18 23:23:06 [RateCDR] => 1 ) [2025-04-18 23: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-04-18 20:23:06' and `end` < '2025-04-18 23: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-04-18 23:23:18] Production.INFO: count ==1722 [2025-04-18 23:23:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:23:06 - End Time 2025-04-18 23:23:06 [2025-04-18 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938931', 'tblTempUsageDetail_20' ) start [2025-04-18 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938931', 'tblTempUsageDetail_20' ) end [2025-04-18 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938931', 'tblTempVendorCDR_20' ) start [2025-04-18 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938931', 'tblTempVendorCDR_20' ) end [2025-04-18 23:23:19] Production.INFO: ProcessCDR(1,14938931,1,1,2) [2025-04-18 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938931', 'tblTempUsageDetail_20' ) start [2025-04-18 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938931', 'tblTempUsageDetail_20' ) end [2025-04-18 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:23:22] Production.INFO: ==30740== Releasing lock... [2025-04-18 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:23:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:24:05 [end_date_ymd] => 2025-04-18 23:24:05 [RateCDR] => 1 ) [2025-04-18 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:24:05' and `end` < '2025-04-18 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:24:18] Production.INFO: count ==1718 [2025-04-18 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:24:05 - End Time 2025-04-18 23:24:05 [2025-04-18 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938936', 'tblTempUsageDetail_20' ) start [2025-04-18 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938936', 'tblTempUsageDetail_20' ) end [2025-04-18 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938936', 'tblTempVendorCDR_20' ) start [2025-04-18 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938936', 'tblTempVendorCDR_20' ) end [2025-04-18 23:24:18] Production.INFO: ProcessCDR(1,14938936,1,1,2) [2025-04-18 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938936', 'tblTempUsageDetail_20' ) start [2025-04-18 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938936', 'tblTempUsageDetail_20' ) end [2025-04-18 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:24:22] Production.INFO: ==30820== Releasing lock... [2025-04-18 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:24:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:25:05 [end_date_ymd] => 2025-04-18 23:25:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:25:05' and `end` < '2025-04-18 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-04-18 23:25:18] Production.INFO: count ==1821 [2025-04-18 23:25:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:25:05 - End Time 2025-04-18 23:25:05 [2025-04-18 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938941', 'tblTempUsageDetail_20' ) start [2025-04-18 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938941', 'tblTempUsageDetail_20' ) end [2025-04-18 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938941', 'tblTempVendorCDR_20' ) start [2025-04-18 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938941', 'tblTempVendorCDR_20' ) end [2025-04-18 23:25:19] Production.INFO: ProcessCDR(1,14938941,1,1,2) [2025-04-18 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938941', 'tblTempUsageDetail_20' ) start [2025-04-18 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938941', 'tblTempUsageDetail_20' ) end [2025-04-18 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:25:22] Production.INFO: ==30892== Releasing lock... [2025-04-18 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:25:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-18 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:26:05 [end_date_ymd] => 2025-04-18 23:26:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:26:05' and `end` < '2025-04-18 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-04-18 23:26:18] Production.INFO: count ==1819 [2025-04-18 23:26:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:26:05 - End Time 2025-04-18 23:26:05 [2025-04-18 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938946', 'tblTempUsageDetail_20' ) start [2025-04-18 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938946', 'tblTempUsageDetail_20' ) end [2025-04-18 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938946', 'tblTempVendorCDR_20' ) start [2025-04-18 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938946', 'tblTempVendorCDR_20' ) end [2025-04-18 23:26:19] Production.INFO: ProcessCDR(1,14938946,1,1,2) [2025-04-18 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938946', 'tblTempUsageDetail_20' ) start [2025-04-18 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938946', 'tblTempUsageDetail_20' ) end [2025-04-18 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:26:22] Production.INFO: ==30963== Releasing lock... [2025-04-18 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:26:22] Production.INFO: 42 MB #Memory Used# [2025-04-18 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:27:05 [end_date_ymd] => 2025-04-18 23:27:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:27:05' and `end` < '2025-04-18 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-04-18 23:27:18] Production.INFO: count ==1818 [2025-04-18 23:27:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:27:05 - End Time 2025-04-18 23:27:05 [2025-04-18 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938951', 'tblTempUsageDetail_20' ) start [2025-04-18 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938951', 'tblTempUsageDetail_20' ) end [2025-04-18 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938951', 'tblTempVendorCDR_20' ) start [2025-04-18 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938951', 'tblTempVendorCDR_20' ) end [2025-04-18 23:27:19] Production.INFO: ProcessCDR(1,14938951,1,1,2) [2025-04-18 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938951', 'tblTempUsageDetail_20' ) start [2025-04-18 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938951', 'tblTempUsageDetail_20' ) end [2025-04-18 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:27:22] Production.INFO: ==31033== Releasing lock... [2025-04-18 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:27:22] Production.INFO: 42 MB #Memory Used# [2025-04-18 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:28:05 [end_date_ymd] => 2025-04-18 23:28:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:28:05' and `end` < '2025-04-18 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-04-18 23:28:18] Production.INFO: count ==1818 [2025-04-18 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:28:05 - End Time 2025-04-18 23:28:05 [2025-04-18 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938956', 'tblTempUsageDetail_20' ) start [2025-04-18 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938956', 'tblTempUsageDetail_20' ) end [2025-04-18 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938956', 'tblTempVendorCDR_20' ) start [2025-04-18 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938956', 'tblTempVendorCDR_20' ) end [2025-04-18 23:28:18] Production.INFO: ProcessCDR(1,14938956,1,1,2) [2025-04-18 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938956', 'tblTempUsageDetail_20' ) start [2025-04-18 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938956', 'tblTempUsageDetail_20' ) end [2025-04-18 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:28:22] Production.INFO: ==31110== Releasing lock... [2025-04-18 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:28:22] Production.INFO: 42 MB #Memory Used# [2025-04-18 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:29:06 [end_date_ymd] => 2025-04-18 23:29:06 [RateCDR] => 1 ) [2025-04-18 23: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-04-18 20:29:06' and `end` < '2025-04-18 23: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-04-18 23:29:18] Production.INFO: count ==1816 [2025-04-18 23:29:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:29:06 - End Time 2025-04-18 23:29:06 [2025-04-18 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938961', 'tblTempUsageDetail_20' ) start [2025-04-18 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938961', 'tblTempUsageDetail_20' ) end [2025-04-18 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938961', 'tblTempVendorCDR_20' ) start [2025-04-18 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938961', 'tblTempVendorCDR_20' ) end [2025-04-18 23:29:19] Production.INFO: ProcessCDR(1,14938961,1,1,2) [2025-04-18 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938961', 'tblTempUsageDetail_20' ) start [2025-04-18 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938961', 'tblTempUsageDetail_20' ) end [2025-04-18 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:29:22] Production.INFO: ==31185== Releasing lock... [2025-04-18 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:29:22] Production.INFO: 42 MB #Memory Used# [2025-04-18 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:30:06 [end_date_ymd] => 2025-04-18 23:30:06 [RateCDR] => 1 ) [2025-04-18 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:30:06' and `end` < '2025-04-18 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:30:19] Production.INFO: count ==1817 [2025-04-18 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:30:06 - End Time 2025-04-18 23:30:06 [2025-04-18 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938967', 'tblTempUsageDetail_20' ) start [2025-04-18 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938967', 'tblTempUsageDetail_20' ) end [2025-04-18 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938967', 'tblTempVendorCDR_20' ) start [2025-04-18 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938967', 'tblTempVendorCDR_20' ) end [2025-04-18 23:30:19] Production.INFO: ProcessCDR(1,14938967,1,1,2) [2025-04-18 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938967', 'tblTempUsageDetail_20' ) start [2025-04-18 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938967', 'tblTempUsageDetail_20' ) end [2025-04-18 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:30:23] Production.INFO: ==31263== Releasing lock... [2025-04-18 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:30:23] Production.INFO: 42 MB #Memory Used# [2025-04-18 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:31:05 [end_date_ymd] => 2025-04-18 23:31:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:31:05' and `end` < '2025-04-18 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-04-18 23:31:18] Production.INFO: count ==1801 [2025-04-18 23:31:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:31:05 - End Time 2025-04-18 23:31:05 [2025-04-18 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938972', 'tblTempUsageDetail_20' ) start [2025-04-18 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938972', 'tblTempUsageDetail_20' ) end [2025-04-18 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938972', 'tblTempVendorCDR_20' ) start [2025-04-18 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938972', 'tblTempVendorCDR_20' ) end [2025-04-18 23:31:19] Production.INFO: ProcessCDR(1,14938972,1,1,2) [2025-04-18 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938972', 'tblTempUsageDetail_20' ) start [2025-04-18 23:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938972', 'tblTempUsageDetail_20' ) end [2025-04-18 23:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:31:24] Production.INFO: ==31335== Releasing lock... [2025-04-18 23:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:31:24] Production.INFO: 42 MB #Memory Used# [2025-04-18 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:32:05 [end_date_ymd] => 2025-04-18 23:32:05 [RateCDR] => 1 ) [2025-04-18 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:32:05' and `end` < '2025-04-18 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:32:18] Production.INFO: count ==1804 [2025-04-18 23:32:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:32:05 - End Time 2025-04-18 23:32:05 [2025-04-18 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938977', 'tblTempUsageDetail_20' ) start [2025-04-18 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938977', 'tblTempUsageDetail_20' ) end [2025-04-18 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938977', 'tblTempVendorCDR_20' ) start [2025-04-18 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938977', 'tblTempVendorCDR_20' ) end [2025-04-18 23:32:18] Production.INFO: ProcessCDR(1,14938977,1,1,2) [2025-04-18 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938977', 'tblTempUsageDetail_20' ) start [2025-04-18 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938977', 'tblTempUsageDetail_20' ) end [2025-04-18 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:32:22] Production.INFO: ==31410== Releasing lock... [2025-04-18 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:32:22] Production.INFO: 42 MB #Memory Used# [2025-04-18 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:33:05 [end_date_ymd] => 2025-04-18 23:33:05 [RateCDR] => 1 ) [2025-04-18 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:33:05' and `end` < '2025-04-18 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:33:18] Production.INFO: count ==1800 [2025-04-18 23:33:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:33:05 - End Time 2025-04-18 23:33:05 [2025-04-18 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938982', 'tblTempUsageDetail_20' ) start [2025-04-18 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938982', 'tblTempUsageDetail_20' ) end [2025-04-18 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938982', 'tblTempVendorCDR_20' ) start [2025-04-18 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938982', 'tblTempVendorCDR_20' ) end [2025-04-18 23:33:19] Production.INFO: ProcessCDR(1,14938982,1,1,2) [2025-04-18 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938982', 'tblTempUsageDetail_20' ) start [2025-04-18 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938982', 'tblTempUsageDetail_20' ) end [2025-04-18 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:33:23] Production.INFO: ==31480== Releasing lock... [2025-04-18 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:33:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:34:05 [end_date_ymd] => 2025-04-18 23:34:05 [RateCDR] => 1 ) [2025-04-18 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:34:05' and `end` < '2025-04-18 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:34:18] Production.INFO: count ==1794 [2025-04-18 23:34:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:34:05 - End Time 2025-04-18 23:34:05 [2025-04-18 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938987', 'tblTempUsageDetail_20' ) start [2025-04-18 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938987', 'tblTempUsageDetail_20' ) end [2025-04-18 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938987', 'tblTempVendorCDR_20' ) start [2025-04-18 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938987', 'tblTempVendorCDR_20' ) end [2025-04-18 23:34:19] Production.INFO: ProcessCDR(1,14938987,1,1,2) [2025-04-18 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938987', 'tblTempUsageDetail_20' ) start [2025-04-18 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938987', 'tblTempUsageDetail_20' ) end [2025-04-18 23:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:34:24] Production.INFO: ==31555== Releasing lock... [2025-04-18 23:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:34:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-18 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:35:05 [end_date_ymd] => 2025-04-18 23:35:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:35:05' and `end` < '2025-04-18 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-04-18 23:35:18] Production.INFO: count ==1782 [2025-04-18 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:35:05 - End Time 2025-04-18 23:35:05 [2025-04-18 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938992', 'tblTempUsageDetail_20' ) start [2025-04-18 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938992', 'tblTempUsageDetail_20' ) end [2025-04-18 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938992', 'tblTempVendorCDR_20' ) start [2025-04-18 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938992', 'tblTempVendorCDR_20' ) end [2025-04-18 23:35:18] Production.INFO: ProcessCDR(1,14938992,1,1,2) [2025-04-18 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938992', 'tblTempUsageDetail_20' ) start [2025-04-18 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938992', 'tblTempUsageDetail_20' ) end [2025-04-18 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:35:22] Production.INFO: ==31631== Releasing lock... [2025-04-18 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:35:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-18 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:36:05 [end_date_ymd] => 2025-04-18 23:36:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:36:05' and `end` < '2025-04-18 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-04-18 23:36:17] Production.INFO: count ==1774 [2025-04-18 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:36:05 - End Time 2025-04-18 23:36:05 [2025-04-18 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938997', 'tblTempUsageDetail_20' ) start [2025-04-18 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14938997', 'tblTempUsageDetail_20' ) end [2025-04-18 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938997', 'tblTempVendorCDR_20' ) start [2025-04-18 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14938997', 'tblTempVendorCDR_20' ) end [2025-04-18 23:36:18] Production.INFO: ProcessCDR(1,14938997,1,1,2) [2025-04-18 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14938997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14938997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14938997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14938997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938997', 'tblTempUsageDetail_20' ) start [2025-04-18 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14938997', 'tblTempUsageDetail_20' ) end [2025-04-18 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:36:21] Production.INFO: ==31707== Releasing lock... [2025-04-18 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:36:21] Production.INFO: 41.75 MB #Memory Used# [2025-04-18 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:37:05 [end_date_ymd] => 2025-04-18 23:37:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:37:05' and `end` < '2025-04-18 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-04-18 23:37:18] Production.INFO: count ==1762 [2025-04-18 23:37:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:37:05 - End Time 2025-04-18 23:37:05 [2025-04-18 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939002', 'tblTempUsageDetail_20' ) start [2025-04-18 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939002', 'tblTempUsageDetail_20' ) end [2025-04-18 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939002', 'tblTempVendorCDR_20' ) start [2025-04-18 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939002', 'tblTempVendorCDR_20' ) end [2025-04-18 23:37:19] Production.INFO: ProcessCDR(1,14939002,1,1,2) [2025-04-18 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939002', 'tblTempUsageDetail_20' ) start [2025-04-18 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939002', 'tblTempUsageDetail_20' ) end [2025-04-18 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:37:22] Production.INFO: ==31822== Releasing lock... [2025-04-18 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:37:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-18 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:38:04 [end_date_ymd] => 2025-04-18 23:38:04 [RateCDR] => 1 ) [2025-04-18 23:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:38:04' and `end` < '2025-04-18 23:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:38:17] Production.INFO: count ==1752 [2025-04-18 23:38:17] Production.ERROR: pbx CDR StartTime 2025-04-18 20:38:04 - End Time 2025-04-18 23:38:04 [2025-04-18 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939007', 'tblTempUsageDetail_20' ) start [2025-04-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939007', 'tblTempUsageDetail_20' ) end [2025-04-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939007', 'tblTempVendorCDR_20' ) start [2025-04-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939007', 'tblTempVendorCDR_20' ) end [2025-04-18 23:38:17] Production.INFO: ProcessCDR(1,14939007,1,1,2) [2025-04-18 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939007', 'tblTempUsageDetail_20' ) start [2025-04-18 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939007', 'tblTempUsageDetail_20' ) end [2025-04-18 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:38:23] Production.INFO: ==31892== Releasing lock... [2025-04-18 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:38:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:39:06 [end_date_ymd] => 2025-04-18 23:39:06 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:39:06' and `end` < '2025-04-18 23: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-04-18 23:39:18] Production.INFO: count ==1738 [2025-04-18 23:39:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:39:06 - End Time 2025-04-18 23:39:06 [2025-04-18 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939012', 'tblTempUsageDetail_20' ) start [2025-04-18 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939012', 'tblTempUsageDetail_20' ) end [2025-04-18 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939012', 'tblTempVendorCDR_20' ) start [2025-04-18 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939012', 'tblTempVendorCDR_20' ) end [2025-04-18 23:39:19] Production.INFO: ProcessCDR(1,14939012,1,1,2) [2025-04-18 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939012', 'tblTempUsageDetail_20' ) start [2025-04-18 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939012', 'tblTempUsageDetail_20' ) end [2025-04-18 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:39:22] Production.INFO: ==31967== Releasing lock... [2025-04-18 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:39:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-18 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:40:05 [end_date_ymd] => 2025-04-18 23:40:05 [RateCDR] => 1 ) [2025-04-18 23:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:40:05' and `end` < '2025-04-18 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:40:18] Production.INFO: count ==1723 [2025-04-18 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:40:05 - End Time 2025-04-18 23:40:05 [2025-04-18 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939017', 'tblTempUsageDetail_20' ) start [2025-04-18 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939017', 'tblTempUsageDetail_20' ) end [2025-04-18 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939017', 'tblTempVendorCDR_20' ) start [2025-04-18 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939017', 'tblTempVendorCDR_20' ) end [2025-04-18 23:40:19] Production.INFO: ProcessCDR(1,14939017,1,1,2) [2025-04-18 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939017', 'tblTempUsageDetail_20' ) start [2025-04-18 23:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939017', 'tblTempUsageDetail_20' ) end [2025-04-18 23:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:40:24] Production.INFO: ==32046== Releasing lock... [2025-04-18 23:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:40:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-18 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:41:05 [end_date_ymd] => 2025-04-18 23:41:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:41:05' and `end` < '2025-04-18 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-04-18 23:41:18] Production.INFO: count ==1679 [2025-04-18 23:41:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:41:05 - End Time 2025-04-18 23:41:05 [2025-04-18 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939023', 'tblTempUsageDetail_20' ) start [2025-04-18 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939023', 'tblTempUsageDetail_20' ) end [2025-04-18 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939023', 'tblTempVendorCDR_20' ) start [2025-04-18 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939023', 'tblTempVendorCDR_20' ) end [2025-04-18 23:41:19] Production.INFO: ProcessCDR(1,14939023,1,1,2) [2025-04-18 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939023', 'tblTempUsageDetail_20' ) start [2025-04-18 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939023', 'tblTempUsageDetail_20' ) end [2025-04-18 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:41:22] Production.INFO: ==32118== Releasing lock... [2025-04-18 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:41:22] Production.INFO: 41 MB #Memory Used# [2025-04-18 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:42:05 [end_date_ymd] => 2025-04-18 23:42:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:42:05' and `end` < '2025-04-18 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-04-18 23:42:18] Production.INFO: count ==1659 [2025-04-18 23:42:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:42:05 - End Time 2025-04-18 23:42:05 [2025-04-18 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939028', 'tblTempUsageDetail_20' ) start [2025-04-18 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939028', 'tblTempUsageDetail_20' ) end [2025-04-18 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939028', 'tblTempVendorCDR_20' ) start [2025-04-18 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939028', 'tblTempVendorCDR_20' ) end [2025-04-18 23:42:19] Production.INFO: ProcessCDR(1,14939028,1,1,2) [2025-04-18 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939028', 'tblTempUsageDetail_20' ) start [2025-04-18 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939028', 'tblTempUsageDetail_20' ) end [2025-04-18 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:42:22] Production.INFO: ==32193== Releasing lock... [2025-04-18 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:42:22] Production.INFO: 41 MB #Memory Used# [2025-04-18 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:43:05 [end_date_ymd] => 2025-04-18 23:43:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:43:05' and `end` < '2025-04-18 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-04-18 23:43:18] Production.INFO: count ==1639 [2025-04-18 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:43:05 - End Time 2025-04-18 23:43:05 [2025-04-18 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939033', 'tblTempUsageDetail_20' ) start [2025-04-18 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939033', 'tblTempUsageDetail_20' ) end [2025-04-18 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939033', 'tblTempVendorCDR_20' ) start [2025-04-18 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939033', 'tblTempVendorCDR_20' ) end [2025-04-18 23:43:18] Production.INFO: ProcessCDR(1,14939033,1,1,2) [2025-04-18 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939033', 'tblTempUsageDetail_20' ) start [2025-04-18 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939033', 'tblTempUsageDetail_20' ) end [2025-04-18 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:43:22] Production.INFO: ==32265== Releasing lock... [2025-04-18 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:43:22] Production.INFO: 41 MB #Memory Used# [2025-04-18 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:44:05 [end_date_ymd] => 2025-04-18 23:44:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:44:05' and `end` < '2025-04-18 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-04-18 23:44:18] Production.INFO: count ==1638 [2025-04-18 23:44:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:44:05 - End Time 2025-04-18 23:44:05 [2025-04-18 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939038', 'tblTempUsageDetail_20' ) start [2025-04-18 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939038', 'tblTempUsageDetail_20' ) end [2025-04-18 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939038', 'tblTempVendorCDR_20' ) start [2025-04-18 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939038', 'tblTempVendorCDR_20' ) end [2025-04-18 23:44:19] Production.INFO: ProcessCDR(1,14939038,1,1,2) [2025-04-18 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939038', 'tblTempUsageDetail_20' ) start [2025-04-18 23:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939038', 'tblTempUsageDetail_20' ) end [2025-04-18 23:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:44:24] Production.INFO: ==32340== Releasing lock... [2025-04-18 23:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:44:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:45:05 [end_date_ymd] => 2025-04-18 23:45:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:45:05' and `end` < '2025-04-18 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-04-18 23:45:17] Production.INFO: count ==1636 [2025-04-18 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:45:05 - End Time 2025-04-18 23:45:05 [2025-04-18 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939043', 'tblTempUsageDetail_20' ) start [2025-04-18 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939043', 'tblTempUsageDetail_20' ) end [2025-04-18 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939043', 'tblTempVendorCDR_20' ) start [2025-04-18 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939043', 'tblTempVendorCDR_20' ) end [2025-04-18 23:45:18] Production.INFO: ProcessCDR(1,14939043,1,1,2) [2025-04-18 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939043', 'tblTempUsageDetail_20' ) start [2025-04-18 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939043', 'tblTempUsageDetail_20' ) end [2025-04-18 23:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:45:23] Production.INFO: ==32411== Releasing lock... [2025-04-18 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:45:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:46:05 [end_date_ymd] => 2025-04-18 23:46:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:46:05' and `end` < '2025-04-18 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-04-18 23:46:18] Production.INFO: count ==1631 [2025-04-18 23:46:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:46:05 - End Time 2025-04-18 23:46:05 [2025-04-18 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939048', 'tblTempUsageDetail_20' ) start [2025-04-18 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939048', 'tblTempUsageDetail_20' ) end [2025-04-18 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939048', 'tblTempVendorCDR_20' ) start [2025-04-18 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939048', 'tblTempVendorCDR_20' ) end [2025-04-18 23:46:19] Production.INFO: ProcessCDR(1,14939048,1,1,2) [2025-04-18 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939048', 'tblTempUsageDetail_20' ) start [2025-04-18 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939048', 'tblTempUsageDetail_20' ) end [2025-04-18 23:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:46:24] Production.INFO: ==32487== Releasing lock... [2025-04-18 23:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:46:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:47:05 [end_date_ymd] => 2025-04-18 23:47:05 [RateCDR] => 1 ) [2025-04-18 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:47:05' and `end` < '2025-04-18 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:47:18] Production.INFO: count ==1627 [2025-04-18 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:47:05 - End Time 2025-04-18 23:47:05 [2025-04-18 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939053', 'tblTempUsageDetail_20' ) start [2025-04-18 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939053', 'tblTempUsageDetail_20' ) end [2025-04-18 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939053', 'tblTempVendorCDR_20' ) start [2025-04-18 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939053', 'tblTempVendorCDR_20' ) end [2025-04-18 23:47:18] Production.INFO: ProcessCDR(1,14939053,1,1,2) [2025-04-18 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939053', 'tblTempUsageDetail_20' ) start [2025-04-18 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939053', 'tblTempUsageDetail_20' ) end [2025-04-18 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:47:22] Production.INFO: ==32561== Releasing lock... [2025-04-18 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:47:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:48:05 [end_date_ymd] => 2025-04-18 23:48:05 [RateCDR] => 1 ) [2025-04-18 23: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-04-18 20:48:05' and `end` < '2025-04-18 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:48:18] Production.INFO: count ==1625 [2025-04-18 23:48:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:48:05 - End Time 2025-04-18 23:48:05 [2025-04-18 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939058', 'tblTempUsageDetail_20' ) start [2025-04-18 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939058', 'tblTempUsageDetail_20' ) end [2025-04-18 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939058', 'tblTempVendorCDR_20' ) start [2025-04-18 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939058', 'tblTempVendorCDR_20' ) end [2025-04-18 23:48:19] Production.INFO: ProcessCDR(1,14939058,1,1,2) [2025-04-18 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939058', 'tblTempUsageDetail_20' ) start [2025-04-18 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939058', 'tblTempUsageDetail_20' ) end [2025-04-18 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:48:22] Production.INFO: ==32633== Releasing lock... [2025-04-18 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:48:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:49:05 [end_date_ymd] => 2025-04-18 23:49:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:49:05' and `end` < '2025-04-18 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-04-18 23:49:17] Production.INFO: count ==1622 [2025-04-18 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:49:05 - End Time 2025-04-18 23:49:05 [2025-04-18 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939063', 'tblTempUsageDetail_20' ) start [2025-04-18 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939063', 'tblTempUsageDetail_20' ) end [2025-04-18 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939063', 'tblTempVendorCDR_20' ) start [2025-04-18 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939063', 'tblTempVendorCDR_20' ) end [2025-04-18 23:49:18] Production.INFO: ProcessCDR(1,14939063,1,1,2) [2025-04-18 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939063', 'tblTempUsageDetail_20' ) start [2025-04-18 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939063', 'tblTempUsageDetail_20' ) end [2025-04-18 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:49:21] Production.INFO: ==32703== Releasing lock... [2025-04-18 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:49:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:50:06 [end_date_ymd] => 2025-04-18 23:50:06 [RateCDR] => 1 ) [2025-04-18 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:50:06' and `end` < '2025-04-18 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:50:19] Production.INFO: count ==1623 [2025-04-18 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:50:06 - End Time 2025-04-18 23:50:06 [2025-04-18 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939069', 'tblTempUsageDetail_20' ) start [2025-04-18 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939069', 'tblTempUsageDetail_20' ) end [2025-04-18 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939069', 'tblTempVendorCDR_20' ) start [2025-04-18 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939069', 'tblTempVendorCDR_20' ) end [2025-04-18 23:50:19] Production.INFO: ProcessCDR(1,14939069,1,1,2) [2025-04-18 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939069', 'tblTempUsageDetail_20' ) start [2025-04-18 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939069', 'tblTempUsageDetail_20' ) end [2025-04-18 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:50:23] Production.INFO: ==327== Releasing lock... [2025-04-18 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:50:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:51:06 [end_date_ymd] => 2025-04-18 23:51:06 [RateCDR] => 1 ) [2025-04-18 23: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-04-18 20:51:06' and `end` < '2025-04-18 23: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-04-18 23:51:18] Production.INFO: count ==1630 [2025-04-18 23:51:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:51:06 - End Time 2025-04-18 23:51:06 [2025-04-18 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939074', 'tblTempUsageDetail_20' ) start [2025-04-18 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939074', 'tblTempUsageDetail_20' ) end [2025-04-18 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939074', 'tblTempVendorCDR_20' ) start [2025-04-18 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939074', 'tblTempVendorCDR_20' ) end [2025-04-18 23:51:19] Production.INFO: ProcessCDR(1,14939074,1,1,2) [2025-04-18 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939074', 'tblTempUsageDetail_20' ) start [2025-04-18 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939074', 'tblTempUsageDetail_20' ) end [2025-04-18 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:51:22] Production.INFO: ==414== Releasing lock... [2025-04-18 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:51:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:52:05 [end_date_ymd] => 2025-04-18 23:52:05 [RateCDR] => 1 ) [2025-04-18 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:52:05' and `end` < '2025-04-18 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:52:18] Production.INFO: count ==1628 [2025-04-18 23:52:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:52:05 - End Time 2025-04-18 23:52:05 [2025-04-18 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939079', 'tblTempUsageDetail_20' ) start [2025-04-18 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939079', 'tblTempUsageDetail_20' ) end [2025-04-18 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939079', 'tblTempVendorCDR_20' ) start [2025-04-18 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939079', 'tblTempVendorCDR_20' ) end [2025-04-18 23:52:19] Production.INFO: ProcessCDR(1,14939079,1,1,2) [2025-04-18 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939079', 'tblTempUsageDetail_20' ) start [2025-04-18 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939079', 'tblTempUsageDetail_20' ) end [2025-04-18 23:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:52:24] Production.INFO: ==531== Releasing lock... [2025-04-18 23:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:52:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:53:04 [end_date_ymd] => 2025-04-18 23:53:04 [RateCDR] => 1 ) [2025-04-18 23:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-18 20:53:04' and `end` < '2025-04-18 23:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-18 23:53:17] Production.INFO: count ==1622 [2025-04-18 23:53:17] Production.ERROR: pbx CDR StartTime 2025-04-18 20:53:04 - End Time 2025-04-18 23:53:04 [2025-04-18 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939084', 'tblTempUsageDetail_20' ) start [2025-04-18 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939084', 'tblTempUsageDetail_20' ) end [2025-04-18 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939084', 'tblTempVendorCDR_20' ) start [2025-04-18 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939084', 'tblTempVendorCDR_20' ) end [2025-04-18 23:53:17] Production.INFO: ProcessCDR(1,14939084,1,1,2) [2025-04-18 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939084', 'tblTempUsageDetail_20' ) start [2025-04-18 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939084', 'tblTempUsageDetail_20' ) end [2025-04-18 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:53:21] Production.INFO: ==608== Releasing lock... [2025-04-18 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:53:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:54:05 [end_date_ymd] => 2025-04-18 23:54:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:54:05' and `end` < '2025-04-18 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-04-18 23:54:17] Production.INFO: count ==1620 [2025-04-18 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:54:05 - End Time 2025-04-18 23:54:05 [2025-04-18 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939089', 'tblTempUsageDetail_20' ) start [2025-04-18 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939089', 'tblTempUsageDetail_20' ) end [2025-04-18 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939089', 'tblTempVendorCDR_20' ) start [2025-04-18 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939089', 'tblTempVendorCDR_20' ) end [2025-04-18 23:54:18] Production.INFO: ProcessCDR(1,14939089,1,1,2) [2025-04-18 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939089', 'tblTempUsageDetail_20' ) start [2025-04-18 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939089', 'tblTempUsageDetail_20' ) end [2025-04-18 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:54:21] Production.INFO: ==705== Releasing lock... [2025-04-18 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:54:21] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:55:06 [end_date_ymd] => 2025-04-18 23:55:06 [RateCDR] => 1 ) [2025-04-18 23: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-04-18 20:55:06' and `end` < '2025-04-18 23: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-04-18 23:55:18] Production.INFO: count ==1616 [2025-04-18 23:55:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:55:06 - End Time 2025-04-18 23:55:06 [2025-04-18 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939094', 'tblTempUsageDetail_20' ) start [2025-04-18 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939094', 'tblTempUsageDetail_20' ) end [2025-04-18 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939094', 'tblTempVendorCDR_20' ) start [2025-04-18 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939094', 'tblTempVendorCDR_20' ) end [2025-04-18 23:55:19] Production.INFO: ProcessCDR(1,14939094,1,1,2) [2025-04-18 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939094', 'tblTempUsageDetail_20' ) start [2025-04-18 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939094', 'tblTempUsageDetail_20' ) end [2025-04-18 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:55:22] Production.INFO: ==786== Releasing lock... [2025-04-18 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:55:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:56:05 [end_date_ymd] => 2025-04-18 23:56:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:56:05' and `end` < '2025-04-18 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-04-18 23:56:18] Production.INFO: count ==1620 [2025-04-18 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:56:05 - End Time 2025-04-18 23:56:05 [2025-04-18 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939099', 'tblTempUsageDetail_20' ) start [2025-04-18 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939099', 'tblTempUsageDetail_20' ) end [2025-04-18 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939099', 'tblTempVendorCDR_20' ) start [2025-04-18 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939099', 'tblTempVendorCDR_20' ) end [2025-04-18 23:56:18] Production.INFO: ProcessCDR(1,14939099,1,1,2) [2025-04-18 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939099', 'tblTempUsageDetail_20' ) start [2025-04-18 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939099', 'tblTempUsageDetail_20' ) end [2025-04-18 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:56:22] Production.INFO: ==858== Releasing lock... [2025-04-18 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:56:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-18 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:57:05 [end_date_ymd] => 2025-04-18 23:57:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:57:05' and `end` < '2025-04-18 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-04-18 23:57:18] Production.INFO: count ==1617 [2025-04-18 23:57:19] Production.ERROR: pbx CDR StartTime 2025-04-18 20:57:05 - End Time 2025-04-18 23:57:05 [2025-04-18 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939104', 'tblTempUsageDetail_20' ) start [2025-04-18 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939104', 'tblTempUsageDetail_20' ) end [2025-04-18 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939104', 'tblTempVendorCDR_20' ) start [2025-04-18 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939104', 'tblTempVendorCDR_20' ) end [2025-04-18 23:57:19] Production.INFO: ProcessCDR(1,14939104,1,1,2) [2025-04-18 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939104', 'tblTempUsageDetail_20' ) start [2025-04-18 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939104', 'tblTempUsageDetail_20' ) end [2025-04-18 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:57:22] Production.INFO: ==934== Releasing lock... [2025-04-18 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:57:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-18 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:58:05 [end_date_ymd] => 2025-04-18 23:58:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:58:05' and `end` < '2025-04-18 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-04-18 23:58:18] Production.INFO: count ==1613 [2025-04-18 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:58:05 - End Time 2025-04-18 23:58:05 [2025-04-18 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939109', 'tblTempUsageDetail_20' ) start [2025-04-18 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939109', 'tblTempUsageDetail_20' ) end [2025-04-18 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939109', 'tblTempVendorCDR_20' ) start [2025-04-18 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939109', 'tblTempVendorCDR_20' ) end [2025-04-18 23:58:18] Production.INFO: ProcessCDR(1,14939109,1,1,2) [2025-04-18 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939109', 'tblTempUsageDetail_20' ) start [2025-04-18 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939109', 'tblTempUsageDetail_20' ) end [2025-04-18 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:58:22] Production.INFO: ==1006== Releasing lock... [2025-04-18 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:58:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-18 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-18 20:59:05 [end_date_ymd] => 2025-04-18 23:59:05 [RateCDR] => 1 ) [2025-04-18 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-04-18 20:59:05' and `end` < '2025-04-18 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-04-18 23:59:18] Production.INFO: count ==1612 [2025-04-18 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-18 20:59:05 - End Time 2025-04-18 23:59:05 [2025-04-18 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-18 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939114', 'tblTempUsageDetail_20' ) start [2025-04-18 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14939114', 'tblTempUsageDetail_20' ) end [2025-04-18 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939114', 'tblTempVendorCDR_20' ) start [2025-04-18 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14939114', 'tblTempVendorCDR_20' ) end [2025-04-18 23:59:18] Production.INFO: ProcessCDR(1,14939114,1,1,2) [2025-04-18 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14939114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14939114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-18 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14939114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14939114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-18 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939114', 'tblTempUsageDetail_20' ) start [2025-04-18 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14939114', 'tblTempUsageDetail_20' ) end [2025-04-18 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-18 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-18 23:59:22] Production.INFO: ==1080== Releasing lock... [2025-04-18 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-18 23:59:22] Production.INFO: 40.75 MB #Memory Used#