[2025-06-26 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 21:25:05 [end_date_ymd] => 2025-06-26 00:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-25 21:25:05' and `end` < '2025-06-26 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-06-26 00:25:18] Production.INFO: count ==710 [2025-06-26 00:25:18] Production.ERROR: pbx CDR StartTime 2025-06-25 21:25:05 - End Time 2025-06-26 00:25:05 [2025-06-26 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15361213', 'tblTempUsageDetail_20' ) start [2025-06-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15361213', 'tblTempUsageDetail_20' ) end [2025-06-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15361213', 'tblTempVendorCDR_20' ) start [2025-06-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15361213', 'tblTempVendorCDR_20' ) end [2025-06-26 00:25:18] Production.INFO: ProcessCDR(1,15361213,1,1,2) [2025-06-26 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15361213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15361213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15361213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15361213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15361213', 'tblTempUsageDetail_20' ) start [2025-06-26 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15361213', 'tblTempUsageDetail_20' ) end [2025-06-26 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-26 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-26 00:25:28] Production.INFO: ==13527== Releasing lock... [2025-06-26 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 00:25:28] Production.INFO: 37.75 MB #Memory Used# [2025-06-26 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 22:25:05 [end_date_ymd] => 2025-06-26 01:25:05 [RateCDR] => 1 ) [2025-06-26 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-25 22:25:05' and `end` < '2025-06-26 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-26 01:25:17] Production.INFO: count ==584 [2025-06-26 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-25 22:25:05 - End Time 2025-06-26 01:25:05 [2025-06-26 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15361460', 'tblTempUsageDetail_20' ) start [2025-06-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15361460', 'tblTempUsageDetail_20' ) end [2025-06-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15361460', 'tblTempVendorCDR_20' ) start [2025-06-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15361460', 'tblTempVendorCDR_20' ) end [2025-06-26 01:25:17] Production.INFO: ProcessCDR(1,15361460,1,1,2) [2025-06-26 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15361460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15361460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15361460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15361460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15361460', 'tblTempUsageDetail_20' ) start [2025-06-26 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15361460', 'tblTempUsageDetail_20' ) end [2025-06-26 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-26 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-26 01:25:24] Production.INFO: ==18690== Releasing lock... [2025-06-26 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 01:25:24] Production.INFO: 33 MB #Memory Used# [2025-06-26 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 23:25:05 [end_date_ymd] => 2025-06-26 02:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-25 23:25:05' and `end` < '2025-06-26 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-06-26 02:25:18] Production.INFO: count ==515 [2025-06-26 02:25:18] Production.ERROR: pbx CDR StartTime 2025-06-25 23:25:05 - End Time 2025-06-26 02:25:05 [2025-06-26 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15361707', 'tblTempUsageDetail_20' ) start [2025-06-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15361707', 'tblTempUsageDetail_20' ) end [2025-06-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15361707', 'tblTempVendorCDR_20' ) start [2025-06-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15361707', 'tblTempVendorCDR_20' ) end [2025-06-26 02:25:18] Production.INFO: ProcessCDR(1,15361707,1,1,2) [2025-06-26 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15361707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15361707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15361707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15361707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15361707', 'tblTempUsageDetail_20' ) start [2025-06-26 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15361707', 'tblTempUsageDetail_20' ) end [2025-06-26 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-26 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-26 02:25:25] Production.INFO: ==23199== Releasing lock... [2025-06-26 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 02:25:25] Production.INFO: 32.5 MB #Memory Used# [2025-06-26 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 00:25:06 [end_date_ymd] => 2025-06-26 03:25:06 [RateCDR] => 1 ) [2025-06-26 03:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-26 00:25:06' and `end` < '2025-06-26 03:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-26 03:25:18] Production.INFO: count ==392 [2025-06-26 03:25:18] Production.ERROR: pbx CDR StartTime 2025-06-26 00:25:06 - End Time 2025-06-26 03:25:06 [2025-06-26 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15361954', 'tblTempUsageDetail_20' ) start [2025-06-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15361954', 'tblTempUsageDetail_20' ) end [2025-06-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15361954', 'tblTempVendorCDR_20' ) start [2025-06-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15361954', 'tblTempVendorCDR_20' ) end [2025-06-26 03:25:18] Production.INFO: ProcessCDR(1,15361954,1,1,2) [2025-06-26 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15361954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15361954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15361954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15361954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15361954', 'tblTempUsageDetail_20' ) start [2025-06-26 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15361954', 'tblTempUsageDetail_20' ) end [2025-06-26 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-26 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-26 03:25:24] Production.INFO: ==27511== Releasing lock... [2025-06-26 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 03:25:24] Production.INFO: 31.75 MB #Memory Used# [2025-06-26 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 01:25:05 [end_date_ymd] => 2025-06-26 04:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 01:25:05' and `end` < '2025-06-26 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-26 04:25:17] Production.INFO: count ==256 [2025-06-26 04:25:18] Production.ERROR: pbx CDR StartTime 2025-06-26 01:25:05 - End Time 2025-06-26 04:25:05 [2025-06-26 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15362202', 'tblTempUsageDetail_20' ) start [2025-06-26 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15362202', 'tblTempUsageDetail_20' ) end [2025-06-26 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15362202', 'tblTempVendorCDR_20' ) start [2025-06-26 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15362202', 'tblTempVendorCDR_20' ) end [2025-06-26 04:25:18] Production.INFO: ProcessCDR(1,15362202,1,1,2) [2025-06-26 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15362202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15362202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15362202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15362202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15362202', 'tblTempUsageDetail_20' ) start [2025-06-26 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15362202', 'tblTempUsageDetail_20' ) end [2025-06-26 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-06-26 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-06-26 04:25:22] Production.INFO: ==31834== Releasing lock... [2025-06-26 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 04:25:22] Production.INFO: 30.25 MB #Memory Used# [2025-06-26 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 02:25:05 [end_date_ymd] => 2025-06-26 05:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 02:25:05' and `end` < '2025-06-26 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-06-26 05:25:17] Production.INFO: count ==155 [2025-06-26 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-26 02:25:05 - End Time 2025-06-26 05:25:05 [2025-06-26 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15362450', 'tblTempUsageDetail_20' ) start [2025-06-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15362450', 'tblTempUsageDetail_20' ) end [2025-06-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15362450', 'tblTempVendorCDR_20' ) start [2025-06-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15362450', 'tblTempVendorCDR_20' ) end [2025-06-26 05:25:17] Production.INFO: ProcessCDR(1,15362450,1,1,2) [2025-06-26 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15362450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15362450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15362450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15362450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15362450', 'tblTempUsageDetail_20' ) start [2025-06-26 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15362450', 'tblTempUsageDetail_20' ) end [2025-06-26 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-06-26 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-06-26 05:25:21] Production.INFO: ==3958== Releasing lock... [2025-06-26 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 05:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-06-26 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 03:25:05 [end_date_ymd] => 2025-06-26 06:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 03:25:05' and `end` < '2025-06-26 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-06-26 06:25:17] Production.INFO: count ==101 [2025-06-26 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-26 03:25:05 - End Time 2025-06-26 06:25:05 [2025-06-26 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15362697', 'tblTempUsageDetail_20' ) start [2025-06-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15362697', 'tblTempUsageDetail_20' ) end [2025-06-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15362697', 'tblTempVendorCDR_20' ) start [2025-06-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15362697', 'tblTempVendorCDR_20' ) end [2025-06-26 06:25:17] Production.INFO: ProcessCDR(1,15362697,1,1,2) [2025-06-26 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15362697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15362697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15362697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15362697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15362697', 'tblTempUsageDetail_20' ) start [2025-06-26 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15362697', 'tblTempUsageDetail_20' ) end [2025-06-26 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-26 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-26 06:25:23] Production.INFO: ==8399== Releasing lock... [2025-06-26 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 06:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-06-26 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 04:25:05 [end_date_ymd] => 2025-06-26 07:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 04:25:05' and `end` < '2025-06-26 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-06-26 07:25:17] Production.INFO: count ==126 [2025-06-26 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-26 04:25:05 - End Time 2025-06-26 07:25:05 [2025-06-26 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15362944', 'tblTempUsageDetail_20' ) start [2025-06-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15362944', 'tblTempUsageDetail_20' ) end [2025-06-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15362944', 'tblTempVendorCDR_20' ) start [2025-06-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15362944', 'tblTempVendorCDR_20' ) end [2025-06-26 07:25:17] Production.INFO: ProcessCDR(1,15362944,1,1,2) [2025-06-26 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15362944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15362944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15362944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15362944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15362944', 'tblTempUsageDetail_20' ) start [2025-06-26 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15362944', 'tblTempUsageDetail_20' ) end [2025-06-26 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-26 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-26 07:25:23] Production.INFO: ==12769== Releasing lock... [2025-06-26 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 07:25:23] Production.INFO: 29.25 MB #Memory Used# [2025-06-26 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 05:25:05 [end_date_ymd] => 2025-06-26 08:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 05:25:05' and `end` < '2025-06-26 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-06-26 08:25:17] Production.INFO: count ==341 [2025-06-26 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-26 05:25:05 - End Time 2025-06-26 08:25:05 [2025-06-26 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15363191', 'tblTempUsageDetail_20' ) start [2025-06-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15363191', 'tblTempUsageDetail_20' ) end [2025-06-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15363191', 'tblTempVendorCDR_20' ) start [2025-06-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15363191', 'tblTempVendorCDR_20' ) end [2025-06-26 08:25:17] Production.INFO: ProcessCDR(1,15363191,1,1,2) [2025-06-26 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15363191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15363191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15363191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15363191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15363191', 'tblTempUsageDetail_20' ) start [2025-06-26 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15363191', 'tblTempUsageDetail_20' ) end [2025-06-26 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-26 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-26 08:25:23] Production.INFO: ==17242== Releasing lock... [2025-06-26 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 08:25:23] Production.INFO: 31 MB #Memory Used# [2025-06-26 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 06:25:05 [end_date_ymd] => 2025-06-26 09:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 06:25:05' and `end` < '2025-06-26 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-06-26 09:25:17] Production.INFO: count ==1293 [2025-06-26 09:25:18] Production.ERROR: pbx CDR StartTime 2025-06-26 06:25:05 - End Time 2025-06-26 09:25:05 [2025-06-26 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15363438', 'tblTempUsageDetail_20' ) start [2025-06-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15363438', 'tblTempUsageDetail_20' ) end [2025-06-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15363438', 'tblTempVendorCDR_20' ) start [2025-06-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15363438', 'tblTempVendorCDR_20' ) end [2025-06-26 09:25:18] Production.INFO: ProcessCDR(1,15363438,1,1,2) [2025-06-26 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15363438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15363438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15363438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15363438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15363438', 'tblTempUsageDetail_20' ) start [2025-06-26 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15363438', 'tblTempUsageDetail_20' ) end [2025-06-26 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-26 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-26 09:25:26] Production.INFO: ==21645== Releasing lock... [2025-06-26 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 09:25:26] Production.INFO: 37.75 MB #Memory Used# [2025-06-26 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 07:25:05 [end_date_ymd] => 2025-06-26 10:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 07:25:05' and `end` < '2025-06-26 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-06-26 10:25:19] Production.INFO: count ==2948 [2025-06-26 10:25:20] Production.ERROR: pbx CDR StartTime 2025-06-26 07:25:05 - End Time 2025-06-26 10:25:05 [2025-06-26 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15363685', 'tblTempUsageDetail_20' ) start [2025-06-26 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15363685', 'tblTempUsageDetail_20' ) end [2025-06-26 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15363685', 'tblTempVendorCDR_20' ) start [2025-06-26 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15363685', 'tblTempVendorCDR_20' ) end [2025-06-26 10:25:20] Production.INFO: ProcessCDR(1,15363685,1,1,2) [2025-06-26 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15363685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15363685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15363685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15363685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15363685', 'tblTempUsageDetail_20' ) start [2025-06-26 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15363685', 'tblTempUsageDetail_20' ) end [2025-06-26 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-26 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-06-26 10:25:29] Production.INFO: ==26441== Releasing lock... [2025-06-26 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 10:25:29] Production.INFO: 50.25 MB #Memory Used# [2025-06-26 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 08:25:05 [end_date_ymd] => 2025-06-26 11:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 08:25:05' and `end` < '2025-06-26 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-06-26 11:25:25] Production.INFO: count ==4344 [2025-06-26 11:25:27] Production.ERROR: pbx CDR StartTime 2025-06-26 08:25:05 - End Time 2025-06-26 11:25:05 [2025-06-26 11:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15363932', 'tblTempUsageDetail_20' ) start [2025-06-26 11:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15363932', 'tblTempUsageDetail_20' ) end [2025-06-26 11:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15363932', 'tblTempVendorCDR_20' ) start [2025-06-26 11:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15363932', 'tblTempVendorCDR_20' ) end [2025-06-26 11:25:28] Production.INFO: ProcessCDR(1,15363932,1,1,2) [2025-06-26 11:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15363932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 11:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15363932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 11:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15363932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 11:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15363932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 11:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15363932', 'tblTempUsageDetail_20' ) start [2025-06-26 11:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15363932', 'tblTempUsageDetail_20' ) end [2025-06-26 11:25:35] Production.ERROR: pbx prc_insertCDR start [2025-06-26 11:25:38] Production.ERROR: pbx prc_insertCDR end [2025-06-26 11:25:38] Production.INFO: ==31223== Releasing lock... [2025-06-26 11:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 11:25:38] Production.INFO: 60.75 MB #Memory Used# [2025-06-26 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 09:25:06 [end_date_ymd] => 2025-06-26 12:25:06 [RateCDR] => 1 ) [2025-06-26 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-26 09:25:06' and `end` < '2025-06-26 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-26 12:25:19] Production.INFO: count ==5195 [2025-06-26 12:25:22] Production.ERROR: pbx CDR StartTime 2025-06-26 09:25:06 - End Time 2025-06-26 12:25:06 [2025-06-26 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15364179', 'tblTempUsageDetail_20' ) start [2025-06-26 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15364179', 'tblTempUsageDetail_20' ) end [2025-06-26 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15364179', 'tblTempVendorCDR_20' ) start [2025-06-26 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15364179', 'tblTempVendorCDR_20' ) end [2025-06-26 12:25:22] Production.INFO: ProcessCDR(1,15364179,1,1,2) [2025-06-26 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15364179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15364179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15364179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15364179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15364179', 'tblTempUsageDetail_20' ) start [2025-06-26 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15364179', 'tblTempUsageDetail_20' ) end [2025-06-26 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-26 12:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-26 12:25:32] Production.INFO: ==3172== Releasing lock... [2025-06-26 12:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 12:25:32] Production.INFO: 67 MB #Memory Used# [2025-06-26 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 10:25:05 [end_date_ymd] => 2025-06-26 13:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 10:25:05' and `end` < '2025-06-26 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-06-26 13:25:21] Production.INFO: count ==5100 [2025-06-26 13:25:23] Production.ERROR: pbx CDR StartTime 2025-06-26 10:25:05 - End Time 2025-06-26 13:25:05 [2025-06-26 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15364426', 'tblTempUsageDetail_20' ) start [2025-06-26 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15364426', 'tblTempUsageDetail_20' ) end [2025-06-26 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15364426', 'tblTempVendorCDR_20' ) start [2025-06-26 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15364426', 'tblTempVendorCDR_20' ) end [2025-06-26 13:25:24] Production.INFO: ProcessCDR(1,15364426,1,1,2) [2025-06-26 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15364426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15364426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15364426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15364426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15364426', 'tblTempUsageDetail_20' ) start [2025-06-26 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15364426', 'tblTempUsageDetail_20' ) end [2025-06-26 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-06-26 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-06-26 13:25:34] Production.INFO: ==7753== Releasing lock... [2025-06-26 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 13:25:34] Production.INFO: 66.75 MB #Memory Used# [2025-06-26 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 11:25:05 [end_date_ymd] => 2025-06-26 14:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 11:25:05' and `end` < '2025-06-26 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-06-26 14:25:18] Production.INFO: count ==5178 [2025-06-26 14:25:20] Production.ERROR: pbx CDR StartTime 2025-06-26 11:25:05 - End Time 2025-06-26 14:25:05 [2025-06-26 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15364673', 'tblTempUsageDetail_20' ) start [2025-06-26 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15364673', 'tblTempUsageDetail_20' ) end [2025-06-26 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15364673', 'tblTempVendorCDR_20' ) start [2025-06-26 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15364673', 'tblTempVendorCDR_20' ) end [2025-06-26 14:25:21] Production.INFO: ProcessCDR(1,15364673,1,1,2) [2025-06-26 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15364673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15364673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15364673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15364673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15364673', 'tblTempUsageDetail_20' ) start [2025-06-26 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15364673', 'tblTempUsageDetail_20' ) end [2025-06-26 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-26 14:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-26 14:25:30] Production.INFO: ==12257== Releasing lock... [2025-06-26 14:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 14:25:30] Production.INFO: 67 MB #Memory Used# [2025-06-26 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 12:25:05 [end_date_ymd] => 2025-06-26 15:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 12:25:05' and `end` < '2025-06-26 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-06-26 15:25:18] Production.INFO: count ==4852 [2025-06-26 15:25:21] Production.ERROR: pbx CDR StartTime 2025-06-26 12:25:05 - End Time 2025-06-26 15:25:05 [2025-06-26 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15364920', 'tblTempUsageDetail_20' ) start [2025-06-26 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15364920', 'tblTempUsageDetail_20' ) end [2025-06-26 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15364920', 'tblTempVendorCDR_20' ) start [2025-06-26 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15364920', 'tblTempVendorCDR_20' ) end [2025-06-26 15:25:21] Production.INFO: ProcessCDR(1,15364920,1,1,2) [2025-06-26 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15364920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15364920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15364920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15364920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15364920', 'tblTempUsageDetail_20' ) start [2025-06-26 15:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15364920', 'tblTempUsageDetail_20' ) end [2025-06-26 15:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-26 15:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-26 15:25:31] Production.INFO: ==16717== Releasing lock... [2025-06-26 15:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 15:25:31] Production.INFO: 64.5 MB #Memory Used# [2025-06-26 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 13:25:05 [end_date_ymd] => 2025-06-26 16:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 13:25:05' and `end` < '2025-06-26 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-06-26 16:25:19] Production.INFO: count ==4923 [2025-06-26 16:25:21] Production.ERROR: pbx CDR StartTime 2025-06-26 13:25:05 - End Time 2025-06-26 16:25:05 [2025-06-26 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15365167', 'tblTempUsageDetail_20' ) start [2025-06-26 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15365167', 'tblTempUsageDetail_20' ) end [2025-06-26 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15365167', 'tblTempVendorCDR_20' ) start [2025-06-26 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15365167', 'tblTempVendorCDR_20' ) end [2025-06-26 16:25:21] Production.INFO: ProcessCDR(1,15365167,1,1,2) [2025-06-26 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15365167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15365167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15365167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 16:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15365167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 16:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15365167', 'tblTempUsageDetail_20' ) start [2025-06-26 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15365167', 'tblTempUsageDetail_20' ) end [2025-06-26 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-26 16:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-26 16:25:31] Production.INFO: ==21753== Releasing lock... [2025-06-26 16:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 16:25:31] Production.INFO: 65 MB #Memory Used# [2025-06-26 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 14:25:06 [end_date_ymd] => 2025-06-26 17:25:06 [RateCDR] => 1 ) [2025-06-26 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-26 14:25:06' and `end` < '2025-06-26 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-26 17:25:19] Production.INFO: count ==4692 [2025-06-26 17:25:21] Production.ERROR: pbx CDR StartTime 2025-06-26 14:25:06 - End Time 2025-06-26 17:25:06 [2025-06-26 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15365414', 'tblTempUsageDetail_20' ) start [2025-06-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15365414', 'tblTempUsageDetail_20' ) end [2025-06-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15365414', 'tblTempVendorCDR_20' ) start [2025-06-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15365414', 'tblTempVendorCDR_20' ) end [2025-06-26 17:25:21] Production.INFO: ProcessCDR(1,15365414,1,1,2) [2025-06-26 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15365414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15365414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15365414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15365414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15365414', 'tblTempUsageDetail_20' ) start [2025-06-26 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15365414', 'tblTempUsageDetail_20' ) end [2025-06-26 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-26 17:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-26 17:25:30] Production.INFO: ==26221== Releasing lock... [2025-06-26 17:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 17:25:30] Production.INFO: 63.25 MB #Memory Used# [2025-06-26 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 15:25:05 [end_date_ymd] => 2025-06-26 18:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 15:25:05' and `end` < '2025-06-26 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-06-26 18:25:18] Production.INFO: count ==4074 [2025-06-26 18:25:20] Production.ERROR: pbx CDR StartTime 2025-06-26 15:25:05 - End Time 2025-06-26 18:25:05 [2025-06-26 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15365661', 'tblTempUsageDetail_20' ) start [2025-06-26 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15365661', 'tblTempUsageDetail_20' ) end [2025-06-26 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15365661', 'tblTempVendorCDR_20' ) start [2025-06-26 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15365661', 'tblTempVendorCDR_20' ) end [2025-06-26 18:25:20] Production.INFO: ProcessCDR(1,15365661,1,1,2) [2025-06-26 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15365661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15365661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15365661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 18:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15365661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15365661', 'tblTempUsageDetail_20' ) start [2025-06-26 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15365661', 'tblTempUsageDetail_20' ) end [2025-06-26 18:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-26 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-06-26 18:25:29] Production.INFO: ==30749== Releasing lock... [2025-06-26 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 18:25:29] Production.INFO: 58.5 MB #Memory Used# [2025-06-26 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 16:25:05 [end_date_ymd] => 2025-06-26 19:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 16:25:05' and `end` < '2025-06-26 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-06-26 19:25:18] Production.INFO: count ==3103 [2025-06-26 19:25:19] Production.ERROR: pbx CDR StartTime 2025-06-26 16:25:05 - End Time 2025-06-26 19:25:05 [2025-06-26 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15365905', 'tblTempUsageDetail_20' ) start [2025-06-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15365905', 'tblTempUsageDetail_20' ) end [2025-06-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15365905', 'tblTempVendorCDR_20' ) start [2025-06-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15365905', 'tblTempVendorCDR_20' ) end [2025-06-26 19:25:19] Production.INFO: ProcessCDR(1,15365905,1,1,2) [2025-06-26 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15365905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15365905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15365905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15365905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15365905', 'tblTempUsageDetail_20' ) start [2025-06-26 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15365905', 'tblTempUsageDetail_20' ) end [2025-06-26 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-26 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-26 19:25:27] Production.INFO: ==2887== Releasing lock... [2025-06-26 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 19:25:27] Production.INFO: 51.25 MB #Memory Used# [2025-06-26 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 17:25:05 [end_date_ymd] => 2025-06-26 20:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 17:25:05' and `end` < '2025-06-26 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-06-26 20:25:17] Production.INFO: count ==2186 [2025-06-26 20:25:18] Production.ERROR: pbx CDR StartTime 2025-06-26 17:25:05 - End Time 2025-06-26 20:25:05 [2025-06-26 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15366152', 'tblTempUsageDetail_20' ) start [2025-06-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15366152', 'tblTempUsageDetail_20' ) end [2025-06-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15366152', 'tblTempVendorCDR_20' ) start [2025-06-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15366152', 'tblTempVendorCDR_20' ) end [2025-06-26 20:25:18] Production.INFO: ProcessCDR(1,15366152,1,1,2) [2025-06-26 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15366152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15366152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15366152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15366152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15366152', 'tblTempUsageDetail_20' ) start [2025-06-26 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15366152', 'tblTempUsageDetail_20' ) end [2025-06-26 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-26 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-26 20:25:25] Production.INFO: ==7209== Releasing lock... [2025-06-26 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 20:25:25] Production.INFO: 44.5 MB #Memory Used# [2025-06-26 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 18:25:05 [end_date_ymd] => 2025-06-26 21:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 18:25:05' and `end` < '2025-06-26 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-06-26 21:25:18] Production.INFO: count ==1638 [2025-06-26 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-26 18:25:05 - End Time 2025-06-26 21:25:05 [2025-06-26 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15366399', 'tblTempUsageDetail_20' ) start [2025-06-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15366399', 'tblTempUsageDetail_20' ) end [2025-06-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15366399', 'tblTempVendorCDR_20' ) start [2025-06-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15366399', 'tblTempVendorCDR_20' ) end [2025-06-26 21:25:18] Production.INFO: ProcessCDR(1,15366399,1,1,2) [2025-06-26 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15366399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15366399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15366399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15366399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15366399', 'tblTempUsageDetail_20' ) start [2025-06-26 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15366399', 'tblTempUsageDetail_20' ) end [2025-06-26 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-26 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-26 21:25:26] Production.INFO: ==11496== Releasing lock... [2025-06-26 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 21:25:26] Production.INFO: 40.5 MB #Memory Used# [2025-06-26 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 19:25:05 [end_date_ymd] => 2025-06-26 22:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 19:25:05' and `end` < '2025-06-26 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-06-26 22:25:17] Production.INFO: count ==1159 [2025-06-26 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-26 19:25:05 - End Time 2025-06-26 22:25:05 [2025-06-26 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15366646', 'tblTempUsageDetail_20' ) start [2025-06-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15366646', 'tblTempUsageDetail_20' ) end [2025-06-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15366646', 'tblTempVendorCDR_20' ) start [2025-06-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15366646', 'tblTempVendorCDR_20' ) end [2025-06-26 22:25:18] Production.INFO: ProcessCDR(1,15366646,1,1,2) [2025-06-26 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15366646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15366646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15366646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15366646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15366646', 'tblTempUsageDetail_20' ) start [2025-06-26 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15366646', 'tblTempUsageDetail_20' ) end [2025-06-26 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-26 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-26 22:25:25] Production.INFO: ==15761== Releasing lock... [2025-06-26 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 22:25:25] Production.INFO: 37 MB #Memory Used# [2025-06-26 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 20:25:05 [end_date_ymd] => 2025-06-26 23:25:05 [RateCDR] => 1 ) [2025-06-26 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-06-26 20:25:05' and `end` < '2025-06-26 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-06-26 23:25:18] Production.INFO: count ==869 [2025-06-26 23:25:18] Production.ERROR: pbx CDR StartTime 2025-06-26 20:25:05 - End Time 2025-06-26 23:25:05 [2025-06-26 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15366893', 'tblTempUsageDetail_20' ) start [2025-06-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15366893', 'tblTempUsageDetail_20' ) end [2025-06-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15366893', 'tblTempVendorCDR_20' ) start [2025-06-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15366893', 'tblTempVendorCDR_20' ) end [2025-06-26 23:25:18] Production.INFO: ProcessCDR(1,15366893,1,1,2) [2025-06-26 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15366893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15366893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-26 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15366893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15366893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-26 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15366893', 'tblTempUsageDetail_20' ) start [2025-06-26 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15366893', 'tblTempUsageDetail_20' ) end [2025-06-26 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-26 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-26 23:25:25] Production.INFO: ==20045== Releasing lock... [2025-06-26 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-26 23:25:25] Production.INFO: 34.5 MB #Memory Used#