[2025-06-18 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 21:25:05 [end_date_ymd] => 2025-06-18 00:25:05 [RateCDR] => 1 ) [2025-06-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-06-17 21:25:05' and `end` < '2025-06-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-06-18 00:25:18] Production.INFO: count ==442 [2025-06-18 00:25:18] Production.ERROR: pbx CDR StartTime 2025-06-17 21:25:05 - End Time 2025-06-18 00:25:05 [2025-06-18 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15313798', 'tblTempUsageDetail_20' ) start [2025-06-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15313798', 'tblTempUsageDetail_20' ) end [2025-06-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15313798', 'tblTempVendorCDR_20' ) start [2025-06-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15313798', 'tblTempVendorCDR_20' ) end [2025-06-18 00:25:18] Production.INFO: ProcessCDR(1,15313798,1,1,2) [2025-06-18 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15313798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15313798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15313798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15313798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15313798', 'tblTempUsageDetail_20' ) start [2025-06-18 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15313798', 'tblTempUsageDetail_20' ) end [2025-06-18 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-18 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-18 00:25:26] Production.INFO: ==8278== Releasing lock... [2025-06-18 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 00:25:26] Production.INFO: 35.5 MB #Memory Used# [2025-06-18 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 22:25:05 [end_date_ymd] => 2025-06-18 01:25:05 [RateCDR] => 1 ) [2025-06-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-06-17 22:25:05' and `end` < '2025-06-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-06-18 01:25:17] Production.INFO: count ==366 [2025-06-18 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-17 22:25:05 - End Time 2025-06-18 01:25:05 [2025-06-18 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15314045', 'tblTempUsageDetail_20' ) start [2025-06-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15314045', 'tblTempUsageDetail_20' ) end [2025-06-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15314045', 'tblTempVendorCDR_20' ) start [2025-06-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15314045', 'tblTempVendorCDR_20' ) end [2025-06-18 01:25:17] Production.INFO: ProcessCDR(1,15314045,1,1,2) [2025-06-18 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15314045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15314045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15314045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15314045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15314045', 'tblTempUsageDetail_20' ) start [2025-06-18 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15314045', 'tblTempUsageDetail_20' ) end [2025-06-18 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-18 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-18 01:25:24] Production.INFO: ==15033== Releasing lock... [2025-06-18 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 01:25:24] Production.INFO: 31.5 MB #Memory Used# [2025-06-18 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 23:25:05 [end_date_ymd] => 2025-06-18 02:25:05 [RateCDR] => 1 ) [2025-06-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-06-17 23:25:05' and `end` < '2025-06-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-06-18 02:25:17] Production.INFO: count ==301 [2025-06-18 02:25:17] Production.ERROR: pbx CDR StartTime 2025-06-17 23:25:05 - End Time 2025-06-18 02:25:05 [2025-06-18 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15314292', 'tblTempUsageDetail_20' ) start [2025-06-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15314292', 'tblTempUsageDetail_20' ) end [2025-06-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15314292', 'tblTempVendorCDR_20' ) start [2025-06-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15314292', 'tblTempVendorCDR_20' ) end [2025-06-18 02:25:18] Production.INFO: ProcessCDR(1,15314292,1,1,2) [2025-06-18 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15314292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15314292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15314292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15314292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15314292', 'tblTempUsageDetail_20' ) start [2025-06-18 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15314292', 'tblTempUsageDetail_20' ) end [2025-06-18 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-18 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-18 02:25:24] Production.INFO: ==22240== Releasing lock... [2025-06-18 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 02:25:24] Production.INFO: 30.75 MB #Memory Used# [2025-06-18 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 00:25:05 [end_date_ymd] => 2025-06-18 03:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 00:25:05' and `end` < '2025-06-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-06-18 03:25:17] Production.INFO: count ==373 [2025-06-18 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-18 00:25:05 - End Time 2025-06-18 03:25:05 [2025-06-18 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15314539', 'tblTempUsageDetail_20' ) start [2025-06-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15314539', 'tblTempUsageDetail_20' ) end [2025-06-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15314539', 'tblTempVendorCDR_20' ) start [2025-06-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15314539', 'tblTempVendorCDR_20' ) end [2025-06-18 03:25:17] Production.INFO: ProcessCDR(1,15314539,1,1,2) [2025-06-18 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15314539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15314539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15314539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15314539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15314539', 'tblTempUsageDetail_20' ) start [2025-06-18 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15314539', 'tblTempUsageDetail_20' ) end [2025-06-18 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-18 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-18 03:25:24] Production.INFO: ==28880== Releasing lock... [2025-06-18 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 03:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-06-18 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 01:25:05 [end_date_ymd] => 2025-06-18 04:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 01:25:05' and `end` < '2025-06-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-06-18 04:25:17] Production.INFO: count ==289 [2025-06-18 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-18 01:25:05 - End Time 2025-06-18 04:25:05 [2025-06-18 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15314787', 'tblTempUsageDetail_20' ) start [2025-06-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15314787', 'tblTempUsageDetail_20' ) end [2025-06-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15314787', 'tblTempVendorCDR_20' ) start [2025-06-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15314787', 'tblTempVendorCDR_20' ) end [2025-06-18 04:25:17] Production.INFO: ProcessCDR(1,15314787,1,1,2) [2025-06-18 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15314787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15314787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15314787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15314787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15314787', 'tblTempUsageDetail_20' ) start [2025-06-18 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15314787', 'tblTempUsageDetail_20' ) end [2025-06-18 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-18 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-18 04:25:23] Production.INFO: ==3204== Releasing lock... [2025-06-18 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 04:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-06-18 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 02:25:04 [end_date_ymd] => 2025-06-18 05:25:04 [RateCDR] => 1 ) [2025-06-18 05: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-06-18 02:25:04' and `end` < '2025-06-18 05: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-06-18 05:25:17] Production.INFO: count ==233 [2025-06-18 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-18 02:25:04 - End Time 2025-06-18 05:25:04 [2025-06-18 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15315035', 'tblTempUsageDetail_20' ) start [2025-06-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15315035', 'tblTempUsageDetail_20' ) end [2025-06-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15315035', 'tblTempVendorCDR_20' ) start [2025-06-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15315035', 'tblTempVendorCDR_20' ) end [2025-06-18 05:25:17] Production.INFO: ProcessCDR(1,15315035,1,1,2) [2025-06-18 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15315035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15315035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15315035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15315035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15315035', 'tblTempUsageDetail_20' ) start [2025-06-18 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15315035', 'tblTempUsageDetail_20' ) end [2025-06-18 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-18 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-18 05:25:23] Production.INFO: ==9956== Releasing lock... [2025-06-18 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 05:25:23] Production.INFO: 30.25 MB #Memory Used# [2025-06-18 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 03:25:05 [end_date_ymd] => 2025-06-18 06:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 03:25:05' and `end` < '2025-06-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-06-18 06:25:17] Production.INFO: count ==104 [2025-06-18 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-18 03:25:05 - End Time 2025-06-18 06:25:05 [2025-06-18 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15315282', 'tblTempUsageDetail_20' ) start [2025-06-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15315282', 'tblTempUsageDetail_20' ) end [2025-06-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15315282', 'tblTempVendorCDR_20' ) start [2025-06-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15315282', 'tblTempVendorCDR_20' ) end [2025-06-18 06:25:17] Production.INFO: ProcessCDR(1,15315282,1,1,2) [2025-06-18 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15315282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15315282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15315282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15315282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15315282', 'tblTempUsageDetail_20' ) start [2025-06-18 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15315282', 'tblTempUsageDetail_20' ) end [2025-06-18 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-18 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-18 06:25:23] Production.INFO: ==16660== Releasing lock... [2025-06-18 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 06:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-06-18 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 04:25:05 [end_date_ymd] => 2025-06-18 07:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 04:25:05' and `end` < '2025-06-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-06-18 07:25:17] Production.INFO: count ==169 [2025-06-18 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-18 04:25:05 - End Time 2025-06-18 07:25:05 [2025-06-18 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15315529', 'tblTempUsageDetail_20' ) start [2025-06-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15315529', 'tblTempUsageDetail_20' ) end [2025-06-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15315529', 'tblTempVendorCDR_20' ) start [2025-06-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15315529', 'tblTempVendorCDR_20' ) end [2025-06-18 07:25:17] Production.INFO: ProcessCDR(1,15315529,1,1,2) [2025-06-18 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15315529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15315529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15315529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15315529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15315529', 'tblTempUsageDetail_20' ) start [2025-06-18 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15315529', 'tblTempUsageDetail_20' ) end [2025-06-18 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-18 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-18 07:25:23] Production.INFO: ==21549== Releasing lock... [2025-06-18 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 07:25:23] Production.INFO: 29.75 MB #Memory Used# [2025-06-18 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 05:25:05 [end_date_ymd] => 2025-06-18 08:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 05:25:05' and `end` < '2025-06-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-06-18 08:25:17] Production.INFO: count ==435 [2025-06-18 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-18 05:25:05 - End Time 2025-06-18 08:25:05 [2025-06-18 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15315776', 'tblTempUsageDetail_20' ) start [2025-06-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15315776', 'tblTempUsageDetail_20' ) end [2025-06-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15315776', 'tblTempVendorCDR_20' ) start [2025-06-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15315776', 'tblTempVendorCDR_20' ) end [2025-06-18 08:25:17] Production.INFO: ProcessCDR(1,15315776,1,1,2) [2025-06-18 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15315776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15315776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15315776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15315776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15315776', 'tblTempUsageDetail_20' ) start [2025-06-18 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15315776', 'tblTempUsageDetail_20' ) end [2025-06-18 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-18 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-18 08:25:24] Production.INFO: ==25865== Releasing lock... [2025-06-18 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 08:25:24] Production.INFO: 31.75 MB #Memory Used# [2025-06-18 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 06:25:05 [end_date_ymd] => 2025-06-18 09:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 06:25:05' and `end` < '2025-06-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-06-18 09:25:17] Production.INFO: count ==1461 [2025-06-18 09:25:18] Production.ERROR: pbx CDR StartTime 2025-06-18 06:25:05 - End Time 2025-06-18 09:25:05 [2025-06-18 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15316023', 'tblTempUsageDetail_20' ) start [2025-06-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15316023', 'tblTempUsageDetail_20' ) end [2025-06-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15316023', 'tblTempVendorCDR_20' ) start [2025-06-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15316023', 'tblTempVendorCDR_20' ) end [2025-06-18 09:25:18] Production.INFO: ProcessCDR(1,15316023,1,1,2) [2025-06-18 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15316023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15316023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15316023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15316023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15316023', 'tblTempUsageDetail_20' ) start [2025-06-18 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15316023', 'tblTempUsageDetail_20' ) end [2025-06-18 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-18 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-18 09:25:26] Production.INFO: ==30158== Releasing lock... [2025-06-18 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 09:25:26] Production.INFO: 39 MB #Memory Used# [2025-06-18 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 07:25:06 [end_date_ymd] => 2025-06-18 10:25:06 [RateCDR] => 1 ) [2025-06-18 10: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-06-18 07:25:06' and `end` < '2025-06-18 10: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-06-18 10:25:18] Production.INFO: count ==2937 [2025-06-18 10:25:20] Production.ERROR: pbx CDR StartTime 2025-06-18 07:25:06 - End Time 2025-06-18 10:25:06 [2025-06-18 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15316270', 'tblTempUsageDetail_20' ) start [2025-06-18 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15316270', 'tblTempUsageDetail_20' ) end [2025-06-18 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15316270', 'tblTempVendorCDR_20' ) start [2025-06-18 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15316270', 'tblTempVendorCDR_20' ) end [2025-06-18 10:25:20] Production.INFO: ProcessCDR(1,15316270,1,1,2) [2025-06-18 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15316270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15316270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15316270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15316270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15316270', 'tblTempUsageDetail_20' ) start [2025-06-18 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15316270', 'tblTempUsageDetail_20' ) end [2025-06-18 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-18 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-06-18 10:25:29] Production.INFO: ==2070== Releasing lock... [2025-06-18 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 10:25:29] Production.INFO: 50.75 MB #Memory Used# [2025-06-18 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 08:25:05 [end_date_ymd] => 2025-06-18 11:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 08:25:05' and `end` < '2025-06-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-06-18 11:25:18] Production.INFO: count ==4692 [2025-06-18 11:25:21] Production.ERROR: pbx CDR StartTime 2025-06-18 08:25:05 - End Time 2025-06-18 11:25:05 [2025-06-18 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15316517', 'tblTempUsageDetail_20' ) start [2025-06-18 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15316517', 'tblTempUsageDetail_20' ) end [2025-06-18 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15316517', 'tblTempVendorCDR_20' ) start [2025-06-18 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15316517', 'tblTempVendorCDR_20' ) end [2025-06-18 11:25:21] Production.INFO: ProcessCDR(1,15316517,1,1,2) [2025-06-18 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15316517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15316517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15316517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15316517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15316517', 'tblTempUsageDetail_20' ) start [2025-06-18 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15316517', 'tblTempUsageDetail_20' ) end [2025-06-18 11:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-18 11:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-18 11:25:31] Production.INFO: ==7063== Releasing lock... [2025-06-18 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 11:25:31] Production.INFO: 63.25 MB #Memory Used# [2025-06-18 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 09:25:05 [end_date_ymd] => 2025-06-18 12:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 09:25:05' and `end` < '2025-06-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-06-18 12:25:18] Production.INFO: count ==5547 [2025-06-18 12:25:21] Production.ERROR: pbx CDR StartTime 2025-06-18 09:25:05 - End Time 2025-06-18 12:25:05 [2025-06-18 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15316764', 'tblTempUsageDetail_20' ) start [2025-06-18 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15316764', 'tblTempUsageDetail_20' ) end [2025-06-18 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15316764', 'tblTempVendorCDR_20' ) start [2025-06-18 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15316764', 'tblTempVendorCDR_20' ) end [2025-06-18 12:25:22] Production.INFO: ProcessCDR(1,15316764,1,1,2) [2025-06-18 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15316764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15316764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15316764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15316764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15316764', 'tblTempUsageDetail_20' ) start [2025-06-18 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15316764', 'tblTempUsageDetail_20' ) end [2025-06-18 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-18 12:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-18 12:25:32] Production.INFO: ==11714== Releasing lock... [2025-06-18 12:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 12:25:32] Production.INFO: 69.75 MB #Memory Used# [2025-06-18 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 10:25:05 [end_date_ymd] => 2025-06-18 13:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 10:25:05' and `end` < '2025-06-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-06-18 13:25:20] Production.INFO: count ==5479 [2025-06-18 13:25:23] Production.ERROR: pbx CDR StartTime 2025-06-18 10:25:05 - End Time 2025-06-18 13:25:05 [2025-06-18 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15317011', 'tblTempUsageDetail_20' ) start [2025-06-18 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15317011', 'tblTempUsageDetail_20' ) end [2025-06-18 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15317011', 'tblTempVendorCDR_20' ) start [2025-06-18 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15317011', 'tblTempVendorCDR_20' ) end [2025-06-18 13:25:23] Production.INFO: ProcessCDR(1,15317011,1,1,2) [2025-06-18 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15317011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15317011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15317011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15317011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15317011', 'tblTempUsageDetail_20' ) start [2025-06-18 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15317011', 'tblTempUsageDetail_20' ) end [2025-06-18 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-18 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-06-18 13:25:34] Production.INFO: ==16859== Releasing lock... [2025-06-18 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 13:25:34] Production.INFO: 69.25 MB #Memory Used# [2025-06-18 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 11:25:05 [end_date_ymd] => 2025-06-18 14:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 11:25:05' and `end` < '2025-06-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-06-18 14:25:18] Production.INFO: count ==5323 [2025-06-18 14:25:20] Production.ERROR: pbx CDR StartTime 2025-06-18 11:25:05 - End Time 2025-06-18 14:25:05 [2025-06-18 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15317258', 'tblTempUsageDetail_20' ) start [2025-06-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15317258', 'tblTempUsageDetail_20' ) end [2025-06-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15317258', 'tblTempVendorCDR_20' ) start [2025-06-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15317258', 'tblTempVendorCDR_20' ) end [2025-06-18 14:25:21] Production.INFO: ProcessCDR(1,15317258,1,1,2) [2025-06-18 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15317258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15317258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15317258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 14:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15317258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15317258', 'tblTempUsageDetail_20' ) start [2025-06-18 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15317258', 'tblTempUsageDetail_20' ) end [2025-06-18 14:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-18 14:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-18 14:25:31] Production.INFO: ==22024== Releasing lock... [2025-06-18 14:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 14:25:31] Production.INFO: 68 MB #Memory Used# [2025-06-18 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 12:25:05 [end_date_ymd] => 2025-06-18 15:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 12:25:05' and `end` < '2025-06-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-06-18 15:25:22] Production.INFO: count ==5198 [2025-06-18 15:25:24] Production.ERROR: pbx CDR StartTime 2025-06-18 12:25:05 - End Time 2025-06-18 15:25:05 [2025-06-18 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15317505', 'tblTempUsageDetail_20' ) start [2025-06-18 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15317505', 'tblTempUsageDetail_20' ) end [2025-06-18 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15317505', 'tblTempVendorCDR_20' ) start [2025-06-18 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15317505', 'tblTempVendorCDR_20' ) end [2025-06-18 15:25:24] Production.INFO: ProcessCDR(1,15317505,1,1,2) [2025-06-18 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15317505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15317505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15317505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15317505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15317505', 'tblTempUsageDetail_20' ) start [2025-06-18 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15317505', 'tblTempUsageDetail_20' ) end [2025-06-18 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-06-18 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-06-18 15:25:35] Production.INFO: ==26785== Releasing lock... [2025-06-18 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 15:25:35] Production.INFO: 67.25 MB #Memory Used# [2025-06-18 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 13:25:06 [end_date_ymd] => 2025-06-18 16:25:06 [RateCDR] => 1 ) [2025-06-18 16: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-06-18 13:25:06' and `end` < '2025-06-18 16: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-06-18 16:25:19] Production.INFO: count ==5497 [2025-06-18 16:25:22] Production.ERROR: pbx CDR StartTime 2025-06-18 13:25:06 - End Time 2025-06-18 16:25:06 [2025-06-18 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15317752', 'tblTempUsageDetail_20' ) start [2025-06-18 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15317752', 'tblTempUsageDetail_20' ) end [2025-06-18 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15317752', 'tblTempVendorCDR_20' ) start [2025-06-18 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15317752', 'tblTempVendorCDR_20' ) end [2025-06-18 16:25:23] Production.INFO: ProcessCDR(1,15317752,1,1,2) [2025-06-18 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15317752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15317752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15317752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15317752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15317752', 'tblTempUsageDetail_20' ) start [2025-06-18 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15317752', 'tblTempUsageDetail_20' ) end [2025-06-18 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-18 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-18 16:25:34] Production.INFO: ==31371== Releasing lock... [2025-06-18 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 16:25:34] Production.INFO: 69.5 MB #Memory Used# [2025-06-18 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 14:25:05 [end_date_ymd] => 2025-06-18 17:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 14:25:05' and `end` < '2025-06-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-06-18 17:25:19] Production.INFO: count ==5068 [2025-06-18 17:25:22] Production.ERROR: pbx CDR StartTime 2025-06-18 14:25:05 - End Time 2025-06-18 17:25:05 [2025-06-18 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15317999', 'tblTempUsageDetail_20' ) start [2025-06-18 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15317999', 'tblTempUsageDetail_20' ) end [2025-06-18 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15317999', 'tblTempVendorCDR_20' ) start [2025-06-18 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15317999', 'tblTempVendorCDR_20' ) end [2025-06-18 17:25:22] Production.INFO: ProcessCDR(1,15317999,1,1,2) [2025-06-18 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15317999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15317999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15317999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15317999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15317999', 'tblTempUsageDetail_20' ) start [2025-06-18 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15317999', 'tblTempUsageDetail_20' ) end [2025-06-18 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-18 17:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-18 17:25:31] Production.INFO: ==3585== Releasing lock... [2025-06-18 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 17:25:31] Production.INFO: 66.25 MB #Memory Used# [2025-06-18 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 15:25:05 [end_date_ymd] => 2025-06-18 18:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 15:25:05' and `end` < '2025-06-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-06-18 18:25:18] Production.INFO: count ==4283 [2025-06-18 18:25:20] Production.ERROR: pbx CDR StartTime 2025-06-18 15:25:05 - End Time 2025-06-18 18:25:05 [2025-06-18 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15318246', 'tblTempUsageDetail_20' ) start [2025-06-18 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15318246', 'tblTempUsageDetail_20' ) end [2025-06-18 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15318246', 'tblTempVendorCDR_20' ) start [2025-06-18 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15318246', 'tblTempVendorCDR_20' ) end [2025-06-18 18:25:20] Production.INFO: ProcessCDR(1,15318246,1,1,2) [2025-06-18 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15318246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15318246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15318246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 18:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15318246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15318246', 'tblTempUsageDetail_20' ) start [2025-06-18 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15318246', 'tblTempUsageDetail_20' ) end [2025-06-18 18:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-18 18:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-18 18:25:28] Production.INFO: ==8046== Releasing lock... [2025-06-18 18:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 18:25:28] Production.INFO: 60.25 MB #Memory Used# [2025-06-18 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 16:25:05 [end_date_ymd] => 2025-06-18 19:25:05 [RateCDR] => 1 ) [2025-06-18 19: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-06-18 16:25:05' and `end` < '2025-06-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-06-18 19:25:18] Production.INFO: count ==3342 [2025-06-18 19:25:20] Production.ERROR: pbx CDR StartTime 2025-06-18 16:25:05 - End Time 2025-06-18 19:25:05 [2025-06-18 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15318490', 'tblTempUsageDetail_20' ) start [2025-06-18 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15318490', 'tblTempUsageDetail_20' ) end [2025-06-18 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15318490', 'tblTempVendorCDR_20' ) start [2025-06-18 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15318490', 'tblTempVendorCDR_20' ) end [2025-06-18 19:25:20] Production.INFO: ProcessCDR(1,15318490,1,1,2) [2025-06-18 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15318490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15318490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15318490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15318490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15318490', 'tblTempUsageDetail_20' ) start [2025-06-18 19:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15318490', 'tblTempUsageDetail_20' ) end [2025-06-18 19:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-18 19:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-18 19:25:31] Production.INFO: ==12492== Releasing lock... [2025-06-18 19:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 19:25:31] Production.INFO: 53 MB #Memory Used# [2025-06-18 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 17:25:04 [end_date_ymd] => 2025-06-18 20:25:04 [RateCDR] => 1 ) [2025-06-18 20: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-06-18 17:25:04' and `end` < '2025-06-18 20: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-06-18 20:25:17] Production.INFO: count ==2531 [2025-06-18 20:25:18] Production.ERROR: pbx CDR StartTime 2025-06-18 17:25:04 - End Time 2025-06-18 20:25:04 [2025-06-18 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15318737', 'tblTempUsageDetail_20' ) start [2025-06-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15318737', 'tblTempUsageDetail_20' ) end [2025-06-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15318737', 'tblTempVendorCDR_20' ) start [2025-06-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15318737', 'tblTempVendorCDR_20' ) end [2025-06-18 20:25:18] Production.INFO: ProcessCDR(1,15318737,1,1,2) [2025-06-18 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15318737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15318737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15318737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 20:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15318737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15318737', 'tblTempUsageDetail_20' ) start [2025-06-18 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15318737', 'tblTempUsageDetail_20' ) end [2025-06-18 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-18 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-18 20:25:25] Production.INFO: ==16943== Releasing lock... [2025-06-18 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 20:25:25] Production.INFO: 47.5 MB #Memory Used# [2025-06-18 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 18:25:05 [end_date_ymd] => 2025-06-18 21:25:05 [RateCDR] => 1 ) [2025-06-18 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-18 18:25:05' and `end` < '2025-06-18 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-18 21:25:18] Production.INFO: count ==1837 [2025-06-18 21:25:19] Production.ERROR: pbx CDR StartTime 2025-06-18 18:25:05 - End Time 2025-06-18 21:25:05 [2025-06-18 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15318984', 'tblTempUsageDetail_20' ) start [2025-06-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15318984', 'tblTempUsageDetail_20' ) end [2025-06-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15318984', 'tblTempVendorCDR_20' ) start [2025-06-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15318984', 'tblTempVendorCDR_20' ) end [2025-06-18 21:25:19] Production.INFO: ProcessCDR(1,15318984,1,1,2) [2025-06-18 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15318984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15318984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15318984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15318984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15318984', 'tblTempUsageDetail_20' ) start [2025-06-18 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15318984', 'tblTempUsageDetail_20' ) end [2025-06-18 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-18 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-18 21:25:26] Production.INFO: ==21860== Releasing lock... [2025-06-18 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 21:25:26] Production.INFO: 42 MB #Memory Used# [2025-06-18 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 19:25:05 [end_date_ymd] => 2025-06-18 22:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 19:25:05' and `end` < '2025-06-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-06-18 22:25:18] Production.INFO: count ==1301 [2025-06-18 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-18 19:25:05 - End Time 2025-06-18 22:25:05 [2025-06-18 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15319231', 'tblTempUsageDetail_20' ) start [2025-06-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15319231', 'tblTempUsageDetail_20' ) end [2025-06-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15319231', 'tblTempVendorCDR_20' ) start [2025-06-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15319231', 'tblTempVendorCDR_20' ) end [2025-06-18 22:25:18] Production.INFO: ProcessCDR(1,15319231,1,1,2) [2025-06-18 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15319231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15319231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15319231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15319231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15319231', 'tblTempUsageDetail_20' ) start [2025-06-18 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15319231', 'tblTempUsageDetail_20' ) end [2025-06-18 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-18 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-18 22:25:26] Production.INFO: ==26144== Releasing lock... [2025-06-18 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 22:25:26] Production.INFO: 38 MB #Memory Used# [2025-06-18 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 20:25:05 [end_date_ymd] => 2025-06-18 23:25:05 [RateCDR] => 1 ) [2025-06-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-06-18 20:25:05' and `end` < '2025-06-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-06-18 23:25:18] Production.INFO: count ==928 [2025-06-18 23:25:18] Production.ERROR: pbx CDR StartTime 2025-06-18 20:25:05 - End Time 2025-06-18 23:25:05 [2025-06-18 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15319478', 'tblTempUsageDetail_20' ) start [2025-06-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15319478', 'tblTempUsageDetail_20' ) end [2025-06-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15319478', 'tblTempVendorCDR_20' ) start [2025-06-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15319478', 'tblTempVendorCDR_20' ) end [2025-06-18 23:25:18] Production.INFO: ProcessCDR(1,15319478,1,1,2) [2025-06-18 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15319478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15319478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-18 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15319478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15319478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-18 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15319478', 'tblTempUsageDetail_20' ) start [2025-06-18 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15319478', 'tblTempUsageDetail_20' ) end [2025-06-18 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-18 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-18 23:25:25] Production.INFO: ==30703== Releasing lock... [2025-06-18 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-18 23:25:25] Production.INFO: 35.25 MB #Memory Used#