[2025-12-09 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-08 21:00:07 [end_date_ymd] => 2025-12-09 00:00:07 [RateCDR] => 1 ) [2025-12-09 00:00:07] 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-12-08 21:00:07' and `end` < '2025-12-09 00:00:07' 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-12-09 00:00:19] Production.INFO: count ==658 [2025-12-09 00:00:20] Production.ERROR: pbx CDR StartTime 2025-12-08 21:00:07 - End Time 2025-12-09 00:00:07 [2025-12-09 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16345335', 'tblTempUsageDetail_20' ) start [2025-12-09 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16345335', 'tblTempUsageDetail_20' ) end [2025-12-09 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16345335', 'tblTempVendorCDR_20' ) start [2025-12-09 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16345335', 'tblTempVendorCDR_20' ) end [2025-12-09 00:00:20] Production.INFO: ProcessCDR(1,16345335,1,1,2) [2025-12-09 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16345335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 00:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16345335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 00:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16345335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 00:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16345335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16345335', 'tblTempUsageDetail_20' ) start [2025-12-09 00:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16345335', 'tblTempUsageDetail_20' ) end [2025-12-09 00:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-09 00:00:36] Production.ERROR: pbx prc_insertCDR end [2025-12-09 00:00:39] Production.INFO: ==32137== Releasing lock... [2025-12-09 00:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 00:00:39] Production.INFO: 36.25 MB #Memory Used# [2025-12-09 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-08 22:00:06 [end_date_ymd] => 2025-12-09 01:00:06 [RateCDR] => 1 ) [2025-12-09 01:00: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-12-08 22:00:06' and `end` < '2025-12-09 01:00: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-12-09 01:00:17] Production.INFO: count ==422 [2025-12-09 01:00:18] Production.ERROR: pbx CDR StartTime 2025-12-08 22:00:06 - End Time 2025-12-09 01:00:06 [2025-12-09 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16345582', 'tblTempUsageDetail_20' ) start [2025-12-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16345582', 'tblTempUsageDetail_20' ) end [2025-12-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16345582', 'tblTempVendorCDR_20' ) start [2025-12-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16345582', 'tblTempVendorCDR_20' ) end [2025-12-09 01:00:18] Production.INFO: ProcessCDR(1,16345582,1,1,2) [2025-12-09 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16345582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 01:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16345582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 01:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16345582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 01:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16345582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 01:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16345582', 'tblTempUsageDetail_20' ) start [2025-12-09 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16345582', 'tblTempUsageDetail_20' ) end [2025-12-09 01:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-09 01:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-09 01:00:28] Production.INFO: ==5004== Releasing lock... [2025-12-09 01:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 01:00:28] Production.INFO: 31.5 MB #Memory Used# [2025-12-09 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-08 23:00:06 [end_date_ymd] => 2025-12-09 02:00:06 [RateCDR] => 1 ) [2025-12-09 02:00: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-12-08 23:00:06' and `end` < '2025-12-09 02:00: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-12-09 02:00:18] Production.INFO: count ==377 [2025-12-09 02:00:18] Production.ERROR: pbx CDR StartTime 2025-12-08 23:00:06 - End Time 2025-12-09 02:00:06 [2025-12-09 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16345829', 'tblTempUsageDetail_20' ) start [2025-12-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16345829', 'tblTempUsageDetail_20' ) end [2025-12-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16345829', 'tblTempVendorCDR_20' ) start [2025-12-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16345829', 'tblTempVendorCDR_20' ) end [2025-12-09 02:00:18] Production.INFO: ProcessCDR(1,16345829,1,1,2) [2025-12-09 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16345829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 02:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16345829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 02:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16345829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 02:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16345829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 02:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16345829', 'tblTempUsageDetail_20' ) start [2025-12-09 02:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16345829', 'tblTempUsageDetail_20' ) end [2025-12-09 02:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-09 02:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-09 02:00:28] Production.INFO: ==9414== Releasing lock... [2025-12-09 02:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 02:00:28] Production.INFO: 31.5 MB #Memory Used# [2025-12-09 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 00:00:06 [end_date_ymd] => 2025-12-09 03:00:06 [RateCDR] => 1 ) [2025-12-09 03:00: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-12-09 00:00:06' and `end` < '2025-12-09 03:00: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-12-09 03:00:18] Production.INFO: count ==372 [2025-12-09 03:00:18] Production.ERROR: pbx CDR StartTime 2025-12-09 00:00:06 - End Time 2025-12-09 03:00:06 [2025-12-09 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16346076', 'tblTempUsageDetail_20' ) start [2025-12-09 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16346076', 'tblTempUsageDetail_20' ) end [2025-12-09 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16346076', 'tblTempVendorCDR_20' ) start [2025-12-09 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16346076', 'tblTempVendorCDR_20' ) end [2025-12-09 03:00:18] Production.INFO: ProcessCDR(1,16346076,1,1,2) [2025-12-09 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16346076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16346076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16346076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 03:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16346076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 03:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16346076', 'tblTempUsageDetail_20' ) start [2025-12-09 03:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16346076', 'tblTempUsageDetail_20' ) end [2025-12-09 03:00:27] Production.ERROR: pbx prc_insertCDR start [2025-12-09 03:00:27] Production.ERROR: pbx prc_insertCDR end [2025-12-09 03:00:27] Production.INFO: ==14173== Releasing lock... [2025-12-09 03:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 03:00:27] Production.INFO: 31.5 MB #Memory Used# [2025-12-09 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 01:00:06 [end_date_ymd] => 2025-12-09 04:00:06 [RateCDR] => 1 ) [2025-12-09 04:00: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-12-09 01:00:06' and `end` < '2025-12-09 04:00: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-12-09 04:00:18] Production.INFO: count ==241 [2025-12-09 04:00:18] Production.ERROR: pbx CDR StartTime 2025-12-09 01:00:06 - End Time 2025-12-09 04:00:06 [2025-12-09 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16346324', 'tblTempUsageDetail_20' ) start [2025-12-09 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16346324', 'tblTempUsageDetail_20' ) end [2025-12-09 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16346324', 'tblTempVendorCDR_20' ) start [2025-12-09 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16346324', 'tblTempVendorCDR_20' ) end [2025-12-09 04:00:18] Production.INFO: ProcessCDR(1,16346324,1,1,2) [2025-12-09 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16346324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 04:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16346324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 04:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16346324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 04:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16346324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 04:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16346324', 'tblTempUsageDetail_20' ) start [2025-12-09 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16346324', 'tblTempUsageDetail_20' ) end [2025-12-09 04:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-09 04:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-09 04:00:29] Production.INFO: ==18937== Releasing lock... [2025-12-09 04:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 04:00:29] Production.INFO: 30.5 MB #Memory Used# [2025-12-09 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 02:00:06 [end_date_ymd] => 2025-12-09 05:00:06 [RateCDR] => 1 ) [2025-12-09 05:00: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-12-09 02:00:06' and `end` < '2025-12-09 05:00: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-12-09 05:00:18] Production.INFO: count ==209 [2025-12-09 05:00:18] Production.ERROR: pbx CDR StartTime 2025-12-09 02:00:06 - End Time 2025-12-09 05:00:06 [2025-12-09 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16346572', 'tblTempUsageDetail_20' ) start [2025-12-09 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16346572', 'tblTempUsageDetail_20' ) end [2025-12-09 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16346572', 'tblTempVendorCDR_20' ) start [2025-12-09 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16346572', 'tblTempVendorCDR_20' ) end [2025-12-09 05:00:18] Production.INFO: ProcessCDR(1,16346572,1,1,2) [2025-12-09 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16346572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16346572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16346572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 05:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16346572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16346572', 'tblTempUsageDetail_20' ) start [2025-12-09 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16346572', 'tblTempUsageDetail_20' ) end [2025-12-09 05:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-09 05:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-09 05:00:28] Production.INFO: ==23908== Releasing lock... [2025-12-09 05:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 05:00:28] Production.INFO: 30 MB #Memory Used# [2025-12-09 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 03:00:06 [end_date_ymd] => 2025-12-09 06:00:06 [RateCDR] => 1 ) [2025-12-09 06:00: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-12-09 03:00:06' and `end` < '2025-12-09 06:00: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-12-09 06:00:18] Production.INFO: count ==166 [2025-12-09 06:00:18] Production.ERROR: pbx CDR StartTime 2025-12-09 03:00:06 - End Time 2025-12-09 06:00:06 [2025-12-09 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16346818', 'tblTempUsageDetail_20' ) start [2025-12-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16346818', 'tblTempUsageDetail_20' ) end [2025-12-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16346818', 'tblTempVendorCDR_20' ) start [2025-12-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16346818', 'tblTempVendorCDR_20' ) end [2025-12-09 06:00:18] Production.INFO: ProcessCDR(1,16346818,1,1,2) [2025-12-09 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16346818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 06:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16346818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 06:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16346818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 06:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16346818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16346818', 'tblTempUsageDetail_20' ) start [2025-12-09 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16346818', 'tblTempUsageDetail_20' ) end [2025-12-09 06:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-09 06:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-09 06:00:29] Production.INFO: ==28674== Releasing lock... [2025-12-09 06:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 06:00:29] Production.INFO: 29.5 MB #Memory Used# [2025-12-09 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 04:00:06 [end_date_ymd] => 2025-12-09 07:00:06 [RateCDR] => 1 ) [2025-12-09 07:00: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-12-09 04:00:06' and `end` < '2025-12-09 07:00: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-12-09 07:00:18] Production.INFO: count ==161 [2025-12-09 07:00:18] Production.ERROR: pbx CDR StartTime 2025-12-09 04:00:06 - End Time 2025-12-09 07:00:06 [2025-12-09 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16347065', 'tblTempUsageDetail_20' ) start [2025-12-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16347065', 'tblTempUsageDetail_20' ) end [2025-12-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16347065', 'tblTempVendorCDR_20' ) start [2025-12-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16347065', 'tblTempVendorCDR_20' ) end [2025-12-09 07:00:18] Production.INFO: ProcessCDR(1,16347065,1,1,2) [2025-12-09 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16347065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 07:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16347065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 07:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16347065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 07:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16347065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16347065', 'tblTempUsageDetail_20' ) start [2025-12-09 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16347065', 'tblTempUsageDetail_20' ) end [2025-12-09 07:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-09 07:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-09 07:00:28] Production.INFO: ==2061== Releasing lock... [2025-12-09 07:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 07:00:28] Production.INFO: 29.5 MB #Memory Used# [2025-12-09 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 05:00:06 [end_date_ymd] => 2025-12-09 08:00:06 [RateCDR] => 1 ) [2025-12-09 08:00: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-12-09 05:00:06' and `end` < '2025-12-09 08:00: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-12-09 08:00:17] Production.INFO: count ==203 [2025-12-09 08:00:17] Production.ERROR: pbx CDR StartTime 2025-12-09 05:00:06 - End Time 2025-12-09 08:00:06 [2025-12-09 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16347313', 'tblTempUsageDetail_20' ) start [2025-12-09 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16347313', 'tblTempUsageDetail_20' ) end [2025-12-09 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16347313', 'tblTempVendorCDR_20' ) start [2025-12-09 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16347313', 'tblTempVendorCDR_20' ) end [2025-12-09 08:00:17] Production.INFO: ProcessCDR(1,16347313,1,1,2) [2025-12-09 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16347313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16347313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16347313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16347313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16347313', 'tblTempUsageDetail_20' ) start [2025-12-09 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16347313', 'tblTempUsageDetail_20' ) end [2025-12-09 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-09 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-09 08:00:28] Production.INFO: ==8653== Releasing lock... [2025-12-09 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 08:00:28] Production.INFO: 29.75 MB #Memory Used# [2025-12-09 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 06:00:05 [end_date_ymd] => 2025-12-09 09:00:05 [RateCDR] => 1 ) [2025-12-09 09:00: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-12-09 06:00:05' and `end` < '2025-12-09 09:00: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-12-09 09:00:17] Production.INFO: count ==735 [2025-12-09 09:00:17] Production.ERROR: pbx CDR StartTime 2025-12-09 06:00:05 - End Time 2025-12-09 09:00:05 [2025-12-09 09:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16347560', 'tblTempUsageDetail_20' ) start [2025-12-09 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16347560', 'tblTempUsageDetail_20' ) end [2025-12-09 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16347560', 'tblTempVendorCDR_20' ) start [2025-12-09 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16347560', 'tblTempVendorCDR_20' ) end [2025-12-09 09:00:17] Production.INFO: ProcessCDR(1,16347560,1,1,2) [2025-12-09 09:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16347560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16347560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16347560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 09:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16347560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16347560', 'tblTempUsageDetail_20' ) start [2025-12-09 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16347560', 'tblTempUsageDetail_20' ) end [2025-12-09 09:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-09 09:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-09 09:00:29] Production.INFO: ==14916== Releasing lock... [2025-12-09 09:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 09:00:29] Production.INFO: 34.25 MB #Memory Used# [2025-12-09 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 07:00:06 [end_date_ymd] => 2025-12-09 10:00:06 [RateCDR] => 1 ) [2025-12-09 10:00: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-12-09 07:00:06' and `end` < '2025-12-09 10:00: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-12-09 10:00:20] Production.INFO: count ==2259 [2025-12-09 10:00:21] Production.ERROR: pbx CDR StartTime 2025-12-09 07:00:06 - End Time 2025-12-09 10:00:06 [2025-12-09 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16347807', 'tblTempUsageDetail_20' ) start [2025-12-09 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16347807', 'tblTempUsageDetail_20' ) end [2025-12-09 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16347807', 'tblTempVendorCDR_20' ) start [2025-12-09 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16347807', 'tblTempVendorCDR_20' ) end [2025-12-09 10:00:21] Production.INFO: ProcessCDR(1,16347807,1,1,2) [2025-12-09 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16347807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 10:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16347807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 10:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16347807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 10:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16347807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 10:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16347807', 'tblTempUsageDetail_20' ) start [2025-12-09 10:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16347807', 'tblTempUsageDetail_20' ) end [2025-12-09 10:00:33] Production.ERROR: pbx prc_insertCDR start [2025-12-09 10:00:35] Production.ERROR: pbx prc_insertCDR end [2025-12-09 10:00:35] Production.INFO: ==21274== Releasing lock... [2025-12-09 10:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 10:00:35] Production.INFO: 45.25 MB #Memory Used# [2025-12-09 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 08:00:05 [end_date_ymd] => 2025-12-09 11:00:05 [RateCDR] => 1 ) [2025-12-09 11:00: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-12-09 08:00:05' and `end` < '2025-12-09 11:00: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-12-09 11:00:19] Production.INFO: count ==4087 [2025-12-09 11:00:21] Production.ERROR: pbx CDR StartTime 2025-12-09 08:00:05 - End Time 2025-12-09 11:00:05 [2025-12-09 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16348054', 'tblTempUsageDetail_20' ) start [2025-12-09 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16348054', 'tblTempUsageDetail_20' ) end [2025-12-09 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16348054', 'tblTempVendorCDR_20' ) start [2025-12-09 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16348054', 'tblTempVendorCDR_20' ) end [2025-12-09 11:00:21] Production.INFO: ProcessCDR(1,16348054,1,1,2) [2025-12-09 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16348054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 11:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16348054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 11:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16348054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16348054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16348054', 'tblTempUsageDetail_20' ) start [2025-12-09 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16348054', 'tblTempUsageDetail_20' ) end [2025-12-09 11:00:34] Production.ERROR: pbx prc_insertCDR start [2025-12-09 11:00:36] Production.ERROR: pbx prc_insertCDR end [2025-12-09 11:00:36] Production.INFO: ==27774== Releasing lock... [2025-12-09 11:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 11:00:36] Production.INFO: 58.75 MB #Memory Used# [2025-12-09 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 09:00:05 [end_date_ymd] => 2025-12-09 12:00:05 [RateCDR] => 1 ) [2025-12-09 12:00: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-12-09 09:00:05' and `end` < '2025-12-09 12:00: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-12-09 12:00:20] Production.INFO: count ==5393 [2025-12-09 12:00:23] Production.ERROR: pbx CDR StartTime 2025-12-09 09:00:05 - End Time 2025-12-09 12:00:05 [2025-12-09 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16348301', 'tblTempUsageDetail_20' ) start [2025-12-09 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16348301', 'tblTempUsageDetail_20' ) end [2025-12-09 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16348301', 'tblTempVendorCDR_20' ) start [2025-12-09 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16348301', 'tblTempVendorCDR_20' ) end [2025-12-09 12:00:23] Production.INFO: ProcessCDR(1,16348301,1,1,2) [2025-12-09 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16348301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 12:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16348301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 12:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16348301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 12:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16348301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16348301', 'tblTempUsageDetail_20' ) start [2025-12-09 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16348301', 'tblTempUsageDetail_20' ) end [2025-12-09 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-12-09 12:00:40] Production.ERROR: pbx prc_insertCDR end [2025-12-09 12:00:40] Production.INFO: ==1652== Releasing lock... [2025-12-09 12:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 12:00:40] Production.INFO: 68.5 MB #Memory Used# [2025-12-09 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 10:00:06 [end_date_ymd] => 2025-12-09 13:00:06 [RateCDR] => 1 ) [2025-12-09 13:00: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-12-09 10:00:06' and `end` < '2025-12-09 13:00: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-12-09 13:00:20] Production.INFO: count ==5515 [2025-12-09 13:00:23] Production.ERROR: pbx CDR StartTime 2025-12-09 10:00:06 - End Time 2025-12-09 13:00:06 [2025-12-09 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16348548', 'tblTempUsageDetail_20' ) start [2025-12-09 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16348548', 'tblTempUsageDetail_20' ) end [2025-12-09 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16348548', 'tblTempVendorCDR_20' ) start [2025-12-09 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16348548', 'tblTempVendorCDR_20' ) end [2025-12-09 13:00:23] Production.INFO: ProcessCDR(1,16348548,1,1,2) [2025-12-09 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16348548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 13:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16348548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 13:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16348548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 13:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16348548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 13:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16348548', 'tblTempUsageDetail_20' ) start [2025-12-09 13:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16348548', 'tblTempUsageDetail_20' ) end [2025-12-09 13:00:35] Production.ERROR: pbx prc_insertCDR start [2025-12-09 13:00:38] Production.ERROR: pbx prc_insertCDR end [2025-12-09 13:00:38] Production.INFO: ==6261== Releasing lock... [2025-12-09 13:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 13:00:38] Production.INFO: 69.5 MB #Memory Used# [2025-12-09 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 11:00:06 [end_date_ymd] => 2025-12-09 14:00:06 [RateCDR] => 1 ) [2025-12-09 14:00: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-12-09 11:00:06' and `end` < '2025-12-09 14:00: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-12-09 14:00:21] Production.INFO: count ==5577 [2025-12-09 14:00:23] Production.ERROR: pbx CDR StartTime 2025-12-09 11:00:06 - End Time 2025-12-09 14:00:06 [2025-12-09 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16348795', 'tblTempUsageDetail_20' ) start [2025-12-09 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16348795', 'tblTempUsageDetail_20' ) end [2025-12-09 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16348795', 'tblTempVendorCDR_20' ) start [2025-12-09 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16348795', 'tblTempVendorCDR_20' ) end [2025-12-09 14:00:24] Production.INFO: ProcessCDR(1,16348795,1,1,2) [2025-12-09 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16348795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 14:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16348795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 14:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16348795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 14:03:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16348795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 14:03:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16348795', 'tblTempUsageDetail_20' ) start [2025-12-09 14:03:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16348795', 'tblTempUsageDetail_20' ) end [2025-12-09 14:03:44] Production.ERROR: pbx prc_insertCDR start [2025-12-09 14:03:46] Production.ERROR: pbx prc_insertCDR end [2025-12-09 14:03:46] Production.INFO: ==10644== Releasing lock... [2025-12-09 14:03:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 14:03:46] Production.INFO: 70 MB #Memory Used# [2025-12-09 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 12:00:06 [end_date_ymd] => 2025-12-09 15:00:06 [RateCDR] => 1 ) [2025-12-09 15:00: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-12-09 12:00:06' and `end` < '2025-12-09 15:00: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-12-09 15:00:20] Production.INFO: count ==5656 [2025-12-09 15:00:23] Production.ERROR: pbx CDR StartTime 2025-12-09 12:00:06 - End Time 2025-12-09 15:00:06 [2025-12-09 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16349041', 'tblTempUsageDetail_20' ) start [2025-12-09 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16349041', 'tblTempUsageDetail_20' ) end [2025-12-09 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16349041', 'tblTempVendorCDR_20' ) start [2025-12-09 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16349041', 'tblTempVendorCDR_20' ) end [2025-12-09 15:00:23] Production.INFO: ProcessCDR(1,16349041,1,1,2) [2025-12-09 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16349041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 15:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16349041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 15:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16349041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 15:06:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16349041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 15:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16349041', 'tblTempUsageDetail_20' ) start [2025-12-09 15:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16349041', 'tblTempUsageDetail_20' ) end [2025-12-09 15:06:51] Production.ERROR: pbx prc_insertCDR start [2025-12-09 15:06:53] Production.ERROR: pbx prc_insertCDR end [2025-12-09 15:06:53] Production.INFO: ==15103== Releasing lock... [2025-12-09 15:06:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 15:06:53] Production.INFO: 70.5 MB #Memory Used# [2025-12-09 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 13:00:06 [end_date_ymd] => 2025-12-09 16:00:06 [RateCDR] => 1 ) [2025-12-09 16:00: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-12-09 13:00:06' and `end` < '2025-12-09 16:00: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-12-09 16:00:22] Production.INFO: count ==6220 [2025-12-09 16:00:25] Production.ERROR: pbx CDR StartTime 2025-12-09 13:00:06 - End Time 2025-12-09 16:00:06 [2025-12-09 16:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16349289', 'tblTempUsageDetail_20' ) start [2025-12-09 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16349289', 'tblTempUsageDetail_20' ) end [2025-12-09 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16349289', 'tblTempVendorCDR_20' ) start [2025-12-09 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16349289', 'tblTempVendorCDR_20' ) end [2025-12-09 16:00:26] Production.INFO: ProcessCDR(1,16349289,1,1,2) [2025-12-09 16:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16349289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 16:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16349289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 16:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16349289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 16:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16349289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 16:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16349289', 'tblTempUsageDetail_20' ) start [2025-12-09 16:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16349289', 'tblTempUsageDetail_20' ) end [2025-12-09 16:06:35] Production.ERROR: pbx prc_insertCDR start [2025-12-09 16:06:37] Production.ERROR: pbx prc_insertCDR end [2025-12-09 16:06:37] Production.INFO: ==19866== Releasing lock... [2025-12-09 16:06:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 16:06:37] Production.INFO: 74.75 MB #Memory Used# [2025-12-09 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 14:00:06 [end_date_ymd] => 2025-12-09 17:00:06 [RateCDR] => 1 ) [2025-12-09 17:00: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-12-09 14:00:06' and `end` < '2025-12-09 17:00: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-12-09 17:00:20] Production.INFO: count ==5936 [2025-12-09 17:00:23] Production.ERROR: pbx CDR StartTime 2025-12-09 14:00:06 - End Time 2025-12-09 17:00:06 [2025-12-09 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16349536', 'tblTempUsageDetail_20' ) start [2025-12-09 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16349536', 'tblTempUsageDetail_20' ) end [2025-12-09 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16349536', 'tblTempVendorCDR_20' ) start [2025-12-09 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16349536', 'tblTempVendorCDR_20' ) end [2025-12-09 17:00:24] Production.INFO: ProcessCDR(1,16349536,1,1,2) [2025-12-09 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16349536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 17:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16349536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 17:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16349536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 17:07:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16349536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 17:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16349536', 'tblTempUsageDetail_20' ) start [2025-12-09 17:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16349536', 'tblTempUsageDetail_20' ) end [2025-12-09 17:07:18] Production.ERROR: pbx prc_insertCDR start [2025-12-09 17:07:21] Production.ERROR: pbx prc_insertCDR end [2025-12-09 17:07:21] Production.INFO: ==24690== Releasing lock... [2025-12-09 17:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 17:07:21] Production.INFO: 72.75 MB #Memory Used# [2025-12-09 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 15:00:06 [end_date_ymd] => 2025-12-09 18:00:06 [RateCDR] => 1 ) [2025-12-09 18:00: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-12-09 15:00:06' and `end` < '2025-12-09 18:00: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-12-09 18:00:19] Production.INFO: count ==5384 [2025-12-09 18:00:21] Production.ERROR: pbx CDR StartTime 2025-12-09 15:00:06 - End Time 2025-12-09 18:00:06 [2025-12-09 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16349780', 'tblTempUsageDetail_20' ) start [2025-12-09 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16349780', 'tblTempUsageDetail_20' ) end [2025-12-09 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16349780', 'tblTempVendorCDR_20' ) start [2025-12-09 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16349780', 'tblTempVendorCDR_20' ) end [2025-12-09 18:00:22] Production.INFO: ProcessCDR(1,16349780,1,1,2) [2025-12-09 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16349780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 18:03:12] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16349780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 18:03:12] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16349780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 18:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16349780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 18:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16349780', 'tblTempUsageDetail_20' ) start [2025-12-09 18:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16349780', 'tblTempUsageDetail_20' ) end [2025-12-09 18:06:34] Production.ERROR: pbx prc_insertCDR start [2025-12-09 18:06:37] Production.ERROR: pbx prc_insertCDR end [2025-12-09 18:06:37] Production.INFO: ==29311== Releasing lock... [2025-12-09 18:06:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 18:06:37] Production.INFO: 68.5 MB #Memory Used# [2025-12-09 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 16:00:07 [end_date_ymd] => 2025-12-09 19:00:07 [RateCDR] => 1 ) [2025-12-09 19:00:07] 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-12-09 16:00:07' and `end` < '2025-12-09 19:00:07' 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-12-09 19:00:22] Production.INFO: count ==3885 [2025-12-09 19:00:23] Production.ERROR: pbx CDR StartTime 2025-12-09 16:00:07 - End Time 2025-12-09 19:00:07 [2025-12-09 19:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16350027', 'tblTempUsageDetail_20' ) start [2025-12-09 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16350027', 'tblTempUsageDetail_20' ) end [2025-12-09 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16350027', 'tblTempVendorCDR_20' ) start [2025-12-09 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16350027', 'tblTempVendorCDR_20' ) end [2025-12-09 19:00:24] Production.INFO: ProcessCDR(1,16350027,1,1,2) [2025-12-09 19:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16350027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 19:03:02] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16350027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 19:03:02] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16350027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 19:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16350027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 19:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16350027', 'tblTempUsageDetail_20' ) start [2025-12-09 19:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16350027', 'tblTempUsageDetail_20' ) end [2025-12-09 19:06:35] Production.ERROR: pbx prc_insertCDR start [2025-12-09 19:06:36] Production.ERROR: pbx prc_insertCDR end [2025-12-09 19:06:36] Production.INFO: ==1575== Releasing lock... [2025-12-09 19:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 19:06:36] Production.INFO: 57.25 MB #Memory Used# [2025-12-09 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 17:00:07 [end_date_ymd] => 2025-12-09 20:00:07 [RateCDR] => 1 ) [2025-12-09 20:00:07] 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-12-09 17:00:07' and `end` < '2025-12-09 20:00:07' 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-12-09 20:00:19] Production.INFO: count ==2743 [2025-12-09 20:00:20] Production.ERROR: pbx CDR StartTime 2025-12-09 17:00:07 - End Time 2025-12-09 20:00:07 [2025-12-09 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16350274', 'tblTempUsageDetail_20' ) start [2025-12-09 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16350274', 'tblTempUsageDetail_20' ) end [2025-12-09 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16350274', 'tblTempVendorCDR_20' ) start [2025-12-09 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16350274', 'tblTempVendorCDR_20' ) end [2025-12-09 20:00:20] Production.INFO: ProcessCDR(1,16350274,1,1,2) [2025-12-09 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16350274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16350274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16350274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 20:06:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16350274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 20:06:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16350274', 'tblTempUsageDetail_20' ) start [2025-12-09 20:06:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16350274', 'tblTempUsageDetail_20' ) end [2025-12-09 20:06:48] Production.ERROR: pbx prc_insertCDR start [2025-12-09 20:06:49] Production.ERROR: pbx prc_insertCDR end [2025-12-09 20:06:49] Production.INFO: ==6184== Releasing lock... [2025-12-09 20:06:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 20:06:49] Production.INFO: 50.25 MB #Memory Used# [2025-12-09 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 18:00:07 [end_date_ymd] => 2025-12-09 21:00:07 [RateCDR] => 1 ) [2025-12-09 21:00:07] 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-12-09 18:00:07' and `end` < '2025-12-09 21:00:07' 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-12-09 21:00:19] Production.INFO: count ==1813 [2025-12-09 21:00:20] Production.ERROR: pbx CDR StartTime 2025-12-09 18:00:07 - End Time 2025-12-09 21:00:07 [2025-12-09 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16350521', 'tblTempUsageDetail_20' ) start [2025-12-09 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16350521', 'tblTempUsageDetail_20' ) end [2025-12-09 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16350521', 'tblTempVendorCDR_20' ) start [2025-12-09 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16350521', 'tblTempVendorCDR_20' ) end [2025-12-09 21:00:20] Production.INFO: ProcessCDR(1,16350521,1,1,2) [2025-12-09 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16350521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 21:03:16] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16350521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 21:03:16] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16350521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 21:06:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16350521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 21:06:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16350521', 'tblTempUsageDetail_20' ) start [2025-12-09 21:06:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16350521', 'tblTempUsageDetail_20' ) end [2025-12-09 21:06:42] Production.ERROR: pbx prc_insertCDR start [2025-12-09 21:06:43] Production.ERROR: pbx prc_insertCDR end [2025-12-09 21:06:43] Production.INFO: ==12130== Releasing lock... [2025-12-09 21:06:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 21:06:43] Production.INFO: 41.75 MB #Memory Used# [2025-12-09 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 19:00:06 [end_date_ymd] => 2025-12-09 22:00:06 [RateCDR] => 1 ) [2025-12-09 22:00: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-12-09 19:00:06' and `end` < '2025-12-09 22:00: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-12-09 22:00:18] Production.INFO: count ==1414 [2025-12-09 22:00:18] Production.ERROR: pbx CDR StartTime 2025-12-09 19:00:06 - End Time 2025-12-09 22:00:06 [2025-12-09 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16350768', 'tblTempUsageDetail_20' ) start [2025-12-09 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16350768', 'tblTempUsageDetail_20' ) end [2025-12-09 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16350768', 'tblTempVendorCDR_20' ) start [2025-12-09 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16350768', 'tblTempVendorCDR_20' ) end [2025-12-09 22:00:19] Production.INFO: ProcessCDR(1,16350768,1,1,2) [2025-12-09 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16350768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 22:03:15] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16350768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 22:03:15] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16350768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 22:06:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16350768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 22:06:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16350768', 'tblTempUsageDetail_20' ) start [2025-12-09 22:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16350768', 'tblTempUsageDetail_20' ) end [2025-12-09 22:06:50] Production.ERROR: pbx prc_insertCDR start [2025-12-09 22:06:50] Production.ERROR: pbx prc_insertCDR end [2025-12-09 22:06:50] Production.INFO: ==16855== Releasing lock... [2025-12-09 22:06:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 22:06:50] Production.INFO: 38.75 MB #Memory Used# [2025-12-09 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-09 20:00:07 [end_date_ymd] => 2025-12-09 23:00:07 [RateCDR] => 1 ) [2025-12-09 23:00:07] 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-12-09 20:00:07' and `end` < '2025-12-09 23:00:07' 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-12-09 23:00:19] Production.INFO: count ==1046 [2025-12-09 23:00:19] Production.ERROR: pbx CDR StartTime 2025-12-09 20:00:07 - End Time 2025-12-09 23:00:07 [2025-12-09 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16351015', 'tblTempUsageDetail_20' ) start [2025-12-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16351015', 'tblTempUsageDetail_20' ) end [2025-12-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16351015', 'tblTempVendorCDR_20' ) start [2025-12-09 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16351015', 'tblTempVendorCDR_20' ) end [2025-12-09 23:00:19] Production.INFO: ProcessCDR(1,16351015,1,1,2) [2025-12-09 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16351015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 23:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16351015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-09 23:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16351015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 23:06:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16351015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-09 23:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16351015', 'tblTempUsageDetail_20' ) start [2025-12-09 23:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16351015', 'tblTempUsageDetail_20' ) end [2025-12-09 23:06:46] Production.ERROR: pbx prc_insertCDR start [2025-12-09 23:06:47] Production.ERROR: pbx prc_insertCDR end [2025-12-09 23:06:47] Production.INFO: ==21599== Releasing lock... [2025-12-09 23:06:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-09 23:06:47] Production.INFO: 36.5 MB #Memory Used#