[2025-09-19 00:25:04] Production.INFO: next invoice date [2025-09-19 00:25:04] Production.INFO: 2025-10-19 [2025-09-19 00:25:04] Production.INFO: getdaysdiff [2025-09-19 00:25:04] Production.INFO: +30 [2025-09-19 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (108,15,1,30,30,'RMScheduler',2025-09-19 00:25:04,1,0,,,0) [2025-09-19 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-18 21:25:05 [end_date_ymd] => 2025-09-19 00:25:05 [RateCDR] => 1 ) [2025-09-19 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-09-18 21:25:05' and `end` < '2025-09-19 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-09-19 00:25:19] Production.INFO: count ==481 [2025-09-19 00:25:19] Production.ERROR: pbx CDR StartTime 2025-09-18 21:25:05 - End Time 2025-09-19 00:25:05 [2025-09-19 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15865024', 'tblTempUsageDetail_20' ) start [2025-09-19 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15865024', 'tblTempUsageDetail_20' ) end [2025-09-19 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15865024', 'tblTempVendorCDR_20' ) start [2025-09-19 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15865024', 'tblTempVendorCDR_20' ) end [2025-09-19 00:25:19] Production.INFO: ProcessCDR(1,15865024,1,1,2) [2025-09-19 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15865024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 00:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15865024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 00:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15865024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 00:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15865024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15865024', 'tblTempUsageDetail_20' ) start [2025-09-19 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15865024', 'tblTempUsageDetail_20' ) end [2025-09-19 00:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-19 00:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-19 00:25:31] Production.INFO: ==16685== Releasing lock... [2025-09-19 00:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 00:25:31] Production.INFO: 36 MB #Memory Used# [2025-09-19 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-18 22:25:05 [end_date_ymd] => 2025-09-19 01:25:05 [RateCDR] => 1 ) [2025-09-19 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-18 22:25:05' and `end` < '2025-09-19 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 01:25:18] Production.INFO: count ==438 [2025-09-19 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-18 22:25:05 - End Time 2025-09-19 01:25:05 [2025-09-19 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15865271', 'tblTempUsageDetail_20' ) start [2025-09-19 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15865271', 'tblTempUsageDetail_20' ) end [2025-09-19 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15865271', 'tblTempVendorCDR_20' ) start [2025-09-19 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15865271', 'tblTempVendorCDR_20' ) end [2025-09-19 01:25:18] Production.INFO: ProcessCDR(1,15865271,1,1,2) [2025-09-19 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15865271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15865271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15865271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15865271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15865271', 'tblTempUsageDetail_20' ) start [2025-09-19 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15865271', 'tblTempUsageDetail_20' ) end [2025-09-19 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-19 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-19 01:25:25] Production.INFO: ==22042== Releasing lock... [2025-09-19 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 01:25:25] Production.INFO: 32.25 MB #Memory Used# [2025-09-19 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-18 23:25:05 [end_date_ymd] => 2025-09-19 02:25:05 [RateCDR] => 1 ) [2025-09-19 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-18 23:25:05' and `end` < '2025-09-19 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 02:25:17] Production.INFO: count ==369 [2025-09-19 02:25:17] Production.ERROR: pbx CDR StartTime 2025-09-18 23:25:05 - End Time 2025-09-19 02:25:05 [2025-09-19 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15865518', 'tblTempUsageDetail_20' ) start [2025-09-19 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15865518', 'tblTempUsageDetail_20' ) end [2025-09-19 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15865518', 'tblTempVendorCDR_20' ) start [2025-09-19 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15865518', 'tblTempVendorCDR_20' ) end [2025-09-19 02:25:17] Production.INFO: ProcessCDR(1,15865518,1,1,2) [2025-09-19 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15865518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15865518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15865518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15865518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15865518', 'tblTempUsageDetail_20' ) start [2025-09-19 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15865518', 'tblTempUsageDetail_20' ) end [2025-09-19 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-19 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-19 02:25:25] Production.INFO: ==26802== Releasing lock... [2025-09-19 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 02:25:25] Production.INFO: 31 MB #Memory Used# [2025-09-19 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 00:25:05 [end_date_ymd] => 2025-09-19 03:25:05 [RateCDR] => 1 ) [2025-09-19 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 00:25:05' and `end` < '2025-09-19 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 03:25:17] Production.INFO: count ==333 [2025-09-19 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-19 00:25:05 - End Time 2025-09-19 03:25:05 [2025-09-19 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15865765', 'tblTempUsageDetail_20' ) start [2025-09-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15865765', 'tblTempUsageDetail_20' ) end [2025-09-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15865765', 'tblTempVendorCDR_20' ) start [2025-09-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15865765', 'tblTempVendorCDR_20' ) end [2025-09-19 03:25:17] Production.INFO: ProcessCDR(1,15865765,1,1,2) [2025-09-19 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15865765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15865765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15865765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15865765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15865765', 'tblTempUsageDetail_20' ) start [2025-09-19 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15865765', 'tblTempUsageDetail_20' ) end [2025-09-19 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-19 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-19 03:25:25] Production.INFO: ==32097== Releasing lock... [2025-09-19 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 03:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-09-19 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 01:25:05 [end_date_ymd] => 2025-09-19 04:25:05 [RateCDR] => 1 ) [2025-09-19 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 01:25:05' and `end` < '2025-09-19 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 04:25:17] Production.INFO: count ==223 [2025-09-19 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-19 01:25:05 - End Time 2025-09-19 04:25:05 [2025-09-19 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15866013', 'tblTempUsageDetail_20' ) start [2025-09-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15866013', 'tblTempUsageDetail_20' ) end [2025-09-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15866013', 'tblTempVendorCDR_20' ) start [2025-09-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15866013', 'tblTempVendorCDR_20' ) end [2025-09-19 04:25:17] Production.INFO: ProcessCDR(1,15866013,1,1,2) [2025-09-19 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15866013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15866013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15866013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15866013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15866013', 'tblTempUsageDetail_20' ) start [2025-09-19 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15866013', 'tblTempUsageDetail_20' ) end [2025-09-19 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-19 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-19 04:25:25] Production.INFO: ==5185== Releasing lock... [2025-09-19 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 04:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-09-19 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 02:25:05 [end_date_ymd] => 2025-09-19 05:25:05 [RateCDR] => 1 ) [2025-09-19 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 02:25:05' and `end` < '2025-09-19 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 05:25:17] Production.INFO: count ==165 [2025-09-19 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-19 02:25:05 - End Time 2025-09-19 05:25:05 [2025-09-19 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15866261', 'tblTempUsageDetail_20' ) start [2025-09-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15866261', 'tblTempUsageDetail_20' ) end [2025-09-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15866261', 'tblTempVendorCDR_20' ) start [2025-09-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15866261', 'tblTempVendorCDR_20' ) end [2025-09-19 05:25:17] Production.INFO: ProcessCDR(1,15866261,1,1,2) [2025-09-19 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15866261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15866261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15866261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15866261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15866261', 'tblTempUsageDetail_20' ) start [2025-09-19 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15866261', 'tblTempUsageDetail_20' ) end [2025-09-19 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-19 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-19 05:25:25] Production.INFO: ==11258== Releasing lock... [2025-09-19 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 05:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-09-19 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 03:25:05 [end_date_ymd] => 2025-09-19 06:25:05 [RateCDR] => 1 ) [2025-09-19 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 03:25:05' and `end` < '2025-09-19 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 06:25:18] Production.INFO: count ==128 [2025-09-19 06:25:18] Production.ERROR: pbx CDR StartTime 2025-09-19 03:25:05 - End Time 2025-09-19 06:25:05 [2025-09-19 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15866508', 'tblTempUsageDetail_20' ) start [2025-09-19 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15866508', 'tblTempUsageDetail_20' ) end [2025-09-19 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15866508', 'tblTempVendorCDR_20' ) start [2025-09-19 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15866508', 'tblTempVendorCDR_20' ) end [2025-09-19 06:25:18] Production.INFO: ProcessCDR(1,15866508,1,1,2) [2025-09-19 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15866508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15866508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15866508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15866508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15866508', 'tblTempUsageDetail_20' ) start [2025-09-19 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15866508', 'tblTempUsageDetail_20' ) end [2025-09-19 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-19 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-19 06:25:25] Production.INFO: ==15919== Releasing lock... [2025-09-19 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 06:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-09-19 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 04:25:05 [end_date_ymd] => 2025-09-19 07:25:05 [RateCDR] => 1 ) [2025-09-19 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 04:25:05' and `end` < '2025-09-19 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 07:25:17] Production.INFO: count ==178 [2025-09-19 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-19 04:25:05 - End Time 2025-09-19 07:25:05 [2025-09-19 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15866755', 'tblTempUsageDetail_20' ) start [2025-09-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15866755', 'tblTempUsageDetail_20' ) end [2025-09-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15866755', 'tblTempVendorCDR_20' ) start [2025-09-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15866755', 'tblTempVendorCDR_20' ) end [2025-09-19 07:25:17] Production.INFO: ProcessCDR(1,15866755,1,1,2) [2025-09-19 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15866755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15866755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15866755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15866755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15866755', 'tblTempUsageDetail_20' ) start [2025-09-19 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15866755', 'tblTempUsageDetail_20' ) end [2025-09-19 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-19 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-19 07:25:25] Production.INFO: ==20198== Releasing lock... [2025-09-19 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 07:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-09-19 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 05:25:05 [end_date_ymd] => 2025-09-19 08:25:05 [RateCDR] => 1 ) [2025-09-19 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-09-19 05:25:05' and `end` < '2025-09-19 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-09-19 08:25:17] Production.INFO: count ==462 [2025-09-19 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-19 05:25:05 - End Time 2025-09-19 08:25:05 [2025-09-19 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15867002', 'tblTempUsageDetail_20' ) start [2025-09-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15867002', 'tblTempUsageDetail_20' ) end [2025-09-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15867002', 'tblTempVendorCDR_20' ) start [2025-09-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15867002', 'tblTempVendorCDR_20' ) end [2025-09-19 08:25:17] Production.INFO: ProcessCDR(1,15867002,1,1,2) [2025-09-19 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15867002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15867002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15867002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15867002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15867002', 'tblTempUsageDetail_20' ) start [2025-09-19 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15867002', 'tblTempUsageDetail_20' ) end [2025-09-19 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-19 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-19 08:25:25] Production.INFO: ==24616== Releasing lock... [2025-09-19 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 08:25:25] Production.INFO: 31.75 MB #Memory Used# [2025-09-19 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 06:25:05 [end_date_ymd] => 2025-09-19 09:25:05 [RateCDR] => 1 ) [2025-09-19 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 06:25:05' and `end` < '2025-09-19 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 09:25:18] Production.INFO: count ==1374 [2025-09-19 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-19 06:25:05 - End Time 2025-09-19 09:25:05 [2025-09-19 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15867249', 'tblTempUsageDetail_20' ) start [2025-09-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15867249', 'tblTempUsageDetail_20' ) end [2025-09-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15867249', 'tblTempVendorCDR_20' ) start [2025-09-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15867249', 'tblTempVendorCDR_20' ) end [2025-09-19 09:25:18] Production.INFO: ProcessCDR(1,15867249,1,1,2) [2025-09-19 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15867249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15867249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15867249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15867249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15867249', 'tblTempUsageDetail_20' ) start [2025-09-19 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15867249', 'tblTempUsageDetail_20' ) end [2025-09-19 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-19 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-19 09:25:28] Production.INFO: ==29151== Releasing lock... [2025-09-19 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 09:25:28] Production.INFO: 38.75 MB #Memory Used# [2025-09-19 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 07:25:05 [end_date_ymd] => 2025-09-19 10:25:05 [RateCDR] => 1 ) [2025-09-19 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 07:25:05' and `end` < '2025-09-19 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 10:25:20] Production.INFO: count ==2909 [2025-09-19 10:25:22] Production.ERROR: pbx CDR StartTime 2025-09-19 07:25:05 - End Time 2025-09-19 10:25:05 [2025-09-19 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15867496', 'tblTempUsageDetail_20' ) start [2025-09-19 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15867496', 'tblTempUsageDetail_20' ) end [2025-09-19 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15867496', 'tblTempVendorCDR_20' ) start [2025-09-19 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15867496', 'tblTempVendorCDR_20' ) end [2025-09-19 10:25:22] Production.INFO: ProcessCDR(1,15867496,1,1,2) [2025-09-19 10:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15867496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15867496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15867496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15867496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15867496', 'tblTempUsageDetail_20' ) start [2025-09-19 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15867496', 'tblTempUsageDetail_20' ) end [2025-09-19 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-19 10:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-19 10:25:34] Production.INFO: ==1356== Releasing lock... [2025-09-19 10:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 10:25:34] Production.INFO: 50.25 MB #Memory Used# [2025-09-19 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 08:25:05 [end_date_ymd] => 2025-09-19 11:25:05 [RateCDR] => 1 ) [2025-09-19 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 08:25:05' and `end` < '2025-09-19 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 11:25:21] Production.INFO: count ==4278 [2025-09-19 11:25:23] Production.ERROR: pbx CDR StartTime 2025-09-19 08:25:05 - End Time 2025-09-19 11:25:05 [2025-09-19 11:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15867743', 'tblTempUsageDetail_20' ) start [2025-09-19 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15867743', 'tblTempUsageDetail_20' ) end [2025-09-19 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15867743', 'tblTempVendorCDR_20' ) start [2025-09-19 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15867743', 'tblTempVendorCDR_20' ) end [2025-09-19 11:25:23] Production.INFO: ProcessCDR(1,15867743,1,1,2) [2025-09-19 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15867743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15867743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15867743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 11:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15867743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15867743', 'tblTempUsageDetail_20' ) start [2025-09-19 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15867743', 'tblTempUsageDetail_20' ) end [2025-09-19 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-19 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-19 11:25:35] Production.INFO: ==5775== Releasing lock... [2025-09-19 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 11:25:35] Production.INFO: 60.25 MB #Memory Used# [2025-09-19 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 09:25:05 [end_date_ymd] => 2025-09-19 12:25:05 [RateCDR] => 1 ) [2025-09-19 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 09:25:05' and `end` < '2025-09-19 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 12:25:19] Production.INFO: count ==5200 [2025-09-19 12:25:21] Production.ERROR: pbx CDR StartTime 2025-09-19 09:25:05 - End Time 2025-09-19 12:25:05 [2025-09-19 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15867990', 'tblTempUsageDetail_20' ) start [2025-09-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15867990', 'tblTempUsageDetail_20' ) end [2025-09-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15867990', 'tblTempVendorCDR_20' ) start [2025-09-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15867990', 'tblTempVendorCDR_20' ) end [2025-09-19 12:25:22] Production.INFO: ProcessCDR(1,15867990,1,1,2) [2025-09-19 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15867990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15867990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15867990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15867990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15867990', 'tblTempUsageDetail_20' ) start [2025-09-19 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15867990', 'tblTempUsageDetail_20' ) end [2025-09-19 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-19 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-19 12:25:33] Production.INFO: ==10046== Releasing lock... [2025-09-19 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 12:25:33] Production.INFO: 67.25 MB #Memory Used# [2025-09-19 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 10:25:04 [end_date_ymd] => 2025-09-19 13:25:04 [RateCDR] => 1 ) [2025-09-19 13:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 10:25:04' and `end` < '2025-09-19 13:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 13:25:19] Production.INFO: count ==5440 [2025-09-19 13:25:21] Production.ERROR: pbx CDR StartTime 2025-09-19 10:25:04 - End Time 2025-09-19 13:25:04 [2025-09-19 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15868237', 'tblTempUsageDetail_20' ) start [2025-09-19 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15868237', 'tblTempUsageDetail_20' ) end [2025-09-19 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15868237', 'tblTempVendorCDR_20' ) start [2025-09-19 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15868237', 'tblTempVendorCDR_20' ) end [2025-09-19 13:25:22] Production.INFO: ProcessCDR(1,15868237,1,1,2) [2025-09-19 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15868237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15868237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15868237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15868237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15868237', 'tblTempUsageDetail_20' ) start [2025-09-19 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15868237', 'tblTempUsageDetail_20' ) end [2025-09-19 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-19 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-19 13:25:33] Production.INFO: ==14400== Releasing lock... [2025-09-19 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 13:25:33] Production.INFO: 69 MB #Memory Used# [2025-09-19 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 11:25:05 [end_date_ymd] => 2025-09-19 14:25:05 [RateCDR] => 1 ) [2025-09-19 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 11:25:05' and `end` < '2025-09-19 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 14:25:20] Production.INFO: count ==5729 [2025-09-19 14:25:22] Production.ERROR: pbx CDR StartTime 2025-09-19 11:25:05 - End Time 2025-09-19 14:25:05 [2025-09-19 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15868484', 'tblTempUsageDetail_20' ) start [2025-09-19 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15868484', 'tblTempUsageDetail_20' ) end [2025-09-19 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15868484', 'tblTempVendorCDR_20' ) start [2025-09-19 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15868484', 'tblTempVendorCDR_20' ) end [2025-09-19 14:25:23] Production.INFO: ProcessCDR(1,15868484,1,1,2) [2025-09-19 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15868484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15868484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15868484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15868484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15868484', 'tblTempUsageDetail_20' ) start [2025-09-19 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15868484', 'tblTempUsageDetail_20' ) end [2025-09-19 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-19 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-19 14:25:35] Production.INFO: ==18622== Releasing lock... [2025-09-19 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 14:25:35] Production.INFO: 71 MB #Memory Used# [2025-09-19 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 12:25:05 [end_date_ymd] => 2025-09-19 15:25:05 [RateCDR] => 1 ) [2025-09-19 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 12:25:05' and `end` < '2025-09-19 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 15:25:19] Production.INFO: count ==5815 [2025-09-19 15:25:22] Production.ERROR: pbx CDR StartTime 2025-09-19 12:25:05 - End Time 2025-09-19 15:25:05 [2025-09-19 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15868731', 'tblTempUsageDetail_20' ) start [2025-09-19 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15868731', 'tblTempUsageDetail_20' ) end [2025-09-19 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15868731', 'tblTempVendorCDR_20' ) start [2025-09-19 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15868731', 'tblTempVendorCDR_20' ) end [2025-09-19 15:25:22] Production.INFO: ProcessCDR(1,15868731,1,1,2) [2025-09-19 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15868731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15868731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15868731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15868731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15868731', 'tblTempUsageDetail_20' ) start [2025-09-19 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15868731', 'tblTempUsageDetail_20' ) end [2025-09-19 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-19 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-19 15:25:34] Production.INFO: ==23432== Releasing lock... [2025-09-19 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 15:25:34] Production.INFO: 71.75 MB #Memory Used# [2025-09-19 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 13:25:05 [end_date_ymd] => 2025-09-19 16:25:05 [RateCDR] => 1 ) [2025-09-19 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 13:25:05' and `end` < '2025-09-19 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 16:25:21] Production.INFO: count ==6315 [2025-09-19 16:25:24] Production.ERROR: pbx CDR StartTime 2025-09-19 13:25:05 - End Time 2025-09-19 16:25:05 [2025-09-19 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15868978', 'tblTempUsageDetail_20' ) start [2025-09-19 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15868978', 'tblTempUsageDetail_20' ) end [2025-09-19 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15868978', 'tblTempVendorCDR_20' ) start [2025-09-19 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15868978', 'tblTempVendorCDR_20' ) end [2025-09-19 16:25:24] Production.INFO: ProcessCDR(1,15868978,1,1,2) [2025-09-19 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15868978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15868978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15868978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 16:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15868978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15868978', 'tblTempUsageDetail_20' ) start [2025-09-19 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15868978', 'tblTempUsageDetail_20' ) end [2025-09-19 16:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-19 16:25:37] Production.ERROR: pbx prc_insertCDR end [2025-09-19 16:25:37] Production.INFO: ==27674== Releasing lock... [2025-09-19 16:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 16:25:37] Production.INFO: 75.5 MB #Memory Used# [2025-09-19 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 14:25:05 [end_date_ymd] => 2025-09-19 17:25:05 [RateCDR] => 1 ) [2025-09-19 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 14:25:05' and `end` < '2025-09-19 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 17:25:22] Production.INFO: count ==6157 [2025-09-19 17:25:25] Production.ERROR: pbx CDR StartTime 2025-09-19 14:25:05 - End Time 2025-09-19 17:25:05 [2025-09-19 17:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 17:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15869225', 'tblTempUsageDetail_20' ) start [2025-09-19 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15869225', 'tblTempUsageDetail_20' ) end [2025-09-19 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15869225', 'tblTempVendorCDR_20' ) start [2025-09-19 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15869225', 'tblTempVendorCDR_20' ) end [2025-09-19 17:25:26] Production.INFO: ProcessCDR(1,15869225,1,1,2) [2025-09-19 17:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15869225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 17:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15869225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 17:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15869225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 17:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15869225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 17:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15869225', 'tblTempUsageDetail_20' ) start [2025-09-19 17:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15869225', 'tblTempUsageDetail_20' ) end [2025-09-19 17:25:36] Production.ERROR: pbx prc_insertCDR start [2025-09-19 17:25:39] Production.ERROR: pbx prc_insertCDR end [2025-09-19 17:25:39] Production.INFO: ==31984== Releasing lock... [2025-09-19 17:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 17:25:39] Production.INFO: 74.25 MB #Memory Used# [2025-09-19 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 15:25:05 [end_date_ymd] => 2025-09-19 18:25:05 [RateCDR] => 1 ) [2025-09-19 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 15:25:05' and `end` < '2025-09-19 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 18:25:18] Production.INFO: count ==5290 [2025-09-19 18:25:27] Production.ERROR: pbx CDR StartTime 2025-09-19 15:25:05 - End Time 2025-09-19 18:25:05 [2025-09-19 18:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 18:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15869472', 'tblTempUsageDetail_20' ) start [2025-09-19 18:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15869472', 'tblTempUsageDetail_20' ) end [2025-09-19 18:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15869472', 'tblTempVendorCDR_20' ) start [2025-09-19 18:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15869472', 'tblTempVendorCDR_20' ) end [2025-09-19 18:25:32] Production.INFO: ProcessCDR(1,15869472,1,1,2) [2025-09-19 18:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15869472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 18:25:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15869472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 18:25:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15869472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 18:27:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15869472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 18:27:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15869472', 'tblTempUsageDetail_20' ) start [2025-09-19 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15869472', 'tblTempUsageDetail_20' ) end [2025-09-19 18:27:25] Production.ERROR: pbx prc_insertCDR start [2025-09-19 18:27:28] Production.ERROR: pbx prc_insertCDR end [2025-09-19 18:27:32] Production.INFO: ==4769== Releasing lock... [2025-09-19 18:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 18:27:32] Production.INFO: 67.75 MB #Memory Used# [2025-09-19 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 16:25:04 [end_date_ymd] => 2025-09-19 19:25:04 [RateCDR] => 1 ) [2025-09-19 19:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 16:25:04' and `end` < '2025-09-19 19:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 19:25:17] Production.INFO: count ==3690 [2025-09-19 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-19 16:25:04 - End Time 2025-09-19 19:25:04 [2025-09-19 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15869716', 'tblTempUsageDetail_20' ) start [2025-09-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15869716', 'tblTempUsageDetail_20' ) end [2025-09-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15869716', 'tblTempVendorCDR_20' ) start [2025-09-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15869716', 'tblTempVendorCDR_20' ) end [2025-09-19 19:25:19] Production.INFO: ProcessCDR(1,15869716,1,1,2) [2025-09-19 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15869716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15869716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15869716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15869716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15869716', 'tblTempUsageDetail_20' ) start [2025-09-19 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15869716', 'tblTempUsageDetail_20' ) end [2025-09-19 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-19 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-19 19:25:29] Production.INFO: ==9075== Releasing lock... [2025-09-19 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 19:25:29] Production.INFO: 56.75 MB #Memory Used# [2025-09-19 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 17:25:05 [end_date_ymd] => 2025-09-19 20:25:05 [RateCDR] => 1 ) [2025-09-19 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-09-19 17:25:05' and `end` < '2025-09-19 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-09-19 20:25:18] Production.INFO: count ==2487 [2025-09-19 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-19 17:25:05 - End Time 2025-09-19 20:25:05 [2025-09-19 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15869963', 'tblTempUsageDetail_20' ) start [2025-09-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15869963', 'tblTempUsageDetail_20' ) end [2025-09-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15869963', 'tblTempVendorCDR_20' ) start [2025-09-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15869963', 'tblTempVendorCDR_20' ) end [2025-09-19 20:25:19] Production.INFO: ProcessCDR(1,15869963,1,1,2) [2025-09-19 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15869963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15869963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15869963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15869963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15869963', 'tblTempUsageDetail_20' ) start [2025-09-19 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15869963', 'tblTempUsageDetail_20' ) end [2025-09-19 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-19 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-19 20:25:28] Production.INFO: ==13411== Releasing lock... [2025-09-19 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 20:25:28] Production.INFO: 46.75 MB #Memory Used# [2025-09-19 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 18:25:05 [end_date_ymd] => 2025-09-19 21:25:05 [RateCDR] => 1 ) [2025-09-19 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 18:25:05' and `end` < '2025-09-19 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 21:25:17] Production.INFO: count ==1903 [2025-09-19 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-19 18:25:05 - End Time 2025-09-19 21:25:05 [2025-09-19 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15870210', 'tblTempUsageDetail_20' ) start [2025-09-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15870210', 'tblTempUsageDetail_20' ) end [2025-09-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15870210', 'tblTempVendorCDR_20' ) start [2025-09-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15870210', 'tblTempVendorCDR_20' ) end [2025-09-19 21:25:18] Production.INFO: ProcessCDR(1,15870210,1,1,2) [2025-09-19 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15870210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15870210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15870210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15870210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15870210', 'tblTempUsageDetail_20' ) start [2025-09-19 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15870210', 'tblTempUsageDetail_20' ) end [2025-09-19 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-19 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-19 21:25:27] Production.INFO: ==17685== Releasing lock... [2025-09-19 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 21:25:27] Production.INFO: 42.5 MB #Memory Used# [2025-09-19 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 19:25:06 [end_date_ymd] => 2025-09-19 22:25:06 [RateCDR] => 1 ) [2025-09-19 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-09-19 19:25:06' and `end` < '2025-09-19 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-09-19 22:25:18] Production.INFO: count ==1597 [2025-09-19 22:25:19] Production.ERROR: pbx CDR StartTime 2025-09-19 19:25:06 - End Time 2025-09-19 22:25:06 [2025-09-19 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15870457', 'tblTempUsageDetail_20' ) start [2025-09-19 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15870457', 'tblTempUsageDetail_20' ) end [2025-09-19 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15870457', 'tblTempVendorCDR_20' ) start [2025-09-19 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15870457', 'tblTempVendorCDR_20' ) end [2025-09-19 22:25:19] Production.INFO: ProcessCDR(1,15870457,1,1,2) [2025-09-19 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15870457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15870457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15870457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15870457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15870457', 'tblTempUsageDetail_20' ) start [2025-09-19 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15870457', 'tblTempUsageDetail_20' ) end [2025-09-19 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-19 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-19 22:25:27] Production.INFO: ==22250== Releasing lock... [2025-09-19 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 22:25:27] Production.INFO: 40 MB #Memory Used# [2025-09-19 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 20:25:06 [end_date_ymd] => 2025-09-19 23:25:06 [RateCDR] => 1 ) [2025-09-19 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-19 20:25:06' and `end` < '2025-09-19 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-19 23:25:18] Production.INFO: count ==1280 [2025-09-19 23:25:19] Production.ERROR: pbx CDR StartTime 2025-09-19 20:25:06 - End Time 2025-09-19 23:25:06 [2025-09-19 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-19 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15870704', 'tblTempUsageDetail_20' ) start [2025-09-19 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15870704', 'tblTempUsageDetail_20' ) end [2025-09-19 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15870704', 'tblTempVendorCDR_20' ) start [2025-09-19 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15870704', 'tblTempVendorCDR_20' ) end [2025-09-19 23:25:19] Production.INFO: ProcessCDR(1,15870704,1,1,2) [2025-09-19 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15870704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 23:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15870704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-19 23:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15870704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15870704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-19 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15870704', 'tblTempUsageDetail_20' ) start [2025-09-19 23:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15870704', 'tblTempUsageDetail_20' ) end [2025-09-19 23:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-19 23:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-19 23:25:28] Production.INFO: ==27625== Releasing lock... [2025-09-19 23:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-19 23:25:28] Production.INFO: 38 MB #Memory Used#