[2025-08-18 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 21:25:06 [end_date_ymd] => 2025-08-18 00:25:06 [RateCDR] => 1 ) [2025-08-18 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-17 21:25:06' and `end` < '2025-08-18 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-18 00:25:18] Production.INFO: count ==564 [2025-08-18 00:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 21:25:06 - End Time 2025-08-18 00:25:06 [2025-08-18 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15675349', 'tblTempUsageDetail_20' ) start [2025-08-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15675349', 'tblTempUsageDetail_20' ) end [2025-08-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15675349', 'tblTempVendorCDR_20' ) start [2025-08-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15675349', 'tblTempVendorCDR_20' ) end [2025-08-18 00:25:18] Production.INFO: ProcessCDR(1,15675349,1,1,2) [2025-08-18 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15675349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15675349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15675349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15675349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15675349', 'tblTempUsageDetail_20' ) start [2025-08-18 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15675349', 'tblTempUsageDetail_20' ) end [2025-08-18 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-18 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-18 00:25:27] Production.INFO: ==28419== Releasing lock... [2025-08-18 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 00:25:27] Production.INFO: 35.25 MB #Memory Used# [2025-08-18 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 22:25:05 [end_date_ymd] => 2025-08-18 01:25:05 [RateCDR] => 1 ) [2025-08-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-08-17 22:25:05' and `end` < '2025-08-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-08-18 01:25:17] Production.INFO: count ==519 [2025-08-18 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 22:25:05 - End Time 2025-08-18 01:25:05 [2025-08-18 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15675596', 'tblTempUsageDetail_20' ) start [2025-08-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15675596', 'tblTempUsageDetail_20' ) end [2025-08-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15675596', 'tblTempVendorCDR_20' ) start [2025-08-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15675596', 'tblTempVendorCDR_20' ) end [2025-08-18 01:25:18] Production.INFO: ProcessCDR(1,15675596,1,1,2) [2025-08-18 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15675596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15675596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15675596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15675596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15675596', 'tblTempUsageDetail_20' ) start [2025-08-18 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15675596', 'tblTempUsageDetail_20' ) end [2025-08-18 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-18 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-18 01:25:25] Production.INFO: ==32755== Releasing lock... [2025-08-18 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 01:25:25] Production.INFO: 32.75 MB #Memory Used# [2025-08-18 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 23:25:06 [end_date_ymd] => 2025-08-18 02:25:06 [RateCDR] => 1 ) [2025-08-18 02: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-08-17 23:25:06' and `end` < '2025-08-18 02: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-08-18 02:25:20] Production.INFO: count ==385 [2025-08-18 02:25:20] Production.ERROR: pbx CDR StartTime 2025-08-17 23:25:06 - End Time 2025-08-18 02:25:06 [2025-08-18 02:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15675843', 'tblTempUsageDetail_20' ) start [2025-08-18 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15675843', 'tblTempUsageDetail_20' ) end [2025-08-18 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15675843', 'tblTempVendorCDR_20' ) start [2025-08-18 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15675843', 'tblTempVendorCDR_20' ) end [2025-08-18 02:25:21] Production.INFO: ProcessCDR(1,15675843,1,1,2) [2025-08-18 02:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15675843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 02:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15675843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 02:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15675843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 02:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15675843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15675843', 'tblTempUsageDetail_20' ) start [2025-08-18 02:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15675843', 'tblTempUsageDetail_20' ) end [2025-08-18 02:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-18 02:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-18 02:25:28] Production.INFO: ==4955== Releasing lock... [2025-08-18 02:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 02:25:28] Production.INFO: 31.5 MB #Memory Used# [2025-08-18 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 00:25:05 [end_date_ymd] => 2025-08-18 03:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 00:25:05' and `end` < '2025-08-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-08-18 03:25:17] Production.INFO: count ==295 [2025-08-18 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-18 00:25:05 - End Time 2025-08-18 03:25:05 [2025-08-18 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15676090', 'tblTempUsageDetail_20' ) start [2025-08-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15676090', 'tblTempUsageDetail_20' ) end [2025-08-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15676090', 'tblTempVendorCDR_20' ) start [2025-08-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15676090', 'tblTempVendorCDR_20' ) end [2025-08-18 03:25:17] Production.INFO: ProcessCDR(1,15676090,1,1,2) [2025-08-18 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15676090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15676090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15676090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15676090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15676090', 'tblTempUsageDetail_20' ) start [2025-08-18 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15676090', 'tblTempUsageDetail_20' ) end [2025-08-18 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-18 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-18 03:25:24] Production.INFO: ==9264== Releasing lock... [2025-08-18 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 03:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-08-18 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 01:25:05 [end_date_ymd] => 2025-08-18 04:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 01:25:05' and `end` < '2025-08-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-08-18 04:25:17] Production.INFO: count ==201 [2025-08-18 04:25:17] Production.ERROR: pbx CDR StartTime 2025-08-18 01:25:05 - End Time 2025-08-18 04:25:05 [2025-08-18 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15676338', 'tblTempUsageDetail_20' ) start [2025-08-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15676338', 'tblTempUsageDetail_20' ) end [2025-08-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15676338', 'tblTempVendorCDR_20' ) start [2025-08-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15676338', 'tblTempVendorCDR_20' ) end [2025-08-18 04:25:17] Production.INFO: ProcessCDR(1,15676338,1,1,2) [2025-08-18 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15676338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15676338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15676338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15676338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15676338', 'tblTempUsageDetail_20' ) start [2025-08-18 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15676338', 'tblTempUsageDetail_20' ) end [2025-08-18 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-18 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-18 04:25:24] Production.INFO: ==13715== Releasing lock... [2025-08-18 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 04:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-08-18 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 02:25:05 [end_date_ymd] => 2025-08-18 05:25:05 [RateCDR] => 1 ) [2025-08-18 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-18 02:25:05' and `end` < '2025-08-18 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-18 05:25:18] Production.INFO: count ==133 [2025-08-18 05:25:18] Production.ERROR: pbx CDR StartTime 2025-08-18 02:25:05 - End Time 2025-08-18 05:25:05 [2025-08-18 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15676586', 'tblTempUsageDetail_20' ) start [2025-08-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15676586', 'tblTempUsageDetail_20' ) end [2025-08-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15676586', 'tblTempVendorCDR_20' ) start [2025-08-18 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15676586', 'tblTempVendorCDR_20' ) end [2025-08-18 05:25:18] Production.INFO: ProcessCDR(1,15676586,1,1,2) [2025-08-18 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15676586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15676586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15676586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15676586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15676586', 'tblTempUsageDetail_20' ) start [2025-08-18 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15676586', 'tblTempUsageDetail_20' ) end [2025-08-18 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-08-18 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-08-18 05:25:23] Production.INFO: ==18429== Releasing lock... [2025-08-18 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 05:25:23] Production.INFO: 29 MB #Memory Used# [2025-08-18 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 03:25:06 [end_date_ymd] => 2025-08-18 06:25:06 [RateCDR] => 1 ) [2025-08-18 06: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-08-18 03:25:06' and `end` < '2025-08-18 06: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-08-18 06:25:18] Production.INFO: count ==112 [2025-08-18 06:25:18] Production.ERROR: pbx CDR StartTime 2025-08-18 03:25:06 - End Time 2025-08-18 06:25:06 [2025-08-18 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15676833', 'tblTempUsageDetail_20' ) start [2025-08-18 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15676833', 'tblTempUsageDetail_20' ) end [2025-08-18 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15676833', 'tblTempVendorCDR_20' ) start [2025-08-18 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15676833', 'tblTempVendorCDR_20' ) end [2025-08-18 06:25:18] Production.INFO: ProcessCDR(1,15676833,1,1,2) [2025-08-18 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15676833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15676833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15676833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15676833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15676833', 'tblTempUsageDetail_20' ) start [2025-08-18 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15676833', 'tblTempUsageDetail_20' ) end [2025-08-18 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-18 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-18 06:25:25] Production.INFO: ==22755== Releasing lock... [2025-08-18 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 06:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-08-18 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 04:25:05 [end_date_ymd] => 2025-08-18 07:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 04:25:05' and `end` < '2025-08-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-08-18 07:25:17] Production.INFO: count ==136 [2025-08-18 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-18 04:25:05 - End Time 2025-08-18 07:25:05 [2025-08-18 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15677080', 'tblTempUsageDetail_20' ) start [2025-08-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15677080', 'tblTempUsageDetail_20' ) end [2025-08-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15677080', 'tblTempVendorCDR_20' ) start [2025-08-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15677080', 'tblTempVendorCDR_20' ) end [2025-08-18 07:25:17] Production.INFO: ProcessCDR(1,15677080,1,1,2) [2025-08-18 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15677080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15677080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15677080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15677080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15677080', 'tblTempUsageDetail_20' ) start [2025-08-18 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15677080', 'tblTempUsageDetail_20' ) end [2025-08-18 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-18 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-18 07:25:24] Production.INFO: ==27258== Releasing lock... [2025-08-18 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 07:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-08-18 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 05:25:05 [end_date_ymd] => 2025-08-18 08:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 05:25:05' and `end` < '2025-08-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-08-18 08:25:17] Production.INFO: count ==414 [2025-08-18 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-18 05:25:05 - End Time 2025-08-18 08:25:05 [2025-08-18 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15677327', 'tblTempUsageDetail_20' ) start [2025-08-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15677327', 'tblTempUsageDetail_20' ) end [2025-08-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15677327', 'tblTempVendorCDR_20' ) start [2025-08-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15677327', 'tblTempVendorCDR_20' ) end [2025-08-18 08:25:17] Production.INFO: ProcessCDR(1,15677327,1,1,2) [2025-08-18 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15677327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15677327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15677327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15677327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15677327', 'tblTempUsageDetail_20' ) start [2025-08-18 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15677327', 'tblTempUsageDetail_20' ) end [2025-08-18 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-18 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-18 08:25:25] Production.INFO: ==31671== Releasing lock... [2025-08-18 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 08:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-08-18 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 06:25:05 [end_date_ymd] => 2025-08-18 09:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 06:25:05' and `end` < '2025-08-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-08-18 09:25:17] Production.INFO: count ==1455 [2025-08-18 09:25:18] Production.ERROR: pbx CDR StartTime 2025-08-18 06:25:05 - End Time 2025-08-18 09:25:05 [2025-08-18 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15677574', 'tblTempUsageDetail_20' ) start [2025-08-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15677574', 'tblTempUsageDetail_20' ) end [2025-08-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15677574', 'tblTempVendorCDR_20' ) start [2025-08-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15677574', 'tblTempVendorCDR_20' ) end [2025-08-18 09:25:18] Production.INFO: ProcessCDR(1,15677574,1,1,2) [2025-08-18 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15677574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15677574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15677574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15677574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15677574', 'tblTempUsageDetail_20' ) start [2025-08-18 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15677574', 'tblTempUsageDetail_20' ) end [2025-08-18 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-18 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-18 09:25:27] Production.INFO: ==4345== Releasing lock... [2025-08-18 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 09:25:27] Production.INFO: 39 MB #Memory Used# [2025-08-18 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 07:25:05 [end_date_ymd] => 2025-08-18 10:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 07:25:05' and `end` < '2025-08-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-08-18 10:25:22] Production.INFO: count ==3333 [2025-08-18 10:25:24] Production.ERROR: pbx CDR StartTime 2025-08-18 07:25:05 - End Time 2025-08-18 10:25:05 [2025-08-18 10:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15677821', 'tblTempUsageDetail_20' ) start [2025-08-18 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15677821', 'tblTempUsageDetail_20' ) end [2025-08-18 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15677821', 'tblTempVendorCDR_20' ) start [2025-08-18 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15677821', 'tblTempVendorCDR_20' ) end [2025-08-18 10:25:24] Production.INFO: ProcessCDR(1,15677821,1,1,2) [2025-08-18 10:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15677821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15677821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15677821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 10:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15677821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 10:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15677821', 'tblTempUsageDetail_20' ) start [2025-08-18 10:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15677821', 'tblTempUsageDetail_20' ) end [2025-08-18 10:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-18 10:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-18 10:25:36] Production.INFO: ==8776== Releasing lock... [2025-08-18 10:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 10:25:36] Production.INFO: 53 MB #Memory Used# [2025-08-18 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 08:25:06 [end_date_ymd] => 2025-08-18 11:25:06 [RateCDR] => 1 ) [2025-08-18 11: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-08-18 08:25:06' and `end` < '2025-08-18 11: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-08-18 11:25:20] Production.INFO: count ==5056 [2025-08-18 11:25:22] Production.ERROR: pbx CDR StartTime 2025-08-18 08:25:06 - End Time 2025-08-18 11:25:06 [2025-08-18 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15678068', 'tblTempUsageDetail_20' ) start [2025-08-18 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15678068', 'tblTempUsageDetail_20' ) end [2025-08-18 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15678068', 'tblTempVendorCDR_20' ) start [2025-08-18 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15678068', 'tblTempVendorCDR_20' ) end [2025-08-18 11:25:23] Production.INFO: ProcessCDR(1,15678068,1,1,2) [2025-08-18 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15678068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15678068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15678068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15678068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15678068', 'tblTempUsageDetail_20' ) start [2025-08-18 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15678068', 'tblTempUsageDetail_20' ) end [2025-08-18 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-18 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-18 11:25:33] Production.INFO: ==13068== Releasing lock... [2025-08-18 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 11:25:33] Production.INFO: 66 MB #Memory Used# [2025-08-18 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 09:25:05 [end_date_ymd] => 2025-08-18 12:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 09:25:05' and `end` < '2025-08-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-08-18 12:25:22] Production.INFO: count ==6108 [2025-08-18 12:25:25] Production.ERROR: pbx CDR StartTime 2025-08-18 09:25:05 - End Time 2025-08-18 12:25:05 [2025-08-18 12:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15678315', 'tblTempUsageDetail_20' ) start [2025-08-18 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15678315', 'tblTempUsageDetail_20' ) end [2025-08-18 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15678315', 'tblTempVendorCDR_20' ) start [2025-08-18 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15678315', 'tblTempVendorCDR_20' ) end [2025-08-18 12:25:25] Production.INFO: ProcessCDR(1,15678315,1,1,2) [2025-08-18 12:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15678315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 12:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15678315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 12:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15678315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 12:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15678315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15678315', 'tblTempUsageDetail_20' ) start [2025-08-18 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15678315', 'tblTempUsageDetail_20' ) end [2025-08-18 12:25:35] Production.ERROR: pbx prc_insertCDR start [2025-08-18 12:25:37] Production.ERROR: pbx prc_insertCDR end [2025-08-18 12:25:38] Production.INFO: ==17518== Releasing lock... [2025-08-18 12:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 12:25:38] Production.INFO: 74 MB #Memory Used# [2025-08-18 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 10:25:06 [end_date_ymd] => 2025-08-18 13:25:06 [RateCDR] => 1 ) [2025-08-18 13: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-08-18 10:25:06' and `end` < '2025-08-18 13: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-08-18 13:25:20] Production.INFO: count ==5992 [2025-08-18 13:25:23] Production.ERROR: pbx CDR StartTime 2025-08-18 10:25:06 - End Time 2025-08-18 13:25:06 [2025-08-18 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15678562', 'tblTempUsageDetail_20' ) start [2025-08-18 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15678562', 'tblTempUsageDetail_20' ) end [2025-08-18 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15678562', 'tblTempVendorCDR_20' ) start [2025-08-18 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15678562', 'tblTempVendorCDR_20' ) end [2025-08-18 13:25:24] Production.INFO: ProcessCDR(1,15678562,1,1,2) [2025-08-18 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15678562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15678562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15678562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15678562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15678562', 'tblTempUsageDetail_20' ) start [2025-08-18 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15678562', 'tblTempUsageDetail_20' ) end [2025-08-18 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-18 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-08-18 13:25:36] Production.INFO: ==22292== Releasing lock... [2025-08-18 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 13:25:36] Production.INFO: 73 MB #Memory Used# [2025-08-18 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 11:25:04 [end_date_ymd] => 2025-08-18 14:25:04 [RateCDR] => 1 ) [2025-08-18 14: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-08-18 11:25:04' and `end` < '2025-08-18 14: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-08-18 14:25:18] Production.INFO: count ==5827 [2025-08-18 14:25:20] Production.ERROR: pbx CDR StartTime 2025-08-18 11:25:04 - End Time 2025-08-18 14:25:04 [2025-08-18 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15678809', 'tblTempUsageDetail_20' ) start [2025-08-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15678809', 'tblTempUsageDetail_20' ) end [2025-08-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15678809', 'tblTempVendorCDR_20' ) start [2025-08-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15678809', 'tblTempVendorCDR_20' ) end [2025-08-18 14:25:21] Production.INFO: ProcessCDR(1,15678809,1,1,2) [2025-08-18 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15678809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15678809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15678809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 14:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15678809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15678809', 'tblTempUsageDetail_20' ) start [2025-08-18 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15678809', 'tblTempUsageDetail_20' ) end [2025-08-18 14:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-18 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-18 14:25:32] Production.INFO: ==28806== Releasing lock... [2025-08-18 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 14:25:32] Production.INFO: 71.75 MB #Memory Used# [2025-08-18 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 12:25:06 [end_date_ymd] => 2025-08-18 15:25:06 [RateCDR] => 1 ) [2025-08-18 15: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-08-18 12:25:06' and `end` < '2025-08-18 15: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-08-18 15:25:20] Production.INFO: count ==5466 [2025-08-18 15:25:23] Production.ERROR: pbx CDR StartTime 2025-08-18 12:25:06 - End Time 2025-08-18 15:25:06 [2025-08-18 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15679056', 'tblTempUsageDetail_20' ) start [2025-08-18 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15679056', 'tblTempUsageDetail_20' ) end [2025-08-18 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15679056', 'tblTempVendorCDR_20' ) start [2025-08-18 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15679056', 'tblTempVendorCDR_20' ) end [2025-08-18 15:25:24] Production.INFO: ProcessCDR(1,15679056,1,1,2) [2025-08-18 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15679056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15679056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15679056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15679056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15679056', 'tblTempUsageDetail_20' ) start [2025-08-18 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15679056', 'tblTempUsageDetail_20' ) end [2025-08-18 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-18 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-18 15:25:34] Production.INFO: ==2283== Releasing lock... [2025-08-18 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 15:25:34] Production.INFO: 69.5 MB #Memory Used# [2025-08-18 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 13:25:05 [end_date_ymd] => 2025-08-18 16:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 13:25:05' and `end` < '2025-08-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-08-18 16:25:28] Production.INFO: count ==5456 [2025-08-18 16:25:31] Production.ERROR: pbx CDR StartTime 2025-08-18 13:25:05 - End Time 2025-08-18 16:25:05 [2025-08-18 16:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15679303', 'tblTempUsageDetail_20' ) start [2025-08-18 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15679303', 'tblTempUsageDetail_20' ) end [2025-08-18 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15679303', 'tblTempVendorCDR_20' ) start [2025-08-18 16:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15679303', 'tblTempVendorCDR_20' ) end [2025-08-18 16:25:31] Production.INFO: ProcessCDR(1,15679303,1,1,2) [2025-08-18 16:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15679303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 16:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15679303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 16:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15679303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 16:25:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15679303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 16:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15679303', 'tblTempUsageDetail_20' ) start [2025-08-18 16:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15679303', 'tblTempUsageDetail_20' ) end [2025-08-18 16:25:40] Production.ERROR: pbx prc_insertCDR start [2025-08-18 16:25:42] Production.ERROR: pbx prc_insertCDR end [2025-08-18 16:25:42] Production.INFO: ==6931== Releasing lock... [2025-08-18 16:25:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 16:25:42] Production.INFO: 69 MB #Memory Used# [2025-08-18 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 14:25:05 [end_date_ymd] => 2025-08-18 17:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 14:25:05' and `end` < '2025-08-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-08-18 17:25:18] Production.INFO: count ==5023 [2025-08-18 17:25:20] Production.ERROR: pbx CDR StartTime 2025-08-18 14:25:05 - End Time 2025-08-18 17:25:05 [2025-08-18 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15679550', 'tblTempUsageDetail_20' ) start [2025-08-18 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15679550', 'tblTempUsageDetail_20' ) end [2025-08-18 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15679550', 'tblTempVendorCDR_20' ) start [2025-08-18 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15679550', 'tblTempVendorCDR_20' ) end [2025-08-18 17:25:21] Production.INFO: ProcessCDR(1,15679550,1,1,2) [2025-08-18 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15679550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15679550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15679550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15679550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15679550', 'tblTempUsageDetail_20' ) start [2025-08-18 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15679550', 'tblTempUsageDetail_20' ) end [2025-08-18 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-18 17:25:31] Production.ERROR: pbx prc_insertCDR end [2025-08-18 17:25:31] Production.INFO: ==11399== Releasing lock... [2025-08-18 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 17:25:31] Production.INFO: 65.75 MB #Memory Used# [2025-08-18 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 15:25:05 [end_date_ymd] => 2025-08-18 18:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 15:25:05' and `end` < '2025-08-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-08-18 18:25:18] Production.INFO: count ==4197 [2025-08-18 18:25:19] Production.ERROR: pbx CDR StartTime 2025-08-18 15:25:05 - End Time 2025-08-18 18:25:05 [2025-08-18 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15679797', 'tblTempUsageDetail_20' ) start [2025-08-18 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15679797', 'tblTempUsageDetail_20' ) end [2025-08-18 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15679797', 'tblTempVendorCDR_20' ) start [2025-08-18 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15679797', 'tblTempVendorCDR_20' ) end [2025-08-18 18:25:20] Production.INFO: ProcessCDR(1,15679797,1,1,2) [2025-08-18 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15679797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15679797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15679797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 18:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15679797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15679797', 'tblTempUsageDetail_20' ) start [2025-08-18 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15679797', 'tblTempUsageDetail_20' ) end [2025-08-18 18:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-18 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-08-18 18:25:29] Production.INFO: ==16179== Releasing lock... [2025-08-18 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 18:25:29] Production.INFO: 59.5 MB #Memory Used# [2025-08-18 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 16:25:05 [end_date_ymd] => 2025-08-18 19:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 16:25:05' and `end` < '2025-08-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-08-18 19:25:18] Production.INFO: count ==3041 [2025-08-18 19:25:19] Production.ERROR: pbx CDR StartTime 2025-08-18 16:25:05 - End Time 2025-08-18 19:25:05 [2025-08-18 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15680041', 'tblTempUsageDetail_20' ) start [2025-08-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15680041', 'tblTempUsageDetail_20' ) end [2025-08-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15680041', 'tblTempVendorCDR_20' ) start [2025-08-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15680041', 'tblTempVendorCDR_20' ) end [2025-08-18 19:25:19] Production.INFO: ProcessCDR(1,15680041,1,1,2) [2025-08-18 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15680041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15680041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15680041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15680041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15680041', 'tblTempUsageDetail_20' ) start [2025-08-18 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15680041', 'tblTempUsageDetail_20' ) end [2025-08-18 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-18 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-18 19:25:28] Production.INFO: ==20474== Releasing lock... [2025-08-18 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 19:25:28] Production.INFO: 50.75 MB #Memory Used# [2025-08-18 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 17:25:05 [end_date_ymd] => 2025-08-18 20:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 17:25:05' and `end` < '2025-08-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-08-18 20:25:17] Production.INFO: count ==2067 [2025-08-18 20:25:18] Production.ERROR: pbx CDR StartTime 2025-08-18 17:25:05 - End Time 2025-08-18 20:25:05 [2025-08-18 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15680288', 'tblTempUsageDetail_20' ) start [2025-08-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15680288', 'tblTempUsageDetail_20' ) end [2025-08-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15680288', 'tblTempVendorCDR_20' ) start [2025-08-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15680288', 'tblTempVendorCDR_20' ) end [2025-08-18 20:25:18] Production.INFO: ProcessCDR(1,15680288,1,1,2) [2025-08-18 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15680288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15680288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15680288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15680288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15680288', 'tblTempUsageDetail_20' ) start [2025-08-18 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15680288', 'tblTempUsageDetail_20' ) end [2025-08-18 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-18 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-18 20:25:26] Production.INFO: ==24832== Releasing lock... [2025-08-18 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 20:25:26] Production.INFO: 43.75 MB #Memory Used# [2025-08-18 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 18:25:06 [end_date_ymd] => 2025-08-18 21:25:06 [RateCDR] => 1 ) [2025-08-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-08-18 18:25:06' and `end` < '2025-08-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-08-18 21:25:18] Production.INFO: count ==1472 [2025-08-18 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-18 18:25:06 - End Time 2025-08-18 21:25:06 [2025-08-18 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15680535', 'tblTempUsageDetail_20' ) start [2025-08-18 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15680535', 'tblTempUsageDetail_20' ) end [2025-08-18 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15680535', 'tblTempVendorCDR_20' ) start [2025-08-18 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15680535', 'tblTempVendorCDR_20' ) end [2025-08-18 21:25:18] Production.INFO: ProcessCDR(1,15680535,1,1,2) [2025-08-18 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15680535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15680535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15680535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15680535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15680535', 'tblTempUsageDetail_20' ) start [2025-08-18 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15680535', 'tblTempUsageDetail_20' ) end [2025-08-18 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-18 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-18 21:25:27] Production.INFO: ==29818== Releasing lock... [2025-08-18 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 21:25:27] Production.INFO: 39.75 MB #Memory Used# [2025-08-18 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 19:25:06 [end_date_ymd] => 2025-08-18 22:25:06 [RateCDR] => 1 ) [2025-08-18 22: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-08-18 19:25:06' and `end` < '2025-08-18 22: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-08-18 22:25:18] Production.INFO: count ==1066 [2025-08-18 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-18 19:25:06 - End Time 2025-08-18 22:25:06 [2025-08-18 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15680782', 'tblTempUsageDetail_20' ) start [2025-08-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15680782', 'tblTempUsageDetail_20' ) end [2025-08-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15680782', 'tblTempVendorCDR_20' ) start [2025-08-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15680782', 'tblTempVendorCDR_20' ) end [2025-08-18 22:25:18] Production.INFO: ProcessCDR(1,15680782,1,1,2) [2025-08-18 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15680782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15680782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15680782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15680782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15680782', 'tblTempUsageDetail_20' ) start [2025-08-18 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15680782', 'tblTempUsageDetail_20' ) end [2025-08-18 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-18 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-18 22:25:25] Production.INFO: ==2028== Releasing lock... [2025-08-18 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 22:25:25] Production.INFO: 36.75 MB #Memory Used# [2025-08-18 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 20:25:05 [end_date_ymd] => 2025-08-18 23:25:05 [RateCDR] => 1 ) [2025-08-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-08-18 20:25:05' and `end` < '2025-08-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-08-18 23:25:18] Production.INFO: count ==871 [2025-08-18 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-18 20:25:05 - End Time 2025-08-18 23:25:05 [2025-08-18 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15681029', 'tblTempUsageDetail_20' ) start [2025-08-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15681029', 'tblTempUsageDetail_20' ) end [2025-08-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15681029', 'tblTempVendorCDR_20' ) start [2025-08-18 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15681029', 'tblTempVendorCDR_20' ) end [2025-08-18 23:25:18] Production.INFO: ProcessCDR(1,15681029,1,1,2) [2025-08-18 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15681029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15681029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-18 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15681029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15681029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-18 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15681029', 'tblTempUsageDetail_20' ) start [2025-08-18 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15681029', 'tblTempUsageDetail_20' ) end [2025-08-18 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-18 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-18 23:25:26] Production.INFO: ==6907== Releasing lock... [2025-08-18 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-18 23:25:26] Production.INFO: 34.5 MB #Memory Used#