[2025-09-18 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 21:25:06 [end_date_ymd] => 2025-09-18 00:25:06 [RateCDR] => 1 ) [2025-09-18 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-17 21:25:06' and `end` < '2025-09-18 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-18 00:25:24] Production.INFO: count ==731 [2025-09-18 00:25:24] Production.ERROR: pbx CDR StartTime 2025-09-17 21:25:06 - End Time 2025-09-18 00:25:06 [2025-09-18 00:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-18 00:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15859097', 'tblTempUsageDetail_20' ) start [2025-09-18 00:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15859097', 'tblTempUsageDetail_20' ) end [2025-09-18 00:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15859097', 'tblTempVendorCDR_20' ) start [2025-09-18 00:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15859097', 'tblTempVendorCDR_20' ) end [2025-09-18 00:25:24] Production.INFO: ProcessCDR(1,15859097,1,1,2) [2025-09-18 00:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15859097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 00:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15859097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 00:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15859097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 00:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15859097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 00:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15859097', 'tblTempUsageDetail_20' ) start [2025-09-18 00:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15859097', 'tblTempUsageDetail_20' ) end [2025-09-18 00:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-18 00:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-18 00:25:36] Production.INFO: ==3112== Releasing lock... [2025-09-18 00:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-18 00:25:36] Production.INFO: 37.5 MB #Memory Used# [2025-09-18 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 22:25:05 [end_date_ymd] => 2025-09-18 01:25:05 [RateCDR] => 1 ) [2025-09-18 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-17 22:25:05' and `end` < '2025-09-18 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-18 01:25:17] Production.INFO: count ==396 [2025-09-18 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-17 22:25:05 - End Time 2025-09-18 01:25:05 [2025-09-18 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15859344', 'tblTempUsageDetail_20' ) start [2025-09-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15859344', 'tblTempUsageDetail_20' ) end [2025-09-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15859344', 'tblTempVendorCDR_20' ) start [2025-09-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15859344', 'tblTempVendorCDR_20' ) end [2025-09-18 01:25:18] Production.INFO: ProcessCDR(1,15859344,1,1,2) [2025-09-18 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15859344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15859344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15859344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15859344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15859344', 'tblTempUsageDetail_20' ) start [2025-09-18 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15859344', 'tblTempUsageDetail_20' ) end [2025-09-18 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-18 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-18 01:25:25] Production.INFO: ==7747== Releasing lock... [2025-09-18 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-18 01:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-09-18 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 23:25:05 [end_date_ymd] => 2025-09-18 02:25:05 [RateCDR] => 1 ) [2025-09-18 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-17 23:25:05' and `end` < '2025-09-18 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-18 02:25:18] Production.INFO: count ==338 [2025-09-18 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-17 23:25:05 - End Time 2025-09-18 02:25:05 [2025-09-18 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15859591', 'tblTempUsageDetail_20' ) start [2025-09-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15859591', 'tblTempUsageDetail_20' ) end [2025-09-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15859591', 'tblTempVendorCDR_20' ) start [2025-09-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15859591', 'tblTempVendorCDR_20' ) end [2025-09-18 02:25:18] Production.INFO: ProcessCDR(1,15859591,1,1,2) [2025-09-18 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15859591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15859591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15859591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15859591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15859591', 'tblTempUsageDetail_20' ) start [2025-09-18 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15859591', 'tblTempUsageDetail_20' ) end [2025-09-18 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-18 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-18 02:25:26] Production.INFO: ==12675== Releasing lock... [2025-09-18 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-18 02:25:26] Production.INFO: 30.5 MB #Memory Used# [2025-09-18 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-18 00:25:05 [end_date_ymd] => 2025-09-18 03:25:05 [RateCDR] => 1 ) [2025-09-18 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-18 00:25:05' and `end` < '2025-09-18 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-18 03:25:17] Production.INFO: count ==234 [2025-09-18 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-18 00:25:05 - End Time 2025-09-18 03:25:05 [2025-09-18 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15859838', 'tblTempUsageDetail_20' ) start [2025-09-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15859838', 'tblTempUsageDetail_20' ) end [2025-09-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15859838', 'tblTempVendorCDR_20' ) start [2025-09-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15859838', 'tblTempVendorCDR_20' ) end [2025-09-18 03:25:17] Production.INFO: ProcessCDR(1,15859838,1,1,2) [2025-09-18 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15859838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15859838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15859838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15859838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15859838', 'tblTempUsageDetail_20' ) start [2025-09-18 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15859838', 'tblTempUsageDetail_20' ) end [2025-09-18 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-18 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-18 03:25:24] Production.INFO: ==17507== Releasing lock... [2025-09-18 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-18 03:25:24] Production.INFO: 30.25 MB #Memory Used# [2025-09-18 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-18 01:25:06 [end_date_ymd] => 2025-09-18 04:25:06 [RateCDR] => 1 ) [2025-09-18 04:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-18 01:25:06' and `end` < '2025-09-18 04:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-18 04:25:18] Production.INFO: count ==163 [2025-09-18 04:25:18] Production.ERROR: pbx CDR StartTime 2025-09-18 01:25:06 - End Time 2025-09-18 04:25:06 [2025-09-18 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-18 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15860086', 'tblTempUsageDetail_20' ) start [2025-09-18 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15860086', 'tblTempUsageDetail_20' ) end [2025-09-18 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15860086', 'tblTempVendorCDR_20' ) start [2025-09-18 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15860086', 'tblTempVendorCDR_20' ) end [2025-09-18 04:25:18] Production.INFO: ProcessCDR(1,15860086,1,1,2) [2025-09-18 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15860086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15860086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15860086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 04:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15860086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15860086', 'tblTempUsageDetail_20' ) start [2025-09-18 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15860086', 'tblTempUsageDetail_20' ) end [2025-09-18 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-18 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-18 04:25:26] Production.INFO: ==22518== Releasing lock... [2025-09-18 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-18 04:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-09-18 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-18 02:25:05 [end_date_ymd] => 2025-09-18 05:25:05 [RateCDR] => 1 ) [2025-09-18 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-18 02:25:05' and `end` < '2025-09-18 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-18 05:25:18] Production.INFO: count ==113 [2025-09-18 05:25:18] Production.ERROR: pbx CDR StartTime 2025-09-18 02:25:05 - End Time 2025-09-18 05:25:05 [2025-09-18 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15860334', 'tblTempUsageDetail_20' ) start [2025-09-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15860334', 'tblTempUsageDetail_20' ) end [2025-09-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15860334', 'tblTempVendorCDR_20' ) start [2025-09-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15860334', 'tblTempVendorCDR_20' ) end [2025-09-18 05:25:18] Production.INFO: ProcessCDR(1,15860334,1,1,2) [2025-09-18 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15860334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15860334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15860334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15860334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15860334', 'tblTempUsageDetail_20' ) start [2025-09-18 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15860334', 'tblTempUsageDetail_20' ) end [2025-09-18 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-18 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-18 05:25:23] Production.INFO: ==27558== Releasing lock... [2025-09-18 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-18 05:25:23] Production.INFO: 29 MB #Memory Used# [2025-09-18 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-18 03:25:05 [end_date_ymd] => 2025-09-18 06:25:05 [RateCDR] => 1 ) [2025-09-18 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-18 03:25:05' and `end` < '2025-09-18 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-18 06:25:17] Production.INFO: count ==106 [2025-09-18 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-18 03:25:05 - End Time 2025-09-18 06:25:05 [2025-09-18 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15860581', 'tblTempUsageDetail_20' ) start [2025-09-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15860581', 'tblTempUsageDetail_20' ) end [2025-09-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15860581', 'tblTempVendorCDR_20' ) start [2025-09-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15860581', 'tblTempVendorCDR_20' ) end [2025-09-18 06:25:17] Production.INFO: ProcessCDR(1,15860581,1,1,2) [2025-09-18 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15860581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15860581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15860581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15860581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15860581', 'tblTempUsageDetail_20' ) start [2025-09-18 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15860581', 'tblTempUsageDetail_20' ) end [2025-09-18 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-18 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-18 06:25:25] Production.INFO: ==32662== Releasing lock... [2025-09-18 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-18 06:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-09-18 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-18 04:25:05 [end_date_ymd] => 2025-09-18 07:25:05 [RateCDR] => 1 ) [2025-09-18 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-18 04:25:05' and `end` < '2025-09-18 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-18 07:25:17] Production.INFO: count ==111 [2025-09-18 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-18 04:25:05 - End Time 2025-09-18 07:25:05 [2025-09-18 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15860828', 'tblTempUsageDetail_20' ) start [2025-09-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15860828', 'tblTempUsageDetail_20' ) end [2025-09-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15860828', 'tblTempVendorCDR_20' ) start [2025-09-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15860828', 'tblTempVendorCDR_20' ) end [2025-09-18 07:25:17] Production.INFO: ProcessCDR(1,15860828,1,1,2) [2025-09-18 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15860828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15860828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15860828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15860828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15860828', 'tblTempUsageDetail_20' ) start [2025-09-18 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15860828', 'tblTempUsageDetail_20' ) end [2025-09-18 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-18 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-18 07:25:25] Production.INFO: ==5259== Releasing lock... [2025-09-18 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-18 07:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-09-18 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-18 05:25:05 [end_date_ymd] => 2025-09-18 08:25:05 [RateCDR] => 1 ) [2025-09-18 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-18 05:25:05' and `end` < '2025-09-18 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-18 08:25:17] Production.INFO: count ==298 [2025-09-18 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-18 05:25:05 - End Time 2025-09-18 08:25:05 [2025-09-18 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15861075', 'tblTempUsageDetail_20' ) start [2025-09-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15861075', 'tblTempUsageDetail_20' ) end [2025-09-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15861075', 'tblTempVendorCDR_20' ) start [2025-09-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15861075', 'tblTempVendorCDR_20' ) end [2025-09-18 08:25:17] Production.INFO: ProcessCDR(1,15861075,1,1,2) [2025-09-18 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15861075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15861075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15861075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15861075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15861075', 'tblTempUsageDetail_20' ) start [2025-09-18 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15861075', 'tblTempUsageDetail_20' ) end [2025-09-18 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-18 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-18 08:25:25] Production.INFO: ==9629== Releasing lock... [2025-09-18 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-18 08:25:25] Production.INFO: 30.5 MB #Memory Used# [2025-09-18 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-18 06:25:05 [end_date_ymd] => 2025-09-18 09:25:05 [RateCDR] => 1 ) [2025-09-18 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-18 06:25:05' and `end` < '2025-09-18 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-18 09:25:23] Production.INFO: count ==1353 [2025-09-18 09:25:23] Production.ERROR: pbx CDR StartTime 2025-09-18 06:25:05 - End Time 2025-09-18 09:25:05 [2025-09-18 09:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-18 09:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15861322', 'tblTempUsageDetail_20' ) start [2025-09-18 09:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15861322', 'tblTempUsageDetail_20' ) end [2025-09-18 09:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15861322', 'tblTempVendorCDR_20' ) start [2025-09-18 09:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15861322', 'tblTempVendorCDR_20' ) end [2025-09-18 09:25:23] Production.INFO: ProcessCDR(1,15861322,1,1,2) [2025-09-18 09:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15861322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 09:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15861322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-18 09:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15861322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 09:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15861322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-18 09:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15861322', 'tblTempUsageDetail_20' ) start [2025-09-18 09:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15861322', 'tblTempUsageDetail_20' ) end [2025-09-18 09:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-18 09:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-18 09:25:33] Production.INFO: ==13975== Releasing lock... [2025-09-18 09:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-18 09:25:33] Production.INFO: 38.25 MB #Memory Used#