[2025-11-12 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 21:00:07 [end_date_ymd] => 2025-11-12 00:00:07 [RateCDR] => 1 ) [2025-11-12 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-11 21:00:07' and `end` < '2025-11-12 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 00:00:20] Production.INFO: count ==888 [2025-11-12 00:00:21] Production.ERROR: pbx CDR StartTime 2025-11-11 21:00:07 - End Time 2025-11-12 00:00:07 [2025-11-12 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16185285', 'tblTempUsageDetail_20' ) start [2025-11-12 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16185285', 'tblTempUsageDetail_20' ) end [2025-11-12 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16185285', 'tblTempVendorCDR_20' ) start [2025-11-12 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16185285', 'tblTempVendorCDR_20' ) end [2025-11-12 00:00:21] Production.INFO: ProcessCDR(1,16185285,1,1,2) [2025-11-12 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16185285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 00:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16185285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 00:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16185285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 00:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16185285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 00:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16185285', 'tblTempUsageDetail_20' ) start [2025-11-12 00:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16185285', 'tblTempUsageDetail_20' ) end [2025-11-12 00:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-12 00:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-12 00:00:35] Production.INFO: ==28115== Releasing lock... [2025-11-12 00:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 00:00:35] Production.INFO: 38 MB #Memory Used# [2025-11-12 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 22:00:06 [end_date_ymd] => 2025-11-12 01:00:06 [RateCDR] => 1 ) [2025-11-12 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-11 22:00:06' and `end` < '2025-11-12 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 01:00:21] Production.INFO: count ==511 [2025-11-12 01:00:21] Production.ERROR: pbx CDR StartTime 2025-11-11 22:00:06 - End Time 2025-11-12 01:00:06 [2025-11-12 01:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16185532', 'tblTempUsageDetail_20' ) start [2025-11-12 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16185532', 'tblTempUsageDetail_20' ) end [2025-11-12 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16185532', 'tblTempVendorCDR_20' ) start [2025-11-12 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16185532', 'tblTempVendorCDR_20' ) end [2025-11-12 01:00:21] Production.INFO: ProcessCDR(1,16185532,1,1,2) [2025-11-12 01:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16185532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 01:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16185532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 01:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16185532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 01:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16185532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 01:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16185532', 'tblTempUsageDetail_20' ) start [2025-11-12 01:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16185532', 'tblTempUsageDetail_20' ) end [2025-11-12 01:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-12 01:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-12 01:00:31] Production.INFO: ==681== Releasing lock... [2025-11-12 01:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 01:00:31] Production.INFO: 32.75 MB #Memory Used# [2025-11-12 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-11 23:00:06 [end_date_ymd] => 2025-11-12 02:00:06 [RateCDR] => 1 ) [2025-11-12 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-11 23:00:06' and `end` < '2025-11-12 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 02:00:18] Production.INFO: count ==500 [2025-11-12 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-11 23:00:06 - End Time 2025-11-12 02:00:06 [2025-11-12 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16185779', 'tblTempUsageDetail_20' ) start [2025-11-12 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16185779', 'tblTempUsageDetail_20' ) end [2025-11-12 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16185779', 'tblTempVendorCDR_20' ) start [2025-11-12 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16185779', 'tblTempVendorCDR_20' ) end [2025-11-12 02:00:19] Production.INFO: ProcessCDR(1,16185779,1,1,2) [2025-11-12 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16185779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16185779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16185779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 02:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16185779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16185779', 'tblTempUsageDetail_20' ) start [2025-11-12 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16185779', 'tblTempUsageDetail_20' ) end [2025-11-12 02:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-12 02:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-12 02:00:29] Production.INFO: ==5384== Releasing lock... [2025-11-12 02:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 02:00:29] Production.INFO: 31.75 MB #Memory Used# [2025-11-12 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 00:00:06 [end_date_ymd] => 2025-11-12 03:00:06 [RateCDR] => 1 ) [2025-11-12 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 00:00:06' and `end` < '2025-11-12 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 03:00:18] Production.INFO: count ==393 [2025-11-12 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-12 00:00:06 - End Time 2025-11-12 03:00:06 [2025-11-12 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16186025', 'tblTempUsageDetail_20' ) start [2025-11-12 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16186025', 'tblTempUsageDetail_20' ) end [2025-11-12 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16186025', 'tblTempVendorCDR_20' ) start [2025-11-12 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16186025', 'tblTempVendorCDR_20' ) end [2025-11-12 03:00:18] Production.INFO: ProcessCDR(1,16186025,1,1,2) [2025-11-12 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16186025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16186025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16186025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 03:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16186025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 03:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16186025', 'tblTempUsageDetail_20' ) start [2025-11-12 03:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16186025', 'tblTempUsageDetail_20' ) end [2025-11-12 03:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-12 03:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-12 03:00:28] Production.INFO: ==9870== Releasing lock... [2025-11-12 03:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 03:00:28] Production.INFO: 31.5 MB #Memory Used# [2025-11-12 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 01:00:06 [end_date_ymd] => 2025-11-12 04:00:06 [RateCDR] => 1 ) [2025-11-12 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 01:00:06' and `end` < '2025-11-12 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 04:00:18] Production.INFO: count ==256 [2025-11-12 04:00:18] Production.ERROR: pbx CDR StartTime 2025-11-12 01:00:06 - End Time 2025-11-12 04:00:06 [2025-11-12 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16186274', 'tblTempUsageDetail_20' ) start [2025-11-12 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16186274', 'tblTempUsageDetail_20' ) end [2025-11-12 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16186274', 'tblTempVendorCDR_20' ) start [2025-11-12 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16186274', 'tblTempVendorCDR_20' ) end [2025-11-12 04:00:18] Production.INFO: ProcessCDR(1,16186274,1,1,2) [2025-11-12 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16186274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 04:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16186274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 04:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16186274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 04:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16186274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 04:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16186274', 'tblTempUsageDetail_20' ) start [2025-11-12 04:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16186274', 'tblTempUsageDetail_20' ) end [2025-11-12 04:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-12 04:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-12 04:00:28] Production.INFO: ==14374== Releasing lock... [2025-11-12 04:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 04:00:28] Production.INFO: 30.75 MB #Memory Used# [2025-11-12 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 02:00:06 [end_date_ymd] => 2025-11-12 05:00:06 [RateCDR] => 1 ) [2025-11-12 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 02:00:06' and `end` < '2025-11-12 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 05:00:18] Production.INFO: count ==150 [2025-11-12 05:00:18] Production.ERROR: pbx CDR StartTime 2025-11-12 02:00:06 - End Time 2025-11-12 05:00:06 [2025-11-12 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16186522', 'tblTempUsageDetail_20' ) start [2025-11-12 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16186522', 'tblTempUsageDetail_20' ) end [2025-11-12 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16186522', 'tblTempVendorCDR_20' ) start [2025-11-12 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16186522', 'tblTempVendorCDR_20' ) end [2025-11-12 05:00:18] Production.INFO: ProcessCDR(1,16186522,1,1,2) [2025-11-12 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16186522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16186522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16186522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16186522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16186522', 'tblTempUsageDetail_20' ) start [2025-11-12 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16186522', 'tblTempUsageDetail_20' ) end [2025-11-12 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-11-12 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-11-12 05:00:24] Production.INFO: ==19132== Releasing lock... [2025-11-12 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 05:00:24] Production.INFO: 29.5 MB #Memory Used# [2025-11-12 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 03:00:06 [end_date_ymd] => 2025-11-12 06:00:06 [RateCDR] => 1 ) [2025-11-12 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 03:00:06' and `end` < '2025-11-12 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 06:00:18] Production.INFO: count ==96 [2025-11-12 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-12 03:00:06 - End Time 2025-11-12 06:00:06 [2025-11-12 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16186769', 'tblTempUsageDetail_20' ) start [2025-11-12 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16186769', 'tblTempUsageDetail_20' ) end [2025-11-12 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16186769', 'tblTempVendorCDR_20' ) start [2025-11-12 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16186769', 'tblTempVendorCDR_20' ) end [2025-11-12 06:00:18] Production.INFO: ProcessCDR(1,16186769,1,1,2) [2025-11-12 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16186769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16186769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16186769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 06:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16186769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16186769', 'tblTempUsageDetail_20' ) start [2025-11-12 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16186769', 'tblTempUsageDetail_20' ) end [2025-11-12 06:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-12 06:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-12 06:00:28] Production.INFO: ==23854== Releasing lock... [2025-11-12 06:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 06:00:28] Production.INFO: 28.5 MB #Memory Used# [2025-11-12 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 04:00:06 [end_date_ymd] => 2025-11-12 07:00:06 [RateCDR] => 1 ) [2025-11-12 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 04:00:06' and `end` < '2025-11-12 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 07:00:18] Production.INFO: count ==99 [2025-11-12 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-12 04:00:06 - End Time 2025-11-12 07:00:06 [2025-11-12 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16187016', 'tblTempUsageDetail_20' ) start [2025-11-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16187016', 'tblTempUsageDetail_20' ) end [2025-11-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16187016', 'tblTempVendorCDR_20' ) start [2025-11-12 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16187016', 'tblTempVendorCDR_20' ) end [2025-11-12 07:00:18] Production.INFO: ProcessCDR(1,16187016,1,1,2) [2025-11-12 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16187016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16187016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16187016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 07:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16187016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 07:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16187016', 'tblTempUsageDetail_20' ) start [2025-11-12 07:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16187016', 'tblTempUsageDetail_20' ) end [2025-11-12 07:00:24] Production.ERROR: pbx prc_insertCDR start [2025-11-12 07:00:24] Production.ERROR: pbx prc_insertCDR end [2025-11-12 07:00:24] Production.INFO: ==28862== Releasing lock... [2025-11-12 07:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 07:00:24] Production.INFO: 28.75 MB #Memory Used# [2025-11-12 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 05:00:06 [end_date_ymd] => 2025-11-12 08:00:06 [RateCDR] => 1 ) [2025-11-12 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 05:00:06' and `end` < '2025-11-12 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 08:00:18] Production.INFO: count ==156 [2025-11-12 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-12 05:00:06 - End Time 2025-11-12 08:00:06 [2025-11-12 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16187262', 'tblTempUsageDetail_20' ) start [2025-11-12 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16187262', 'tblTempUsageDetail_20' ) end [2025-11-12 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16187262', 'tblTempVendorCDR_20' ) start [2025-11-12 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16187262', 'tblTempVendorCDR_20' ) end [2025-11-12 08:00:18] Production.INFO: ProcessCDR(1,16187262,1,1,2) [2025-11-12 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16187262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16187262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16187262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16187262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16187262', 'tblTempUsageDetail_20' ) start [2025-11-12 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16187262', 'tblTempUsageDetail_20' ) end [2025-11-12 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-12 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-12 08:00:28] Production.INFO: ==1709== Releasing lock... [2025-11-12 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 08:00:28] Production.INFO: 29.5 MB #Memory Used# [2025-11-12 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 06:00:06 [end_date_ymd] => 2025-11-12 09:00:06 [RateCDR] => 1 ) [2025-11-12 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 06:00:06' and `end` < '2025-11-12 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 09:00:18] Production.INFO: count ==801 [2025-11-12 09:00:19] Production.ERROR: pbx CDR StartTime 2025-11-12 06:00:06 - End Time 2025-11-12 09:00:06 [2025-11-12 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16187510', 'tblTempUsageDetail_20' ) start [2025-11-12 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16187510', 'tblTempUsageDetail_20' ) end [2025-11-12 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16187510', 'tblTempVendorCDR_20' ) start [2025-11-12 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16187510', 'tblTempVendorCDR_20' ) end [2025-11-12 09:00:19] Production.INFO: ProcessCDR(1,16187510,1,1,2) [2025-11-12 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16187510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16187510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16187510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 09:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16187510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16187510', 'tblTempUsageDetail_20' ) start [2025-11-12 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16187510', 'tblTempUsageDetail_20' ) end [2025-11-12 09:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-12 09:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-12 09:00:29] Production.INFO: ==7286== Releasing lock... [2025-11-12 09:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 09:00:29] Production.INFO: 34.25 MB #Memory Used# [2025-11-12 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 07:00:07 [end_date_ymd] => 2025-11-12 10:00:07 [RateCDR] => 1 ) [2025-11-12 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 07:00:07' and `end` < '2025-11-12 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 10:00:22] Production.INFO: count ==2266 [2025-11-12 10:00:23] Production.ERROR: pbx CDR StartTime 2025-11-12 07:00:07 - End Time 2025-11-12 10:00:07 [2025-11-12 10:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16187757', 'tblTempUsageDetail_20' ) start [2025-11-12 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16187757', 'tblTempUsageDetail_20' ) end [2025-11-12 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16187757', 'tblTempVendorCDR_20' ) start [2025-11-12 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16187757', 'tblTempVendorCDR_20' ) end [2025-11-12 10:00:23] Production.INFO: ProcessCDR(1,16187757,1,1,2) [2025-11-12 10:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16187757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 10:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16187757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 10:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16187757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 10:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16187757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 10:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16187757', 'tblTempUsageDetail_20' ) start [2025-11-12 10:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16187757', 'tblTempUsageDetail_20' ) end [2025-11-12 10:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-12 10:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-12 10:00:36] Production.INFO: ==13259== Releasing lock... [2025-11-12 10:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 10:00:36] Production.INFO: 45.25 MB #Memory Used# [2025-11-12 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 08:00:06 [end_date_ymd] => 2025-11-12 11:00:06 [RateCDR] => 1 ) [2025-11-12 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 08:00:06' and `end` < '2025-11-12 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 11:00:20] Production.INFO: count ==4100 [2025-11-12 11:00:22] Production.ERROR: pbx CDR StartTime 2025-11-12 08:00:06 - End Time 2025-11-12 11:00:06 [2025-11-12 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16188004', 'tblTempUsageDetail_20' ) start [2025-11-12 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16188004', 'tblTempUsageDetail_20' ) end [2025-11-12 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16188004', 'tblTempVendorCDR_20' ) start [2025-11-12 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16188004', 'tblTempVendorCDR_20' ) end [2025-11-12 11:00:22] Production.INFO: ProcessCDR(1,16188004,1,1,2) [2025-11-12 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16188004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 11:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16188004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 11:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16188004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16188004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16188004', 'tblTempUsageDetail_20' ) start [2025-11-12 11:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16188004', 'tblTempUsageDetail_20' ) end [2025-11-12 11:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-12 11:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-12 11:00:37] Production.INFO: ==18719== Releasing lock... [2025-11-12 11:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 11:00:37] Production.INFO: 58.75 MB #Memory Used# [2025-11-12 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 09:00:06 [end_date_ymd] => 2025-11-12 12:00:06 [RateCDR] => 1 ) [2025-11-12 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 09:00:06' and `end` < '2025-11-12 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 12:00:22] Production.INFO: count ==6279 [2025-11-12 12:00:26] Production.ERROR: pbx CDR StartTime 2025-11-12 09:00:06 - End Time 2025-11-12 12:00:06 [2025-11-12 12:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16188251', 'tblTempUsageDetail_20' ) start [2025-11-12 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16188251', 'tblTempUsageDetail_20' ) end [2025-11-12 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16188251', 'tblTempVendorCDR_20' ) start [2025-11-12 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16188251', 'tblTempVendorCDR_20' ) end [2025-11-12 12:00:26] Production.INFO: ProcessCDR(1,16188251,1,1,2) [2025-11-12 12:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16188251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 12:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16188251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 12:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16188251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 12:00:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16188251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 12:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16188251', 'tblTempUsageDetail_20' ) start [2025-11-12 12:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16188251', 'tblTempUsageDetail_20' ) end [2025-11-12 12:00:39] Production.ERROR: pbx prc_insertCDR start [2025-11-12 12:00:41] Production.ERROR: pbx prc_insertCDR end [2025-11-12 12:00:41] Production.INFO: ==24118== Releasing lock... [2025-11-12 12:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 12:00:41] Production.INFO: 75.25 MB #Memory Used# [2025-11-12 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 10:00:06 [end_date_ymd] => 2025-11-12 13:00:06 [RateCDR] => 1 ) [2025-11-12 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 10:00:06' and `end` < '2025-11-12 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 13:00:20] Production.INFO: count ==6872 [2025-11-12 13:00:24] Production.ERROR: pbx CDR StartTime 2025-11-12 10:00:06 - End Time 2025-11-12 13:00:06 [2025-11-12 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16188498', 'tblTempUsageDetail_20' ) start [2025-11-12 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16188498', 'tblTempUsageDetail_20' ) end [2025-11-12 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16188498', 'tblTempVendorCDR_20' ) start [2025-11-12 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16188498', 'tblTempVendorCDR_20' ) end [2025-11-12 13:00:24] Production.INFO: ProcessCDR(1,16188498,1,1,2) [2025-11-12 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16188498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 13:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16188498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 13:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16188498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 13:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16188498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 13:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16188498', 'tblTempUsageDetail_20' ) start [2025-11-12 13:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16188498', 'tblTempUsageDetail_20' ) end [2025-11-12 13:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-12 13:00:40] Production.ERROR: pbx prc_insertCDR end [2025-11-12 13:00:40] Production.INFO: ==28473== Releasing lock... [2025-11-12 13:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 13:00:40] Production.INFO: 79.75 MB #Memory Used# [2025-11-12 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 11:00:07 [end_date_ymd] => 2025-11-12 14:00:07 [RateCDR] => 1 ) [2025-11-12 14:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 11:00:07' and `end` < '2025-11-12 14:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 14:00:30] Production.INFO: count ==7910 [2025-11-12 14:00:34] Production.ERROR: pbx CDR StartTime 2025-11-12 11:00:07 - End Time 2025-11-12 14:00:07 [2025-11-12 14:00:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 14:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16188745', 'tblTempUsageDetail_20' ) start [2025-11-12 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16188745', 'tblTempUsageDetail_20' ) end [2025-11-12 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16188745', 'tblTempVendorCDR_20' ) start [2025-11-12 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16188745', 'tblTempVendorCDR_20' ) end [2025-11-12 14:00:35] Production.INFO: ProcessCDR(1,16188745,1,1,2) [2025-11-12 14:00:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16188745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 14:00:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16188745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 14:00:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16188745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 14:00:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16188745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 14:00:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16188745', 'tblTempUsageDetail_20' ) start [2025-11-12 14:00:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16188745', 'tblTempUsageDetail_20' ) end [2025-11-12 14:00:48] Production.ERROR: pbx prc_insertCDR start [2025-11-12 14:00:50] Production.ERROR: pbx prc_insertCDR end [2025-11-12 14:00:50] Production.INFO: ==736== Releasing lock... [2025-11-12 14:00:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 14:00:50] Production.INFO: 88 MB #Memory Used# [2025-11-12 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 12:00:06 [end_date_ymd] => 2025-11-12 15:00:06 [RateCDR] => 1 ) [2025-11-12 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 12:00:06' and `end` < '2025-11-12 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 15:00:20] Production.INFO: count ==7217 [2025-11-12 15:00:24] Production.ERROR: pbx CDR StartTime 2025-11-12 12:00:06 - End Time 2025-11-12 15:00:06 [2025-11-12 15:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16188992', 'tblTempUsageDetail_20' ) start [2025-11-12 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16188992', 'tblTempUsageDetail_20' ) end [2025-11-12 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16188992', 'tblTempVendorCDR_20' ) start [2025-11-12 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16188992', 'tblTempVendorCDR_20' ) end [2025-11-12 15:00:24] Production.INFO: ProcessCDR(1,16188992,1,1,2) [2025-11-12 15:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16188992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 15:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16188992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 15:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16188992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 15:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16188992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16188992', 'tblTempUsageDetail_20' ) start [2025-11-12 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16188992', 'tblTempUsageDetail_20' ) end [2025-11-12 15:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-12 15:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-12 15:00:38] Production.INFO: ==5172== Releasing lock... [2025-11-12 15:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 15:00:38] Production.INFO: 82.75 MB #Memory Used# [2025-11-12 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 13:00:06 [end_date_ymd] => 2025-11-12 16:00:06 [RateCDR] => 1 ) [2025-11-12 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 13:00:06' and `end` < '2025-11-12 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 16:00:22] Production.INFO: count ==6181 [2025-11-12 16:00:26] Production.ERROR: pbx CDR StartTime 2025-11-12 13:00:06 - End Time 2025-11-12 16:00:06 [2025-11-12 16:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16189238', 'tblTempUsageDetail_20' ) start [2025-11-12 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16189238', 'tblTempUsageDetail_20' ) end [2025-11-12 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16189238', 'tblTempVendorCDR_20' ) start [2025-11-12 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16189238', 'tblTempVendorCDR_20' ) end [2025-11-12 16:00:26] Production.INFO: ProcessCDR(1,16189238,1,1,2) [2025-11-12 16:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16189238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 16:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16189238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 16:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16189238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 16:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16189238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16189238', 'tblTempUsageDetail_20' ) start [2025-11-12 16:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16189238', 'tblTempUsageDetail_20' ) end [2025-11-12 16:00:38] Production.ERROR: pbx prc_insertCDR start [2025-11-12 16:00:40] Production.ERROR: pbx prc_insertCDR end [2025-11-12 16:00:40] Production.INFO: ==9936== Releasing lock... [2025-11-12 16:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 16:00:40] Production.INFO: 74.5 MB #Memory Used# [2025-11-12 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 14:00:06 [end_date_ymd] => 2025-11-12 17:00:06 [RateCDR] => 1 ) [2025-11-12 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 14:00:06' and `end` < '2025-11-12 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 17:00:19] Production.INFO: count ==5501 [2025-11-12 17:00:22] Production.ERROR: pbx CDR StartTime 2025-11-12 14:00:06 - End Time 2025-11-12 17:00:06 [2025-11-12 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16189486', 'tblTempUsageDetail_20' ) start [2025-11-12 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16189486', 'tblTempUsageDetail_20' ) end [2025-11-12 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16189486', 'tblTempVendorCDR_20' ) start [2025-11-12 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16189486', 'tblTempVendorCDR_20' ) end [2025-11-12 17:00:22] Production.INFO: ProcessCDR(1,16189486,1,1,2) [2025-11-12 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16189486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 17:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16189486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 17:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16189486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 17:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16189486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16189486', 'tblTempUsageDetail_20' ) start [2025-11-12 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16189486', 'tblTempUsageDetail_20' ) end [2025-11-12 17:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-12 17:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-12 17:00:37] Production.INFO: ==14906== Releasing lock... [2025-11-12 17:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 17:00:37] Production.INFO: 69.5 MB #Memory Used# [2025-11-12 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 15:00:06 [end_date_ymd] => 2025-11-12 18:00:06 [RateCDR] => 1 ) [2025-11-12 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 15:00:06' and `end` < '2025-11-12 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 18:00:21] Production.INFO: count ==5146 [2025-11-12 18:00:24] Production.ERROR: pbx CDR StartTime 2025-11-12 15:00:06 - End Time 2025-11-12 18:00:06 [2025-11-12 18:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16189729', 'tblTempUsageDetail_20' ) start [2025-11-12 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16189729', 'tblTempUsageDetail_20' ) end [2025-11-12 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16189729', 'tblTempVendorCDR_20' ) start [2025-11-12 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16189729', 'tblTempVendorCDR_20' ) end [2025-11-12 18:00:24] Production.INFO: ProcessCDR(1,16189729,1,1,2) [2025-11-12 18:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16189729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 18:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16189729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 18:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16189729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 18:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16189729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 18:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16189729', 'tblTempUsageDetail_20' ) start [2025-11-12 18:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16189729', 'tblTempUsageDetail_20' ) end [2025-11-12 18:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-12 18:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-12 18:00:38] Production.INFO: ==20059== Releasing lock... [2025-11-12 18:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 18:00:38] Production.INFO: 66.75 MB #Memory Used# [2025-11-12 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 16:00:07 [end_date_ymd] => 2025-11-12 19:00:07 [RateCDR] => 1 ) [2025-11-12 19:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 16:00:07' and `end` < '2025-11-12 19:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 19:00:20] Production.INFO: count ==4550 [2025-11-12 19:00:22] Production.ERROR: pbx CDR StartTime 2025-11-12 16:00:07 - End Time 2025-11-12 19:00:07 [2025-11-12 19:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16189976', 'tblTempUsageDetail_20' ) start [2025-11-12 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16189976', 'tblTempUsageDetail_20' ) end [2025-11-12 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16189976', 'tblTempVendorCDR_20' ) start [2025-11-12 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16189976', 'tblTempVendorCDR_20' ) end [2025-11-12 19:00:22] Production.INFO: ProcessCDR(1,16189976,1,1,2) [2025-11-12 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16189976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 19:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16189976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 19:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16189976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 19:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16189976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16189976', 'tblTempUsageDetail_20' ) start [2025-11-12 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16189976', 'tblTempUsageDetail_20' ) end [2025-11-12 19:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-12 19:00:33] Production.ERROR: pbx prc_insertCDR end [2025-11-12 19:00:33] Production.INFO: ==24618== Releasing lock... [2025-11-12 19:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 19:00:33] Production.INFO: 62.25 MB #Memory Used# [2025-11-12 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 17:00:05 [end_date_ymd] => 2025-11-12 20:00:05 [RateCDR] => 1 ) [2025-11-12 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 17:00:05' and `end` < '2025-11-12 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 20:00:18] Production.INFO: count ==3360 [2025-11-12 20:00:19] Production.ERROR: pbx CDR StartTime 2025-11-12 17:00:05 - End Time 2025-11-12 20:00:05 [2025-11-12 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16190224', 'tblTempUsageDetail_20' ) start [2025-11-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16190224', 'tblTempUsageDetail_20' ) end [2025-11-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16190224', 'tblTempVendorCDR_20' ) start [2025-11-12 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16190224', 'tblTempVendorCDR_20' ) end [2025-11-12 20:00:19] Production.INFO: ProcessCDR(1,16190224,1,1,2) [2025-11-12 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16190224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 20:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16190224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 20:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16190224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 20:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16190224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 20:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16190224', 'tblTempUsageDetail_20' ) start [2025-11-12 20:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16190224', 'tblTempUsageDetail_20' ) end [2025-11-12 20:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-12 20:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-12 20:00:30] Production.INFO: ==29050== Releasing lock... [2025-11-12 20:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 20:00:30] Production.INFO: 53.25 MB #Memory Used# [2025-11-12 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 18:00:07 [end_date_ymd] => 2025-11-12 21:00:07 [RateCDR] => 1 ) [2025-11-12 21:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 18:00:07' and `end` < '2025-11-12 21:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 21:00:20] Production.INFO: count ==2408 [2025-11-12 21:00:20] Production.ERROR: pbx CDR StartTime 2025-11-12 18:00:07 - End Time 2025-11-12 21:00:07 [2025-11-12 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16190471', 'tblTempUsageDetail_20' ) start [2025-11-12 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16190471', 'tblTempUsageDetail_20' ) end [2025-11-12 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16190471', 'tblTempVendorCDR_20' ) start [2025-11-12 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16190471', 'tblTempVendorCDR_20' ) end [2025-11-12 21:00:21] Production.INFO: ProcessCDR(1,16190471,1,1,2) [2025-11-12 21:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16190471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 21:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16190471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 21:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16190471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 21:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16190471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16190471', 'tblTempUsageDetail_20' ) start [2025-11-12 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16190471', 'tblTempUsageDetail_20' ) end [2025-11-12 21:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-12 21:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-12 21:00:30] Production.INFO: ==1077== Releasing lock... [2025-11-12 21:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 21:00:30] Production.INFO: 46.5 MB #Memory Used# [2025-11-12 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 19:00:06 [end_date_ymd] => 2025-11-12 22:00:06 [RateCDR] => 1 ) [2025-11-12 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 19:00:06' and `end` < '2025-11-12 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 22:00:19] Production.INFO: count ==1487 [2025-11-12 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-12 19:00:06 - End Time 2025-11-12 22:00:06 [2025-11-12 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16190718', 'tblTempUsageDetail_20' ) start [2025-11-12 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16190718', 'tblTempUsageDetail_20' ) end [2025-11-12 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16190718', 'tblTempVendorCDR_20' ) start [2025-11-12 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16190718', 'tblTempVendorCDR_20' ) end [2025-11-12 22:00:20] Production.INFO: ProcessCDR(1,16190718,1,1,2) [2025-11-12 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16190718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 22:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16190718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 22:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16190718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 22:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16190718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16190718', 'tblTempUsageDetail_20' ) start [2025-11-12 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16190718', 'tblTempUsageDetail_20' ) end [2025-11-12 22:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-12 22:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-12 22:00:30] Production.INFO: ==5629== Releasing lock... [2025-11-12 22:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 22:00:30] Production.INFO: 39.25 MB #Memory Used# [2025-11-12 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-12 20:00:06 [end_date_ymd] => 2025-11-12 23:00:06 [RateCDR] => 1 ) [2025-11-12 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-12 20:00:06' and `end` < '2025-11-12 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-12 23:00:18] Production.INFO: count ==1086 [2025-11-12 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-12 20:00:06 - End Time 2025-11-12 23:00:06 [2025-11-12 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16190965', 'tblTempUsageDetail_20' ) start [2025-11-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16190965', 'tblTempUsageDetail_20' ) end [2025-11-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16190965', 'tblTempVendorCDR_20' ) start [2025-11-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16190965', 'tblTempVendorCDR_20' ) end [2025-11-12 23:00:19] Production.INFO: ProcessCDR(1,16190965,1,1,2) [2025-11-12 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16190965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 23:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16190965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-12 23:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16190965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 23:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16190965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-12 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16190965', 'tblTempUsageDetail_20' ) start [2025-11-12 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16190965', 'tblTempUsageDetail_20' ) end [2025-11-12 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-12 23:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-12 23:00:30] Production.INFO: ==10120== Releasing lock... [2025-11-12 23:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-12 23:00:30] Production.INFO: 36.5 MB #Memory Used#