[2025-11-09 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 21:00:07 [end_date_ymd] => 2025-11-09 00:00:07 [RateCDR] => 1 ) [2025-11-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-11-08 21:00:07' and `end` < '2025-11-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-11-09 00:00:24] Production.INFO: count ==992 [2025-11-09 00:00:24] Production.ERROR: pbx CDR StartTime 2025-11-08 21:00:07 - End Time 2025-11-09 00:00:07 [2025-11-09 00:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16167504', 'tblTempUsageDetail_20' ) start [2025-11-09 00:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16167504', 'tblTempUsageDetail_20' ) end [2025-11-09 00:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16167504', 'tblTempVendorCDR_20' ) start [2025-11-09 00:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16167504', 'tblTempVendorCDR_20' ) end [2025-11-09 00:00:25] Production.INFO: ProcessCDR(1,16167504,1,1,2) [2025-11-09 00:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16167504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 00:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16167504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 00:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16167504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 00:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16167504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16167504', 'tblTempUsageDetail_20' ) start [2025-11-09 00:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16167504', 'tblTempUsageDetail_20' ) end [2025-11-09 00:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-09 00:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-09 00:00:38] Production.INFO: ==10078== Releasing lock... [2025-11-09 00:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 00:00:38] Production.INFO: 38.5 MB #Memory Used# [2025-11-09 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 22:00:06 [end_date_ymd] => 2025-11-09 01:00:06 [RateCDR] => 1 ) [2025-11-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-11-08 22:00:06' and `end` < '2025-11-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-11-09 01:00:25] Production.INFO: count ==734 [2025-11-09 01:00:26] Production.ERROR: pbx CDR StartTime 2025-11-08 22:00:06 - End Time 2025-11-09 01:00:06 [2025-11-09 01:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 01:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16167751', 'tblTempUsageDetail_20' ) start [2025-11-09 01:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16167751', 'tblTempUsageDetail_20' ) end [2025-11-09 01:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16167751', 'tblTempVendorCDR_20' ) start [2025-11-09 01:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16167751', 'tblTempVendorCDR_20' ) end [2025-11-09 01:00:26] Production.INFO: ProcessCDR(1,16167751,1,1,2) [2025-11-09 01:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16167751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 01:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16167751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 01:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16167751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 01:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16167751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 01:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16167751', 'tblTempUsageDetail_20' ) start [2025-11-09 01:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16167751', 'tblTempUsageDetail_20' ) end [2025-11-09 01:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-09 01:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-09 01:00:36] Production.INFO: ==14969== Releasing lock... [2025-11-09 01:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 01:00:36] Production.INFO: 34.25 MB #Memory Used# [2025-11-09 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 23:00:06 [end_date_ymd] => 2025-11-09 02:00:06 [RateCDR] => 1 ) [2025-11-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-11-08 23:00:06' and `end` < '2025-11-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-11-09 02:00:19] Production.INFO: count ==803 [2025-11-09 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-08 23:00:06 - End Time 2025-11-09 02:00:06 [2025-11-09 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16167998', 'tblTempUsageDetail_20' ) start [2025-11-09 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16167998', 'tblTempUsageDetail_20' ) end [2025-11-09 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16167998', 'tblTempVendorCDR_20' ) start [2025-11-09 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16167998', 'tblTempVendorCDR_20' ) end [2025-11-09 02:00:19] Production.INFO: ProcessCDR(1,16167998,1,1,2) [2025-11-09 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16167998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16167998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16167998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 02:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16167998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16167998', 'tblTempUsageDetail_20' ) start [2025-11-09 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16167998', 'tblTempUsageDetail_20' ) end [2025-11-09 02:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-09 02:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-09 02:00:29] Production.INFO: ==20112== Releasing lock... [2025-11-09 02:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 02:00:29] Production.INFO: 34.5 MB #Memory Used# [2025-11-09 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 00:00:06 [end_date_ymd] => 2025-11-09 03:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 00:00:06' and `end` < '2025-11-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-11-09 03:00:19] Production.INFO: count ==798 [2025-11-09 03:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 00:00:06 - End Time 2025-11-09 03:00:06 [2025-11-09 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16168245', 'tblTempUsageDetail_20' ) start [2025-11-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16168245', 'tblTempUsageDetail_20' ) end [2025-11-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16168245', 'tblTempVendorCDR_20' ) start [2025-11-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16168245', 'tblTempVendorCDR_20' ) end [2025-11-09 03:00:19] Production.INFO: ProcessCDR(1,16168245,1,1,2) [2025-11-09 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16168245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16168245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16168245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 03:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16168245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16168245', 'tblTempUsageDetail_20' ) start [2025-11-09 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16168245', 'tblTempUsageDetail_20' ) end [2025-11-09 03:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-09 03:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-09 03:00:29] Production.INFO: ==25982== Releasing lock... [2025-11-09 03:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 03:00:29] Production.INFO: 34 MB #Memory Used# [2025-11-09 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 01:00:06 [end_date_ymd] => 2025-11-09 04:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 01:00:06' and `end` < '2025-11-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-11-09 04:00:18] Production.INFO: count ==625 [2025-11-09 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 01:00:06 - End Time 2025-11-09 04:00:06 [2025-11-09 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16168493', 'tblTempUsageDetail_20' ) start [2025-11-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16168493', 'tblTempUsageDetail_20' ) end [2025-11-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16168493', 'tblTempVendorCDR_20' ) start [2025-11-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16168493', 'tblTempVendorCDR_20' ) end [2025-11-09 04:00:19] Production.INFO: ProcessCDR(1,16168493,1,1,2) [2025-11-09 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16168493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 04:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16168493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 04:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16168493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 04:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16168493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 04:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16168493', 'tblTempUsageDetail_20' ) start [2025-11-09 04:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16168493', 'tblTempUsageDetail_20' ) end [2025-11-09 04:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-09 04:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-09 04:00:29] Production.INFO: ==31323== Releasing lock... [2025-11-09 04:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 04:00:29] Production.INFO: 33.25 MB #Memory Used# [2025-11-09 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 02:00:06 [end_date_ymd] => 2025-11-09 05:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 02:00:06' and `end` < '2025-11-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-11-09 05:00:19] Production.INFO: count ==401 [2025-11-09 05:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 02:00:06 - End Time 2025-11-09 05:00:06 [2025-11-09 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16168741', 'tblTempUsageDetail_20' ) start [2025-11-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16168741', 'tblTempUsageDetail_20' ) end [2025-11-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16168741', 'tblTempVendorCDR_20' ) start [2025-11-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16168741', 'tblTempVendorCDR_20' ) end [2025-11-09 05:00:19] Production.INFO: ProcessCDR(1,16168741,1,1,2) [2025-11-09 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16168741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16168741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16168741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 05:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16168741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16168741', 'tblTempUsageDetail_20' ) start [2025-11-09 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16168741', 'tblTempUsageDetail_20' ) end [2025-11-09 05:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-09 05:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-09 05:00:28] Production.INFO: ==3430== Releasing lock... [2025-11-09 05:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 05:00:28] Production.INFO: 32 MB #Memory Used# [2025-11-09 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 03:00:06 [end_date_ymd] => 2025-11-09 06:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 03:00:06' and `end` < '2025-11-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-11-09 06:00:18] Production.INFO: count ==233 [2025-11-09 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-09 03:00:06 - End Time 2025-11-09 06:00:06 [2025-11-09 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16168988', 'tblTempUsageDetail_20' ) start [2025-11-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16168988', 'tblTempUsageDetail_20' ) end [2025-11-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16168988', 'tblTempVendorCDR_20' ) start [2025-11-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16168988', 'tblTempVendorCDR_20' ) end [2025-11-09 06:00:18] Production.INFO: ProcessCDR(1,16168988,1,1,2) [2025-11-09 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16168988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16168988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16168988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 06:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16168988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 06:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16168988', 'tblTempUsageDetail_20' ) start [2025-11-09 06:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16168988', 'tblTempUsageDetail_20' ) end [2025-11-09 06:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-09 06:00:27] Production.ERROR: pbx prc_insertCDR end [2025-11-09 06:00:27] Production.INFO: ==7901== Releasing lock... [2025-11-09 06:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 06:00:27] Production.INFO: 30.25 MB #Memory Used# [2025-11-09 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 04:00:06 [end_date_ymd] => 2025-11-09 07:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 04:00:06' and `end` < '2025-11-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-11-09 07:00:18] Production.INFO: count ==184 [2025-11-09 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-09 04:00:06 - End Time 2025-11-09 07:00:06 [2025-11-09 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16169235', 'tblTempUsageDetail_20' ) start [2025-11-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16169235', 'tblTempUsageDetail_20' ) end [2025-11-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16169235', 'tblTempVendorCDR_20' ) start [2025-11-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16169235', 'tblTempVendorCDR_20' ) end [2025-11-09 07:00:18] Production.INFO: ProcessCDR(1,16169235,1,1,2) [2025-11-09 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16169235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 07:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16169235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 07:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16169235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 07:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16169235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16169235', 'tblTempUsageDetail_20' ) start [2025-11-09 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16169235', 'tblTempUsageDetail_20' ) end [2025-11-09 07:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-09 07:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-09 07:00:28] Production.INFO: ==12536== Releasing lock... [2025-11-09 07:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 07:00:28] Production.INFO: 29.5 MB #Memory Used# [2025-11-09 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 05:00:06 [end_date_ymd] => 2025-11-09 08:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 05:00:06' and `end` < '2025-11-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-11-09 08:00:18] Production.INFO: count ==200 [2025-11-09 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-09 05:00:06 - End Time 2025-11-09 08:00:06 [2025-11-09 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16169481', 'tblTempUsageDetail_20' ) start [2025-11-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16169481', 'tblTempUsageDetail_20' ) end [2025-11-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16169481', 'tblTempVendorCDR_20' ) start [2025-11-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16169481', 'tblTempVendorCDR_20' ) end [2025-11-09 08:00:18] Production.INFO: ProcessCDR(1,16169481,1,1,2) [2025-11-09 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16169481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16169481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16169481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16169481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16169481', 'tblTempUsageDetail_20' ) start [2025-11-09 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16169481', 'tblTempUsageDetail_20' ) end [2025-11-09 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-09 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-09 08:00:28] Production.INFO: ==16835== Releasing lock... [2025-11-09 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 08:00:28] Production.INFO: 30 MB #Memory Used# [2025-11-09 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 06:00:06 [end_date_ymd] => 2025-11-09 09:00:06 [RateCDR] => 1 ) [2025-11-09 09: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-11-09 06:00:06' and `end` < '2025-11-09 09: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-11-09 09:00:18] Production.INFO: count ==218 [2025-11-09 09:00:18] Production.ERROR: pbx CDR StartTime 2025-11-09 06:00:06 - End Time 2025-11-09 09:00:06 [2025-11-09 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16169729', 'tblTempUsageDetail_20' ) start [2025-11-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16169729', 'tblTempUsageDetail_20' ) end [2025-11-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16169729', 'tblTempVendorCDR_20' ) start [2025-11-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16169729', 'tblTempVendorCDR_20' ) end [2025-11-09 09:00:18] Production.INFO: ProcessCDR(1,16169729,1,1,2) [2025-11-09 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16169729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16169729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16169729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 09:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16169729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16169729', 'tblTempUsageDetail_20' ) start [2025-11-09 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16169729', 'tblTempUsageDetail_20' ) end [2025-11-09 09:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-09 09:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-09 09:00:28] Production.INFO: ==21640== Releasing lock... [2025-11-09 09:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 09:00:28] Production.INFO: 29.75 MB #Memory Used# [2025-11-09 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 07:00:06 [end_date_ymd] => 2025-11-09 10:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 07:00:06' and `end` < '2025-11-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-11-09 10:00:18] Production.INFO: count ==276 [2025-11-09 10:00:18] Production.ERROR: pbx CDR StartTime 2025-11-09 07:00:06 - End Time 2025-11-09 10:00:06 [2025-11-09 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16169976', 'tblTempUsageDetail_20' ) start [2025-11-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16169976', 'tblTempUsageDetail_20' ) end [2025-11-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16169976', 'tblTempVendorCDR_20' ) start [2025-11-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16169976', 'tblTempVendorCDR_20' ) end [2025-11-09 10:00:18] Production.INFO: ProcessCDR(1,16169976,1,1,2) [2025-11-09 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16169976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16169976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16169976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 10:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16169976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16169976', 'tblTempUsageDetail_20' ) start [2025-11-09 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16169976', 'tblTempUsageDetail_20' ) end [2025-11-09 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-09 10:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-09 10:00:28] Production.INFO: ==26242== Releasing lock... [2025-11-09 10:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 10:00:28] Production.INFO: 30.75 MB #Memory Used# [2025-11-09 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 08:00:06 [end_date_ymd] => 2025-11-09 11:00:06 [RateCDR] => 1 ) [2025-11-09 11: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-11-09 08:00:06' and `end` < '2025-11-09 11: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-11-09 11:00:18] Production.INFO: count ==453 [2025-11-09 11:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 08:00:06 - End Time 2025-11-09 11:00:06 [2025-11-09 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16170223', 'tblTempUsageDetail_20' ) start [2025-11-09 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16170223', 'tblTempUsageDetail_20' ) end [2025-11-09 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16170223', 'tblTempVendorCDR_20' ) start [2025-11-09 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16170223', 'tblTempVendorCDR_20' ) end [2025-11-09 11:00:19] Production.INFO: ProcessCDR(1,16170223,1,1,2) [2025-11-09 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16170223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16170223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16170223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 11:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16170223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16170223', 'tblTempUsageDetail_20' ) start [2025-11-09 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16170223', 'tblTempUsageDetail_20' ) end [2025-11-09 11:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-09 11:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-09 11:00:29] Production.INFO: ==30846== Releasing lock... [2025-11-09 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 11:00:29] Production.INFO: 32.25 MB #Memory Used# [2025-11-09 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 09:00:06 [end_date_ymd] => 2025-11-09 12:00:06 [RateCDR] => 1 ) [2025-11-09 12: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-11-09 09:00:06' and `end` < '2025-11-09 12: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-11-09 12:00:18] Production.INFO: count ==730 [2025-11-09 12:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 09:00:06 - End Time 2025-11-09 12:00:06 [2025-11-09 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16170469', 'tblTempUsageDetail_20' ) start [2025-11-09 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16170469', 'tblTempUsageDetail_20' ) end [2025-11-09 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16170469', 'tblTempVendorCDR_20' ) start [2025-11-09 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16170469', 'tblTempVendorCDR_20' ) end [2025-11-09 12:00:19] Production.INFO: ProcessCDR(1,16170469,1,1,2) [2025-11-09 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16170469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16170469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16170469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 12:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16170469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16170469', 'tblTempUsageDetail_20' ) start [2025-11-09 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16170469', 'tblTempUsageDetail_20' ) end [2025-11-09 12:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-09 12:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-09 12:00:30] Production.INFO: ==2868== Releasing lock... [2025-11-09 12:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 12:00:30] Production.INFO: 33.75 MB #Memory Used# [2025-11-09 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 10:00:06 [end_date_ymd] => 2025-11-09 13:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 10:00:06' and `end` < '2025-11-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-11-09 13:00:18] Production.INFO: count ==989 [2025-11-09 13:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 10:00:06 - End Time 2025-11-09 13:00:06 [2025-11-09 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16170716', 'tblTempUsageDetail_20' ) start [2025-11-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16170716', 'tblTempUsageDetail_20' ) end [2025-11-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16170716', 'tblTempVendorCDR_20' ) start [2025-11-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16170716', 'tblTempVendorCDR_20' ) end [2025-11-09 13:00:19] Production.INFO: ProcessCDR(1,16170716,1,1,2) [2025-11-09 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16170716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16170716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16170716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 13:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16170716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16170716', 'tblTempUsageDetail_20' ) start [2025-11-09 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16170716', 'tblTempUsageDetail_20' ) end [2025-11-09 13:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-09 13:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-09 13:00:30] Production.INFO: ==7255== Releasing lock... [2025-11-09 13:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 13:00:30] Production.INFO: 36 MB #Memory Used# [2025-11-09 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 11:00:06 [end_date_ymd] => 2025-11-09 14:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 11:00:06' and `end` < '2025-11-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-11-09 14:00:19] Production.INFO: count ==1269 [2025-11-09 14:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 11:00:06 - End Time 2025-11-09 14:00:06 [2025-11-09 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16170964', 'tblTempUsageDetail_20' ) start [2025-11-09 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16170964', 'tblTempUsageDetail_20' ) end [2025-11-09 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16170964', 'tblTempVendorCDR_20' ) start [2025-11-09 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16170964', 'tblTempVendorCDR_20' ) end [2025-11-09 14:00:19] Production.INFO: ProcessCDR(1,16170964,1,1,2) [2025-11-09 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16170964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16170964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16170964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 14:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16170964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16170964', 'tblTempUsageDetail_20' ) start [2025-11-09 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16170964', 'tblTempUsageDetail_20' ) end [2025-11-09 14:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-09 14:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-09 14:00:30] Production.INFO: ==11595== Releasing lock... [2025-11-09 14:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 14:00:30] Production.INFO: 38.25 MB #Memory Used# [2025-11-09 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 12:00:06 [end_date_ymd] => 2025-11-09 15:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 12:00:06' and `end` < '2025-11-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-11-09 15:00:18] Production.INFO: count ==1419 [2025-11-09 15:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 12:00:06 - End Time 2025-11-09 15:00:06 [2025-11-09 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16171211', 'tblTempUsageDetail_20' ) start [2025-11-09 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16171211', 'tblTempUsageDetail_20' ) end [2025-11-09 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16171211', 'tblTempVendorCDR_20' ) start [2025-11-09 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16171211', 'tblTempVendorCDR_20' ) end [2025-11-09 15:00:19] Production.INFO: ProcessCDR(1,16171211,1,1,2) [2025-11-09 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16171211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16171211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16171211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 15:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16171211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16171211', 'tblTempUsageDetail_20' ) start [2025-11-09 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16171211', 'tblTempUsageDetail_20' ) end [2025-11-09 15:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-09 15:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-09 15:00:30] Production.INFO: ==15988== Releasing lock... [2025-11-09 15:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 15:00:30] Production.INFO: 38.75 MB #Memory Used# [2025-11-09 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 13:00:06 [end_date_ymd] => 2025-11-09 16:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 13:00:06' and `end` < '2025-11-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-11-09 16:00:19] Production.INFO: count ==1428 [2025-11-09 16:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 13:00:06 - End Time 2025-11-09 16:00:06 [2025-11-09 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16171458', 'tblTempUsageDetail_20' ) start [2025-11-09 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16171458', 'tblTempUsageDetail_20' ) end [2025-11-09 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16171458', 'tblTempVendorCDR_20' ) start [2025-11-09 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16171458', 'tblTempVendorCDR_20' ) end [2025-11-09 16:00:19] Production.INFO: ProcessCDR(1,16171458,1,1,2) [2025-11-09 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16171458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16171458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16171458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 16:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16171458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16171458', 'tblTempUsageDetail_20' ) start [2025-11-09 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16171458', 'tblTempUsageDetail_20' ) end [2025-11-09 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-09 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-09 16:00:29] Production.INFO: ==21828== Releasing lock... [2025-11-09 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 16:00:29] Production.INFO: 38.75 MB #Memory Used# [2025-11-09 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 14:00:06 [end_date_ymd] => 2025-11-09 17:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 14:00:06' and `end` < '2025-11-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-11-09 17:00:18] Production.INFO: count ==1463 [2025-11-09 17:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 14:00:06 - End Time 2025-11-09 17:00:06 [2025-11-09 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16171705', 'tblTempUsageDetail_20' ) start [2025-11-09 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16171705', 'tblTempUsageDetail_20' ) end [2025-11-09 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16171705', 'tblTempVendorCDR_20' ) start [2025-11-09 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16171705', 'tblTempVendorCDR_20' ) end [2025-11-09 17:00:19] Production.INFO: ProcessCDR(1,16171705,1,1,2) [2025-11-09 17:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16171705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16171705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16171705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 17:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16171705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16171705', 'tblTempUsageDetail_20' ) start [2025-11-09 17:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16171705', 'tblTempUsageDetail_20' ) end [2025-11-09 17:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-09 17:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-09 17:00:30] Production.INFO: ==26378== Releasing lock... [2025-11-09 17:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 17:00:30] Production.INFO: 39 MB #Memory Used# [2025-11-09 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 15:00:06 [end_date_ymd] => 2025-11-09 18:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 15:00:06' and `end` < '2025-11-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-11-09 18:00:18] Production.INFO: count ==1627 [2025-11-09 18:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 15:00:06 - End Time 2025-11-09 18:00:06 [2025-11-09 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16171949', 'tblTempUsageDetail_20' ) start [2025-11-09 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16171949', 'tblTempUsageDetail_20' ) end [2025-11-09 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16171949', 'tblTempVendorCDR_20' ) start [2025-11-09 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16171949', 'tblTempVendorCDR_20' ) end [2025-11-09 18:00:19] Production.INFO: ProcessCDR(1,16171949,1,1,2) [2025-11-09 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16171949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16171949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16171949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 18:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16171949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 18:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16171949', 'tblTempUsageDetail_20' ) start [2025-11-09 18:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16171949', 'tblTempUsageDetail_20' ) end [2025-11-09 18:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-09 18:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-09 18:00:30] Production.INFO: ==30815== Releasing lock... [2025-11-09 18:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 18:00:30] Production.INFO: 40.25 MB #Memory Used# [2025-11-09 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 16:00:06 [end_date_ymd] => 2025-11-09 19:00:06 [RateCDR] => 1 ) [2025-11-09 19: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-11-09 16:00:06' and `end` < '2025-11-09 19: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-11-09 19:00:18] Production.INFO: count ==1835 [2025-11-09 19:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 16:00:06 - End Time 2025-11-09 19:00:06 [2025-11-09 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16172196', 'tblTempUsageDetail_20' ) start [2025-11-09 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16172196', 'tblTempUsageDetail_20' ) end [2025-11-09 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16172196', 'tblTempVendorCDR_20' ) start [2025-11-09 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16172196', 'tblTempVendorCDR_20' ) end [2025-11-09 19:00:19] Production.INFO: ProcessCDR(1,16172196,1,1,2) [2025-11-09 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16172196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16172196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16172196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 19:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16172196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 19:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16172196', 'tblTempUsageDetail_20' ) start [2025-11-09 19:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16172196', 'tblTempUsageDetail_20' ) end [2025-11-09 19:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-09 19:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-09 19:00:29] Production.INFO: ==2944== Releasing lock... [2025-11-09 19:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 19:00:29] Production.INFO: 42 MB #Memory Used# [2025-11-09 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 17:00:06 [end_date_ymd] => 2025-11-09 20:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 17:00:06' and `end` < '2025-11-09 20: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-11-09 20:00:19] Production.INFO: count ==1799 [2025-11-09 20:00:20] Production.ERROR: pbx CDR StartTime 2025-11-09 17:00:06 - End Time 2025-11-09 20:00:06 [2025-11-09 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16172443', 'tblTempUsageDetail_20' ) start [2025-11-09 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16172443', 'tblTempUsageDetail_20' ) end [2025-11-09 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16172443', 'tblTempVendorCDR_20' ) start [2025-11-09 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16172443', 'tblTempVendorCDR_20' ) end [2025-11-09 20:00:20] Production.INFO: ProcessCDR(1,16172443,1,1,2) [2025-11-09 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16172443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 20:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16172443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 20:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16172443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 20:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16172443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16172443', 'tblTempUsageDetail_20' ) start [2025-11-09 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16172443', 'tblTempUsageDetail_20' ) end [2025-11-09 20:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-09 20:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-09 20:00:31] Production.INFO: ==7572== Releasing lock... [2025-11-09 20:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 20:00:31] Production.INFO: 41.75 MB #Memory Used# [2025-11-09 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 18:00:06 [end_date_ymd] => 2025-11-09 21:00:06 [RateCDR] => 1 ) [2025-11-09 21: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-11-09 18:00:06' and `end` < '2025-11-09 21: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-11-09 21:00:19] Production.INFO: count ==1625 [2025-11-09 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 18:00:06 - End Time 2025-11-09 21:00:06 [2025-11-09 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16172690', 'tblTempUsageDetail_20' ) start [2025-11-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16172690', 'tblTempUsageDetail_20' ) end [2025-11-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16172690', 'tblTempVendorCDR_20' ) start [2025-11-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16172690', 'tblTempVendorCDR_20' ) end [2025-11-09 21:00:19] Production.INFO: ProcessCDR(1,16172690,1,1,2) [2025-11-09 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16172690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16172690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16172690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 21:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16172690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16172690', 'tblTempUsageDetail_20' ) start [2025-11-09 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16172690', 'tblTempUsageDetail_20' ) end [2025-11-09 21:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-09 21:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-09 21:00:30] Production.INFO: ==12241== Releasing lock... [2025-11-09 21:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 21:00:30] Production.INFO: 40.5 MB #Memory Used# [2025-11-09 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 19:00:06 [end_date_ymd] => 2025-11-09 22:00:06 [RateCDR] => 1 ) [2025-11-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-11-09 19:00:06' and `end` < '2025-11-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-11-09 22:00:19] Production.INFO: count ==1399 [2025-11-09 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-09 19:00:06 - End Time 2025-11-09 22:00:06 [2025-11-09 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16172937', 'tblTempUsageDetail_20' ) start [2025-11-09 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16172937', 'tblTempUsageDetail_20' ) end [2025-11-09 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16172937', 'tblTempVendorCDR_20' ) start [2025-11-09 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16172937', 'tblTempVendorCDR_20' ) end [2025-11-09 22:00:19] Production.INFO: ProcessCDR(1,16172937,1,1,2) [2025-11-09 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16172937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 22:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16172937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 22:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16172937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 22:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16172937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16172937', 'tblTempUsageDetail_20' ) start [2025-11-09 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16172937', 'tblTempUsageDetail_20' ) end [2025-11-09 22:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-09 22:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-09 22:00:30] Production.INFO: ==17009== Releasing lock... [2025-11-09 22:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 22:00:30] Production.INFO: 38.75 MB #Memory Used# [2025-11-09 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-09 20:00:05 [end_date_ymd] => 2025-11-09 23:00:05 [RateCDR] => 1 ) [2025-11-09 23: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-11-09 20:00:05' and `end` < '2025-11-09 23: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-11-09 23:00:17] Production.INFO: count ==1138 [2025-11-09 23:00:18] Production.ERROR: pbx CDR StartTime 2025-11-09 20:00:05 - End Time 2025-11-09 23:00:05 [2025-11-09 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16173184', 'tblTempUsageDetail_20' ) start [2025-11-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16173184', 'tblTempUsageDetail_20' ) end [2025-11-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16173184', 'tblTempVendorCDR_20' ) start [2025-11-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16173184', 'tblTempVendorCDR_20' ) end [2025-11-09 23:00:18] Production.INFO: ProcessCDR(1,16173184,1,1,2) [2025-11-09 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16173184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 23:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16173184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-09 23:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16173184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 23:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16173184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-09 23:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16173184', 'tblTempUsageDetail_20' ) start [2025-11-09 23:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16173184', 'tblTempUsageDetail_20' ) end [2025-11-09 23:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-09 23:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-09 23:00:28] Production.INFO: ==21569== Releasing lock... [2025-11-09 23:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-09 23:00:28] Production.INFO: 36.75 MB #Memory Used#