[2025-10-18 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 21:25:05 [end_date_ymd] => 2025-10-18 00:25:05 [RateCDR] => 1 ) [2025-10-18 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-17 21:25:05' and `end` < '2025-10-18 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 00:25:17] Production.INFO: count ==786 [2025-10-18 00:25:18] Production.ERROR: pbx CDR StartTime 2025-10-17 21:25:05 - End Time 2025-10-18 00:25:05 [2025-10-18 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16036916', 'tblTempUsageDetail_20' ) start [2025-10-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16036916', 'tblTempUsageDetail_20' ) end [2025-10-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16036916', 'tblTempVendorCDR_20' ) start [2025-10-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16036916', 'tblTempVendorCDR_20' ) end [2025-10-18 00:25:18] Production.INFO: ProcessCDR(1,16036916,1,1,2) [2025-10-18 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16036916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16036916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16036916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 00:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16036916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16036916', 'tblTempUsageDetail_20' ) start [2025-10-18 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16036916', 'tblTempUsageDetail_20' ) end [2025-10-18 00:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-18 00:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-18 00:25:29] Production.INFO: ==26782== Releasing lock... [2025-10-18 00:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 00:25:29] Production.INFO: 38 MB #Memory Used# [2025-10-18 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 22:25:05 [end_date_ymd] => 2025-10-18 01:25:05 [RateCDR] => 1 ) [2025-10-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-10-17 22:25:05' and `end` < '2025-10-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-10-18 01:25:18] Production.INFO: count ==692 [2025-10-18 01:25:18] Production.ERROR: pbx CDR StartTime 2025-10-17 22:25:05 - End Time 2025-10-18 01:25:05 [2025-10-18 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16037163', 'tblTempUsageDetail_20' ) start [2025-10-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16037163', 'tblTempUsageDetail_20' ) end [2025-10-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16037163', 'tblTempVendorCDR_20' ) start [2025-10-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16037163', 'tblTempVendorCDR_20' ) end [2025-10-18 01:25:18] Production.INFO: ProcessCDR(1,16037163,1,1,2) [2025-10-18 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16037163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16037163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16037163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 01:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16037163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16037163', 'tblTempUsageDetail_20' ) start [2025-10-18 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16037163', 'tblTempUsageDetail_20' ) end [2025-10-18 01:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-18 01:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-18 01:25:27] Production.INFO: ==1540== Releasing lock... [2025-10-18 01:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 01:25:27] Production.INFO: 33.75 MB #Memory Used# [2025-10-18 02:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-10-17 23:25:04 [end_date_ymd] => 2025-10-18 02:25:04 [RateCDR] => 1 ) [2025-10-18 02:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-17 23:25:04' and `end` < '2025-10-18 02:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 02:25:19] Production.INFO: count ==612 [2025-10-18 02:25:19] Production.ERROR: pbx CDR StartTime 2025-10-17 23:25:04 - End Time 2025-10-18 02:25:04 [2025-10-18 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16037410', 'tblTempUsageDetail_20' ) start [2025-10-18 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16037410', 'tblTempUsageDetail_20' ) end [2025-10-18 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16037410', 'tblTempVendorCDR_20' ) start [2025-10-18 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16037410', 'tblTempVendorCDR_20' ) end [2025-10-18 02:25:19] Production.INFO: ProcessCDR(1,16037410,1,1,2) [2025-10-18 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16037410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16037410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16037410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 02:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16037410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16037410', 'tblTempUsageDetail_20' ) start [2025-10-18 02:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16037410', 'tblTempUsageDetail_20' ) end [2025-10-18 02:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-18 02:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-18 02:25:28] Production.INFO: ==8132== Releasing lock... [2025-10-18 02:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 02:25:28] Production.INFO: 32.75 MB #Memory Used# [2025-10-18 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 00:25:05 [end_date_ymd] => 2025-10-18 03:25:05 [RateCDR] => 1 ) [2025-10-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-10-18 00:25:05' and `end` < '2025-10-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-10-18 03:25:18] Production.INFO: count ==476 [2025-10-18 03:25:18] Production.ERROR: pbx CDR StartTime 2025-10-18 00:25:05 - End Time 2025-10-18 03:25:05 [2025-10-18 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16037657', 'tblTempUsageDetail_20' ) start [2025-10-18 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16037657', 'tblTempUsageDetail_20' ) end [2025-10-18 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16037657', 'tblTempVendorCDR_20' ) start [2025-10-18 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16037657', 'tblTempVendorCDR_20' ) end [2025-10-18 03:25:18] Production.INFO: ProcessCDR(1,16037657,1,1,2) [2025-10-18 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16037657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16037657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16037657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16037657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16037657', 'tblTempUsageDetail_20' ) start [2025-10-18 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16037657', 'tblTempUsageDetail_20' ) end [2025-10-18 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-18 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-18 03:25:26] Production.INFO: ==15178== Releasing lock... [2025-10-18 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 03:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-10-18 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 01:25:05 [end_date_ymd] => 2025-10-18 04:25:05 [RateCDR] => 1 ) [2025-10-18 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 01:25:05' and `end` < '2025-10-18 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 04:25:17] Production.INFO: count ==332 [2025-10-18 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-18 01:25:05 - End Time 2025-10-18 04:25:05 [2025-10-18 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16037905', 'tblTempUsageDetail_20' ) start [2025-10-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16037905', 'tblTempUsageDetail_20' ) end [2025-10-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16037905', 'tblTempVendorCDR_20' ) start [2025-10-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16037905', 'tblTempVendorCDR_20' ) end [2025-10-18 04:25:17] Production.INFO: ProcessCDR(1,16037905,1,1,2) [2025-10-18 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16037905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16037905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16037905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 04:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16037905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16037905', 'tblTempUsageDetail_20' ) start [2025-10-18 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16037905', 'tblTempUsageDetail_20' ) end [2025-10-18 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-18 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-18 04:25:26] Production.INFO: ==21549== Releasing lock... [2025-10-18 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 04:25:26] Production.INFO: 30.5 MB #Memory Used# [2025-10-18 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 02:25:06 [end_date_ymd] => 2025-10-18 05:25:06 [RateCDR] => 1 ) [2025-10-18 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 02:25:06' and `end` < '2025-10-18 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 05:25:18] Production.INFO: count ==226 [2025-10-18 05:25:18] Production.ERROR: pbx CDR StartTime 2025-10-18 02:25:06 - End Time 2025-10-18 05:25:06 [2025-10-18 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16038153', 'tblTempUsageDetail_20' ) start [2025-10-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16038153', 'tblTempUsageDetail_20' ) end [2025-10-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16038153', 'tblTempVendorCDR_20' ) start [2025-10-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16038153', 'tblTempVendorCDR_20' ) end [2025-10-18 05:25:18] Production.INFO: ProcessCDR(1,16038153,1,1,2) [2025-10-18 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16038153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16038153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16038153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16038153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16038153', 'tblTempUsageDetail_20' ) start [2025-10-18 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16038153', 'tblTempUsageDetail_20' ) end [2025-10-18 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-10-18 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-10-18 05:25:24] Production.INFO: ==26581== Releasing lock... [2025-10-18 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 05:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-10-18 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 03:25:05 [end_date_ymd] => 2025-10-18 06:25:05 [RateCDR] => 1 ) [2025-10-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-10-18 03:25:05' and `end` < '2025-10-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-10-18 06:25:17] Production.INFO: count ==159 [2025-10-18 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-18 03:25:05 - End Time 2025-10-18 06:25:05 [2025-10-18 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16038400', 'tblTempUsageDetail_20' ) start [2025-10-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16038400', 'tblTempUsageDetail_20' ) end [2025-10-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16038400', 'tblTempVendorCDR_20' ) start [2025-10-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16038400', 'tblTempVendorCDR_20' ) end [2025-10-18 06:25:17] Production.INFO: ProcessCDR(1,16038400,1,1,2) [2025-10-18 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16038400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16038400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16038400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16038400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16038400', 'tblTempUsageDetail_20' ) start [2025-10-18 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16038400', 'tblTempUsageDetail_20' ) end [2025-10-18 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-18 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-18 06:25:26] Production.INFO: ==31329== Releasing lock... [2025-10-18 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 06:25:26] Production.INFO: 29.25 MB #Memory Used# [2025-10-18 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 04:25:05 [end_date_ymd] => 2025-10-18 07:25:05 [RateCDR] => 1 ) [2025-10-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-10-18 04:25:05' and `end` < '2025-10-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-10-18 07:25:17] Production.INFO: count ==129 [2025-10-18 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-18 04:25:05 - End Time 2025-10-18 07:25:05 [2025-10-18 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16038647', 'tblTempUsageDetail_20' ) start [2025-10-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16038647', 'tblTempUsageDetail_20' ) end [2025-10-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16038647', 'tblTempVendorCDR_20' ) start [2025-10-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16038647', 'tblTempVendorCDR_20' ) end [2025-10-18 07:25:17] Production.INFO: ProcessCDR(1,16038647,1,1,2) [2025-10-18 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16038647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16038647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16038647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 07:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16038647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 07:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16038647', 'tblTempUsageDetail_20' ) start [2025-10-18 07:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16038647', 'tblTempUsageDetail_20' ) end [2025-10-18 07:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-18 07:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-18 07:25:27] Production.INFO: ==4201== Releasing lock... [2025-10-18 07:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 07:25:27] Production.INFO: 28.75 MB #Memory Used# [2025-10-18 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 05:25:05 [end_date_ymd] => 2025-10-18 08:25:05 [RateCDR] => 1 ) [2025-10-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-10-18 05:25:05' and `end` < '2025-10-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-10-18 08:25:17] Production.INFO: count ==172 [2025-10-18 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-18 05:25:05 - End Time 2025-10-18 08:25:05 [2025-10-18 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16038894', 'tblTempUsageDetail_20' ) start [2025-10-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16038894', 'tblTempUsageDetail_20' ) end [2025-10-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16038894', 'tblTempVendorCDR_20' ) start [2025-10-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16038894', 'tblTempVendorCDR_20' ) end [2025-10-18 08:25:17] Production.INFO: ProcessCDR(1,16038894,1,1,2) [2025-10-18 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16038894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16038894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16038894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16038894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16038894', 'tblTempUsageDetail_20' ) start [2025-10-18 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16038894', 'tblTempUsageDetail_20' ) end [2025-10-18 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-18 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-18 08:25:26] Production.INFO: ==8721== Releasing lock... [2025-10-18 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 08:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-10-18 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 06:25:05 [end_date_ymd] => 2025-10-18 09:25:05 [RateCDR] => 1 ) [2025-10-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-10-18 06:25:05' and `end` < '2025-10-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-10-18 09:25:17] Production.INFO: count ==499 [2025-10-18 09:25:17] Production.ERROR: pbx CDR StartTime 2025-10-18 06:25:05 - End Time 2025-10-18 09:25:05 [2025-10-18 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16039141', 'tblTempUsageDetail_20' ) start [2025-10-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16039141', 'tblTempUsageDetail_20' ) end [2025-10-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16039141', 'tblTempVendorCDR_20' ) start [2025-10-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16039141', 'tblTempVendorCDR_20' ) end [2025-10-18 09:25:17] Production.INFO: ProcessCDR(1,16039141,1,1,2) [2025-10-18 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16039141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16039141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16039141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16039141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16039141', 'tblTempUsageDetail_20' ) start [2025-10-18 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16039141', 'tblTempUsageDetail_20' ) end [2025-10-18 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-18 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-18 09:25:26] Production.INFO: ==13557== Releasing lock... [2025-10-18 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 09:25:26] Production.INFO: 32.5 MB #Memory Used# [2025-10-18 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 07:25:05 [end_date_ymd] => 2025-10-18 10:25:05 [RateCDR] => 1 ) [2025-10-18 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 07:25:05' and `end` < '2025-10-18 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 10:25:18] Production.INFO: count ==1236 [2025-10-18 10:25:18] Production.ERROR: pbx CDR StartTime 2025-10-18 07:25:05 - End Time 2025-10-18 10:25:05 [2025-10-18 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16039388', 'tblTempUsageDetail_20' ) start [2025-10-18 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16039388', 'tblTempUsageDetail_20' ) end [2025-10-18 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16039388', 'tblTempVendorCDR_20' ) start [2025-10-18 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16039388', 'tblTempVendorCDR_20' ) end [2025-10-18 10:25:18] Production.INFO: ProcessCDR(1,16039388,1,1,2) [2025-10-18 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16039388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16039388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16039388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16039388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16039388', 'tblTempUsageDetail_20' ) start [2025-10-18 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16039388', 'tblTempUsageDetail_20' ) end [2025-10-18 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-18 10:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-18 10:25:28] Production.INFO: ==17872== Releasing lock... [2025-10-18 10:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 10:25:28] Production.INFO: 37.75 MB #Memory Used# [2025-10-18 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 08:25:05 [end_date_ymd] => 2025-10-18 11:25:05 [RateCDR] => 1 ) [2025-10-18 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 08:25:05' and `end` < '2025-10-18 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 11:25:18] Production.INFO: count ==1982 [2025-10-18 11:25:19] Production.ERROR: pbx CDR StartTime 2025-10-18 08:25:05 - End Time 2025-10-18 11:25:05 [2025-10-18 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16039635', 'tblTempUsageDetail_20' ) start [2025-10-18 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16039635', 'tblTempUsageDetail_20' ) end [2025-10-18 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16039635', 'tblTempVendorCDR_20' ) start [2025-10-18 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16039635', 'tblTempVendorCDR_20' ) end [2025-10-18 11:25:19] Production.INFO: ProcessCDR(1,16039635,1,1,2) [2025-10-18 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16039635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16039635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16039635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16039635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16039635', 'tblTempUsageDetail_20' ) start [2025-10-18 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16039635', 'tblTempUsageDetail_20' ) end [2025-10-18 11:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-18 11:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-18 11:25:30] Production.INFO: ==22669== Releasing lock... [2025-10-18 11:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 11:25:30] Production.INFO: 43 MB #Memory Used# [2025-10-18 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 09:25:05 [end_date_ymd] => 2025-10-18 12:25:05 [RateCDR] => 1 ) [2025-10-18 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 09:25:05' and `end` < '2025-10-18 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 12:25:17] Production.INFO: count ==2393 [2025-10-18 12:25:18] Production.ERROR: pbx CDR StartTime 2025-10-18 09:25:05 - End Time 2025-10-18 12:25:05 [2025-10-18 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16039882', 'tblTempUsageDetail_20' ) start [2025-10-18 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16039882', 'tblTempUsageDetail_20' ) end [2025-10-18 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16039882', 'tblTempVendorCDR_20' ) start [2025-10-18 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16039882', 'tblTempVendorCDR_20' ) end [2025-10-18 12:25:19] Production.INFO: ProcessCDR(1,16039882,1,1,2) [2025-10-18 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16039882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16039882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16039882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16039882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16039882', 'tblTempUsageDetail_20' ) start [2025-10-18 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16039882', 'tblTempUsageDetail_20' ) end [2025-10-18 12:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-18 12:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-18 12:25:30] Production.INFO: ==28602== Releasing lock... [2025-10-18 12:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 12:25:30] Production.INFO: 46.25 MB #Memory Used# [2025-10-18 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 10:25:05 [end_date_ymd] => 2025-10-18 13:25:05 [RateCDR] => 1 ) [2025-10-18 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 10:25:05' and `end` < '2025-10-18 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 13:25:18] Production.INFO: count ==2470 [2025-10-18 13:25:19] Production.ERROR: pbx CDR StartTime 2025-10-18 10:25:05 - End Time 2025-10-18 13:25:05 [2025-10-18 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16040129', 'tblTempUsageDetail_20' ) start [2025-10-18 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16040129', 'tblTempUsageDetail_20' ) end [2025-10-18 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16040129', 'tblTempVendorCDR_20' ) start [2025-10-18 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16040129', 'tblTempVendorCDR_20' ) end [2025-10-18 13:25:19] Production.INFO: ProcessCDR(1,16040129,1,1,2) [2025-10-18 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16040129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16040129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16040129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 13:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16040129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16040129', 'tblTempUsageDetail_20' ) start [2025-10-18 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16040129', 'tblTempUsageDetail_20' ) end [2025-10-18 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-18 13:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-18 13:25:31] Production.INFO: ==2958== Releasing lock... [2025-10-18 13:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 13:25:31] Production.INFO: 47.25 MB #Memory Used# [2025-10-18 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 11:25:05 [end_date_ymd] => 2025-10-18 14:25:05 [RateCDR] => 1 ) [2025-10-18 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 11:25:05' and `end` < '2025-10-18 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 14:25:17] Production.INFO: count ==2355 [2025-10-18 14:25:18] Production.ERROR: pbx CDR StartTime 2025-10-18 11:25:05 - End Time 2025-10-18 14:25:05 [2025-10-18 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16040376', 'tblTempUsageDetail_20' ) start [2025-10-18 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16040376', 'tblTempUsageDetail_20' ) end [2025-10-18 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16040376', 'tblTempVendorCDR_20' ) start [2025-10-18 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16040376', 'tblTempVendorCDR_20' ) end [2025-10-18 14:25:19] Production.INFO: ProcessCDR(1,16040376,1,1,2) [2025-10-18 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16040376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16040376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16040376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16040376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16040376', 'tblTempUsageDetail_20' ) start [2025-10-18 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16040376', 'tblTempUsageDetail_20' ) end [2025-10-18 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-18 14:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-18 14:25:29] Production.INFO: ==9429== Releasing lock... [2025-10-18 14:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 14:25:29] Production.INFO: 46 MB #Memory Used# [2025-10-18 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 12:25:05 [end_date_ymd] => 2025-10-18 15:25:05 [RateCDR] => 1 ) [2025-10-18 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 12:25:05' and `end` < '2025-10-18 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 15:25:18] Production.INFO: count ==2333 [2025-10-18 15:25:19] Production.ERROR: pbx CDR StartTime 2025-10-18 12:25:05 - End Time 2025-10-18 15:25:05 [2025-10-18 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16040623', 'tblTempUsageDetail_20' ) start [2025-10-18 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16040623', 'tblTempUsageDetail_20' ) end [2025-10-18 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16040623', 'tblTempVendorCDR_20' ) start [2025-10-18 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16040623', 'tblTempVendorCDR_20' ) end [2025-10-18 15:25:19] Production.INFO: ProcessCDR(1,16040623,1,1,2) [2025-10-18 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16040623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16040623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16040623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16040623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16040623', 'tblTempUsageDetail_20' ) start [2025-10-18 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16040623', 'tblTempUsageDetail_20' ) end [2025-10-18 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-18 15:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-18 15:25:29] Production.INFO: ==16203== Releasing lock... [2025-10-18 15:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 15:25:29] Production.INFO: 46 MB #Memory Used# [2025-10-18 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 13:25:05 [end_date_ymd] => 2025-10-18 16:25:05 [RateCDR] => 1 ) [2025-10-18 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 13:25:05' and `end` < '2025-10-18 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 16:25:18] Production.INFO: count ==2099 [2025-10-18 16:25:19] Production.ERROR: pbx CDR StartTime 2025-10-18 13:25:05 - End Time 2025-10-18 16:25:05 [2025-10-18 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16040870', 'tblTempUsageDetail_20' ) start [2025-10-18 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16040870', 'tblTempUsageDetail_20' ) end [2025-10-18 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16040870', 'tblTempVendorCDR_20' ) start [2025-10-18 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16040870', 'tblTempVendorCDR_20' ) end [2025-10-18 16:25:19] Production.INFO: ProcessCDR(1,16040870,1,1,2) [2025-10-18 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16040870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16040870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16040870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16040870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16040870', 'tblTempUsageDetail_20' ) start [2025-10-18 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16040870', 'tblTempUsageDetail_20' ) end [2025-10-18 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-18 16:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-18 16:25:29] Production.INFO: ==21861== Releasing lock... [2025-10-18 16:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 16:25:29] Production.INFO: 44 MB #Memory Used# [2025-10-18 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 14:25:05 [end_date_ymd] => 2025-10-18 17:25:05 [RateCDR] => 1 ) [2025-10-18 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 14:25:05' and `end` < '2025-10-18 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 17:25:20] Production.INFO: count ==2349 [2025-10-18 17:25:21] Production.ERROR: pbx CDR StartTime 2025-10-18 14:25:05 - End Time 2025-10-18 17:25:05 [2025-10-18 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16041117', 'tblTempUsageDetail_20' ) start [2025-10-18 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16041117', 'tblTempUsageDetail_20' ) end [2025-10-18 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16041117', 'tblTempVendorCDR_20' ) start [2025-10-18 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16041117', 'tblTempVendorCDR_20' ) end [2025-10-18 17:25:21] Production.INFO: ProcessCDR(1,16041117,1,1,2) [2025-10-18 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16041117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16041117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16041117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16041117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16041117', 'tblTempUsageDetail_20' ) start [2025-10-18 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16041117', 'tblTempUsageDetail_20' ) end [2025-10-18 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-18 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-18 17:25:32] Production.INFO: ==28378== Releasing lock... [2025-10-18 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 17:25:32] Production.INFO: 46 MB #Memory Used# [2025-10-18 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 15:25:05 [end_date_ymd] => 2025-10-18 18:25:05 [RateCDR] => 1 ) [2025-10-18 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 15:25:05' and `end` < '2025-10-18 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 18:25:18] Production.INFO: count ==2667 [2025-10-18 18:25:19] Production.ERROR: pbx CDR StartTime 2025-10-18 15:25:05 - End Time 2025-10-18 18:25:05 [2025-10-18 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16041364', 'tblTempUsageDetail_20' ) start [2025-10-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16041364', 'tblTempUsageDetail_20' ) end [2025-10-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16041364', 'tblTempVendorCDR_20' ) start [2025-10-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16041364', 'tblTempVendorCDR_20' ) end [2025-10-18 18:25:19] Production.INFO: ProcessCDR(1,16041364,1,1,2) [2025-10-18 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16041364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16041364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16041364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16041364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16041364', 'tblTempUsageDetail_20' ) start [2025-10-18 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16041364', 'tblTempUsageDetail_20' ) end [2025-10-18 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-18 18:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-18 18:25:31] Production.INFO: ==2649== Releasing lock... [2025-10-18 18:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 18:25:31] Production.INFO: 48.25 MB #Memory Used# [2025-10-18 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 16:25:05 [end_date_ymd] => 2025-10-18 19:25:05 [RateCDR] => 1 ) [2025-10-18 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 16:25:05' and `end` < '2025-10-18 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 19:25:19] Production.INFO: count ==3186 [2025-10-18 19:25:20] Production.ERROR: pbx CDR StartTime 2025-10-18 16:25:05 - End Time 2025-10-18 19:25:05 [2025-10-18 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16041608', 'tblTempUsageDetail_20' ) start [2025-10-18 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16041608', 'tblTempUsageDetail_20' ) end [2025-10-18 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16041608', 'tblTempVendorCDR_20' ) start [2025-10-18 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16041608', 'tblTempVendorCDR_20' ) end [2025-10-18 19:25:21] Production.INFO: ProcessCDR(1,16041608,1,1,2) [2025-10-18 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16041608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 19:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16041608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 19:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16041608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 19:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16041608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 19:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16041608', 'tblTempUsageDetail_20' ) start [2025-10-18 19:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16041608', 'tblTempUsageDetail_20' ) end [2025-10-18 19:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-18 19:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-18 19:25:31] Production.INFO: ==9166== Releasing lock... [2025-10-18 19:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 19:25:31] Production.INFO: 52.25 MB #Memory Used# [2025-10-18 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 17:25:05 [end_date_ymd] => 2025-10-18 20:25:05 [RateCDR] => 1 ) [2025-10-18 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 17:25:05' and `end` < '2025-10-18 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 20:25:18] Production.INFO: count ==3159 [2025-10-18 20:25:19] Production.ERROR: pbx CDR StartTime 2025-10-18 17:25:05 - End Time 2025-10-18 20:25:05 [2025-10-18 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16041855', 'tblTempUsageDetail_20' ) start [2025-10-18 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16041855', 'tblTempUsageDetail_20' ) end [2025-10-18 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16041855', 'tblTempVendorCDR_20' ) start [2025-10-18 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16041855', 'tblTempVendorCDR_20' ) end [2025-10-18 20:25:19] Production.INFO: ProcessCDR(1,16041855,1,1,2) [2025-10-18 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16041855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16041855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16041855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16041855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16041855', 'tblTempUsageDetail_20' ) start [2025-10-18 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16041855', 'tblTempUsageDetail_20' ) end [2025-10-18 20:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-18 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-18 20:25:29] Production.INFO: ==15767== Releasing lock... [2025-10-18 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 20:25:29] Production.INFO: 52.75 MB #Memory Used# [2025-10-18 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 18:25:06 [end_date_ymd] => 2025-10-18 21:25:06 [RateCDR] => 1 ) [2025-10-18 21:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 18:25:06' and `end` < '2025-10-18 21:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 21:25:18] Production.INFO: count ==2898 [2025-10-18 21:25:19] Production.ERROR: pbx CDR StartTime 2025-10-18 18:25:06 - End Time 2025-10-18 21:25:06 [2025-10-18 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16042102', 'tblTempUsageDetail_20' ) start [2025-10-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16042102', 'tblTempUsageDetail_20' ) end [2025-10-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16042102', 'tblTempVendorCDR_20' ) start [2025-10-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16042102', 'tblTempVendorCDR_20' ) end [2025-10-18 21:25:19] Production.INFO: ProcessCDR(1,16042102,1,1,2) [2025-10-18 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16042102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 21:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16042102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 21:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16042102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 21:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16042102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16042102', 'tblTempUsageDetail_20' ) start [2025-10-18 21:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16042102', 'tblTempUsageDetail_20' ) end [2025-10-18 21:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-18 21:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-18 21:25:29] Production.INFO: ==23348== Releasing lock... [2025-10-18 21:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 21:25:29] Production.INFO: 49.5 MB #Memory Used# [2025-10-18 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 19:25:05 [end_date_ymd] => 2025-10-18 22:25:05 [RateCDR] => 1 ) [2025-10-18 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 19:25:05' and `end` < '2025-10-18 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 22:25:17] Production.INFO: count ==2255 [2025-10-18 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-18 19:25:05 - End Time 2025-10-18 22:25:05 [2025-10-18 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16042349', 'tblTempUsageDetail_20' ) start [2025-10-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16042349', 'tblTempUsageDetail_20' ) end [2025-10-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16042349', 'tblTempVendorCDR_20' ) start [2025-10-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16042349', 'tblTempVendorCDR_20' ) end [2025-10-18 22:25:18] Production.INFO: ProcessCDR(1,16042349,1,1,2) [2025-10-18 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16042349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16042349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16042349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16042349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16042349', 'tblTempUsageDetail_20' ) start [2025-10-18 22:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16042349', 'tblTempUsageDetail_20' ) end [2025-10-18 22:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-18 22:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-18 22:25:28] Production.INFO: ==29600== Releasing lock... [2025-10-18 22:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 22:25:28] Production.INFO: 45.25 MB #Memory Used# [2025-10-18 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 20:25:05 [end_date_ymd] => 2025-10-18 23:25:05 [RateCDR] => 1 ) [2025-10-18 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-18 20:25:05' and `end` < '2025-10-18 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-18 23:25:18] Production.INFO: count ==1676 [2025-10-18 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-18 20:25:05 - End Time 2025-10-18 23:25:05 [2025-10-18 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16042596', 'tblTempUsageDetail_20' ) start [2025-10-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16042596', 'tblTempUsageDetail_20' ) end [2025-10-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16042596', 'tblTempVendorCDR_20' ) start [2025-10-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16042596', 'tblTempVendorCDR_20' ) end [2025-10-18 23:25:18] Production.INFO: ProcessCDR(1,16042596,1,1,2) [2025-10-18 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16042596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16042596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-18 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16042596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16042596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-18 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16042596', 'tblTempUsageDetail_20' ) start [2025-10-18 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16042596', 'tblTempUsageDetail_20' ) end [2025-10-18 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-18 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-18 23:25:27] Production.INFO: ==3651== Releasing lock... [2025-10-18 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-18 23:25:27] Production.INFO: 41 MB #Memory Used#