[2025-10-01 00:25:04] Production.INFO: next invoice date [2025-10-01 00:25:04] Production.INFO: 2025-10-31 [2025-10-01 00:25:04] Production.INFO: getdaysdiff [2025-10-01 00:25:04] Production.INFO: +30 [2025-10-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (208,11,1,30,30,'RMScheduler',2025-10-01 00:25:04,0,0,,,0) [2025-10-01 00:25:04] Production.INFO: next invoice date [2025-10-01 00:25:04] Production.INFO: 2025-10-31 [2025-10-01 00:25:04] Production.INFO: getdaysdiff [2025-10-01 00:25:04] Production.INFO: +30 [2025-10-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (208,13,2,30,30,'RMScheduler',2025-10-01 00:25:04,0,0,,,0) [2025-10-01 00:25:04] Production.INFO: next invoice date [2025-10-01 00:25:04] Production.INFO: 2025-11-01 [2025-10-01 00:25:04] Production.INFO: getdaysdiff [2025-10-01 00:25:04] Production.INFO: +31 [2025-10-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (105,11,1,31,31,'RMScheduler',2025-10-01 00:25:04,1,0,,,0) [2025-10-01 00:25:04] Production.INFO: next invoice date [2025-10-01 00:25:04] Production.INFO: 2025-11-01 [2025-10-01 00:25:04] Production.INFO: getdaysdiff [2025-10-01 00:25:04] Production.INFO: +31 [2025-10-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (3,9,2,31,31,'RMScheduler',2025-10-01 00:25:04,1,0,,,0) [2025-10-01 00:25:05] Production.INFO: next invoice date [2025-10-01 00:25:05] Production.INFO: 2025-11-01 [2025-10-01 00:25:05] Production.INFO: getdaysdiff [2025-10-01 00:25:05] Production.INFO: +31 [2025-10-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (113,11,1,31,31,'RMScheduler',2025-10-01 00:25:04,1,0,,,0) [2025-10-01 00:25:05] Production.INFO: next invoice date [2025-10-01 00:25:05] Production.INFO: 2025-11-01 [2025-10-01 00:25:05] Production.INFO: getdaysdiff [2025-10-01 00:25:05] Production.INFO: +31 [2025-10-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (114,11,1,31,31,'RMScheduler',2025-10-01 00:25:04,1,0,,,0) [2025-10-01 00:25:05] Production.INFO: next invoice date [2025-10-01 00:25:05] Production.INFO: 2025-11-01 [2025-10-01 00:25:05] Production.INFO: getdaysdiff [2025-10-01 00:25:05] Production.INFO: +31 [2025-10-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (3,16,1,31,31,'RMScheduler',2025-10-01 00:25:04,1,0,,,0) [2025-10-01 00:25:05] Production.INFO: next invoice date [2025-10-01 00:25:05] Production.INFO: 2025-11-01 [2025-10-01 00:25:05] Production.INFO: getdaysdiff [2025-10-01 00:25:05] Production.INFO: +31 [2025-10-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (66,11,1,31,31,'RMScheduler',2025-10-01 00:25:04,1,0,,,0) [2025-10-01 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 21:25:06 [end_date_ymd] => 2025-10-01 00:25:06 [RateCDR] => 1 ) [2025-10-01 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-30 21:25:06' and `end` < '2025-10-01 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 00:25:20] Production.INFO: count ==859 [2025-10-01 00:25:20] Production.ERROR: pbx CDR StartTime 2025-09-30 21:25:06 - End Time 2025-10-01 00:25:06 [2025-10-01 00:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15936149', 'tblTempUsageDetail_20' ) start [2025-10-01 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15936149', 'tblTempUsageDetail_20' ) end [2025-10-01 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15936149', 'tblTempVendorCDR_20' ) start [2025-10-01 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15936149', 'tblTempVendorCDR_20' ) end [2025-10-01 00:25:21] Production.INFO: ProcessCDR(1,15936149,1,1,2) [2025-10-01 00:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15936149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 00:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15936149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 00:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15936149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 00:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15936149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 00:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15936149', 'tblTempUsageDetail_20' ) start [2025-10-01 00:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15936149', 'tblTempUsageDetail_20' ) end [2025-10-01 00:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-01 00:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-01 00:25:31] Production.INFO: ==1966== Releasing lock... [2025-10-01 00:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 00:25:31] Production.INFO: 38.75 MB #Memory Used# [2025-10-01 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 22:25:06 [end_date_ymd] => 2025-10-01 01:25:06 [RateCDR] => 1 ) [2025-10-01 01:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-30 22:25:06' and `end` < '2025-10-01 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 01:25:18] Production.INFO: count ==767 [2025-10-01 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-30 22:25:06 - End Time 2025-10-01 01:25:06 [2025-10-01 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15936396', 'tblTempUsageDetail_20' ) start [2025-10-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15936396', 'tblTempUsageDetail_20' ) end [2025-10-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15936396', 'tblTempVendorCDR_20' ) start [2025-10-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15936396', 'tblTempVendorCDR_20' ) end [2025-10-01 01:25:18] Production.INFO: ProcessCDR(1,15936396,1,1,2) [2025-10-01 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15936396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 01:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15936396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 01:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15936396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 01:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15936396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15936396', 'tblTempUsageDetail_20' ) start [2025-10-01 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15936396', 'tblTempUsageDetail_20' ) end [2025-10-01 01:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-01 01:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-01 01:25:27] Production.INFO: ==7432== Releasing lock... [2025-10-01 01:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 01:25:27] Production.INFO: 34.25 MB #Memory Used# [2025-10-01 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 23:25:06 [end_date_ymd] => 2025-10-01 02:25:06 [RateCDR] => 1 ) [2025-10-01 02: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-30 23:25:06' and `end` < '2025-10-01 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 02:25:18] Production.INFO: count ==541 [2025-10-01 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-30 23:25:06 - End Time 2025-10-01 02:25:06 [2025-10-01 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15936643', 'tblTempUsageDetail_20' ) start [2025-10-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15936643', 'tblTempUsageDetail_20' ) end [2025-10-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15936643', 'tblTempVendorCDR_20' ) start [2025-10-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15936643', 'tblTempVendorCDR_20' ) end [2025-10-01 02:25:18] Production.INFO: ProcessCDR(1,15936643,1,1,2) [2025-10-01 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15936643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15936643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15936643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15936643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15936643', 'tblTempUsageDetail_20' ) start [2025-10-01 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15936643', 'tblTempUsageDetail_20' ) end [2025-10-01 02:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-01 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-01 02:25:27] Production.INFO: ==12102== Releasing lock... [2025-10-01 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 02:25:27] Production.INFO: 33 MB #Memory Used# [2025-10-01 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 00:25:05 [end_date_ymd] => 2025-10-01 03:25:05 [RateCDR] => 1 ) [2025-10-01 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 00:25:05' and `end` < '2025-10-01 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 03:25:17] Production.INFO: count ==285 [2025-10-01 03:25:17] Production.ERROR: pbx CDR StartTime 2025-10-01 00:25:05 - End Time 2025-10-01 03:25:05 [2025-10-01 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15936890', 'tblTempUsageDetail_20' ) start [2025-10-01 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15936890', 'tblTempUsageDetail_20' ) end [2025-10-01 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15936890', 'tblTempVendorCDR_20' ) start [2025-10-01 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15936890', 'tblTempVendorCDR_20' ) end [2025-10-01 03:25:17] Production.INFO: ProcessCDR(1,15936890,1,1,2) [2025-10-01 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15936890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15936890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15936890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15936890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15936890', 'tblTempUsageDetail_20' ) start [2025-10-01 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15936890', 'tblTempUsageDetail_20' ) end [2025-10-01 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-01 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-01 03:25:26] Production.INFO: ==16526== Releasing lock... [2025-10-01 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 03:25:26] Production.INFO: 30.5 MB #Memory Used# [2025-10-01 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 01:25:05 [end_date_ymd] => 2025-10-01 04:25:05 [RateCDR] => 1 ) [2025-10-01 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 01:25:05' and `end` < '2025-10-01 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 04:25:17] Production.INFO: count ==201 [2025-10-01 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-01 01:25:05 - End Time 2025-10-01 04:25:05 [2025-10-01 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15937138', 'tblTempUsageDetail_20' ) start [2025-10-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15937138', 'tblTempUsageDetail_20' ) end [2025-10-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15937138', 'tblTempVendorCDR_20' ) start [2025-10-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15937138', 'tblTempVendorCDR_20' ) end [2025-10-01 04:25:17] Production.INFO: ProcessCDR(1,15937138,1,1,2) [2025-10-01 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15937138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15937138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15937138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15937138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15937138', 'tblTempUsageDetail_20' ) start [2025-10-01 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15937138', 'tblTempUsageDetail_20' ) end [2025-10-01 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-01 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-01 04:25:25] Production.INFO: ==20865== Releasing lock... [2025-10-01 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 04:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-10-01 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 02:25:06 [end_date_ymd] => 2025-10-01 05:25:06 [RateCDR] => 1 ) [2025-10-01 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 02:25:06' and `end` < '2025-10-01 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 05:25:18] Production.INFO: count ==151 [2025-10-01 05:25:18] Production.ERROR: pbx CDR StartTime 2025-10-01 02:25:06 - End Time 2025-10-01 05:25:06 [2025-10-01 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15937386', 'tblTempUsageDetail_20' ) start [2025-10-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15937386', 'tblTempUsageDetail_20' ) end [2025-10-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15937386', 'tblTempVendorCDR_20' ) start [2025-10-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15937386', 'tblTempVendorCDR_20' ) end [2025-10-01 05:25:18] Production.INFO: ProcessCDR(1,15937386,1,1,2) [2025-10-01 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15937386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15937386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15937386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15937386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15937386', 'tblTempUsageDetail_20' ) start [2025-10-01 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15937386', 'tblTempUsageDetail_20' ) end [2025-10-01 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-10-01 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-10-01 05:25:24] Production.INFO: ==25927== Releasing lock... [2025-10-01 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 05:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-10-01 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 03:25:05 [end_date_ymd] => 2025-10-01 06:25:05 [RateCDR] => 1 ) [2025-10-01 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 03:25:05' and `end` < '2025-10-01 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 06:25:17] Production.INFO: count ==118 [2025-10-01 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-01 03:25:05 - End Time 2025-10-01 06:25:05 [2025-10-01 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15937633', 'tblTempUsageDetail_20' ) start [2025-10-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15937633', 'tblTempUsageDetail_20' ) end [2025-10-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15937633', 'tblTempVendorCDR_20' ) start [2025-10-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15937633', 'tblTempVendorCDR_20' ) end [2025-10-01 06:25:17] Production.INFO: ProcessCDR(1,15937633,1,1,2) [2025-10-01 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15937633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15937633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15937633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15937633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15937633', 'tblTempUsageDetail_20' ) start [2025-10-01 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15937633', 'tblTempUsageDetail_20' ) end [2025-10-01 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-01 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-01 06:25:25] Production.INFO: ==30375== Releasing lock... [2025-10-01 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 06:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-10-01 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 04:25:05 [end_date_ymd] => 2025-10-01 07:25:05 [RateCDR] => 1 ) [2025-10-01 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 04:25:05' and `end` < '2025-10-01 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 07:25:17] Production.INFO: count ==105 [2025-10-01 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-01 04:25:05 - End Time 2025-10-01 07:25:05 [2025-10-01 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15937880', 'tblTempUsageDetail_20' ) start [2025-10-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15937880', 'tblTempUsageDetail_20' ) end [2025-10-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15937880', 'tblTempVendorCDR_20' ) start [2025-10-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15937880', 'tblTempVendorCDR_20' ) end [2025-10-01 07:25:17] Production.INFO: ProcessCDR(1,15937880,1,1,2) [2025-10-01 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15937880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15937880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15937880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15937880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15937880', 'tblTempUsageDetail_20' ) start [2025-10-01 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15937880', 'tblTempUsageDetail_20' ) end [2025-10-01 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-01 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-01 07:25:25] Production.INFO: ==3262== Releasing lock... [2025-10-01 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 07:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-10-01 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 05:25:05 [end_date_ymd] => 2025-10-01 08:25:05 [RateCDR] => 1 ) [2025-10-01 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 05:25:05' and `end` < '2025-10-01 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 08:25:18] Production.INFO: count ==349 [2025-10-01 08:25:18] Production.ERROR: pbx CDR StartTime 2025-10-01 05:25:05 - End Time 2025-10-01 08:25:05 [2025-10-01 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15938127', 'tblTempUsageDetail_20' ) start [2025-10-01 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15938127', 'tblTempUsageDetail_20' ) end [2025-10-01 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15938127', 'tblTempVendorCDR_20' ) start [2025-10-01 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15938127', 'tblTempVendorCDR_20' ) end [2025-10-01 08:25:18] Production.INFO: ProcessCDR(1,15938127,1,1,2) [2025-10-01 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15938127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15938127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15938127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15938127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15938127', 'tblTempUsageDetail_20' ) start [2025-10-01 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15938127', 'tblTempUsageDetail_20' ) end [2025-10-01 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-01 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-01 08:25:27] Production.INFO: ==8399== Releasing lock... [2025-10-01 08:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 08:25:27] Production.INFO: 31.5 MB #Memory Used# [2025-10-01 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 06:25:05 [end_date_ymd] => 2025-10-01 09:25:05 [RateCDR] => 1 ) [2025-10-01 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 06:25:05' and `end` < '2025-10-01 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 09:25:18] Production.INFO: count ==1321 [2025-10-01 09:25:19] Production.ERROR: pbx CDR StartTime 2025-10-01 06:25:05 - End Time 2025-10-01 09:25:05 [2025-10-01 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15938374', 'tblTempUsageDetail_20' ) start [2025-10-01 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15938374', 'tblTempUsageDetail_20' ) end [2025-10-01 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15938374', 'tblTempVendorCDR_20' ) start [2025-10-01 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15938374', 'tblTempVendorCDR_20' ) end [2025-10-01 09:25:19] Production.INFO: ProcessCDR(1,15938374,1,1,2) [2025-10-01 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15938374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15938374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15938374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15938374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15938374', 'tblTempUsageDetail_20' ) start [2025-10-01 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15938374', 'tblTempUsageDetail_20' ) end [2025-10-01 09:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-01 09:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-01 09:25:29] Production.INFO: ==12720== Releasing lock... [2025-10-01 09:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 09:25:29] Production.INFO: 38 MB #Memory Used# [2025-10-01 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 07:25:06 [end_date_ymd] => 2025-10-01 10:25:06 [RateCDR] => 1 ) [2025-10-01 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 07:25:06' and `end` < '2025-10-01 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 10:25:19] Production.INFO: count ==3007 [2025-10-01 10:25:20] Production.ERROR: pbx CDR StartTime 2025-10-01 07:25:06 - End Time 2025-10-01 10:25:06 [2025-10-01 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15938621', 'tblTempUsageDetail_20' ) start [2025-10-01 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15938621', 'tblTempUsageDetail_20' ) end [2025-10-01 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15938621', 'tblTempVendorCDR_20' ) start [2025-10-01 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15938621', 'tblTempVendorCDR_20' ) end [2025-10-01 10:25:20] Production.INFO: ProcessCDR(1,15938621,1,1,2) [2025-10-01 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15938621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 10:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15938621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 10:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15938621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15938621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15938621', 'tblTempUsageDetail_20' ) start [2025-10-01 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15938621', 'tblTempUsageDetail_20' ) end [2025-10-01 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-01 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-01 10:25:32] Production.INFO: ==18144== Releasing lock... [2025-10-01 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 10:25:32] Production.INFO: 50.5 MB #Memory Used# [2025-10-01 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 08:25:05 [end_date_ymd] => 2025-10-01 11:25:05 [RateCDR] => 1 ) [2025-10-01 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 08:25:05' and `end` < '2025-10-01 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 11:25:20] Production.INFO: count ==4558 [2025-10-01 11:25:22] Production.ERROR: pbx CDR StartTime 2025-10-01 08:25:05 - End Time 2025-10-01 11:25:05 [2025-10-01 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15938868', 'tblTempUsageDetail_20' ) start [2025-10-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15938868', 'tblTempUsageDetail_20' ) end [2025-10-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15938868', 'tblTempVendorCDR_20' ) start [2025-10-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15938868', 'tblTempVendorCDR_20' ) end [2025-10-01 11:25:22] Production.INFO: ProcessCDR(1,15938868,1,1,2) [2025-10-01 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15938868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15938868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15938868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15938868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15938868', 'tblTempUsageDetail_20' ) start [2025-10-01 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15938868', 'tblTempUsageDetail_20' ) end [2025-10-01 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-01 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-01 11:25:35] Production.INFO: ==23181== Releasing lock... [2025-10-01 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 11:25:35] Production.INFO: 62.25 MB #Memory Used# [2025-10-01 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 09:25:06 [end_date_ymd] => 2025-10-01 12:25:06 [RateCDR] => 1 ) [2025-10-01 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 09:25:06' and `end` < '2025-10-01 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 12:25:22] Production.INFO: count ==5450 [2025-10-01 12:25:25] Production.ERROR: pbx CDR StartTime 2025-10-01 09:25:06 - End Time 2025-10-01 12:25:06 [2025-10-01 12:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15939115', 'tblTempUsageDetail_20' ) start [2025-10-01 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15939115', 'tblTempUsageDetail_20' ) end [2025-10-01 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15939115', 'tblTempVendorCDR_20' ) start [2025-10-01 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15939115', 'tblTempVendorCDR_20' ) end [2025-10-01 12:25:25] Production.INFO: ProcessCDR(1,15939115,1,1,2) [2025-10-01 12:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15939115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 12:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15939115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 12:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15939115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 12:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15939115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 12:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15939115', 'tblTempUsageDetail_20' ) start [2025-10-01 12:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15939115', 'tblTempUsageDetail_20' ) end [2025-10-01 12:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-01 12:25:39] Production.ERROR: pbx prc_insertCDR end [2025-10-01 12:25:39] Production.INFO: ==27857== Releasing lock... [2025-10-01 12:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 12:25:39] Production.INFO: 69 MB #Memory Used# [2025-10-01 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 10:25:06 [end_date_ymd] => 2025-10-01 13:25:06 [RateCDR] => 1 ) [2025-10-01 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 10:25:06' and `end` < '2025-10-01 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 13:25:23] Production.INFO: count ==5434 [2025-10-01 13:25:25] Production.ERROR: pbx CDR StartTime 2025-10-01 10:25:06 - End Time 2025-10-01 13:25:06 [2025-10-01 13:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15939362', 'tblTempUsageDetail_20' ) start [2025-10-01 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15939362', 'tblTempUsageDetail_20' ) end [2025-10-01 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15939362', 'tblTempVendorCDR_20' ) start [2025-10-01 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15939362', 'tblTempVendorCDR_20' ) end [2025-10-01 13:25:26] Production.INFO: ProcessCDR(1,15939362,1,1,2) [2025-10-01 13:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15939362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 13:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15939362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 13:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15939362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 13:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15939362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15939362', 'tblTempUsageDetail_20' ) start [2025-10-01 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15939362', 'tblTempUsageDetail_20' ) end [2025-10-01 13:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-01 13:25:39] Production.ERROR: pbx prc_insertCDR end [2025-10-01 13:25:39] Production.INFO: ==32500== Releasing lock... [2025-10-01 13:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 13:25:39] Production.INFO: 69 MB #Memory Used# [2025-10-01 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 11:25:05 [end_date_ymd] => 2025-10-01 14:25:05 [RateCDR] => 1 ) [2025-10-01 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 11:25:05' and `end` < '2025-10-01 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 14:25:20] Production.INFO: count ==5377 [2025-10-01 14:25:23] Production.ERROR: pbx CDR StartTime 2025-10-01 11:25:05 - End Time 2025-10-01 14:25:05 [2025-10-01 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15939609', 'tblTempUsageDetail_20' ) start [2025-10-01 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15939609', 'tblTempUsageDetail_20' ) end [2025-10-01 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15939609', 'tblTempVendorCDR_20' ) start [2025-10-01 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15939609', 'tblTempVendorCDR_20' ) end [2025-10-01 14:25:23] Production.INFO: ProcessCDR(1,15939609,1,1,2) [2025-10-01 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15939609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15939609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15939609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 14:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15939609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15939609', 'tblTempUsageDetail_20' ) start [2025-10-01 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15939609', 'tblTempUsageDetail_20' ) end [2025-10-01 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-01 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-01 14:25:35] Production.INFO: ==4639== Releasing lock... [2025-10-01 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 14:25:35] Production.INFO: 68.5 MB #Memory Used# [2025-10-01 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 12:25:05 [end_date_ymd] => 2025-10-01 15:25:05 [RateCDR] => 1 ) [2025-10-01 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 12:25:05' and `end` < '2025-10-01 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 15:25:20] Production.INFO: count ==5449 [2025-10-01 15:25:23] Production.ERROR: pbx CDR StartTime 2025-10-01 12:25:05 - End Time 2025-10-01 15:25:05 [2025-10-01 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15939856', 'tblTempUsageDetail_20' ) start [2025-10-01 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15939856', 'tblTempUsageDetail_20' ) end [2025-10-01 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15939856', 'tblTempVendorCDR_20' ) start [2025-10-01 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15939856', 'tblTempVendorCDR_20' ) end [2025-10-01 15:25:23] Production.INFO: ProcessCDR(1,15939856,1,1,2) [2025-10-01 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15939856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15939856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15939856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 15:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15939856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15939856', 'tblTempUsageDetail_20' ) start [2025-10-01 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15939856', 'tblTempUsageDetail_20' ) end [2025-10-01 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-01 15:25:37] Production.ERROR: pbx prc_insertCDR end [2025-10-01 15:25:37] Production.INFO: ==9531== Releasing lock... [2025-10-01 15:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 15:25:37] Production.INFO: 69 MB #Memory Used# [2025-10-01 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 13:25:05 [end_date_ymd] => 2025-10-01 16:25:05 [RateCDR] => 1 ) [2025-10-01 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 13:25:05' and `end` < '2025-10-01 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 16:25:19] Production.INFO: count ==5389 [2025-10-01 16:25:21] Production.ERROR: pbx CDR StartTime 2025-10-01 13:25:05 - End Time 2025-10-01 16:25:05 [2025-10-01 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15940103', 'tblTempUsageDetail_20' ) start [2025-10-01 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15940103', 'tblTempUsageDetail_20' ) end [2025-10-01 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15940103', 'tblTempVendorCDR_20' ) start [2025-10-01 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15940103', 'tblTempVendorCDR_20' ) end [2025-10-01 16:25:22] Production.INFO: ProcessCDR(1,15940103,1,1,2) [2025-10-01 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15940103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15940103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15940103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15940103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15940103', 'tblTempUsageDetail_20' ) start [2025-10-01 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15940103', 'tblTempUsageDetail_20' ) end [2025-10-01 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-01 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-01 16:25:35] Production.INFO: ==13984== Releasing lock... [2025-10-01 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 16:25:35] Production.INFO: 68.5 MB #Memory Used# [2025-10-01 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 14:25:06 [end_date_ymd] => 2025-10-01 17:25:06 [RateCDR] => 1 ) [2025-10-01 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 14:25:06' and `end` < '2025-10-01 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 17:25:19] Production.INFO: count ==5129 [2025-10-01 17:25:22] Production.ERROR: pbx CDR StartTime 2025-10-01 14:25:06 - End Time 2025-10-01 17:25:06 [2025-10-01 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15940350', 'tblTempUsageDetail_20' ) start [2025-10-01 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15940350', 'tblTempUsageDetail_20' ) end [2025-10-01 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15940350', 'tblTempVendorCDR_20' ) start [2025-10-01 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15940350', 'tblTempVendorCDR_20' ) end [2025-10-01 17:25:22] Production.INFO: ProcessCDR(1,15940350,1,1,2) [2025-10-01 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15940350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15940350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15940350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 17:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15940350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15940350', 'tblTempUsageDetail_20' ) start [2025-10-01 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15940350', 'tblTempUsageDetail_20' ) end [2025-10-01 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-01 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-01 17:25:34] Production.INFO: ==18873== Releasing lock... [2025-10-01 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 17:25:34] Production.INFO: 66.5 MB #Memory Used# [2025-10-01 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 15:25:05 [end_date_ymd] => 2025-10-01 18:25:05 [RateCDR] => 1 ) [2025-10-01 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 15:25:05' and `end` < '2025-10-01 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 18:25:18] Production.INFO: count ==4301 [2025-10-01 18:25:20] Production.ERROR: pbx CDR StartTime 2025-10-01 15:25:05 - End Time 2025-10-01 18:25:05 [2025-10-01 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15940597', 'tblTempUsageDetail_20' ) start [2025-10-01 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15940597', 'tblTempUsageDetail_20' ) end [2025-10-01 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15940597', 'tblTempVendorCDR_20' ) start [2025-10-01 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15940597', 'tblTempVendorCDR_20' ) end [2025-10-01 18:25:20] Production.INFO: ProcessCDR(1,15940597,1,1,2) [2025-10-01 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15940597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15940597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15940597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 18:25:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15940597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 18:25:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15940597', 'tblTempUsageDetail_20' ) start [2025-10-01 18:26:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15940597', 'tblTempUsageDetail_20' ) end [2025-10-01 18:26:04] Production.ERROR: pbx prc_insertCDR start [2025-10-01 18:26:08] Production.ERROR: pbx prc_insertCDR end [2025-10-01 18:26:11] Production.INFO: ==24482== Releasing lock... [2025-10-01 18:26:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 18:26:11] Production.INFO: 60.25 MB #Memory Used# [2025-10-01 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 16:25:05 [end_date_ymd] => 2025-10-01 19:25:05 [RateCDR] => 1 ) [2025-10-01 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 16:25:05' and `end` < '2025-10-01 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 19:25:18] Production.INFO: count ==3672 [2025-10-01 19:25:20] Production.ERROR: pbx CDR StartTime 2025-10-01 16:25:05 - End Time 2025-10-01 19:25:05 [2025-10-01 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15940842', 'tblTempUsageDetail_20' ) start [2025-10-01 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15940842', 'tblTempUsageDetail_20' ) end [2025-10-01 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15940842', 'tblTempVendorCDR_20' ) start [2025-10-01 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15940842', 'tblTempVendorCDR_20' ) end [2025-10-01 19:25:20] Production.INFO: ProcessCDR(1,15940842,1,1,2) [2025-10-01 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15940842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15940842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15940842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15940842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15940842', 'tblTempUsageDetail_20' ) start [2025-10-01 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15940842', 'tblTempUsageDetail_20' ) end [2025-10-01 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-01 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-01 19:25:30] Production.INFO: ==29267== Releasing lock... [2025-10-01 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 19:25:30] Production.INFO: 55.5 MB #Memory Used# [2025-10-01 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 17:25:06 [end_date_ymd] => 2025-10-01 20:25:06 [RateCDR] => 1 ) [2025-10-01 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 17:25:06' and `end` < '2025-10-01 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 20:25:18] Production.INFO: count ==2820 [2025-10-01 20:25:19] Production.ERROR: pbx CDR StartTime 2025-10-01 17:25:06 - End Time 2025-10-01 20:25:06 [2025-10-01 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15941089', 'tblTempUsageDetail_20' ) start [2025-10-01 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15941089', 'tblTempUsageDetail_20' ) end [2025-10-01 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15941089', 'tblTempVendorCDR_20' ) start [2025-10-01 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15941089', 'tblTempVendorCDR_20' ) end [2025-10-01 20:25:20] Production.INFO: ProcessCDR(1,15941089,1,1,2) [2025-10-01 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15941089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 20:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15941089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 20:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15941089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 20:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15941089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15941089', 'tblTempUsageDetail_20' ) start [2025-10-01 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15941089', 'tblTempUsageDetail_20' ) end [2025-10-01 20:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-01 20:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-01 20:25:30] Production.INFO: ==2100== Releasing lock... [2025-10-01 20:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 20:25:30] Production.INFO: 49.5 MB #Memory Used# [2025-10-01 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 18:25:06 [end_date_ymd] => 2025-10-01 21:25:06 [RateCDR] => 1 ) [2025-10-01 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-10-01 18:25:06' and `end` < '2025-10-01 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-10-01 21:25:18] Production.INFO: count ==2170 [2025-10-01 21:25:19] Production.ERROR: pbx CDR StartTime 2025-10-01 18:25:06 - End Time 2025-10-01 21:25:06 [2025-10-01 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15941336', 'tblTempUsageDetail_20' ) start [2025-10-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15941336', 'tblTempUsageDetail_20' ) end [2025-10-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15941336', 'tblTempVendorCDR_20' ) start [2025-10-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15941336', 'tblTempVendorCDR_20' ) end [2025-10-01 21:25:19] Production.INFO: ProcessCDR(1,15941336,1,1,2) [2025-10-01 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15941336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15941336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15941336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 21:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15941336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15941336', 'tblTempUsageDetail_20' ) start [2025-10-01 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15941336', 'tblTempUsageDetail_20' ) end [2025-10-01 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-01 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-01 21:25:28] Production.INFO: ==6965== Releasing lock... [2025-10-01 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 21:25:28] Production.INFO: 44.25 MB #Memory Used# [2025-10-01 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 19:25:06 [end_date_ymd] => 2025-10-01 22:25:06 [RateCDR] => 1 ) [2025-10-01 22:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 19:25:06' and `end` < '2025-10-01 22:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 22:25:18] Production.INFO: count ==1511 [2025-10-01 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-01 19:25:06 - End Time 2025-10-01 22:25:06 [2025-10-01 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15941583', 'tblTempUsageDetail_20' ) start [2025-10-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15941583', 'tblTempUsageDetail_20' ) end [2025-10-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15941583', 'tblTempVendorCDR_20' ) start [2025-10-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15941583', 'tblTempVendorCDR_20' ) end [2025-10-01 22:25:18] Production.INFO: ProcessCDR(1,15941583,1,1,2) [2025-10-01 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15941583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15941583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15941583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15941583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15941583', 'tblTempUsageDetail_20' ) start [2025-10-01 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15941583', 'tblTempUsageDetail_20' ) end [2025-10-01 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-01 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-01 22:25:27] Production.INFO: ==12047== Releasing lock... [2025-10-01 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 22:25:27] Production.INFO: 39.75 MB #Memory Used# [2025-10-01 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-01 20:25:05 [end_date_ymd] => 2025-10-01 23:25:05 [RateCDR] => 1 ) [2025-10-01 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-01 20:25:05' and `end` < '2025-10-01 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-01 23:25:17] Production.INFO: count ==1059 [2025-10-01 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-01 20:25:05 - End Time 2025-10-01 23:25:05 [2025-10-01 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15941830', 'tblTempUsageDetail_20' ) start [2025-10-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15941830', 'tblTempUsageDetail_20' ) end [2025-10-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15941830', 'tblTempVendorCDR_20' ) start [2025-10-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15941830', 'tblTempVendorCDR_20' ) end [2025-10-01 23:25:18] Production.INFO: ProcessCDR(1,15941830,1,1,2) [2025-10-01 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15941830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15941830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-01 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15941830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15941830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-01 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15941830', 'tblTempUsageDetail_20' ) start [2025-10-01 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15941830', 'tblTempUsageDetail_20' ) end [2025-10-01 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-01 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-01 23:25:27] Production.INFO: ==16880== Releasing lock... [2025-10-01 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-01 23:25:28] Production.INFO: 36.5 MB #Memory Used#