[2025-10-09 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 21:25:04 [end_date_ymd] => 2025-10-09 00:25:04 [RateCDR] => 1 ) [2025-10-09 00: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-08 21:25:04' and `end` < '2025-10-09 00: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-09 00:25:17] Production.INFO: count ==492 [2025-10-09 00:25:18] Production.ERROR: pbx CDR StartTime 2025-10-08 21:25:04 - End Time 2025-10-09 00:25:04 [2025-10-09 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15983569', 'tblTempUsageDetail_20' ) start [2025-10-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15983569', 'tblTempUsageDetail_20' ) end [2025-10-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15983569', 'tblTempVendorCDR_20' ) start [2025-10-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15983569', 'tblTempVendorCDR_20' ) end [2025-10-09 00:25:18] Production.INFO: ProcessCDR(1,15983569,1,1,2) [2025-10-09 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15983569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15983569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15983569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 00:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15983569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15983569', 'tblTempUsageDetail_20' ) start [2025-10-09 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15983569', 'tblTempUsageDetail_20' ) end [2025-10-09 00:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-09 00:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-09 00:25:29] Production.INFO: ==21672== Releasing lock... [2025-10-09 00:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 00:25:29] Production.INFO: 35.75 MB #Memory Used# [2025-10-09 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 22:25:05 [end_date_ymd] => 2025-10-09 01:25:05 [RateCDR] => 1 ) [2025-10-09 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-08 22:25:05' and `end` < '2025-10-09 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-09 01:25:17] Production.INFO: count ==402 [2025-10-09 01:25:17] Production.ERROR: pbx CDR StartTime 2025-10-08 22:25:05 - End Time 2025-10-09 01:25:05 [2025-10-09 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15983816', 'tblTempUsageDetail_20' ) start [2025-10-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15983816', 'tblTempUsageDetail_20' ) end [2025-10-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15983816', 'tblTempVendorCDR_20' ) start [2025-10-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15983816', 'tblTempVendorCDR_20' ) end [2025-10-09 01:25:17] Production.INFO: ProcessCDR(1,15983816,1,1,2) [2025-10-09 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15983816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15983816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15983816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15983816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15983816', 'tblTempUsageDetail_20' ) start [2025-10-09 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15983816', 'tblTempUsageDetail_20' ) end [2025-10-09 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-09 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-09 01:25:25] Production.INFO: ==26249== Releasing lock... [2025-10-09 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 01:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-10-09 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 23:25:05 [end_date_ymd] => 2025-10-09 02:25:05 [RateCDR] => 1 ) [2025-10-09 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-08 23:25:05' and `end` < '2025-10-09 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-09 02:25:17] Production.INFO: count ==352 [2025-10-09 02:25:17] Production.ERROR: pbx CDR StartTime 2025-10-08 23:25:05 - End Time 2025-10-09 02:25:05 [2025-10-09 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15984063', 'tblTempUsageDetail_20' ) start [2025-10-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15984063', 'tblTempUsageDetail_20' ) end [2025-10-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15984063', 'tblTempVendorCDR_20' ) start [2025-10-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15984063', 'tblTempVendorCDR_20' ) end [2025-10-09 02:25:17] Production.INFO: ProcessCDR(1,15984063,1,1,2) [2025-10-09 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15984063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15984063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15984063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15984063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15984063', 'tblTempUsageDetail_20' ) start [2025-10-09 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15984063', 'tblTempUsageDetail_20' ) end [2025-10-09 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-09 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-09 02:25:26] Production.INFO: ==30771== Releasing lock... [2025-10-09 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 02:25:26] Production.INFO: 30.75 MB #Memory Used# [2025-10-09 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 00:25:05 [end_date_ymd] => 2025-10-09 03:25:05 [RateCDR] => 1 ) [2025-10-09 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-09 00:25:05' and `end` < '2025-10-09 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-09 03:25:17] Production.INFO: count ==259 [2025-10-09 03:25:17] Production.ERROR: pbx CDR StartTime 2025-10-09 00:25:05 - End Time 2025-10-09 03:25:05 [2025-10-09 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15984310', 'tblTempUsageDetail_20' ) start [2025-10-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15984310', 'tblTempUsageDetail_20' ) end [2025-10-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15984310', 'tblTempVendorCDR_20' ) start [2025-10-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15984310', 'tblTempVendorCDR_20' ) end [2025-10-09 03:25:17] Production.INFO: ProcessCDR(1,15984310,1,1,2) [2025-10-09 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15984310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15984310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15984310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15984310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15984310', 'tblTempUsageDetail_20' ) start [2025-10-09 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15984310', 'tblTempUsageDetail_20' ) end [2025-10-09 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-09 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-09 03:25:26] Production.INFO: ==2697== Releasing lock... [2025-10-09 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 03:25:26] Production.INFO: 30.25 MB #Memory Used# [2025-10-09 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 01:25:05 [end_date_ymd] => 2025-10-09 04:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 01:25:05' and `end` < '2025-10-09 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-09 04:25:17] Production.INFO: count ==176 [2025-10-09 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-09 01:25:05 - End Time 2025-10-09 04:25:05 [2025-10-09 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15984558', 'tblTempUsageDetail_20' ) start [2025-10-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15984558', 'tblTempUsageDetail_20' ) end [2025-10-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15984558', 'tblTempVendorCDR_20' ) start [2025-10-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15984558', 'tblTempVendorCDR_20' ) end [2025-10-09 04:25:17] Production.INFO: ProcessCDR(1,15984558,1,1,2) [2025-10-09 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15984558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15984558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15984558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15984558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15984558', 'tblTempUsageDetail_20' ) start [2025-10-09 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15984558', 'tblTempUsageDetail_20' ) end [2025-10-09 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-10-09 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-10-09 04:25:23] Production.INFO: ==7318== Releasing lock... [2025-10-09 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 04:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-10-09 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 02:25:05 [end_date_ymd] => 2025-10-09 05:25:05 [RateCDR] => 1 ) [2025-10-09 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-09 02:25:05' and `end` < '2025-10-09 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-09 05:25:17] Production.INFO: count ==117 [2025-10-09 05:25:17] Production.ERROR: pbx CDR StartTime 2025-10-09 02:25:05 - End Time 2025-10-09 05:25:05 [2025-10-09 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15984806', 'tblTempUsageDetail_20' ) start [2025-10-09 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15984806', 'tblTempUsageDetail_20' ) end [2025-10-09 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15984806', 'tblTempVendorCDR_20' ) start [2025-10-09 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15984806', 'tblTempVendorCDR_20' ) end [2025-10-09 05:25:17] Production.INFO: ProcessCDR(1,15984806,1,1,2) [2025-10-09 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15984806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15984806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15984806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15984806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15984806', 'tblTempUsageDetail_20' ) start [2025-10-09 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15984806', 'tblTempUsageDetail_20' ) end [2025-10-09 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-10-09 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-10-09 05:25:23] Production.INFO: ==11927== Releasing lock... [2025-10-09 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 05:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-10-09 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 03:25:05 [end_date_ymd] => 2025-10-09 06:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 03:25:05' and `end` < '2025-10-09 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-09 06:25:17] Production.INFO: count ==92 [2025-10-09 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-09 03:25:05 - End Time 2025-10-09 06:25:05 [2025-10-09 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15985053', 'tblTempUsageDetail_20' ) start [2025-10-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15985053', 'tblTempUsageDetail_20' ) end [2025-10-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15985053', 'tblTempVendorCDR_20' ) start [2025-10-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15985053', 'tblTempVendorCDR_20' ) end [2025-10-09 06:25:17] Production.INFO: ProcessCDR(1,15985053,1,1,2) [2025-10-09 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15985053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15985053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15985053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15985053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15985053', 'tblTempUsageDetail_20' ) start [2025-10-09 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15985053', 'tblTempUsageDetail_20' ) end [2025-10-09 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-09 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-09 06:25:25] Production.INFO: ==16935== Releasing lock... [2025-10-09 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 06:25:25] Production.INFO: 28.25 MB #Memory Used# [2025-10-09 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 04:25:06 [end_date_ymd] => 2025-10-09 07:25:06 [RateCDR] => 1 ) [2025-10-09 07: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-09 04:25:06' and `end` < '2025-10-09 07: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-09 07:25:18] Production.INFO: count ==85 [2025-10-09 07:25:18] Production.ERROR: pbx CDR StartTime 2025-10-09 04:25:06 - End Time 2025-10-09 07:25:06 [2025-10-09 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15985300', 'tblTempUsageDetail_20' ) start [2025-10-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15985300', 'tblTempUsageDetail_20' ) end [2025-10-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15985300', 'tblTempVendorCDR_20' ) start [2025-10-09 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15985300', 'tblTempVendorCDR_20' ) end [2025-10-09 07:25:18] Production.INFO: ProcessCDR(1,15985300,1,1,2) [2025-10-09 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15985300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15985300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15985300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15985300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15985300', 'tblTempUsageDetail_20' ) start [2025-10-09 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15985300', 'tblTempUsageDetail_20' ) end [2025-10-09 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-09 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-09 07:25:26] Production.INFO: ==21629== Releasing lock... [2025-10-09 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 07:25:26] Production.INFO: 28.25 MB #Memory Used# [2025-10-09 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 05:25:05 [end_date_ymd] => 2025-10-09 08:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 05:25:05' and `end` < '2025-10-09 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-09 08:25:17] Production.INFO: count ==233 [2025-10-09 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-09 05:25:05 - End Time 2025-10-09 08:25:05 [2025-10-09 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15985547', 'tblTempUsageDetail_20' ) start [2025-10-09 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15985547', 'tblTempUsageDetail_20' ) end [2025-10-09 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15985547', 'tblTempVendorCDR_20' ) start [2025-10-09 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15985547', 'tblTempVendorCDR_20' ) end [2025-10-09 08:25:17] Production.INFO: ProcessCDR(1,15985547,1,1,2) [2025-10-09 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15985547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15985547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15985547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15985547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15985547', 'tblTempUsageDetail_20' ) start [2025-10-09 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15985547', 'tblTempUsageDetail_20' ) end [2025-10-09 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-09 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-09 08:25:26] Production.INFO: ==26337== Releasing lock... [2025-10-09 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 08:25:26] Production.INFO: 30 MB #Memory Used# [2025-10-09 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 06:25:05 [end_date_ymd] => 2025-10-09 09:25:05 [RateCDR] => 1 ) [2025-10-09 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-09 06:25:05' and `end` < '2025-10-09 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-09 09:25:18] Production.INFO: count ==1121 [2025-10-09 09:25:18] Production.ERROR: pbx CDR StartTime 2025-10-09 06:25:05 - End Time 2025-10-09 09:25:05 [2025-10-09 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15985794', 'tblTempUsageDetail_20' ) start [2025-10-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15985794', 'tblTempUsageDetail_20' ) end [2025-10-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15985794', 'tblTempVendorCDR_20' ) start [2025-10-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15985794', 'tblTempVendorCDR_20' ) end [2025-10-09 09:25:18] Production.INFO: ProcessCDR(1,15985794,1,1,2) [2025-10-09 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15985794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15985794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15985794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15985794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15985794', 'tblTempUsageDetail_20' ) start [2025-10-09 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15985794', 'tblTempUsageDetail_20' ) end [2025-10-09 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-09 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-09 09:25:27] Production.INFO: ==30622== Releasing lock... [2025-10-09 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 09:25:27] Production.INFO: 37 MB #Memory Used# [2025-10-09 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 07:25:05 [end_date_ymd] => 2025-10-09 10:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 07:25:05' and `end` < '2025-10-09 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-09 10:25:18] Production.INFO: count ==2322 [2025-10-09 10:25:19] Production.ERROR: pbx CDR StartTime 2025-10-09 07:25:05 - End Time 2025-10-09 10:25:05 [2025-10-09 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15986041', 'tblTempUsageDetail_20' ) start [2025-10-09 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15986041', 'tblTempUsageDetail_20' ) end [2025-10-09 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15986041', 'tblTempVendorCDR_20' ) start [2025-10-09 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15986041', 'tblTempVendorCDR_20' ) end [2025-10-09 10:25:19] Production.INFO: ProcessCDR(1,15986041,1,1,2) [2025-10-09 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15986041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15986041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15986041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15986041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15986041', 'tblTempUsageDetail_20' ) start [2025-10-09 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15986041', 'tblTempUsageDetail_20' ) end [2025-10-09 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-09 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-09 10:25:30] Production.INFO: ==3073== Releasing lock... [2025-10-09 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 10:25:30] Production.INFO: 45.75 MB #Memory Used# [2025-10-09 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 08:25:05 [end_date_ymd] => 2025-10-09 11:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 08:25:05' and `end` < '2025-10-09 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-09 11:25:18] Production.INFO: count ==3827 [2025-10-09 11:25:20] Production.ERROR: pbx CDR StartTime 2025-10-09 08:25:05 - End Time 2025-10-09 11:25:05 [2025-10-09 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15986288', 'tblTempUsageDetail_20' ) start [2025-10-09 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15986288', 'tblTempUsageDetail_20' ) end [2025-10-09 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15986288', 'tblTempVendorCDR_20' ) start [2025-10-09 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15986288', 'tblTempVendorCDR_20' ) end [2025-10-09 11:25:20] Production.INFO: ProcessCDR(1,15986288,1,1,2) [2025-10-09 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15986288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15986288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15986288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15986288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15986288', 'tblTempUsageDetail_20' ) start [2025-10-09 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15986288', 'tblTempUsageDetail_20' ) end [2025-10-09 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-09 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-09 11:25:33] Production.INFO: ==7818== Releasing lock... [2025-10-09 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 11:25:33] Production.INFO: 57.25 MB #Memory Used# [2025-10-09 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 09:25:05 [end_date_ymd] => 2025-10-09 12:25:05 [RateCDR] => 1 ) [2025-10-09 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-09 09:25:05' and `end` < '2025-10-09 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-09 12:25:21] Production.INFO: count ==4495 [2025-10-09 12:25:24] Production.ERROR: pbx CDR StartTime 2025-10-09 09:25:05 - End Time 2025-10-09 12:25:05 [2025-10-09 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15986535', 'tblTempUsageDetail_20' ) start [2025-10-09 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15986535', 'tblTempUsageDetail_20' ) end [2025-10-09 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15986535', 'tblTempVendorCDR_20' ) start [2025-10-09 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15986535', 'tblTempVendorCDR_20' ) end [2025-10-09 12:25:24] Production.INFO: ProcessCDR(1,15986535,1,1,2) [2025-10-09 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15986535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15986535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15986535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15986535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15986535', 'tblTempUsageDetail_20' ) start [2025-10-09 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15986535', 'tblTempUsageDetail_20' ) end [2025-10-09 12:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-09 12:25:37] Production.ERROR: pbx prc_insertCDR end [2025-10-09 12:25:37] Production.INFO: ==12296== Releasing lock... [2025-10-09 12:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 12:25:37] Production.INFO: 61.75 MB #Memory Used# [2025-10-09 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 10:25:04 [end_date_ymd] => 2025-10-09 13:25:04 [RateCDR] => 1 ) [2025-10-09 13: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-09 10:25:04' and `end` < '2025-10-09 13: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-09 13:25:18] Production.INFO: count ==4869 [2025-10-09 13:25:21] Production.ERROR: pbx CDR StartTime 2025-10-09 10:25:04 - End Time 2025-10-09 13:25:04 [2025-10-09 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15986782', 'tblTempUsageDetail_20' ) start [2025-10-09 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15986782', 'tblTempUsageDetail_20' ) end [2025-10-09 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15986782', 'tblTempVendorCDR_20' ) start [2025-10-09 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15986782', 'tblTempVendorCDR_20' ) end [2025-10-09 13:25:21] Production.INFO: ProcessCDR(1,15986782,1,1,2) [2025-10-09 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15986782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15986782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15986782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15986782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15986782', 'tblTempUsageDetail_20' ) start [2025-10-09 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15986782', 'tblTempUsageDetail_20' ) end [2025-10-09 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-09 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-09 13:25:34] Production.INFO: ==17030== Releasing lock... [2025-10-09 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 13:25:34] Production.INFO: 64.75 MB #Memory Used# [2025-10-09 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 11:25:05 [end_date_ymd] => 2025-10-09 14:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 11:25:05' and `end` < '2025-10-09 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-09 14:25:18] Production.INFO: count ==4933 [2025-10-09 14:25:21] Production.ERROR: pbx CDR StartTime 2025-10-09 11:25:05 - End Time 2025-10-09 14:25:05 [2025-10-09 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15987029', 'tblTempUsageDetail_20' ) start [2025-10-09 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15987029', 'tblTempUsageDetail_20' ) end [2025-10-09 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15987029', 'tblTempVendorCDR_20' ) start [2025-10-09 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15987029', 'tblTempVendorCDR_20' ) end [2025-10-09 14:25:21] Production.INFO: ProcessCDR(1,15987029,1,1,2) [2025-10-09 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15987029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15987029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15987029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15987029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15987029', 'tblTempUsageDetail_20' ) start [2025-10-09 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15987029', 'tblTempUsageDetail_20' ) end [2025-10-09 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-09 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-09 14:25:34] Production.INFO: ==21637== Releasing lock... [2025-10-09 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 14:25:34] Production.INFO: 65.25 MB #Memory Used# [2025-10-09 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 12:25:05 [end_date_ymd] => 2025-10-09 15:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 12:25:05' and `end` < '2025-10-09 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-09 15:25:25] Production.INFO: count ==5100 [2025-10-09 15:25:28] Production.ERROR: pbx CDR StartTime 2025-10-09 12:25:05 - End Time 2025-10-09 15:25:05 [2025-10-09 15:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15987276', 'tblTempUsageDetail_20' ) start [2025-10-09 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15987276', 'tblTempUsageDetail_20' ) end [2025-10-09 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15987276', 'tblTempVendorCDR_20' ) start [2025-10-09 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15987276', 'tblTempVendorCDR_20' ) end [2025-10-09 15:25:28] Production.INFO: ProcessCDR(1,15987276,1,1,2) [2025-10-09 15:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15987276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 15:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15987276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 15:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15987276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 15:25:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15987276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 15:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15987276', 'tblTempUsageDetail_20' ) start [2025-10-09 15:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15987276', 'tblTempUsageDetail_20' ) end [2025-10-09 15:25:39] Production.ERROR: pbx prc_insertCDR start [2025-10-09 15:25:41] Production.ERROR: pbx prc_insertCDR end [2025-10-09 15:25:41] Production.INFO: ==26157== Releasing lock... [2025-10-09 15:25:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 15:25:41] Production.INFO: 66.5 MB #Memory Used# [2025-10-09 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 13:25:05 [end_date_ymd] => 2025-10-09 16:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 13:25:05' and `end` < '2025-10-09 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-09 16:25:19] Production.INFO: count ==5122 [2025-10-09 16:25:22] Production.ERROR: pbx CDR StartTime 2025-10-09 13:25:05 - End Time 2025-10-09 16:25:05 [2025-10-09 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15987523', 'tblTempUsageDetail_20' ) start [2025-10-09 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15987523', 'tblTempUsageDetail_20' ) end [2025-10-09 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15987523', 'tblTempVendorCDR_20' ) start [2025-10-09 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15987523', 'tblTempVendorCDR_20' ) end [2025-10-09 16:25:22] Production.INFO: ProcessCDR(1,15987523,1,1,2) [2025-10-09 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15987523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15987523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15987523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15987523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15987523', 'tblTempUsageDetail_20' ) start [2025-10-09 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15987523', 'tblTempUsageDetail_20' ) end [2025-10-09 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-09 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-09 16:25:35] Production.INFO: ==30464== Releasing lock... [2025-10-09 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 16:25:35] Production.INFO: 66.5 MB #Memory Used# [2025-10-09 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 14:25:05 [end_date_ymd] => 2025-10-09 17:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 14:25:05' and `end` < '2025-10-09 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-09 17:25:18] Production.INFO: count ==4808 [2025-10-09 17:25:21] Production.ERROR: pbx CDR StartTime 2025-10-09 14:25:05 - End Time 2025-10-09 17:25:05 [2025-10-09 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15987770', 'tblTempUsageDetail_20' ) start [2025-10-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15987770', 'tblTempUsageDetail_20' ) end [2025-10-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15987770', 'tblTempVendorCDR_20' ) start [2025-10-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15987770', 'tblTempVendorCDR_20' ) end [2025-10-09 17:25:21] Production.INFO: ProcessCDR(1,15987770,1,1,2) [2025-10-09 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15987770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15987770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15987770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15987770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15987770', 'tblTempUsageDetail_20' ) start [2025-10-09 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15987770', 'tblTempUsageDetail_20' ) end [2025-10-09 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-09 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-09 17:25:33] Production.INFO: ==2747== Releasing lock... [2025-10-09 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 17:25:33] Production.INFO: 64.25 MB #Memory Used# [2025-10-09 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 15:25:05 [end_date_ymd] => 2025-10-09 18:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 15:25:05' and `end` < '2025-10-09 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-09 18:25:18] Production.INFO: count ==4140 [2025-10-09 18:25:20] Production.ERROR: pbx CDR StartTime 2025-10-09 15:25:05 - End Time 2025-10-09 18:25:05 [2025-10-09 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15988017', 'tblTempUsageDetail_20' ) start [2025-10-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15988017', 'tblTempUsageDetail_20' ) end [2025-10-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15988017', 'tblTempVendorCDR_20' ) start [2025-10-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15988017', 'tblTempVendorCDR_20' ) end [2025-10-09 18:25:20] Production.INFO: ProcessCDR(1,15988017,1,1,2) [2025-10-09 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15988017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 18:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15988017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 18:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15988017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 18:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15988017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 18:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15988017', 'tblTempUsageDetail_20' ) start [2025-10-09 18:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15988017', 'tblTempUsageDetail_20' ) end [2025-10-09 18:27:28] Production.ERROR: pbx prc_insertCDR start [2025-10-09 18:27:29] Production.ERROR: pbx prc_insertCDR end [2025-10-09 18:27:36] Production.INFO: ==7780== Releasing lock... [2025-10-09 18:27:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 18:27:36] Production.INFO: 59.25 MB #Memory Used# [2025-10-09 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 16:25:05 [end_date_ymd] => 2025-10-09 19:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 16:25:05' and `end` < '2025-10-09 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-09 19:25:18] Production.INFO: count ==3282 [2025-10-09 19:25:19] Production.ERROR: pbx CDR StartTime 2025-10-09 16:25:05 - End Time 2025-10-09 19:25:05 [2025-10-09 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15988261', 'tblTempUsageDetail_20' ) start [2025-10-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15988261', 'tblTempUsageDetail_20' ) end [2025-10-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15988261', 'tblTempVendorCDR_20' ) start [2025-10-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15988261', 'tblTempVendorCDR_20' ) end [2025-10-09 19:25:19] Production.INFO: ProcessCDR(1,15988261,1,1,2) [2025-10-09 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15988261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15988261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15988261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15988261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15988261', 'tblTempUsageDetail_20' ) start [2025-10-09 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15988261', 'tblTempUsageDetail_20' ) end [2025-10-09 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-09 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-09 19:25:29] Production.INFO: ==12239== Releasing lock... [2025-10-09 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 19:25:29] Production.INFO: 52.75 MB #Memory Used# [2025-10-09 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 17:25:06 [end_date_ymd] => 2025-10-09 20:25:06 [RateCDR] => 1 ) [2025-10-09 20: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-09 17:25:06' and `end` < '2025-10-09 20: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-09 20:25:18] Production.INFO: count ==2353 [2025-10-09 20:25:19] Production.ERROR: pbx CDR StartTime 2025-10-09 17:25:06 - End Time 2025-10-09 20:25:06 [2025-10-09 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15988508', 'tblTempUsageDetail_20' ) start [2025-10-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15988508', 'tblTempUsageDetail_20' ) end [2025-10-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15988508', 'tblTempVendorCDR_20' ) start [2025-10-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15988508', 'tblTempVendorCDR_20' ) end [2025-10-09 20:25:19] Production.INFO: ProcessCDR(1,15988508,1,1,2) [2025-10-09 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15988508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15988508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15988508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15988508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15988508', 'tblTempUsageDetail_20' ) start [2025-10-09 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15988508', 'tblTempUsageDetail_20' ) end [2025-10-09 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-09 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-09 20:25:29] Production.INFO: ==16504== Releasing lock... [2025-10-09 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 20:25:29] Production.INFO: 45.75 MB #Memory Used# [2025-10-09 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 18:25:05 [end_date_ymd] => 2025-10-09 21:25:05 [RateCDR] => 1 ) [2025-10-09 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-09 18:25:05' and `end` < '2025-10-09 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-09 21:25:18] Production.INFO: count ==4239 [2025-10-09 21:25:20] Production.ERROR: pbx CDR StartTime 2025-10-09 18:25:05 - End Time 2025-10-09 21:25:05 [2025-10-09 21:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15988755', 'tblTempUsageDetail_20' ) start [2025-10-09 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15988755', 'tblTempUsageDetail_20' ) end [2025-10-09 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15988755', 'tblTempVendorCDR_20' ) start [2025-10-09 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15988755', 'tblTempVendorCDR_20' ) end [2025-10-09 21:25:20] Production.INFO: ProcessCDR(1,15988755,1,1,2) [2025-10-09 21:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15988755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 21:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15988755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 21:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15988755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 21:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15988755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 21:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15988755', 'tblTempUsageDetail_20' ) start [2025-10-09 21:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15988755', 'tblTempUsageDetail_20' ) end [2025-10-09 21:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-09 21:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-09 21:25:32] Production.INFO: ==20879== Releasing lock... [2025-10-09 21:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 21:25:32] Production.INFO: 59.75 MB #Memory Used# [2025-10-09 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 19:25:06 [end_date_ymd] => 2025-10-09 22:25:06 [RateCDR] => 1 ) [2025-10-09 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-09 19:25:06' and `end` < '2025-10-09 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-09 22:25:19] Production.INFO: count ==4513 [2025-10-09 22:25:21] Production.ERROR: pbx CDR StartTime 2025-10-09 19:25:06 - End Time 2025-10-09 22:25:06 [2025-10-09 22:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 22:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15989002', 'tblTempUsageDetail_20' ) start [2025-10-09 22:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15989002', 'tblTempUsageDetail_20' ) end [2025-10-09 22:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15989002', 'tblTempVendorCDR_20' ) start [2025-10-09 22:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15989002', 'tblTempVendorCDR_20' ) end [2025-10-09 22:25:21] Production.INFO: ProcessCDR(1,15989002,1,1,2) [2025-10-09 22:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15989002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 22:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15989002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 22:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15989002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 22:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15989002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 22:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15989002', 'tblTempUsageDetail_20' ) start [2025-10-09 22:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15989002', 'tblTempUsageDetail_20' ) end [2025-10-09 22:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-09 22:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-09 22:25:31] Production.INFO: ==25353== Releasing lock... [2025-10-09 22:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 22:25:31] Production.INFO: 61.75 MB #Memory Used# [2025-10-09 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 20:25:05 [end_date_ymd] => 2025-10-09 23:25:05 [RateCDR] => 1 ) [2025-10-09 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-09 20:25:05' and `end` < '2025-10-09 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-09 23:25:18] Production.INFO: count ==5529 [2025-10-09 23:25:20] Production.ERROR: pbx CDR StartTime 2025-10-09 20:25:05 - End Time 2025-10-09 23:25:05 [2025-10-09 23:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-09 23:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15989249', 'tblTempUsageDetail_20' ) start [2025-10-09 23:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15989249', 'tblTempUsageDetail_20' ) end [2025-10-09 23:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15989249', 'tblTempVendorCDR_20' ) start [2025-10-09 23:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15989249', 'tblTempVendorCDR_20' ) end [2025-10-09 23:25:21] Production.INFO: ProcessCDR(1,15989249,1,1,2) [2025-10-09 23:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15989249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 23:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15989249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-09 23:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15989249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 23:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15989249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-09 23:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15989249', 'tblTempUsageDetail_20' ) start [2025-10-09 23:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15989249', 'tblTempUsageDetail_20' ) end [2025-10-09 23:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-09 23:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-09 23:25:31] Production.INFO: ==29915== Releasing lock... [2025-10-09 23:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-09 23:25:31] Production.INFO: 69.5 MB #Memory Used#