[2025-06-11 00:25:04] Production.INFO: next invoice date [2025-06-11 00:25:04] Production.INFO: 2025-07-11 [2025-06-11 00:25:04] Production.INFO: getdaysdiff [2025-06-11 00:25:04] Production.INFO: +30 [2025-06-11 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (229,16,1,30,30,'RMScheduler',2025-06-11 00:25:04,1,0,,,0) [2025-06-11 00:25:04] Production.INFO: next invoice date [2025-06-11 00:25:04] Production.INFO: 2025-07-11 [2025-06-11 00:25:04] Production.INFO: getdaysdiff [2025-06-11 00:25:04] Production.INFO: +30 [2025-06-11 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (229,13,2,30,30,'RMScheduler',2025-06-11 00:25:04,1,0,,,0) [2025-06-11 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-10 09:40:05 [end_date_ymd] => 2025-06-10 12:40:05 [RateCDR] => 1 ) [2025-06-11 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-10 09:40:05' and `end` < '2025-06-10 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 00:25:18] Production.INFO: count ==5217 [2025-06-11 00:25:21] Production.ERROR: pbx CDR StartTime 2025-06-10 09:40:05 - End Time 2025-06-10 12:40:05 [2025-06-11 00:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15272309', 'tblTempUsageDetail_20' ) start [2025-06-11 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15272309', 'tblTempUsageDetail_20' ) end [2025-06-11 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15272309', 'tblTempVendorCDR_20' ) start [2025-06-11 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15272309', 'tblTempVendorCDR_20' ) end [2025-06-11 00:25:21] Production.INFO: ProcessCDR(1,15272309,1,1,2) [2025-06-11 00:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15272309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 00:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15272309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 00:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15272309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 00:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15272309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 00:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15272309', 'tblTempUsageDetail_20' ) start [2025-06-11 00:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15272309', 'tblTempUsageDetail_20' ) end [2025-06-11 00:25:33] Production.ERROR: pbx prc_insertCDR start [2025-06-11 00:25:40] Production.ERROR: pbx prc_insertCDR end [2025-06-11 00:25:42] Production.INFO: ==14583== Releasing lock... [2025-06-11 00:25:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 00:25:42] Production.INFO: 70.25 MB #Memory Used# [2025-06-11 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-10 12:40:05 [end_date_ymd] => 2025-06-10 15:40:05 [RateCDR] => 1 ) [2025-06-11 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-10 12:40:05' and `end` < '2025-06-10 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 01:25:18] Production.INFO: count ==4513 [2025-06-11 01:25:20] Production.ERROR: pbx CDR StartTime 2025-06-10 12:40:05 - End Time 2025-06-10 15:40:05 [2025-06-11 01:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 01:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15272556', 'tblTempUsageDetail_20' ) start [2025-06-11 01:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15272556', 'tblTempUsageDetail_20' ) end [2025-06-11 01:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15272556', 'tblTempVendorCDR_20' ) start [2025-06-11 01:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15272556', 'tblTempVendorCDR_20' ) end [2025-06-11 01:25:21] Production.INFO: ProcessCDR(1,15272556,1,1,2) [2025-06-11 01:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15272556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 01:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15272556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 01:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15272556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 01:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15272556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 01:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15272556', 'tblTempUsageDetail_20' ) start [2025-06-11 01:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15272556', 'tblTempUsageDetail_20' ) end [2025-06-11 01:25:32] Production.ERROR: pbx prc_insertCDR start [2025-06-11 01:25:39] Production.ERROR: pbx prc_insertCDR end [2025-06-11 01:25:39] Production.INFO: ==18997== Releasing lock... [2025-06-11 01:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 01:25:39] Production.INFO: 62.25 MB #Memory Used# [2025-06-11 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-10 15:40:05 [end_date_ymd] => 2025-06-10 18:40:05 [RateCDR] => 1 ) [2025-06-11 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-10 15:40:05' and `end` < '2025-06-10 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 02:25:18] Production.INFO: count ==3927 [2025-06-11 02:25:20] Production.ERROR: pbx CDR StartTime 2025-06-10 15:40:05 - End Time 2025-06-10 18:40:05 [2025-06-11 02:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15272803', 'tblTempUsageDetail_20' ) start [2025-06-11 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15272803', 'tblTempUsageDetail_20' ) end [2025-06-11 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15272803', 'tblTempVendorCDR_20' ) start [2025-06-11 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15272803', 'tblTempVendorCDR_20' ) end [2025-06-11 02:25:20] Production.INFO: ProcessCDR(1,15272803,1,1,2) [2025-06-11 02:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15272803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15272803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15272803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 02:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15272803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 02:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15272803', 'tblTempUsageDetail_20' ) start [2025-06-11 02:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15272803', 'tblTempUsageDetail_20' ) end [2025-06-11 02:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-11 02:25:34] Production.ERROR: pbx prc_insertCDR end [2025-06-11 02:25:34] Production.INFO: ==23696== Releasing lock... [2025-06-11 02:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 02:25:34] Production.INFO: 57.5 MB #Memory Used# [2025-06-11 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-10 18:40:05 [end_date_ymd] => 2025-06-10 21:40:05 [RateCDR] => 1 ) [2025-06-11 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-06-10 18:40:05' and `end` < '2025-06-10 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 03:25:17] Production.INFO: count ==1122 [2025-06-11 03:25:18] Production.ERROR: pbx CDR StartTime 2025-06-10 18:40:05 - End Time 2025-06-10 21:40:05 [2025-06-11 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15273050', 'tblTempUsageDetail_20' ) start [2025-06-11 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15273050', 'tblTempUsageDetail_20' ) end [2025-06-11 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15273050', 'tblTempVendorCDR_20' ) start [2025-06-11 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15273050', 'tblTempVendorCDR_20' ) end [2025-06-11 03:25:18] Production.INFO: ProcessCDR(1,15273050,1,1,2) [2025-06-11 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15273050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15273050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15273050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15273050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15273050', 'tblTempUsageDetail_20' ) start [2025-06-11 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15273050', 'tblTempUsageDetail_20' ) end [2025-06-11 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-11 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-11 03:25:26] Production.INFO: ==28148== Releasing lock... [2025-06-11 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 03:25:26] Production.INFO: 37.5 MB #Memory Used# [2025-06-11 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-10 21:40:05 [end_date_ymd] => 2025-06-11 00:40:05 [RateCDR] => 1 ) [2025-06-11 04: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-06-10 21:40:05' and `end` < '2025-06-11 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 04:25:17] Production.INFO: count ==451 [2025-06-11 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-10 21:40:05 - End Time 2025-06-11 00:40:05 [2025-06-11 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15273298', 'tblTempUsageDetail_20' ) start [2025-06-11 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15273298', 'tblTempUsageDetail_20' ) end [2025-06-11 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15273298', 'tblTempVendorCDR_20' ) start [2025-06-11 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15273298', 'tblTempVendorCDR_20' ) end [2025-06-11 04:25:17] Production.INFO: ProcessCDR(1,15273298,1,1,2) [2025-06-11 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15273298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15273298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15273298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15273298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15273298', 'tblTempUsageDetail_20' ) start [2025-06-11 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15273298', 'tblTempUsageDetail_20' ) end [2025-06-11 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-11 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-11 04:25:24] Production.INFO: ==32562== Releasing lock... [2025-06-11 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 04:25:24] Production.INFO: 32 MB #Memory Used# [2025-06-11 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 00:40:05 [end_date_ymd] => 2025-06-11 03:40:05 [RateCDR] => 1 ) [2025-06-11 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 00:40:05' and `end` < '2025-06-11 03:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 05:25:17] Production.INFO: count ==298 [2025-06-11 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-11 00:40:05 - End Time 2025-06-11 03:40:05 [2025-06-11 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15273546', 'tblTempUsageDetail_20' ) start [2025-06-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15273546', 'tblTempUsageDetail_20' ) end [2025-06-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15273546', 'tblTempVendorCDR_20' ) start [2025-06-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15273546', 'tblTempVendorCDR_20' ) end [2025-06-11 05:25:17] Production.INFO: ProcessCDR(1,15273546,1,1,2) [2025-06-11 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15273546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15273546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15273546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15273546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15273546', 'tblTempUsageDetail_20' ) start [2025-06-11 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15273546', 'tblTempUsageDetail_20' ) end [2025-06-11 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-11 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-11 05:25:24] Production.INFO: ==4748== Releasing lock... [2025-06-11 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 05:25:24] Production.INFO: 30.75 MB #Memory Used# [2025-06-11 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 03:25:05 [end_date_ymd] => 2025-06-11 06:25:05 [RateCDR] => 1 ) [2025-06-11 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 03:25:05' and `end` < '2025-06-11 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 06:25:18] Production.INFO: count ==88 [2025-06-11 06:25:18] Production.ERROR: pbx CDR StartTime 2025-06-11 03:25:05 - End Time 2025-06-11 06:25:05 [2025-06-11 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15273793', 'tblTempUsageDetail_20' ) start [2025-06-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15273793', 'tblTempUsageDetail_20' ) end [2025-06-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15273793', 'tblTempVendorCDR_20' ) start [2025-06-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15273793', 'tblTempVendorCDR_20' ) end [2025-06-11 06:25:18] Production.INFO: ProcessCDR(1,15273793,1,1,2) [2025-06-11 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15273793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15273793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15273793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15273793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15273793', 'tblTempUsageDetail_20' ) start [2025-06-11 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15273793', 'tblTempUsageDetail_20' ) end [2025-06-11 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-11 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-11 06:25:23] Production.INFO: ==9079== Releasing lock... [2025-06-11 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 06:25:23] Production.INFO: 28.5 MB #Memory Used# [2025-06-11 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 04:25:05 [end_date_ymd] => 2025-06-11 07:25:05 [RateCDR] => 1 ) [2025-06-11 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 04:25:05' and `end` < '2025-06-11 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 07:25:17] Production.INFO: count ==116 [2025-06-11 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-11 04:25:05 - End Time 2025-06-11 07:25:05 [2025-06-11 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15274040', 'tblTempUsageDetail_20' ) start [2025-06-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15274040', 'tblTempUsageDetail_20' ) end [2025-06-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15274040', 'tblTempVendorCDR_20' ) start [2025-06-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15274040', 'tblTempVendorCDR_20' ) end [2025-06-11 07:25:17] Production.INFO: ProcessCDR(1,15274040,1,1,2) [2025-06-11 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15274040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15274040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15274040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15274040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15274040', 'tblTempUsageDetail_20' ) start [2025-06-11 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15274040', 'tblTempUsageDetail_20' ) end [2025-06-11 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-11 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-11 07:25:23] Production.INFO: ==13303== Releasing lock... [2025-06-11 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 07:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-06-11 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 05:25:05 [end_date_ymd] => 2025-06-11 08:25:05 [RateCDR] => 1 ) [2025-06-11 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 05:25:05' and `end` < '2025-06-11 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 08:25:17] Production.INFO: count ==397 [2025-06-11 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-11 05:25:05 - End Time 2025-06-11 08:25:05 [2025-06-11 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15274287', 'tblTempUsageDetail_20' ) start [2025-06-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15274287', 'tblTempUsageDetail_20' ) end [2025-06-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15274287', 'tblTempVendorCDR_20' ) start [2025-06-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15274287', 'tblTempVendorCDR_20' ) end [2025-06-11 08:25:17] Production.INFO: ProcessCDR(1,15274287,1,1,2) [2025-06-11 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15274287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15274287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15274287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15274287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15274287', 'tblTempUsageDetail_20' ) start [2025-06-11 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15274287', 'tblTempUsageDetail_20' ) end [2025-06-11 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-11 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-11 08:25:24] Production.INFO: ==17571== Releasing lock... [2025-06-11 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 08:25:24] Production.INFO: 32 MB #Memory Used# [2025-06-11 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 06:25:05 [end_date_ymd] => 2025-06-11 09:25:05 [RateCDR] => 1 ) [2025-06-11 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 06:25:05' and `end` < '2025-06-11 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 09:25:18] Production.INFO: count ==1476 [2025-06-11 09:25:18] Production.ERROR: pbx CDR StartTime 2025-06-11 06:25:05 - End Time 2025-06-11 09:25:05 [2025-06-11 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15274534', 'tblTempUsageDetail_20' ) start [2025-06-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15274534', 'tblTempUsageDetail_20' ) end [2025-06-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15274534', 'tblTempVendorCDR_20' ) start [2025-06-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15274534', 'tblTempVendorCDR_20' ) end [2025-06-11 09:25:18] Production.INFO: ProcessCDR(1,15274534,1,1,2) [2025-06-11 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15274534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15274534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15274534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15274534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15274534', 'tblTempUsageDetail_20' ) start [2025-06-11 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15274534', 'tblTempUsageDetail_20' ) end [2025-06-11 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-11 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-11 09:25:26] Production.INFO: ==21842== Releasing lock... [2025-06-11 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 09:25:26] Production.INFO: 39.75 MB #Memory Used# [2025-06-11 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 07:25:05 [end_date_ymd] => 2025-06-11 10:25:05 [RateCDR] => 1 ) [2025-06-11 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 07:25:05' and `end` < '2025-06-11 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 10:25:18] Production.INFO: count ==3173 [2025-06-11 10:25:20] Production.ERROR: pbx CDR StartTime 2025-06-11 07:25:05 - End Time 2025-06-11 10:25:05 [2025-06-11 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15274781', 'tblTempUsageDetail_20' ) start [2025-06-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15274781', 'tblTempUsageDetail_20' ) end [2025-06-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15274781', 'tblTempVendorCDR_20' ) start [2025-06-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15274781', 'tblTempVendorCDR_20' ) end [2025-06-11 10:25:20] Production.INFO: ProcessCDR(1,15274781,1,1,2) [2025-06-11 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15274781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15274781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15274781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15274781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15274781', 'tblTempUsageDetail_20' ) start [2025-06-11 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15274781', 'tblTempUsageDetail_20' ) end [2025-06-11 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-11 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-06-11 10:25:29] Production.INFO: ==27479== Releasing lock... [2025-06-11 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 10:25:29] Production.INFO: 52.25 MB #Memory Used# [2025-06-11 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 08:25:05 [end_date_ymd] => 2025-06-11 11:25:05 [RateCDR] => 1 ) [2025-06-11 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 08:25:05' and `end` < '2025-06-11 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 11:25:20] Production.INFO: count ==4760 [2025-06-11 11:25:22] Production.ERROR: pbx CDR StartTime 2025-06-11 08:25:05 - End Time 2025-06-11 11:25:05 [2025-06-11 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15275028', 'tblTempUsageDetail_20' ) start [2025-06-11 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15275028', 'tblTempUsageDetail_20' ) end [2025-06-11 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15275028', 'tblTempVendorCDR_20' ) start [2025-06-11 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15275028', 'tblTempVendorCDR_20' ) end [2025-06-11 11:25:22] Production.INFO: ProcessCDR(1,15275028,1,1,2) [2025-06-11 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15275028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15275028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15275028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15275028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15275028', 'tblTempUsageDetail_20' ) start [2025-06-11 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15275028', 'tblTempUsageDetail_20' ) end [2025-06-11 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-11 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-11 11:25:32] Production.INFO: ==32103== Releasing lock... [2025-06-11 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 11:25:32] Production.INFO: 63.75 MB #Memory Used# [2025-06-11 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 09:25:05 [end_date_ymd] => 2025-06-11 12:25:05 [RateCDR] => 1 ) [2025-06-11 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-06-11 09:25:05' and `end` < '2025-06-11 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-06-11 12:25:19] Production.INFO: count ==5465 [2025-06-11 12:25:21] Production.ERROR: pbx CDR StartTime 2025-06-11 09:25:05 - End Time 2025-06-11 12:25:05 [2025-06-11 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15275275', 'tblTempUsageDetail_20' ) start [2025-06-11 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15275275', 'tblTempUsageDetail_20' ) end [2025-06-11 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15275275', 'tblTempVendorCDR_20' ) start [2025-06-11 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15275275', 'tblTempVendorCDR_20' ) end [2025-06-11 12:25:22] Production.INFO: ProcessCDR(1,15275275,1,1,2) [2025-06-11 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15275275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15275275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15275275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 12:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15275275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15275275', 'tblTempUsageDetail_20' ) start [2025-06-11 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15275275', 'tblTempUsageDetail_20' ) end [2025-06-11 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-11 12:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-11 12:25:32] Production.INFO: ==4091== Releasing lock... [2025-06-11 12:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 12:25:32] Production.INFO: 69.25 MB #Memory Used# [2025-06-11 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 10:25:05 [end_date_ymd] => 2025-06-11 13:25:05 [RateCDR] => 1 ) [2025-06-11 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 10:25:05' and `end` < '2025-06-11 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 13:25:24] Production.INFO: count ==5393 [2025-06-11 13:25:26] Production.ERROR: pbx CDR StartTime 2025-06-11 10:25:05 - End Time 2025-06-11 13:25:05 [2025-06-11 13:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15275522', 'tblTempUsageDetail_20' ) start [2025-06-11 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15275522', 'tblTempUsageDetail_20' ) end [2025-06-11 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15275522', 'tblTempVendorCDR_20' ) start [2025-06-11 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15275522', 'tblTempVendorCDR_20' ) end [2025-06-11 13:25:27] Production.INFO: ProcessCDR(1,15275522,1,1,2) [2025-06-11 13:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15275522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 13:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15275522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 13:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15275522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 13:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15275522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15275522', 'tblTempUsageDetail_20' ) start [2025-06-11 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15275522', 'tblTempUsageDetail_20' ) end [2025-06-11 13:25:35] Production.ERROR: pbx prc_insertCDR start [2025-06-11 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-06-11 13:25:36] Production.INFO: ==8464== Releasing lock... [2025-06-11 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 13:25:36] Production.INFO: 68.5 MB #Memory Used# [2025-06-11 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 11:25:05 [end_date_ymd] => 2025-06-11 14:25:05 [RateCDR] => 1 ) [2025-06-11 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 11:25:05' and `end` < '2025-06-11 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 14:25:19] Production.INFO: count ==5194 [2025-06-11 14:25:21] Production.ERROR: pbx CDR StartTime 2025-06-11 11:25:05 - End Time 2025-06-11 14:25:05 [2025-06-11 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15275769', 'tblTempUsageDetail_20' ) start [2025-06-11 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15275769', 'tblTempUsageDetail_20' ) end [2025-06-11 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15275769', 'tblTempVendorCDR_20' ) start [2025-06-11 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15275769', 'tblTempVendorCDR_20' ) end [2025-06-11 14:25:21] Production.INFO: ProcessCDR(1,15275769,1,1,2) [2025-06-11 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15275769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15275769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15275769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 14:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15275769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15275769', 'tblTempUsageDetail_20' ) start [2025-06-11 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15275769', 'tblTempUsageDetail_20' ) end [2025-06-11 14:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-11 14:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-11 14:25:31] Production.INFO: ==12713== Releasing lock... [2025-06-11 14:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 14:25:31] Production.INFO: 67 MB #Memory Used# [2025-06-11 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 12:25:05 [end_date_ymd] => 2025-06-11 15:25:05 [RateCDR] => 1 ) [2025-06-11 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 12:25:05' and `end` < '2025-06-11 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 15:25:20] Production.INFO: count ==5218 [2025-06-11 15:25:23] Production.ERROR: pbx CDR StartTime 2025-06-11 12:25:05 - End Time 2025-06-11 15:25:05 [2025-06-11 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15276016', 'tblTempUsageDetail_20' ) start [2025-06-11 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15276016', 'tblTempUsageDetail_20' ) end [2025-06-11 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15276016', 'tblTempVendorCDR_20' ) start [2025-06-11 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15276016', 'tblTempVendorCDR_20' ) end [2025-06-11 15:25:23] Production.INFO: ProcessCDR(1,15276016,1,1,2) [2025-06-11 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15276016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15276016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15276016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 15:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15276016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15276016', 'tblTempUsageDetail_20' ) start [2025-06-11 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15276016', 'tblTempUsageDetail_20' ) end [2025-06-11 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-11 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-11 15:25:33] Production.INFO: ==17104== Releasing lock... [2025-06-11 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 15:25:33] Production.INFO: 67.25 MB #Memory Used# [2025-06-11 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 13:25:05 [end_date_ymd] => 2025-06-11 16:25:05 [RateCDR] => 1 ) [2025-06-11 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 13:25:05' and `end` < '2025-06-11 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 16:25:19] Production.INFO: count ==5628 [2025-06-11 16:25:22] Production.ERROR: pbx CDR StartTime 2025-06-11 13:25:05 - End Time 2025-06-11 16:25:05 [2025-06-11 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15276263', 'tblTempUsageDetail_20' ) start [2025-06-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15276263', 'tblTempUsageDetail_20' ) end [2025-06-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15276263', 'tblTempVendorCDR_20' ) start [2025-06-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15276263', 'tblTempVendorCDR_20' ) end [2025-06-11 16:25:22] Production.INFO: ProcessCDR(1,15276263,1,1,2) [2025-06-11 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15276263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15276263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15276263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15276263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15276263', 'tblTempUsageDetail_20' ) start [2025-06-11 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15276263', 'tblTempUsageDetail_20' ) end [2025-06-11 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-11 16:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-11 16:25:32] Production.INFO: ==21638== Releasing lock... [2025-06-11 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 16:25:32] Production.INFO: 70.25 MB #Memory Used# [2025-06-11 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 14:25:05 [end_date_ymd] => 2025-06-11 17:25:05 [RateCDR] => 1 ) [2025-06-11 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-06-11 14:25:05' and `end` < '2025-06-11 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-06-11 17:25:19] Production.INFO: count ==5389 [2025-06-11 17:25:21] Production.ERROR: pbx CDR StartTime 2025-06-11 14:25:05 - End Time 2025-06-11 17:25:05 [2025-06-11 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15276510', 'tblTempUsageDetail_20' ) start [2025-06-11 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15276510', 'tblTempUsageDetail_20' ) end [2025-06-11 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15276510', 'tblTempVendorCDR_20' ) start [2025-06-11 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15276510', 'tblTempVendorCDR_20' ) end [2025-06-11 17:25:22] Production.INFO: ProcessCDR(1,15276510,1,1,2) [2025-06-11 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15276510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15276510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15276510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15276510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15276510', 'tblTempUsageDetail_20' ) start [2025-06-11 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15276510', 'tblTempUsageDetail_20' ) end [2025-06-11 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-11 17:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-11 17:25:31] Production.INFO: ==26161== Releasing lock... [2025-06-11 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 17:25:31] Production.INFO: 68.5 MB #Memory Used# [2025-06-11 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 15:25:06 [end_date_ymd] => 2025-06-11 18:25:06 [RateCDR] => 1 ) [2025-06-11 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 15:25:06' and `end` < '2025-06-11 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 18:25:19] Production.INFO: count ==4536 [2025-06-11 18:25:21] Production.ERROR: pbx CDR StartTime 2025-06-11 15:25:06 - End Time 2025-06-11 18:25:06 [2025-06-11 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15276757', 'tblTempUsageDetail_20' ) start [2025-06-11 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15276757', 'tblTempUsageDetail_20' ) end [2025-06-11 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15276757', 'tblTempVendorCDR_20' ) start [2025-06-11 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15276757', 'tblTempVendorCDR_20' ) end [2025-06-11 18:25:22] Production.INFO: ProcessCDR(1,15276757,1,1,2) [2025-06-11 18:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15276757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15276757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15276757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15276757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15276757', 'tblTempUsageDetail_20' ) start [2025-06-11 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15276757', 'tblTempUsageDetail_20' ) end [2025-06-11 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-11 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-11 18:25:30] Production.INFO: ==31066== Releasing lock... [2025-06-11 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 18:25:30] Production.INFO: 62 MB #Memory Used# [2025-06-11 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 16:25:05 [end_date_ymd] => 2025-06-11 19:25:05 [RateCDR] => 1 ) [2025-06-11 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 16:25:05' and `end` < '2025-06-11 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 19:25:18] Production.INFO: count ==3195 [2025-06-11 19:25:19] Production.ERROR: pbx CDR StartTime 2025-06-11 16:25:05 - End Time 2025-06-11 19:25:05 [2025-06-11 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15277001', 'tblTempUsageDetail_20' ) start [2025-06-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15277001', 'tblTempUsageDetail_20' ) end [2025-06-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15277001', 'tblTempVendorCDR_20' ) start [2025-06-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15277001', 'tblTempVendorCDR_20' ) end [2025-06-11 19:25:19] Production.INFO: ProcessCDR(1,15277001,1,1,2) [2025-06-11 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15277001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15277001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15277001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15277001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15277001', 'tblTempUsageDetail_20' ) start [2025-06-11 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15277001', 'tblTempUsageDetail_20' ) end [2025-06-11 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-11 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-11 19:25:27] Production.INFO: ==3032== Releasing lock... [2025-06-11 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 19:25:27] Production.INFO: 52 MB #Memory Used# [2025-06-11 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 17:25:05 [end_date_ymd] => 2025-06-11 20:25:05 [RateCDR] => 1 ) [2025-06-11 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 17:25:05' and `end` < '2025-06-11 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 20:25:17] Production.INFO: count ==2455 [2025-06-11 20:25:18] Production.ERROR: pbx CDR StartTime 2025-06-11 17:25:05 - End Time 2025-06-11 20:25:05 [2025-06-11 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15277248', 'tblTempUsageDetail_20' ) start [2025-06-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15277248', 'tblTempUsageDetail_20' ) end [2025-06-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15277248', 'tblTempVendorCDR_20' ) start [2025-06-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15277248', 'tblTempVendorCDR_20' ) end [2025-06-11 20:25:18] Production.INFO: ProcessCDR(1,15277248,1,1,2) [2025-06-11 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15277248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15277248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15277248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15277248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15277248', 'tblTempUsageDetail_20' ) start [2025-06-11 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15277248', 'tblTempUsageDetail_20' ) end [2025-06-11 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-11 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-11 20:25:25] Production.INFO: ==7546== Releasing lock... [2025-06-11 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 20:25:25] Production.INFO: 46.5 MB #Memory Used# [2025-06-11 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 18:25:05 [end_date_ymd] => 2025-06-11 21:25:05 [RateCDR] => 1 ) [2025-06-11 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 18:25:05' and `end` < '2025-06-11 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 21:25:17] Production.INFO: count ==1971 [2025-06-11 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-11 18:25:05 - End Time 2025-06-11 21:25:05 [2025-06-11 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15277495', 'tblTempUsageDetail_20' ) start [2025-06-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15277495', 'tblTempUsageDetail_20' ) end [2025-06-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15277495', 'tblTempVendorCDR_20' ) start [2025-06-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15277495', 'tblTempVendorCDR_20' ) end [2025-06-11 21:25:18] Production.INFO: ProcessCDR(1,15277495,1,1,2) [2025-06-11 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15277495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15277495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15277495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15277495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15277495', 'tblTempUsageDetail_20' ) start [2025-06-11 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15277495', 'tblTempUsageDetail_20' ) end [2025-06-11 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-11 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-11 21:25:25] Production.INFO: ==12293== Releasing lock... [2025-06-11 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 21:25:25] Production.INFO: 43 MB #Memory Used# [2025-06-11 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 19:25:05 [end_date_ymd] => 2025-06-11 22:25:05 [RateCDR] => 1 ) [2025-06-11 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-11 19:25:05' and `end` < '2025-06-11 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-11 22:25:18] Production.INFO: count ==1563 [2025-06-11 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-11 19:25:05 - End Time 2025-06-11 22:25:05 [2025-06-11 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15277742', 'tblTempUsageDetail_20' ) start [2025-06-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15277742', 'tblTempUsageDetail_20' ) end [2025-06-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15277742', 'tblTempVendorCDR_20' ) start [2025-06-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15277742', 'tblTempVendorCDR_20' ) end [2025-06-11 22:25:18] Production.INFO: ProcessCDR(1,15277742,1,1,2) [2025-06-11 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15277742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15277742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15277742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15277742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15277742', 'tblTempUsageDetail_20' ) start [2025-06-11 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15277742', 'tblTempUsageDetail_20' ) end [2025-06-11 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-11 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-11 22:25:25] Production.INFO: ==17556== Releasing lock... [2025-06-11 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 22:25:25] Production.INFO: 39.75 MB #Memory Used# [2025-06-11 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 20:25:06 [end_date_ymd] => 2025-06-11 23:25:06 [RateCDR] => 1 ) [2025-06-11 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-06-11 20:25:06' and `end` < '2025-06-11 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-06-11 23:25:18] Production.INFO: count ==1047 [2025-06-11 23:25:18] Production.ERROR: pbx CDR StartTime 2025-06-11 20:25:06 - End Time 2025-06-11 23:25:06 [2025-06-11 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15277989', 'tblTempUsageDetail_20' ) start [2025-06-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15277989', 'tblTempUsageDetail_20' ) end [2025-06-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15277989', 'tblTempVendorCDR_20' ) start [2025-06-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15277989', 'tblTempVendorCDR_20' ) end [2025-06-11 23:25:18] Production.INFO: ProcessCDR(1,15277989,1,1,2) [2025-06-11 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15277989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15277989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-11 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15277989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15277989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-11 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15277989', 'tblTempUsageDetail_20' ) start [2025-06-11 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15277989', 'tblTempUsageDetail_20' ) end [2025-06-11 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-11 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-11 23:25:24] Production.INFO: ==23573== Releasing lock... [2025-06-11 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-11 23:25:24] Production.INFO: 36.5 MB #Memory Used#