[2025-10-07 00:25:04] Production.INFO: next invoice date [2025-10-07 00:25:04] Production.INFO: 2025-11-07 [2025-10-07 00:25:04] Production.INFO: getdaysdiff [2025-10-07 00:25:04] Production.INFO: +31 [2025-10-07 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (232,16,1,31,31,'RMScheduler',2025-10-07 00:25:04,1,0,,,0) [2025-10-07 00:25:04] Production.INFO: next invoice date [2025-10-07 00:25:04] Production.INFO: 2025-11-07 [2025-10-07 00:25:04] Production.INFO: getdaysdiff [2025-10-07 00:25:04] Production.INFO: +31 [2025-10-07 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,31,31,'RMScheduler',2025-10-07 00:25:04,1,0,,,0) [2025-10-07 00:25:04] Production.INFO: next invoice date [2025-10-07 00:25:04] Production.INFO: 2025-11-07 [2025-10-07 00:25:04] Production.INFO: getdaysdiff [2025-10-07 00:25:04] Production.INFO: +31 [2025-10-07 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (232,11,1,31,31,'RMScheduler',2025-10-07 00:25:04,0,0,,,0) [2025-10-07 00:25:04] Production.INFO: next invoice date [2025-10-07 00:25:04] Production.INFO: 2025-11-07 [2025-10-07 00:25:04] Production.INFO: getdaysdiff [2025-10-07 00:25:04] Production.INFO: +31 [2025-10-07 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,31,31,'RMScheduler',2025-10-07 00:25:04,0,0,,,0) [2025-10-07 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 21:25:05 [end_date_ymd] => 2025-10-07 00:25:05 [RateCDR] => 1 ) [2025-10-07 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-10-06 21:25:05' and `end` < '2025-10-07 00: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-07 00:25:19] Production.INFO: count ==713 [2025-10-07 00:25:20] Production.ERROR: pbx CDR StartTime 2025-10-06 21:25:05 - End Time 2025-10-07 00:25:05 [2025-10-07 00:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15971715', 'tblTempUsageDetail_20' ) start [2025-10-07 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15971715', 'tblTempUsageDetail_20' ) end [2025-10-07 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15971715', 'tblTempVendorCDR_20' ) start [2025-10-07 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15971715', 'tblTempVendorCDR_20' ) end [2025-10-07 00:25:20] Production.INFO: ProcessCDR(1,15971715,1,1,2) [2025-10-07 00:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15971715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 00:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15971715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 00:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15971715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 00:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15971715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15971715', 'tblTempUsageDetail_20' ) start [2025-10-07 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15971715', 'tblTempUsageDetail_20' ) end [2025-10-07 00:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-07 00:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-07 00:25:30] Production.INFO: ==5152== Releasing lock... [2025-10-07 00:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 00:25:30] Production.INFO: 37.75 MB #Memory Used# [2025-10-07 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 22:25:05 [end_date_ymd] => 2025-10-07 01:25:05 [RateCDR] => 1 ) [2025-10-07 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-06 22:25:05' and `end` < '2025-10-07 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-07 01:25:18] Production.INFO: count ==619 [2025-10-07 01:25:18] Production.ERROR: pbx CDR StartTime 2025-10-06 22:25:05 - End Time 2025-10-07 01:25:05 [2025-10-07 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15971962', 'tblTempUsageDetail_20' ) start [2025-10-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15971962', 'tblTempUsageDetail_20' ) end [2025-10-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15971962', 'tblTempVendorCDR_20' ) start [2025-10-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15971962', 'tblTempVendorCDR_20' ) end [2025-10-07 01:25:18] Production.INFO: ProcessCDR(1,15971962,1,1,2) [2025-10-07 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15971962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15971962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15971962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15971962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15971962', 'tblTempUsageDetail_20' ) start [2025-10-07 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15971962', 'tblTempUsageDetail_20' ) end [2025-10-07 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-07 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-07 01:25:26] Production.INFO: ==9886== Releasing lock... [2025-10-07 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 01:25:26] Production.INFO: 33.25 MB #Memory Used# [2025-10-07 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 23:25:05 [end_date_ymd] => 2025-10-07 02:25:05 [RateCDR] => 1 ) [2025-10-07 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-06 23:25:05' and `end` < '2025-10-07 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-07 02:25:19] Production.INFO: count ==293 [2025-10-07 02:25:19] Production.ERROR: pbx CDR StartTime 2025-10-06 23:25:05 - End Time 2025-10-07 02:25:05 [2025-10-07 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15972209', 'tblTempUsageDetail_20' ) start [2025-10-07 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15972209', 'tblTempUsageDetail_20' ) end [2025-10-07 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15972209', 'tblTempVendorCDR_20' ) start [2025-10-07 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15972209', 'tblTempVendorCDR_20' ) end [2025-10-07 02:25:19] Production.INFO: ProcessCDR(1,15972209,1,1,2) [2025-10-07 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15972209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15972209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15972209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 02:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15972209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15972209', 'tblTempUsageDetail_20' ) start [2025-10-07 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15972209', 'tblTempUsageDetail_20' ) end [2025-10-07 02:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-07 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-07 02:25:27] Production.INFO: ==15004== Releasing lock... [2025-10-07 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 02:25:27] Production.INFO: 30.75 MB #Memory Used# [2025-10-07 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 00:25:06 [end_date_ymd] => 2025-10-07 03:25:06 [RateCDR] => 1 ) [2025-10-07 03: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-07 00:25:06' and `end` < '2025-10-07 03: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-07 03:25:18] Production.INFO: count ==210 [2025-10-07 03:25:18] Production.ERROR: pbx CDR StartTime 2025-10-07 00:25:06 - End Time 2025-10-07 03:25:06 [2025-10-07 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15972456', 'tblTempUsageDetail_20' ) start [2025-10-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15972456', 'tblTempUsageDetail_20' ) end [2025-10-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15972456', 'tblTempVendorCDR_20' ) start [2025-10-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15972456', 'tblTempVendorCDR_20' ) end [2025-10-07 03:25:18] Production.INFO: ProcessCDR(1,15972456,1,1,2) [2025-10-07 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15972456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15972456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15972456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15972456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15972456', 'tblTempUsageDetail_20' ) start [2025-10-07 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15972456', 'tblTempUsageDetail_20' ) end [2025-10-07 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-07 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-07 03:25:26] Production.INFO: ==19599== Releasing lock... [2025-10-07 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 03:25:26] Production.INFO: 30 MB #Memory Used# [2025-10-07 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 01:25:05 [end_date_ymd] => 2025-10-07 04:25:05 [RateCDR] => 1 ) [2025-10-07 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-07 01:25:05' and `end` < '2025-10-07 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-07 04:25:17] Production.INFO: count ==164 [2025-10-07 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-07 01:25:05 - End Time 2025-10-07 04:25:05 [2025-10-07 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15972704', 'tblTempUsageDetail_20' ) start [2025-10-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15972704', 'tblTempUsageDetail_20' ) end [2025-10-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15972704', 'tblTempVendorCDR_20' ) start [2025-10-07 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15972704', 'tblTempVendorCDR_20' ) end [2025-10-07 04:25:17] Production.INFO: ProcessCDR(1,15972704,1,1,2) [2025-10-07 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15972704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15972704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15972704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 04:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15972704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15972704', 'tblTempUsageDetail_20' ) start [2025-10-07 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15972704', 'tblTempUsageDetail_20' ) end [2025-10-07 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-07 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-07 04:25:26] Production.INFO: ==23897== Releasing lock... [2025-10-07 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 04:25:26] Production.INFO: 29.25 MB #Memory Used# [2025-10-07 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 02:25:05 [end_date_ymd] => 2025-10-07 05:25:05 [RateCDR] => 1 ) [2025-10-07 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-07 02:25:05' and `end` < '2025-10-07 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-07 05:25:17] Production.INFO: count ==123 [2025-10-07 05:25:17] Production.ERROR: pbx CDR StartTime 2025-10-07 02:25:05 - End Time 2025-10-07 05:25:05 [2025-10-07 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15972952', 'tblTempUsageDetail_20' ) start [2025-10-07 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15972952', 'tblTempUsageDetail_20' ) end [2025-10-07 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15972952', 'tblTempVendorCDR_20' ) start [2025-10-07 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15972952', 'tblTempVendorCDR_20' ) end [2025-10-07 05:25:17] Production.INFO: ProcessCDR(1,15972952,1,1,2) [2025-10-07 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15972952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15972952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15972952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15972952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15972952', 'tblTempUsageDetail_20' ) start [2025-10-07 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15972952', 'tblTempUsageDetail_20' ) end [2025-10-07 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-10-07 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-10-07 05:25:23] Production.INFO: ==29210== Releasing lock... [2025-10-07 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 05:25:23] Production.INFO: 29 MB #Memory Used# [2025-10-07 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 03:25:06 [end_date_ymd] => 2025-10-07 06:25:06 [RateCDR] => 1 ) [2025-10-07 06: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-07 03:25:06' and `end` < '2025-10-07 06: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-07 06:25:18] Production.INFO: count ==110 [2025-10-07 06:25:18] Production.ERROR: pbx CDR StartTime 2025-10-07 03:25:06 - End Time 2025-10-07 06:25:06 [2025-10-07 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15973199', 'tblTempUsageDetail_20' ) start [2025-10-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15973199', 'tblTempUsageDetail_20' ) end [2025-10-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15973199', 'tblTempVendorCDR_20' ) start [2025-10-07 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15973199', 'tblTempVendorCDR_20' ) end [2025-10-07 06:25:18] Production.INFO: ProcessCDR(1,15973199,1,1,2) [2025-10-07 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15973199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15973199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15973199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15973199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15973199', 'tblTempUsageDetail_20' ) start [2025-10-07 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15973199', 'tblTempUsageDetail_20' ) end [2025-10-07 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-07 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-07 06:25:26] Production.INFO: ==1423== Releasing lock... [2025-10-07 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 06:25:26] Production.INFO: 28.75 MB #Memory Used# [2025-10-07 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 04:25:06 [end_date_ymd] => 2025-10-07 07:25:06 [RateCDR] => 1 ) [2025-10-07 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-07 04:25:06' and `end` < '2025-10-07 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-07 07:25:18] Production.INFO: count ==82 [2025-10-07 07:25:18] Production.ERROR: pbx CDR StartTime 2025-10-07 04:25:06 - End Time 2025-10-07 07:25:06 [2025-10-07 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15973446', 'tblTempUsageDetail_20' ) start [2025-10-07 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15973446', 'tblTempUsageDetail_20' ) end [2025-10-07 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15973446', 'tblTempVendorCDR_20' ) start [2025-10-07 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15973446', 'tblTempVendorCDR_20' ) end [2025-10-07 07:25:18] Production.INFO: ProcessCDR(1,15973446,1,1,2) [2025-10-07 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15973446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15973446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15973446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15973446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15973446', 'tblTempUsageDetail_20' ) start [2025-10-07 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15973446', 'tblTempUsageDetail_20' ) end [2025-10-07 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-07 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-07 07:25:26] Production.INFO: ==5909== Releasing lock... [2025-10-07 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 07:25:26] Production.INFO: 28.25 MB #Memory Used# [2025-10-07 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 05:25:05 [end_date_ymd] => 2025-10-07 08:25:05 [RateCDR] => 1 ) [2025-10-07 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-07 05:25:05' and `end` < '2025-10-07 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-07 08:25:17] Production.INFO: count ==318 [2025-10-07 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-07 05:25:05 - End Time 2025-10-07 08:25:05 [2025-10-07 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15973693', 'tblTempUsageDetail_20' ) start [2025-10-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15973693', 'tblTempUsageDetail_20' ) end [2025-10-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15973693', 'tblTempVendorCDR_20' ) start [2025-10-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15973693', 'tblTempVendorCDR_20' ) end [2025-10-07 08:25:17] Production.INFO: ProcessCDR(1,15973693,1,1,2) [2025-10-07 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15973693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15973693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15973693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15973693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15973693', 'tblTempUsageDetail_20' ) start [2025-10-07 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15973693', 'tblTempUsageDetail_20' ) end [2025-10-07 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-07 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-07 08:25:26] Production.INFO: ==10598== Releasing lock... [2025-10-07 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 08:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-10-07 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 06:25:05 [end_date_ymd] => 2025-10-07 09:25:05 [RateCDR] => 1 ) [2025-10-07 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-07 06:25:05' and `end` < '2025-10-07 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-07 09:25:18] Production.INFO: count ==1212 [2025-10-07 09:25:18] Production.ERROR: pbx CDR StartTime 2025-10-07 06:25:05 - End Time 2025-10-07 09:25:05 [2025-10-07 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15973940', 'tblTempUsageDetail_20' ) start [2025-10-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15973940', 'tblTempUsageDetail_20' ) end [2025-10-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15973940', 'tblTempVendorCDR_20' ) start [2025-10-07 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15973940', 'tblTempVendorCDR_20' ) end [2025-10-07 09:25:18] Production.INFO: ProcessCDR(1,15973940,1,1,2) [2025-10-07 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15973940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15973940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15973940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15973940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15973940', 'tblTempUsageDetail_20' ) start [2025-10-07 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15973940', 'tblTempUsageDetail_20' ) end [2025-10-07 09:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-07 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-07 09:25:28] Production.INFO: ==15850== Releasing lock... [2025-10-07 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 09:25:28] Production.INFO: 37.5 MB #Memory Used# [2025-10-07 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 07:25:05 [end_date_ymd] => 2025-10-07 10:25:05 [RateCDR] => 1 ) [2025-10-07 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-07 07:25:05' and `end` < '2025-10-07 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-07 10:25:19] Production.INFO: count ==2811 [2025-10-07 10:25:20] Production.ERROR: pbx CDR StartTime 2025-10-07 07:25:05 - End Time 2025-10-07 10:25:05 [2025-10-07 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15974187', 'tblTempUsageDetail_20' ) start [2025-10-07 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15974187', 'tblTempUsageDetail_20' ) end [2025-10-07 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15974187', 'tblTempVendorCDR_20' ) start [2025-10-07 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15974187', 'tblTempVendorCDR_20' ) end [2025-10-07 10:25:20] Production.INFO: ProcessCDR(1,15974187,1,1,2) [2025-10-07 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15974187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15974187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15974187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15974187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15974187', 'tblTempUsageDetail_20' ) start [2025-10-07 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15974187', 'tblTempUsageDetail_20' ) end [2025-10-07 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-07 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-07 10:25:32] Production.INFO: ==20611== Releasing lock... [2025-10-07 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 10:25:32] Production.INFO: 49.5 MB #Memory Used# [2025-10-07 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 08:25:05 [end_date_ymd] => 2025-10-07 11:25:05 [RateCDR] => 1 ) [2025-10-07 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-07 08:25:05' and `end` < '2025-10-07 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-07 11:25:19] Production.INFO: count ==4401 [2025-10-07 11:25:21] Production.ERROR: pbx CDR StartTime 2025-10-07 08:25:05 - End Time 2025-10-07 11:25:05 [2025-10-07 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15974434', 'tblTempUsageDetail_20' ) start [2025-10-07 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15974434', 'tblTempUsageDetail_20' ) end [2025-10-07 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15974434', 'tblTempVendorCDR_20' ) start [2025-10-07 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15974434', 'tblTempVendorCDR_20' ) end [2025-10-07 11:25:21] Production.INFO: ProcessCDR(1,15974434,1,1,2) [2025-10-07 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15974434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15974434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15974434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15974434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15974434', 'tblTempUsageDetail_20' ) start [2025-10-07 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15974434', 'tblTempUsageDetail_20' ) end [2025-10-07 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-07 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-07 11:25:34] Production.INFO: ==25173== Releasing lock... [2025-10-07 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 11:25:34] Production.INFO: 61 MB #Memory Used# [2025-10-07 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 09:25:05 [end_date_ymd] => 2025-10-07 12:25:05 [RateCDR] => 1 ) [2025-10-07 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-07 09:25:05' and `end` < '2025-10-07 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-07 12:25:18] Production.INFO: count ==5294 [2025-10-07 12:25:21] Production.ERROR: pbx CDR StartTime 2025-10-07 09:25:05 - End Time 2025-10-07 12:25:05 [2025-10-07 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15974681', 'tblTempUsageDetail_20' ) start [2025-10-07 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15974681', 'tblTempUsageDetail_20' ) end [2025-10-07 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15974681', 'tblTempVendorCDR_20' ) start [2025-10-07 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15974681', 'tblTempVendorCDR_20' ) end [2025-10-07 12:25:22] Production.INFO: ProcessCDR(1,15974681,1,1,2) [2025-10-07 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15974681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15974681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15974681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15974681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15974681', 'tblTempUsageDetail_20' ) start [2025-10-07 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15974681', 'tblTempUsageDetail_20' ) end [2025-10-07 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-07 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-07 12:25:34] Production.INFO: ==32581== Releasing lock... [2025-10-07 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 12:25:34] Production.INFO: 67.75 MB #Memory Used# [2025-10-07 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 10:25:06 [end_date_ymd] => 2025-10-07 13:25:06 [RateCDR] => 1 ) [2025-10-07 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-07 10:25:06' and `end` < '2025-10-07 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-07 13:25:21] Production.INFO: count ==5510 [2025-10-07 13:25:24] Production.ERROR: pbx CDR StartTime 2025-10-07 10:25:06 - End Time 2025-10-07 13:25:06 [2025-10-07 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15974928', 'tblTempUsageDetail_20' ) start [2025-10-07 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15974928', 'tblTempUsageDetail_20' ) end [2025-10-07 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15974928', 'tblTempVendorCDR_20' ) start [2025-10-07 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15974928', 'tblTempVendorCDR_20' ) end [2025-10-07 13:25:25] Production.INFO: ProcessCDR(1,15974928,1,1,2) [2025-10-07 13:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15974928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15974928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15974928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 13:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15974928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15974928', 'tblTempUsageDetail_20' ) start [2025-10-07 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15974928', 'tblTempUsageDetail_20' ) end [2025-10-07 13:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-07 13:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-07 13:25:38] Production.INFO: ==7775== Releasing lock... [2025-10-07 13:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 13:25:38] Production.INFO: 69.5 MB #Memory Used# [2025-10-07 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 11:25:06 [end_date_ymd] => 2025-10-07 14:25:06 [RateCDR] => 1 ) [2025-10-07 14: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-07 11:25:06' and `end` < '2025-10-07 14: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-07 14:25:21] Production.INFO: count ==5859 [2025-10-07 14:25:24] Production.ERROR: pbx CDR StartTime 2025-10-07 11:25:06 - End Time 2025-10-07 14:25:06 [2025-10-07 14:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15975175', 'tblTempUsageDetail_20' ) start [2025-10-07 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15975175', 'tblTempUsageDetail_20' ) end [2025-10-07 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15975175', 'tblTempVendorCDR_20' ) start [2025-10-07 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15975175', 'tblTempVendorCDR_20' ) end [2025-10-07 14:25:24] Production.INFO: ProcessCDR(1,15975175,1,1,2) [2025-10-07 14:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15975175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 14:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15975175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 14:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15975175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 14:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15975175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15975175', 'tblTempUsageDetail_20' ) start [2025-10-07 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15975175', 'tblTempUsageDetail_20' ) end [2025-10-07 14:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-07 14:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-07 14:25:38] Production.INFO: ==14622== Releasing lock... [2025-10-07 14:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 14:25:38] Production.INFO: 72 MB #Memory Used# [2025-10-07 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 12:25:05 [end_date_ymd] => 2025-10-07 15:25:05 [RateCDR] => 1 ) [2025-10-07 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-07 12:25:05' and `end` < '2025-10-07 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-07 15:25:24] Production.INFO: count ==5697 [2025-10-07 15:25:27] Production.ERROR: pbx CDR StartTime 2025-10-07 12:25:05 - End Time 2025-10-07 15:25:05 [2025-10-07 15:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15975422', 'tblTempUsageDetail_20' ) start [2025-10-07 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15975422', 'tblTempUsageDetail_20' ) end [2025-10-07 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15975422', 'tblTempVendorCDR_20' ) start [2025-10-07 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15975422', 'tblTempVendorCDR_20' ) end [2025-10-07 15:25:28] Production.INFO: ProcessCDR(1,15975422,1,1,2) [2025-10-07 15:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15975422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 15:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15975422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 15:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15975422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 15:25:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15975422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 15:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15975422', 'tblTempUsageDetail_20' ) start [2025-10-07 15:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15975422', 'tblTempUsageDetail_20' ) end [2025-10-07 15:25:39] Production.ERROR: pbx prc_insertCDR start [2025-10-07 15:25:41] Production.ERROR: pbx prc_insertCDR end [2025-10-07 15:25:41] Production.INFO: ==21428== Releasing lock... [2025-10-07 15:25:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 15:25:41] Production.INFO: 71 MB #Memory Used# [2025-10-07 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 13:25:05 [end_date_ymd] => 2025-10-07 16:25:05 [RateCDR] => 1 ) [2025-10-07 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-07 13:25:05' and `end` < '2025-10-07 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-07 16:25:19] Production.INFO: count ==5711 [2025-10-07 16:25:22] Production.ERROR: pbx CDR StartTime 2025-10-07 13:25:05 - End Time 2025-10-07 16:25:05 [2025-10-07 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15975669', 'tblTempUsageDetail_20' ) start [2025-10-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15975669', 'tblTempUsageDetail_20' ) end [2025-10-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15975669', 'tblTempVendorCDR_20' ) start [2025-10-07 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15975669', 'tblTempVendorCDR_20' ) end [2025-10-07 16:25:22] Production.INFO: ProcessCDR(1,15975669,1,1,2) [2025-10-07 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15975669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15975669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15975669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15975669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15975669', 'tblTempUsageDetail_20' ) start [2025-10-07 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15975669', 'tblTempUsageDetail_20' ) end [2025-10-07 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-07 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-07 16:25:36] Production.INFO: ==27863== Releasing lock... [2025-10-07 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 16:25:36] Production.INFO: 71 MB #Memory Used# [2025-10-07 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 14:25:05 [end_date_ymd] => 2025-10-07 17:25:05 [RateCDR] => 1 ) [2025-10-07 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-07 14:25:05' and `end` < '2025-10-07 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-07 17:25:20] Production.INFO: count ==5021 [2025-10-07 17:25:23] Production.ERROR: pbx CDR StartTime 2025-10-07 14:25:05 - End Time 2025-10-07 17:25:05 [2025-10-07 17:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15975916', 'tblTempUsageDetail_20' ) start [2025-10-07 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15975916', 'tblTempUsageDetail_20' ) end [2025-10-07 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15975916', 'tblTempVendorCDR_20' ) start [2025-10-07 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15975916', 'tblTempVendorCDR_20' ) end [2025-10-07 17:25:23] Production.INFO: ProcessCDR(1,15975916,1,1,2) [2025-10-07 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15975916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 17:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15975916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 17:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15975916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 17:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15975916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 17:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15975916', 'tblTempUsageDetail_20' ) start [2025-10-07 17:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15975916', 'tblTempUsageDetail_20' ) end [2025-10-07 17:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-07 17:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-07 17:25:36] Production.INFO: ==510== Releasing lock... [2025-10-07 17:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 17:25:36] Production.INFO: 65.75 MB #Memory Used# [2025-10-07 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 15:25:05 [end_date_ymd] => 2025-10-07 18:25:05 [RateCDR] => 1 ) [2025-10-07 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-07 15:25:05' and `end` < '2025-10-07 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-07 18:25:18] Production.INFO: count ==4153 [2025-10-07 18:25:20] Production.ERROR: pbx CDR StartTime 2025-10-07 15:25:05 - End Time 2025-10-07 18:25:05 [2025-10-07 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15976163', 'tblTempUsageDetail_20' ) start [2025-10-07 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15976163', 'tblTempUsageDetail_20' ) end [2025-10-07 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15976163', 'tblTempVendorCDR_20' ) start [2025-10-07 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15976163', 'tblTempVendorCDR_20' ) end [2025-10-07 18:25:22] Production.INFO: ProcessCDR(1,15976163,1,1,2) [2025-10-07 18:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15976163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 18:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15976163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 18:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15976163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 18:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15976163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 18:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15976163', 'tblTempUsageDetail_20' ) start [2025-10-07 18:26:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15976163', 'tblTempUsageDetail_20' ) end [2025-10-07 18:26:45] Production.ERROR: pbx prc_insertCDR start [2025-10-07 18:26:47] Production.ERROR: pbx prc_insertCDR end [2025-10-07 18:26:50] Production.INFO: ==5756== Releasing lock... [2025-10-07 18:26:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 18:26:50] Production.INFO: 59.25 MB #Memory Used# [2025-10-07 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 16:25:06 [end_date_ymd] => 2025-10-07 19:25:06 [RateCDR] => 1 ) [2025-10-07 19: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-07 16:25:06' and `end` < '2025-10-07 19: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-07 19:25:19] Production.INFO: count ==3059 [2025-10-07 19:25:20] Production.ERROR: pbx CDR StartTime 2025-10-07 16:25:06 - End Time 2025-10-07 19:25:06 [2025-10-07 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15976407', 'tblTempUsageDetail_20' ) start [2025-10-07 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15976407', 'tblTempUsageDetail_20' ) end [2025-10-07 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15976407', 'tblTempVendorCDR_20' ) start [2025-10-07 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15976407', 'tblTempVendorCDR_20' ) end [2025-10-07 19:25:20] Production.INFO: ProcessCDR(1,15976407,1,1,2) [2025-10-07 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15976407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 19:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15976407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 19:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15976407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 19:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15976407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 19:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15976407', 'tblTempUsageDetail_20' ) start [2025-10-07 19:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15976407', 'tblTempUsageDetail_20' ) end [2025-10-07 19:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-07 19:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-07 19:25:31] Production.INFO: ==10701== Releasing lock... [2025-10-07 19:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 19:25:31] Production.INFO: 51.75 MB #Memory Used# [2025-10-07 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 17:25:05 [end_date_ymd] => 2025-10-07 20:25:05 [RateCDR] => 1 ) [2025-10-07 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-10-07 17:25:05' and `end` < '2025-10-07 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-10-07 20:25:17] Production.INFO: count ==2071 [2025-10-07 20:25:18] Production.ERROR: pbx CDR StartTime 2025-10-07 17:25:05 - End Time 2025-10-07 20:25:05 [2025-10-07 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15976654', 'tblTempUsageDetail_20' ) start [2025-10-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15976654', 'tblTempUsageDetail_20' ) end [2025-10-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15976654', 'tblTempVendorCDR_20' ) start [2025-10-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15976654', 'tblTempVendorCDR_20' ) end [2025-10-07 20:25:18] Production.INFO: ProcessCDR(1,15976654,1,1,2) [2025-10-07 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15976654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15976654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15976654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15976654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15976654', 'tblTempUsageDetail_20' ) start [2025-10-07 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15976654', 'tblTempUsageDetail_20' ) end [2025-10-07 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-07 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-07 20:25:28] Production.INFO: ==15383== Releasing lock... [2025-10-07 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 20:25:28] Production.INFO: 43.75 MB #Memory Used# [2025-10-07 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 18:25:06 [end_date_ymd] => 2025-10-07 21:25:06 [RateCDR] => 1 ) [2025-10-07 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-07 18:25:06' and `end` < '2025-10-07 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-07 21:25:18] Production.INFO: count ==1531 [2025-10-07 21:25:19] Production.ERROR: pbx CDR StartTime 2025-10-07 18:25:06 - End Time 2025-10-07 21:25:06 [2025-10-07 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15976901', 'tblTempUsageDetail_20' ) start [2025-10-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15976901', 'tblTempUsageDetail_20' ) end [2025-10-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15976901', 'tblTempVendorCDR_20' ) start [2025-10-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15976901', 'tblTempVendorCDR_20' ) end [2025-10-07 21:25:19] Production.INFO: ProcessCDR(1,15976901,1,1,2) [2025-10-07 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15976901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15976901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15976901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 21:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15976901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15976901', 'tblTempUsageDetail_20' ) start [2025-10-07 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15976901', 'tblTempUsageDetail_20' ) end [2025-10-07 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-07 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-07 21:25:28] Production.INFO: ==19947== Releasing lock... [2025-10-07 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 21:25:28] Production.INFO: 39.5 MB #Memory Used# [2025-10-07 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 19:25:05 [end_date_ymd] => 2025-10-07 22:25:05 [RateCDR] => 1 ) [2025-10-07 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-10-07 19:25:05' and `end` < '2025-10-07 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-10-07 22:25:17] Production.INFO: count ==1098 [2025-10-07 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-07 19:25:05 - End Time 2025-10-07 22:25:05 [2025-10-07 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15977148', 'tblTempUsageDetail_20' ) start [2025-10-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15977148', 'tblTempUsageDetail_20' ) end [2025-10-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15977148', 'tblTempVendorCDR_20' ) start [2025-10-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15977148', 'tblTempVendorCDR_20' ) end [2025-10-07 22:25:18] Production.INFO: ProcessCDR(1,15977148,1,1,2) [2025-10-07 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15977148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15977148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15977148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15977148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15977148', 'tblTempUsageDetail_20' ) start [2025-10-07 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15977148', 'tblTempUsageDetail_20' ) end [2025-10-07 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-07 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-07 22:25:27] Production.INFO: ==24272== Releasing lock... [2025-10-07 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 22:25:27] Production.INFO: 36.5 MB #Memory Used# [2025-10-07 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 20:25:05 [end_date_ymd] => 2025-10-07 23:25:05 [RateCDR] => 1 ) [2025-10-07 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-07 20:25:05' and `end` < '2025-10-07 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-07 23:25:17] Production.INFO: count ==867 [2025-10-07 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-07 20:25:05 - End Time 2025-10-07 23:25:05 [2025-10-07 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15977395', 'tblTempUsageDetail_20' ) start [2025-10-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15977395', 'tblTempUsageDetail_20' ) end [2025-10-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15977395', 'tblTempVendorCDR_20' ) start [2025-10-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15977395', 'tblTempVendorCDR_20' ) end [2025-10-07 23:25:18] Production.INFO: ProcessCDR(1,15977395,1,1,2) [2025-10-07 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15977395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15977395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-07 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15977395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15977395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-07 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15977395', 'tblTempUsageDetail_20' ) start [2025-10-07 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15977395', 'tblTempUsageDetail_20' ) end [2025-10-07 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-07 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-07 23:25:27] Production.INFO: ==28843== Releasing lock... [2025-10-07 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-07 23:25:27] Production.INFO: 35 MB #Memory Used#