[2025-09-12 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 21:25:06 [end_date_ymd] => 2025-09-12 00:25:06 [RateCDR] => 1 ) [2025-09-12 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-11 21:25:06' and `end` < '2025-09-12 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-12 00:25:18] Production.INFO: count ==516 [2025-09-12 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-11 21:25:06 - End Time 2025-09-12 00:25:06 [2025-09-12 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15823530', 'tblTempUsageDetail_20' ) start [2025-09-12 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15823530', 'tblTempUsageDetail_20' ) end [2025-09-12 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15823530', 'tblTempVendorCDR_20' ) start [2025-09-12 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15823530', 'tblTempVendorCDR_20' ) end [2025-09-12 00:25:18] Production.INFO: ProcessCDR(1,15823530,1,1,2) [2025-09-12 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15823530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15823530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15823530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15823530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15823530', 'tblTempUsageDetail_20' ) start [2025-09-12 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15823530', 'tblTempUsageDetail_20' ) end [2025-09-12 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-12 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-12 00:25:28] Production.INFO: ==27238== Releasing lock... [2025-09-12 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 00:25:28] Production.INFO: 35.5 MB #Memory Used# [2025-09-12 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 22:25:05 [end_date_ymd] => 2025-09-12 01:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-11 22:25:05' and `end` < '2025-09-12 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-09-12 01:25:17] Production.INFO: count ==492 [2025-09-12 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-11 22:25:05 - End Time 2025-09-12 01:25:05 [2025-09-12 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15823777', 'tblTempUsageDetail_20' ) start [2025-09-12 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15823777', 'tblTempUsageDetail_20' ) end [2025-09-12 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15823777', 'tblTempVendorCDR_20' ) start [2025-09-12 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15823777', 'tblTempVendorCDR_20' ) end [2025-09-12 01:25:17] Production.INFO: ProcessCDR(1,15823777,1,1,2) [2025-09-12 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15823777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15823777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15823777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15823777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15823777', 'tblTempUsageDetail_20' ) start [2025-09-12 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15823777', 'tblTempUsageDetail_20' ) end [2025-09-12 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-12 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-12 01:25:25] Production.INFO: ==829== Releasing lock... [2025-09-12 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 01:25:25] Production.INFO: 32 MB #Memory Used# [2025-09-12 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 23:25:05 [end_date_ymd] => 2025-09-12 02:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-11 23:25:05' and `end` < '2025-09-12 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-09-12 02:25:18] Production.INFO: count ==634 [2025-09-12 02:25:19] Production.ERROR: pbx CDR StartTime 2025-09-11 23:25:05 - End Time 2025-09-12 02:25:05 [2025-09-12 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15824024', 'tblTempUsageDetail_20' ) start [2025-09-12 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15824024', 'tblTempUsageDetail_20' ) end [2025-09-12 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15824024', 'tblTempVendorCDR_20' ) start [2025-09-12 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15824024', 'tblTempVendorCDR_20' ) end [2025-09-12 02:25:19] Production.INFO: ProcessCDR(1,15824024,1,1,2) [2025-09-12 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15824024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15824024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15824024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15824024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15824024', 'tblTempUsageDetail_20' ) start [2025-09-12 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15824024', 'tblTempUsageDetail_20' ) end [2025-09-12 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-12 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-12 02:25:26] Production.INFO: ==7142== Releasing lock... [2025-09-12 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 02:25:26] Production.INFO: 33.25 MB #Memory Used# [2025-09-12 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 00:25:05 [end_date_ymd] => 2025-09-12 03:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 00:25:05' and `end` < '2025-09-12 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-09-12 03:25:17] Production.INFO: count ==568 [2025-09-12 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-12 00:25:05 - End Time 2025-09-12 03:25:05 [2025-09-12 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15824271', 'tblTempUsageDetail_20' ) start [2025-09-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15824271', 'tblTempUsageDetail_20' ) end [2025-09-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15824271', 'tblTempVendorCDR_20' ) start [2025-09-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15824271', 'tblTempVendorCDR_20' ) end [2025-09-12 03:25:17] Production.INFO: ProcessCDR(1,15824271,1,1,2) [2025-09-12 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15824271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15824271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15824271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15824271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15824271', 'tblTempUsageDetail_20' ) start [2025-09-12 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15824271', 'tblTempUsageDetail_20' ) end [2025-09-12 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-09-12 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-09-12 03:25:22] Production.INFO: ==13307== Releasing lock... [2025-09-12 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 03:25:22] Production.INFO: 32.75 MB #Memory Used# [2025-09-12 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 01:25:05 [end_date_ymd] => 2025-09-12 04:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 01:25:05' and `end` < '2025-09-12 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-09-12 04:25:17] Production.INFO: count ==422 [2025-09-12 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-12 01:25:05 - End Time 2025-09-12 04:25:05 [2025-09-12 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15824519', 'tblTempUsageDetail_20' ) start [2025-09-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15824519', 'tblTempUsageDetail_20' ) end [2025-09-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15824519', 'tblTempVendorCDR_20' ) start [2025-09-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15824519', 'tblTempVendorCDR_20' ) end [2025-09-12 04:25:17] Production.INFO: ProcessCDR(1,15824519,1,1,2) [2025-09-12 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15824519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15824519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15824519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15824519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15824519', 'tblTempUsageDetail_20' ) start [2025-09-12 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15824519', 'tblTempUsageDetail_20' ) end [2025-09-12 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-12 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-12 04:25:25] Production.INFO: ==19541== Releasing lock... [2025-09-12 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 04:25:25] Production.INFO: 32 MB #Memory Used# [2025-09-12 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 02:25:05 [end_date_ymd] => 2025-09-12 05:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 02:25:05' and `end` < '2025-09-12 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-09-12 05:25:18] Production.INFO: count ==172 [2025-09-12 05:25:18] Production.ERROR: pbx CDR StartTime 2025-09-12 02:25:05 - End Time 2025-09-12 05:25:05 [2025-09-12 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15824767', 'tblTempUsageDetail_20' ) start [2025-09-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15824767', 'tblTempUsageDetail_20' ) end [2025-09-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15824767', 'tblTempVendorCDR_20' ) start [2025-09-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15824767', 'tblTempVendorCDR_20' ) end [2025-09-12 05:25:18] Production.INFO: ProcessCDR(1,15824767,1,1,2) [2025-09-12 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15824767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15824767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15824767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15824767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15824767', 'tblTempUsageDetail_20' ) start [2025-09-12 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15824767', 'tblTempUsageDetail_20' ) end [2025-09-12 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-12 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-12 05:25:23] Production.INFO: ==25773== Releasing lock... [2025-09-12 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 05:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-09-12 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 03:25:05 [end_date_ymd] => 2025-09-12 06:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 03:25:05' and `end` < '2025-09-12 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-09-12 06:25:17] Production.INFO: count ==142 [2025-09-12 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-12 03:25:05 - End Time 2025-09-12 06:25:05 [2025-09-12 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15825014', 'tblTempUsageDetail_20' ) start [2025-09-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15825014', 'tblTempUsageDetail_20' ) end [2025-09-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15825014', 'tblTempVendorCDR_20' ) start [2025-09-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15825014', 'tblTempVendorCDR_20' ) end [2025-09-12 06:25:17] Production.INFO: ProcessCDR(1,15825014,1,1,2) [2025-09-12 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15825014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15825014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15825014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15825014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15825014', 'tblTempUsageDetail_20' ) start [2025-09-12 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15825014', 'tblTempUsageDetail_20' ) end [2025-09-12 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-12 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-12 06:25:24] Production.INFO: ==30894== Releasing lock... [2025-09-12 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-09-12 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 04:25:05 [end_date_ymd] => 2025-09-12 07:25:05 [RateCDR] => 1 ) [2025-09-12 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-12 04:25:05' and `end` < '2025-09-12 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-12 07:25:17] Production.INFO: count ==130 [2025-09-12 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-12 04:25:05 - End Time 2025-09-12 07:25:05 [2025-09-12 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15825261', 'tblTempUsageDetail_20' ) start [2025-09-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15825261', 'tblTempUsageDetail_20' ) end [2025-09-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15825261', 'tblTempVendorCDR_20' ) start [2025-09-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15825261', 'tblTempVendorCDR_20' ) end [2025-09-12 07:25:17] Production.INFO: ProcessCDR(1,15825261,1,1,2) [2025-09-12 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15825261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15825261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15825261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15825261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15825261', 'tblTempUsageDetail_20' ) start [2025-09-12 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15825261', 'tblTempUsageDetail_20' ) end [2025-09-12 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-12 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-12 07:25:24] Production.INFO: ==3096== Releasing lock... [2025-09-12 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 07:25:24] Production.INFO: 29 MB #Memory Used# [2025-09-12 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 05:25:04 [end_date_ymd] => 2025-09-12 08:25:04 [RateCDR] => 1 ) [2025-09-12 08: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-09-12 05:25:04' and `end` < '2025-09-12 08: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-09-12 08:25:17] Production.INFO: count ==309 [2025-09-12 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-12 05:25:04 - End Time 2025-09-12 08:25:04 [2025-09-12 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15825508', 'tblTempUsageDetail_20' ) start [2025-09-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15825508', 'tblTempUsageDetail_20' ) end [2025-09-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15825508', 'tblTempVendorCDR_20' ) start [2025-09-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15825508', 'tblTempVendorCDR_20' ) end [2025-09-12 08:25:17] Production.INFO: ProcessCDR(1,15825508,1,1,2) [2025-09-12 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15825508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15825508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15825508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15825508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15825508', 'tblTempUsageDetail_20' ) start [2025-09-12 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15825508', 'tblTempUsageDetail_20' ) end [2025-09-12 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-12 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-12 08:25:25] Production.INFO: ==7829== Releasing lock... [2025-09-12 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 08:25:25] Production.INFO: 31 MB #Memory Used# [2025-09-12 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 06:25:05 [end_date_ymd] => 2025-09-12 09:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 06:25:05' and `end` < '2025-09-12 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-09-12 09:25:17] Production.INFO: count ==1158 [2025-09-12 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-12 06:25:05 - End Time 2025-09-12 09:25:05 [2025-09-12 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15825755', 'tblTempUsageDetail_20' ) start [2025-09-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15825755', 'tblTempUsageDetail_20' ) end [2025-09-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15825755', 'tblTempVendorCDR_20' ) start [2025-09-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15825755', 'tblTempVendorCDR_20' ) end [2025-09-12 09:25:18] Production.INFO: ProcessCDR(1,15825755,1,1,2) [2025-09-12 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15825755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15825755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15825755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15825755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15825755', 'tblTempUsageDetail_20' ) start [2025-09-12 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15825755', 'tblTempUsageDetail_20' ) end [2025-09-12 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-12 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-12 09:25:27] Production.INFO: ==13276== Releasing lock... [2025-09-12 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 09:25:27] Production.INFO: 37.25 MB #Memory Used# [2025-09-12 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 07:25:05 [end_date_ymd] => 2025-09-12 10:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 07:25:05' and `end` < '2025-09-12 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-09-12 10:25:19] Production.INFO: count ==2680 [2025-09-12 10:25:20] Production.ERROR: pbx CDR StartTime 2025-09-12 07:25:05 - End Time 2025-09-12 10:25:05 [2025-09-12 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15826002', 'tblTempUsageDetail_20' ) start [2025-09-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15826002', 'tblTempUsageDetail_20' ) end [2025-09-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15826002', 'tblTempVendorCDR_20' ) start [2025-09-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15826002', 'tblTempVendorCDR_20' ) end [2025-09-12 10:25:20] Production.INFO: ProcessCDR(1,15826002,1,1,2) [2025-09-12 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15826002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15826002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15826002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15826002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15826002', 'tblTempUsageDetail_20' ) start [2025-09-12 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15826002', 'tblTempUsageDetail_20' ) end [2025-09-12 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-12 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-12 10:25:32] Production.INFO: ==17874== Releasing lock... [2025-09-12 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 10:25:32] Production.INFO: 48.5 MB #Memory Used# [2025-09-12 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 08:25:05 [end_date_ymd] => 2025-09-12 11:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 08:25:05' and `end` < '2025-09-12 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-09-12 11:25:19] Production.INFO: count ==4445 [2025-09-12 11:25:21] Production.ERROR: pbx CDR StartTime 2025-09-12 08:25:05 - End Time 2025-09-12 11:25:05 [2025-09-12 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15826249', 'tblTempUsageDetail_20' ) start [2025-09-12 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15826249', 'tblTempUsageDetail_20' ) end [2025-09-12 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15826249', 'tblTempVendorCDR_20' ) start [2025-09-12 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15826249', 'tblTempVendorCDR_20' ) end [2025-09-12 11:25:21] Production.INFO: ProcessCDR(1,15826249,1,1,2) [2025-09-12 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15826249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15826249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15826249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15826249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15826249', 'tblTempUsageDetail_20' ) start [2025-09-12 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15826249', 'tblTempUsageDetail_20' ) end [2025-09-12 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-12 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-12 11:25:33] Production.INFO: ==22403== Releasing lock... [2025-09-12 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 11:25:33] Production.INFO: 61.5 MB #Memory Used# [2025-09-12 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 09:25:05 [end_date_ymd] => 2025-09-12 12:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 09:25:05' and `end` < '2025-09-12 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-09-12 12:25:20] Production.INFO: count ==5021 [2025-09-12 12:25:22] Production.ERROR: pbx CDR StartTime 2025-09-12 09:25:05 - End Time 2025-09-12 12:25:05 [2025-09-12 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15826496', 'tblTempUsageDetail_20' ) start [2025-09-12 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15826496', 'tblTempUsageDetail_20' ) end [2025-09-12 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15826496', 'tblTempVendorCDR_20' ) start [2025-09-12 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15826496', 'tblTempVendorCDR_20' ) end [2025-09-12 12:25:23] Production.INFO: ProcessCDR(1,15826496,1,1,2) [2025-09-12 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15826496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15826496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15826496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15826496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15826496', 'tblTempUsageDetail_20' ) start [2025-09-12 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15826496', 'tblTempUsageDetail_20' ) end [2025-09-12 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-12 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-12 12:25:34] Production.INFO: ==26644== Releasing lock... [2025-09-12 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 12:25:34] Production.INFO: 66 MB #Memory Used# [2025-09-12 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 10:25:05 [end_date_ymd] => 2025-09-12 13:25:05 [RateCDR] => 1 ) [2025-09-12 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-12 10:25:05' and `end` < '2025-09-12 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-12 13:25:18] Production.INFO: count ==5048 [2025-09-12 13:25:21] Production.ERROR: pbx CDR StartTime 2025-09-12 10:25:05 - End Time 2025-09-12 13:25:05 [2025-09-12 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15826743', 'tblTempUsageDetail_20' ) start [2025-09-12 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15826743', 'tblTempUsageDetail_20' ) end [2025-09-12 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15826743', 'tblTempVendorCDR_20' ) start [2025-09-12 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15826743', 'tblTempVendorCDR_20' ) end [2025-09-12 13:25:21] Production.INFO: ProcessCDR(1,15826743,1,1,2) [2025-09-12 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15826743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15826743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15826743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15826743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15826743', 'tblTempUsageDetail_20' ) start [2025-09-12 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15826743', 'tblTempUsageDetail_20' ) end [2025-09-12 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-12 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-12 13:25:32] Production.INFO: ==31500== Releasing lock... [2025-09-12 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 13:25:32] Production.INFO: 66 MB #Memory Used# [2025-09-12 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 11:25:05 [end_date_ymd] => 2025-09-12 14:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 11:25:05' and `end` < '2025-09-12 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-09-12 14:25:20] Production.INFO: count ==4827 [2025-09-12 14:25:22] Production.ERROR: pbx CDR StartTime 2025-09-12 11:25:05 - End Time 2025-09-12 14:25:05 [2025-09-12 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15826990', 'tblTempUsageDetail_20' ) start [2025-09-12 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15826990', 'tblTempUsageDetail_20' ) end [2025-09-12 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15826990', 'tblTempVendorCDR_20' ) start [2025-09-12 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15826990', 'tblTempVendorCDR_20' ) end [2025-09-12 14:25:23] Production.INFO: ProcessCDR(1,15826990,1,1,2) [2025-09-12 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15826990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15826990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15826990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15826990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15826990', 'tblTempUsageDetail_20' ) start [2025-09-12 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15826990', 'tblTempUsageDetail_20' ) end [2025-09-12 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-12 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-12 14:25:34] Production.INFO: ==3823== Releasing lock... [2025-09-12 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 14:25:34] Production.INFO: 64.25 MB #Memory Used# [2025-09-12 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 12:25:05 [end_date_ymd] => 2025-09-12 15:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 12:25:05' and `end` < '2025-09-12 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-09-12 15:25:21] Production.INFO: count ==5062 [2025-09-12 15:25:24] Production.ERROR: pbx CDR StartTime 2025-09-12 12:25:05 - End Time 2025-09-12 15:25:05 [2025-09-12 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15827237', 'tblTempUsageDetail_20' ) start [2025-09-12 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15827237', 'tblTempUsageDetail_20' ) end [2025-09-12 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15827237', 'tblTempVendorCDR_20' ) start [2025-09-12 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15827237', 'tblTempVendorCDR_20' ) end [2025-09-12 15:25:24] Production.INFO: ProcessCDR(1,15827237,1,1,2) [2025-09-12 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15827237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15827237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15827237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15827237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15827237', 'tblTempUsageDetail_20' ) start [2025-09-12 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15827237', 'tblTempUsageDetail_20' ) end [2025-09-12 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-12 15:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-12 15:25:36] Production.INFO: ==8842== Releasing lock... [2025-09-12 15:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 15:25:36] Production.INFO: 66 MB #Memory Used# [2025-09-12 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 13:25:05 [end_date_ymd] => 2025-09-12 16:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 13:25:05' and `end` < '2025-09-12 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-09-12 16:25:20] Production.INFO: count ==5778 [2025-09-12 16:25:23] Production.ERROR: pbx CDR StartTime 2025-09-12 13:25:05 - End Time 2025-09-12 16:25:05 [2025-09-12 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15827484', 'tblTempUsageDetail_20' ) start [2025-09-12 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15827484', 'tblTempUsageDetail_20' ) end [2025-09-12 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15827484', 'tblTempVendorCDR_20' ) start [2025-09-12 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15827484', 'tblTempVendorCDR_20' ) end [2025-09-12 16:25:24] Production.INFO: ProcessCDR(1,15827484,1,1,2) [2025-09-12 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15827484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15827484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15827484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15827484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15827484', 'tblTempUsageDetail_20' ) start [2025-09-12 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15827484', 'tblTempUsageDetail_20' ) end [2025-09-12 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-12 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-12 16:25:36] Production.INFO: ==13325== Releasing lock... [2025-09-12 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 16:25:36] Production.INFO: 71.5 MB #Memory Used# [2025-09-12 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 14:25:05 [end_date_ymd] => 2025-09-12 17:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 14:25:05' and `end` < '2025-09-12 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-09-12 17:25:19] Production.INFO: count ==5882 [2025-09-12 17:25:22] Production.ERROR: pbx CDR StartTime 2025-09-12 14:25:05 - End Time 2025-09-12 17:25:05 [2025-09-12 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15827731', 'tblTempUsageDetail_20' ) start [2025-09-12 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15827731', 'tblTempUsageDetail_20' ) end [2025-09-12 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15827731', 'tblTempVendorCDR_20' ) start [2025-09-12 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15827731', 'tblTempVendorCDR_20' ) end [2025-09-12 17:25:22] Production.INFO: ProcessCDR(1,15827731,1,1,2) [2025-09-12 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15827731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15827731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15827731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15827731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15827731', 'tblTempUsageDetail_20' ) start [2025-09-12 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15827731', 'tblTempUsageDetail_20' ) end [2025-09-12 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-12 17:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-12 17:25:35] Production.INFO: ==18084== Releasing lock... [2025-09-12 17:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 17:25:35] Production.INFO: 72.25 MB #Memory Used# [2025-09-12 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 15:25:05 [end_date_ymd] => 2025-09-12 18:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 15:25:05' and `end` < '2025-09-12 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-09-12 18:25:18] Production.INFO: count ==5532 [2025-09-12 18:25:21] Production.ERROR: pbx CDR StartTime 2025-09-12 15:25:05 - End Time 2025-09-12 18:25:05 [2025-09-12 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15827978', 'tblTempUsageDetail_20' ) start [2025-09-12 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15827978', 'tblTempUsageDetail_20' ) end [2025-09-12 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15827978', 'tblTempVendorCDR_20' ) start [2025-09-12 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15827978', 'tblTempVendorCDR_20' ) end [2025-09-12 18:25:21] Production.INFO: ProcessCDR(1,15827978,1,1,2) [2025-09-12 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15827978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15827978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 18:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15827978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 18:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15827978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15827978', 'tblTempUsageDetail_20' ) start [2025-09-12 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15827978', 'tblTempUsageDetail_20' ) end [2025-09-12 18:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-12 18:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-12 18:25:33] Production.INFO: ==22341== Releasing lock... [2025-09-12 18:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 18:25:33] Production.INFO: 69.75 MB #Memory Used# [2025-09-12 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 16:25:05 [end_date_ymd] => 2025-09-12 19:25:05 [RateCDR] => 1 ) [2025-09-12 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-09-12 16:25:05' and `end` < '2025-09-12 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-09-12 19:25:19] Production.INFO: count ==4193 [2025-09-12 19:25:20] Production.ERROR: pbx CDR StartTime 2025-09-12 16:25:05 - End Time 2025-09-12 19:25:05 [2025-09-12 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15828222', 'tblTempUsageDetail_20' ) start [2025-09-12 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15828222', 'tblTempUsageDetail_20' ) end [2025-09-12 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15828222', 'tblTempVendorCDR_20' ) start [2025-09-12 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15828222', 'tblTempVendorCDR_20' ) end [2025-09-12 19:25:21] Production.INFO: ProcessCDR(1,15828222,1,1,2) [2025-09-12 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15828222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15828222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15828222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15828222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15828222', 'tblTempUsageDetail_20' ) start [2025-09-12 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15828222', 'tblTempUsageDetail_20' ) end [2025-09-12 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-12 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-12 19:25:30] Production.INFO: ==26630== Releasing lock... [2025-09-12 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 19:25:30] Production.INFO: 59.5 MB #Memory Used# [2025-09-12 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 17:25:06 [end_date_ymd] => 2025-09-12 20:25:06 [RateCDR] => 1 ) [2025-09-12 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-09-12 17:25:06' and `end` < '2025-09-12 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-09-12 20:25:19] Production.INFO: count ==3202 [2025-09-12 20:25:20] Production.ERROR: pbx CDR StartTime 2025-09-12 17:25:06 - End Time 2025-09-12 20:25:06 [2025-09-12 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15828469', 'tblTempUsageDetail_20' ) start [2025-09-12 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15828469', 'tblTempUsageDetail_20' ) end [2025-09-12 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15828469', 'tblTempVendorCDR_20' ) start [2025-09-12 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15828469', 'tblTempVendorCDR_20' ) end [2025-09-12 20:25:20] Production.INFO: ProcessCDR(1,15828469,1,1,2) [2025-09-12 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15828469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 20:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15828469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 20:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15828469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 20:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15828469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15828469', 'tblTempUsageDetail_20' ) start [2025-09-12 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15828469', 'tblTempUsageDetail_20' ) end [2025-09-12 20:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-12 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-12 20:25:29] Production.INFO: ==30876== Releasing lock... [2025-09-12 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 20:25:29] Production.INFO: 52 MB #Memory Used# [2025-09-12 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 18:25:06 [end_date_ymd] => 2025-09-12 21:25:06 [RateCDR] => 1 ) [2025-09-12 21: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-09-12 18:25:06' and `end` < '2025-09-12 21: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-09-12 21:25:18] Production.INFO: count ==2458 [2025-09-12 21:25:19] Production.ERROR: pbx CDR StartTime 2025-09-12 18:25:06 - End Time 2025-09-12 21:25:06 [2025-09-12 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15828716', 'tblTempUsageDetail_20' ) start [2025-09-12 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15828716', 'tblTempUsageDetail_20' ) end [2025-09-12 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15828716', 'tblTempVendorCDR_20' ) start [2025-09-12 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15828716', 'tblTempVendorCDR_20' ) end [2025-09-12 21:25:19] Production.INFO: ProcessCDR(1,15828716,1,1,2) [2025-09-12 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15828716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15828716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15828716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15828716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15828716', 'tblTempUsageDetail_20' ) start [2025-09-12 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15828716', 'tblTempUsageDetail_20' ) end [2025-09-12 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-12 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-12 21:25:28] Production.INFO: ==2928== Releasing lock... [2025-09-12 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 21:25:28] Production.INFO: 47 MB #Memory Used# [2025-09-12 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 19:25:05 [end_date_ymd] => 2025-09-12 22:25:05 [RateCDR] => 1 ) [2025-09-12 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-12 19:25:05' and `end` < '2025-09-12 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-12 22:25:17] Production.INFO: count ==2148 [2025-09-12 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-12 19:25:05 - End Time 2025-09-12 22:25:05 [2025-09-12 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15828963', 'tblTempUsageDetail_20' ) start [2025-09-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15828963', 'tblTempUsageDetail_20' ) end [2025-09-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15828963', 'tblTempVendorCDR_20' ) start [2025-09-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15828963', 'tblTempVendorCDR_20' ) end [2025-09-12 22:25:18] Production.INFO: ProcessCDR(1,15828963,1,1,2) [2025-09-12 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15828963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15828963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15828963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15828963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15828963', 'tblTempUsageDetail_20' ) start [2025-09-12 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15828963', 'tblTempUsageDetail_20' ) end [2025-09-12 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-12 22:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-12 22:25:28] Production.INFO: ==7381== Releasing lock... [2025-09-12 22:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 22:25:28] Production.INFO: 44.25 MB #Memory Used# [2025-09-12 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 20:25:06 [end_date_ymd] => 2025-09-12 23:25:06 [RateCDR] => 1 ) [2025-09-12 23: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-09-12 20:25:06' and `end` < '2025-09-12 23: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-09-12 23:25:19] Production.INFO: count ==1716 [2025-09-12 23:25:19] Production.ERROR: pbx CDR StartTime 2025-09-12 20:25:06 - End Time 2025-09-12 23:25:06 [2025-09-12 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-12 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15829210', 'tblTempUsageDetail_20' ) start [2025-09-12 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15829210', 'tblTempUsageDetail_20' ) end [2025-09-12 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15829210', 'tblTempVendorCDR_20' ) start [2025-09-12 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15829210', 'tblTempVendorCDR_20' ) end [2025-09-12 23:25:19] Production.INFO: ProcessCDR(1,15829210,1,1,2) [2025-09-12 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15829210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 23:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15829210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-12 23:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15829210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15829210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-12 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15829210', 'tblTempUsageDetail_20' ) start [2025-09-12 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15829210', 'tblTempUsageDetail_20' ) end [2025-09-12 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-12 23:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-12 23:25:28] Production.INFO: ==11805== Releasing lock... [2025-09-12 23:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-12 23:25:28] Production.INFO: 41.25 MB #Memory Used#