[2025-10-17 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 21:25:06 [end_date_ymd] => 2025-10-17 00:25:06 [RateCDR] => 1 ) [2025-10-17 00: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-10-16 21:25:06' and `end` < '2025-10-17 00: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-10-17 00:25:22] Production.INFO: count ==599 [2025-10-17 00:25:22] Production.ERROR: pbx CDR StartTime 2025-10-16 21:25:06 - End Time 2025-10-17 00:25:06 [2025-10-17 00:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16030986', 'tblTempUsageDetail_20' ) start [2025-10-17 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16030986', 'tblTempUsageDetail_20' ) end [2025-10-17 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16030986', 'tblTempVendorCDR_20' ) start [2025-10-17 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16030986', 'tblTempVendorCDR_20' ) end [2025-10-17 00:25:22] Production.INFO: ProcessCDR(1,16030986,1,1,2) [2025-10-17 00:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16030986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 00:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16030986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 00:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16030986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 00:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16030986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 00:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16030986', 'tblTempUsageDetail_20' ) start [2025-10-17 00:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16030986', 'tblTempUsageDetail_20' ) end [2025-10-17 00:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-17 00:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-17 00:25:33] Production.INFO: ==31571== Releasing lock... [2025-10-17 00:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 00:25:33] Production.INFO: 36.75 MB #Memory Used# [2025-10-17 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 22:25:06 [end_date_ymd] => 2025-10-17 01:25:06 [RateCDR] => 1 ) [2025-10-17 01: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-10-16 22:25:06' and `end` < '2025-10-17 01: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-10-17 01:25:18] Production.INFO: count ==523 [2025-10-17 01:25:18] Production.ERROR: pbx CDR StartTime 2025-10-16 22:25:06 - End Time 2025-10-17 01:25:06 [2025-10-17 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16031233', 'tblTempUsageDetail_20' ) start [2025-10-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16031233', 'tblTempUsageDetail_20' ) end [2025-10-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16031233', 'tblTempVendorCDR_20' ) start [2025-10-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16031233', 'tblTempVendorCDR_20' ) end [2025-10-17 01:25:18] Production.INFO: ProcessCDR(1,16031233,1,1,2) [2025-10-17 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16031233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16031233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16031233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16031233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16031233', 'tblTempUsageDetail_20' ) start [2025-10-17 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16031233', 'tblTempUsageDetail_20' ) end [2025-10-17 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-17 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-17 01:25:26] Production.INFO: ==6239== Releasing lock... [2025-10-17 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 01:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-10-17 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 23:25:05 [end_date_ymd] => 2025-10-17 02:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-16 23:25:05' and `end` < '2025-10-17 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-10-17 02:25:17] Production.INFO: count ==383 [2025-10-17 02:25:17] Production.ERROR: pbx CDR StartTime 2025-10-16 23:25:05 - End Time 2025-10-17 02:25:05 [2025-10-17 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16031480', 'tblTempUsageDetail_20' ) start [2025-10-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16031480', 'tblTempUsageDetail_20' ) end [2025-10-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16031480', 'tblTempVendorCDR_20' ) start [2025-10-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16031480', 'tblTempVendorCDR_20' ) end [2025-10-17 02:25:17] Production.INFO: ProcessCDR(1,16031480,1,1,2) [2025-10-17 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16031480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16031480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16031480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16031480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16031480', 'tblTempUsageDetail_20' ) start [2025-10-17 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16031480', 'tblTempUsageDetail_20' ) end [2025-10-17 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-17 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-17 02:25:26] Production.INFO: ==12714== Releasing lock... [2025-10-17 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 02:25:26] Production.INFO: 31.75 MB #Memory Used# [2025-10-17 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 00:25:06 [end_date_ymd] => 2025-10-17 03:25:06 [RateCDR] => 1 ) [2025-10-17 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-10-17 00:25:06' and `end` < '2025-10-17 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-10-17 03:25:18] Production.INFO: count ==279 [2025-10-17 03:25:18] Production.ERROR: pbx CDR StartTime 2025-10-17 00:25:06 - End Time 2025-10-17 03:25:06 [2025-10-17 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16031727', 'tblTempUsageDetail_20' ) start [2025-10-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16031727', 'tblTempUsageDetail_20' ) end [2025-10-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16031727', 'tblTempVendorCDR_20' ) start [2025-10-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16031727', 'tblTempVendorCDR_20' ) end [2025-10-17 03:25:18] Production.INFO: ProcessCDR(1,16031727,1,1,2) [2025-10-17 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16031727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 03:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16031727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 03:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16031727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 03:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16031727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16031727', 'tblTempUsageDetail_20' ) start [2025-10-17 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16031727', 'tblTempUsageDetail_20' ) end [2025-10-17 03:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-17 03:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-17 03:25:27] Production.INFO: ==19508== Releasing lock... [2025-10-17 03:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 03:25:27] Production.INFO: 30.75 MB #Memory Used# [2025-10-17 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 01:25:05 [end_date_ymd] => 2025-10-17 04:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 01:25:05' and `end` < '2025-10-17 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-10-17 04:25:17] Production.INFO: count ==176 [2025-10-17 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-17 01:25:05 - End Time 2025-10-17 04:25:05 [2025-10-17 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16031975', 'tblTempUsageDetail_20' ) start [2025-10-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16031975', 'tblTempUsageDetail_20' ) end [2025-10-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16031975', 'tblTempVendorCDR_20' ) start [2025-10-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16031975', 'tblTempVendorCDR_20' ) end [2025-10-17 04:25:17] Production.INFO: ProcessCDR(1,16031975,1,1,2) [2025-10-17 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16031975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16031975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16031975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16031975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16031975', 'tblTempUsageDetail_20' ) start [2025-10-17 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16031975', 'tblTempUsageDetail_20' ) end [2025-10-17 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-10-17 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-10-17 04:25:23] Production.INFO: ==26245== Releasing lock... [2025-10-17 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 04:25:23] Production.INFO: 29.25 MB #Memory Used# [2025-10-17 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 02:25:06 [end_date_ymd] => 2025-10-17 05:25:06 [RateCDR] => 1 ) [2025-10-17 05: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-10-17 02:25:06' and `end` < '2025-10-17 05: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-10-17 05:25:18] Production.INFO: count ==127 [2025-10-17 05:25:18] Production.ERROR: pbx CDR StartTime 2025-10-17 02:25:06 - End Time 2025-10-17 05:25:06 [2025-10-17 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16032223', 'tblTempUsageDetail_20' ) start [2025-10-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16032223', 'tblTempUsageDetail_20' ) end [2025-10-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16032223', 'tblTempVendorCDR_20' ) start [2025-10-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16032223', 'tblTempVendorCDR_20' ) end [2025-10-17 05:25:18] Production.INFO: ProcessCDR(1,16032223,1,1,2) [2025-10-17 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16032223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16032223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16032223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16032223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16032223', 'tblTempUsageDetail_20' ) start [2025-10-17 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16032223', 'tblTempUsageDetail_20' ) end [2025-10-17 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-10-17 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-10-17 05:25:24] Production.INFO: ==32611== Releasing lock... [2025-10-17 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 05:25:24] Production.INFO: 28.75 MB #Memory Used# [2025-10-17 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 03:25:05 [end_date_ymd] => 2025-10-17 06:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 03:25:05' and `end` < '2025-10-17 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-10-17 06:25:17] Production.INFO: count ==97 [2025-10-17 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-17 03:25:05 - End Time 2025-10-17 06:25:05 [2025-10-17 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16032470', 'tblTempUsageDetail_20' ) start [2025-10-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16032470', 'tblTempUsageDetail_20' ) end [2025-10-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16032470', 'tblTempVendorCDR_20' ) start [2025-10-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16032470', 'tblTempVendorCDR_20' ) end [2025-10-17 06:25:17] Production.INFO: ProcessCDR(1,16032470,1,1,2) [2025-10-17 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16032470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16032470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16032470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16032470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16032470', 'tblTempUsageDetail_20' ) start [2025-10-17 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16032470', 'tblTempUsageDetail_20' ) end [2025-10-17 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-17 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-17 06:25:26] Production.INFO: ==6439== Releasing lock... [2025-10-17 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 06:25:26] Production.INFO: 28.75 MB #Memory Used# [2025-10-17 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 04:25:05 [end_date_ymd] => 2025-10-17 07:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 04:25:05' and `end` < '2025-10-17 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-10-17 07:25:17] Production.INFO: count ==95 [2025-10-17 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-17 04:25:05 - End Time 2025-10-17 07:25:05 [2025-10-17 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16032717', 'tblTempUsageDetail_20' ) start [2025-10-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16032717', 'tblTempUsageDetail_20' ) end [2025-10-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16032717', 'tblTempVendorCDR_20' ) start [2025-10-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16032717', 'tblTempVendorCDR_20' ) end [2025-10-17 07:25:17] Production.INFO: ProcessCDR(1,16032717,1,1,2) [2025-10-17 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16032717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16032717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16032717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16032717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16032717', 'tblTempUsageDetail_20' ) start [2025-10-17 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16032717', 'tblTempUsageDetail_20' ) end [2025-10-17 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-17 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-17 07:25:26] Production.INFO: ==12838== Releasing lock... [2025-10-17 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 07:25:26] Production.INFO: 28.75 MB #Memory Used# [2025-10-17 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 05:25:05 [end_date_ymd] => 2025-10-17 08:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 05:25:05' and `end` < '2025-10-17 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-10-17 08:25:17] Production.INFO: count ==393 [2025-10-17 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-17 05:25:05 - End Time 2025-10-17 08:25:05 [2025-10-17 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16032964', 'tblTempUsageDetail_20' ) start [2025-10-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16032964', 'tblTempUsageDetail_20' ) end [2025-10-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16032964', 'tblTempVendorCDR_20' ) start [2025-10-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16032964', 'tblTempVendorCDR_20' ) end [2025-10-17 08:25:17] Production.INFO: ProcessCDR(1,16032964,1,1,2) [2025-10-17 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16032964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16032964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16032964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16032964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16032964', 'tblTempUsageDetail_20' ) start [2025-10-17 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16032964', 'tblTempUsageDetail_20' ) end [2025-10-17 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-17 08:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-17 08:25:27] Production.INFO: ==19149== Releasing lock... [2025-10-17 08:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 08:25:27] Production.INFO: 32 MB #Memory Used# [2025-10-17 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 06:25:06 [end_date_ymd] => 2025-10-17 09:25:06 [RateCDR] => 1 ) [2025-10-17 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-17 06:25:06' and `end` < '2025-10-17 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-17 09:25:18] Production.INFO: count ==1342 [2025-10-17 09:25:19] Production.ERROR: pbx CDR StartTime 2025-10-17 06:25:06 - End Time 2025-10-17 09:25:06 [2025-10-17 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16033211', 'tblTempUsageDetail_20' ) start [2025-10-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16033211', 'tblTempUsageDetail_20' ) end [2025-10-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16033211', 'tblTempVendorCDR_20' ) start [2025-10-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16033211', 'tblTempVendorCDR_20' ) end [2025-10-17 09:25:19] Production.INFO: ProcessCDR(1,16033211,1,1,2) [2025-10-17 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16033211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16033211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16033211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16033211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16033211', 'tblTempUsageDetail_20' ) start [2025-10-17 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16033211', 'tblTempUsageDetail_20' ) end [2025-10-17 09:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-17 09:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-17 09:25:29] Production.INFO: ==26155== Releasing lock... [2025-10-17 09:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 09:25:29] Production.INFO: 38.25 MB #Memory Used# [2025-10-17 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 07:25:05 [end_date_ymd] => 2025-10-17 10:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 07:25:05' and `end` < '2025-10-17 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-10-17 10:25:18] Production.INFO: count ==2846 [2025-10-17 10:25:19] Production.ERROR: pbx CDR StartTime 2025-10-17 07:25:05 - End Time 2025-10-17 10:25:05 [2025-10-17 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16033458', 'tblTempUsageDetail_20' ) start [2025-10-17 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16033458', 'tblTempUsageDetail_20' ) end [2025-10-17 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16033458', 'tblTempVendorCDR_20' ) start [2025-10-17 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16033458', 'tblTempVendorCDR_20' ) end [2025-10-17 10:25:19] Production.INFO: ProcessCDR(1,16033458,1,1,2) [2025-10-17 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16033458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16033458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16033458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16033458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16033458', 'tblTempUsageDetail_20' ) start [2025-10-17 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16033458', 'tblTempUsageDetail_20' ) end [2025-10-17 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-17 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-17 10:25:31] Production.INFO: ==395== Releasing lock... [2025-10-17 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 10:25:31] Production.INFO: 49.75 MB #Memory Used# [2025-10-17 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 08:25:05 [end_date_ymd] => 2025-10-17 11:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 08:25:05' and `end` < '2025-10-17 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-10-17 11:25:21] Production.INFO: count ==4174 [2025-10-17 11:25:23] Production.ERROR: pbx CDR StartTime 2025-10-17 08:25:05 - End Time 2025-10-17 11:25:05 [2025-10-17 11:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16033705', 'tblTempUsageDetail_20' ) start [2025-10-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16033705', 'tblTempUsageDetail_20' ) end [2025-10-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16033705', 'tblTempVendorCDR_20' ) start [2025-10-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16033705', 'tblTempVendorCDR_20' ) end [2025-10-17 11:25:23] Production.INFO: ProcessCDR(1,16033705,1,1,2) [2025-10-17 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16033705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 11:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16033705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 11:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16033705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 11:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16033705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16033705', 'tblTempUsageDetail_20' ) start [2025-10-17 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16033705', 'tblTempUsageDetail_20' ) end [2025-10-17 11:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-17 11:25:37] Production.ERROR: pbx prc_insertCDR end [2025-10-17 11:25:37] Production.INFO: ==6909== Releasing lock... [2025-10-17 11:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 11:25:37] Production.INFO: 59.5 MB #Memory Used# [2025-10-17 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 09:25:06 [end_date_ymd] => 2025-10-17 12:25:06 [RateCDR] => 1 ) [2025-10-17 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-10-17 09:25:06' and `end` < '2025-10-17 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-10-17 12:25:19] Production.INFO: count ==4830 [2025-10-17 12:25:21] Production.ERROR: pbx CDR StartTime 2025-10-17 09:25:06 - End Time 2025-10-17 12:25:06 [2025-10-17 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16033952', 'tblTempUsageDetail_20' ) start [2025-10-17 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16033952', 'tblTempUsageDetail_20' ) end [2025-10-17 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16033952', 'tblTempVendorCDR_20' ) start [2025-10-17 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16033952', 'tblTempVendorCDR_20' ) end [2025-10-17 12:25:22] Production.INFO: ProcessCDR(1,16033952,1,1,2) [2025-10-17 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16033952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16033952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16033952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16033952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16033952', 'tblTempUsageDetail_20' ) start [2025-10-17 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16033952', 'tblTempUsageDetail_20' ) end [2025-10-17 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-17 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-17 12:25:34] Production.INFO: ==13103== Releasing lock... [2025-10-17 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 12:25:34] Production.INFO: 64.25 MB #Memory Used# [2025-10-17 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 10:25:05 [end_date_ymd] => 2025-10-17 13:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 10:25:05' and `end` < '2025-10-17 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-10-17 13:25:19] Production.INFO: count ==5079 [2025-10-17 13:25:21] Production.ERROR: pbx CDR StartTime 2025-10-17 10:25:05 - End Time 2025-10-17 13:25:05 [2025-10-17 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16034199', 'tblTempUsageDetail_20' ) start [2025-10-17 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16034199', 'tblTempUsageDetail_20' ) end [2025-10-17 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16034199', 'tblTempVendorCDR_20' ) start [2025-10-17 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16034199', 'tblTempVendorCDR_20' ) end [2025-10-17 13:25:22] Production.INFO: ProcessCDR(1,16034199,1,1,2) [2025-10-17 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16034199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16034199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16034199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16034199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16034199', 'tblTempUsageDetail_20' ) start [2025-10-17 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16034199', 'tblTempUsageDetail_20' ) end [2025-10-17 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-17 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-17 13:25:34] Production.INFO: ==19410== Releasing lock... [2025-10-17 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 13:25:34] Production.INFO: 66.25 MB #Memory Used# [2025-10-17 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 11:25:05 [end_date_ymd] => 2025-10-17 14:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 11:25:05' and `end` < '2025-10-17 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-10-17 14:25:18] Production.INFO: count ==5279 [2025-10-17 14:25:21] Production.ERROR: pbx CDR StartTime 2025-10-17 11:25:05 - End Time 2025-10-17 14:25:05 [2025-10-17 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16034446', 'tblTempUsageDetail_20' ) start [2025-10-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16034446', 'tblTempUsageDetail_20' ) end [2025-10-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16034446', 'tblTempVendorCDR_20' ) start [2025-10-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16034446', 'tblTempVendorCDR_20' ) end [2025-10-17 14:25:21] Production.INFO: ProcessCDR(1,16034446,1,1,2) [2025-10-17 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16034446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16034446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16034446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16034446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16034446', 'tblTempUsageDetail_20' ) start [2025-10-17 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16034446', 'tblTempUsageDetail_20' ) end [2025-10-17 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-17 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-17 14:25:35] Production.INFO: ==26352== Releasing lock... [2025-10-17 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 14:25:35] Production.INFO: 67.75 MB #Memory Used# [2025-10-17 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 12:25:05 [end_date_ymd] => 2025-10-17 15:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 12:25:05' and `end` < '2025-10-17 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-10-17 15:25:20] Production.INFO: count ==5629 [2025-10-17 15:25:22] Production.ERROR: pbx CDR StartTime 2025-10-17 12:25:05 - End Time 2025-10-17 15:25:05 [2025-10-17 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16034693', 'tblTempUsageDetail_20' ) start [2025-10-17 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16034693', 'tblTempUsageDetail_20' ) end [2025-10-17 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16034693', 'tblTempVendorCDR_20' ) start [2025-10-17 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16034693', 'tblTempVendorCDR_20' ) end [2025-10-17 15:25:23] Production.INFO: ProcessCDR(1,16034693,1,1,2) [2025-10-17 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16034693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16034693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16034693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16034693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16034693', 'tblTempUsageDetail_20' ) start [2025-10-17 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16034693', 'tblTempUsageDetail_20' ) end [2025-10-17 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-17 15:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-17 15:25:36] Production.INFO: ==647== Releasing lock... [2025-10-17 15:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 15:25:36] Production.INFO: 70.5 MB #Memory Used# [2025-10-17 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 13:25:05 [end_date_ymd] => 2025-10-17 16:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 13:25:05' and `end` < '2025-10-17 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-10-17 16:25:18] Production.INFO: count ==5704 [2025-10-17 16:25:21] Production.ERROR: pbx CDR StartTime 2025-10-17 13:25:05 - End Time 2025-10-17 16:25:05 [2025-10-17 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16034940', 'tblTempUsageDetail_20' ) start [2025-10-17 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16034940', 'tblTempUsageDetail_20' ) end [2025-10-17 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16034940', 'tblTempVendorCDR_20' ) start [2025-10-17 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16034940', 'tblTempVendorCDR_20' ) end [2025-10-17 16:25:22] Production.INFO: ProcessCDR(1,16034940,1,1,2) [2025-10-17 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16034940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16034940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16034940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16034940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16034940', 'tblTempUsageDetail_20' ) start [2025-10-17 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16034940', 'tblTempUsageDetail_20' ) end [2025-10-17 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-17 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-17 16:25:35] Production.INFO: ==7346== Releasing lock... [2025-10-17 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 16:25:35] Production.INFO: 71 MB #Memory Used# [2025-10-17 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 14:25:05 [end_date_ymd] => 2025-10-17 17:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 14:25:05' and `end` < '2025-10-17 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-10-17 17:25:20] Production.INFO: count ==5571 [2025-10-17 17:25:22] Production.ERROR: pbx CDR StartTime 2025-10-17 14:25:05 - End Time 2025-10-17 17:25:05 [2025-10-17 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16035187', 'tblTempUsageDetail_20' ) start [2025-10-17 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16035187', 'tblTempUsageDetail_20' ) end [2025-10-17 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16035187', 'tblTempVendorCDR_20' ) start [2025-10-17 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16035187', 'tblTempVendorCDR_20' ) end [2025-10-17 17:25:23] Production.INFO: ProcessCDR(1,16035187,1,1,2) [2025-10-17 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16035187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 17:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16035187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 17:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16035187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 17:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16035187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 17:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16035187', 'tblTempUsageDetail_20' ) start [2025-10-17 17:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16035187', 'tblTempUsageDetail_20' ) end [2025-10-17 17:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-17 17:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-17 17:25:36] Production.INFO: ==13643== Releasing lock... [2025-10-17 17:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 17:25:36] Production.INFO: 70 MB #Memory Used# [2025-10-17 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 15:25:05 [end_date_ymd] => 2025-10-17 18:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 15:25:05' and `end` < '2025-10-17 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-10-17 18:25:19] Production.INFO: count ==5081 [2025-10-17 18:25:21] Production.ERROR: pbx CDR StartTime 2025-10-17 15:25:05 - End Time 2025-10-17 18:25:05 [2025-10-17 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16035434', 'tblTempUsageDetail_20' ) start [2025-10-17 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16035434', 'tblTempUsageDetail_20' ) end [2025-10-17 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16035434', 'tblTempVendorCDR_20' ) start [2025-10-17 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16035434', 'tblTempVendorCDR_20' ) end [2025-10-17 18:25:21] Production.INFO: ProcessCDR(1,16035434,1,1,2) [2025-10-17 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16035434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 18:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16035434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 18:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16035434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 18:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16035434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 18:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16035434', 'tblTempUsageDetail_20' ) start [2025-10-17 18:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16035434', 'tblTempUsageDetail_20' ) end [2025-10-17 18:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-17 18:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-17 18:25:33] Production.INFO: ==20120== Releasing lock... [2025-10-17 18:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 18:25:33] Production.INFO: 66.25 MB #Memory Used# [2025-10-17 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 16:25:05 [end_date_ymd] => 2025-10-17 19:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 16:25:05' and `end` < '2025-10-17 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-10-17 19:25:18] Production.INFO: count ==5286 [2025-10-17 19:25:20] Production.ERROR: pbx CDR StartTime 2025-10-17 16:25:05 - End Time 2025-10-17 19:25:05 [2025-10-17 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16035681', 'tblTempUsageDetail_20' ) start [2025-10-17 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16035681', 'tblTempUsageDetail_20' ) end [2025-10-17 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16035681', 'tblTempVendorCDR_20' ) start [2025-10-17 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16035681', 'tblTempVendorCDR_20' ) end [2025-10-17 19:25:21] Production.INFO: ProcessCDR(1,16035681,1,1,2) [2025-10-17 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16035681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 19:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16035681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 19:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16035681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 19:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16035681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 19:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16035681', 'tblTempUsageDetail_20' ) start [2025-10-17 19:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16035681', 'tblTempUsageDetail_20' ) end [2025-10-17 19:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-17 19:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-17 19:25:32] Production.INFO: ==26814== Releasing lock... [2025-10-17 19:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 19:25:32] Production.INFO: 67.75 MB #Memory Used# [2025-10-17 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 17:25:05 [end_date_ymd] => 2025-10-17 20:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 17:25:05' and `end` < '2025-10-17 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-10-17 20:25:18] Production.INFO: count ==4384 [2025-10-17 20:25:20] Production.ERROR: pbx CDR StartTime 2025-10-17 17:25:05 - End Time 2025-10-17 20:25:05 [2025-10-17 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16035928', 'tblTempUsageDetail_20' ) start [2025-10-17 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16035928', 'tblTempUsageDetail_20' ) end [2025-10-17 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16035928', 'tblTempVendorCDR_20' ) start [2025-10-17 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16035928', 'tblTempVendorCDR_20' ) end [2025-10-17 20:25:20] Production.INFO: ProcessCDR(1,16035928,1,1,2) [2025-10-17 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16035928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 20:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16035928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 20:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16035928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 20:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16035928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16035928', 'tblTempUsageDetail_20' ) start [2025-10-17 20:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16035928', 'tblTempUsageDetail_20' ) end [2025-10-17 20:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-17 20:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-17 20:25:31] Production.INFO: ==576== Releasing lock... [2025-10-17 20:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 20:25:31] Production.INFO: 61 MB #Memory Used# [2025-10-17 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 18:25:04 [end_date_ymd] => 2025-10-17 21:25:04 [RateCDR] => 1 ) [2025-10-17 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-17 18:25:04' and `end` < '2025-10-17 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-17 21:25:17] Production.INFO: count ==3545 [2025-10-17 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-17 18:25:04 - End Time 2025-10-17 21:25:04 [2025-10-17 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16036175', 'tblTempUsageDetail_20' ) start [2025-10-17 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16036175', 'tblTempUsageDetail_20' ) end [2025-10-17 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16036175', 'tblTempVendorCDR_20' ) start [2025-10-17 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16036175', 'tblTempVendorCDR_20' ) end [2025-10-17 21:25:19] Production.INFO: ProcessCDR(1,16036175,1,1,2) [2025-10-17 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16036175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16036175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16036175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16036175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16036175', 'tblTempUsageDetail_20' ) start [2025-10-17 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16036175', 'tblTempUsageDetail_20' ) end [2025-10-17 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-17 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-17 21:25:28] Production.INFO: ==7054== Releasing lock... [2025-10-17 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 21:25:28] Production.INFO: 54.5 MB #Memory Used# [2025-10-17 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 19:25:06 [end_date_ymd] => 2025-10-17 22:25:06 [RateCDR] => 1 ) [2025-10-17 22:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-17 19:25:06' and `end` < '2025-10-17 22:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-17 22:25:18] Production.INFO: count ==1957 [2025-10-17 22:25:19] Production.ERROR: pbx CDR StartTime 2025-10-17 19:25:06 - End Time 2025-10-17 22:25:06 [2025-10-17 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16036422', 'tblTempUsageDetail_20' ) start [2025-10-17 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16036422', 'tblTempUsageDetail_20' ) end [2025-10-17 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16036422', 'tblTempVendorCDR_20' ) start [2025-10-17 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16036422', 'tblTempVendorCDR_20' ) end [2025-10-17 22:25:19] Production.INFO: ProcessCDR(1,16036422,1,1,2) [2025-10-17 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16036422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 22:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16036422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 22:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16036422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 22:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16036422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 22:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16036422', 'tblTempUsageDetail_20' ) start [2025-10-17 22:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16036422', 'tblTempUsageDetail_20' ) end [2025-10-17 22:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-17 22:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-17 22:25:29] Production.INFO: ==13452== Releasing lock... [2025-10-17 22:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 22:25:29] Production.INFO: 42.75 MB #Memory Used# [2025-10-17 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 20:25:05 [end_date_ymd] => 2025-10-17 23:25:05 [RateCDR] => 1 ) [2025-10-17 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-10-17 20:25:05' and `end` < '2025-10-17 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-10-17 23:25:18] Production.INFO: count ==1454 [2025-10-17 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-17 20:25:05 - End Time 2025-10-17 23:25:05 [2025-10-17 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16036669', 'tblTempUsageDetail_20' ) start [2025-10-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16036669', 'tblTempUsageDetail_20' ) end [2025-10-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16036669', 'tblTempVendorCDR_20' ) start [2025-10-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16036669', 'tblTempVendorCDR_20' ) end [2025-10-17 23:25:18] Production.INFO: ProcessCDR(1,16036669,1,1,2) [2025-10-17 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16036669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16036669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-17 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16036669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16036669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-17 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16036669', 'tblTempUsageDetail_20' ) start [2025-10-17 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16036669', 'tblTempUsageDetail_20' ) end [2025-10-17 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-17 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-17 23:25:27] Production.INFO: ==19947== Releasing lock... [2025-10-17 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-17 23:25:27] Production.INFO: 39 MB #Memory Used#