[2025-06-27 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 21:25:05 [end_date_ymd] => 2025-06-27 00:25:05 [RateCDR] => 1 ) [2025-06-27 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-26 21:25:05' and `end` < '2025-06-27 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-27 00:25:17] Production.INFO: count ==519 [2025-06-27 00:25:17] Production.ERROR: pbx CDR StartTime 2025-06-26 21:25:05 - End Time 2025-06-27 00:25:05 [2025-06-27 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15367140', 'tblTempUsageDetail_20' ) start [2025-06-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15367140', 'tblTempUsageDetail_20' ) end [2025-06-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15367140', 'tblTempVendorCDR_20' ) start [2025-06-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15367140', 'tblTempVendorCDR_20' ) end [2025-06-27 00:25:17] Production.INFO: ProcessCDR(1,15367140,1,1,2) [2025-06-27 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15367140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15367140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15367140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15367140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15367140', 'tblTempUsageDetail_20' ) start [2025-06-27 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15367140', 'tblTempUsageDetail_20' ) end [2025-06-27 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-27 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-27 00:25:27] Production.INFO: ==25143== Releasing lock... [2025-06-27 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 00:25:27] Production.INFO: 36.25 MB #Memory Used# [2025-06-27 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 22:25:05 [end_date_ymd] => 2025-06-27 01:25:05 [RateCDR] => 1 ) [2025-06-27 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-26 22:25:05' and `end` < '2025-06-27 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-27 01:25:17] Production.INFO: count ==547 [2025-06-27 01:25:18] Production.ERROR: pbx CDR StartTime 2025-06-26 22:25:05 - End Time 2025-06-27 01:25:05 [2025-06-27 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15367387', 'tblTempUsageDetail_20' ) start [2025-06-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15367387', 'tblTempUsageDetail_20' ) end [2025-06-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15367387', 'tblTempVendorCDR_20' ) start [2025-06-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15367387', 'tblTempVendorCDR_20' ) end [2025-06-27 01:25:18] Production.INFO: ProcessCDR(1,15367387,1,1,2) [2025-06-27 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15367387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15367387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15367387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15367387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15367387', 'tblTempUsageDetail_20' ) start [2025-06-27 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15367387', 'tblTempUsageDetail_20' ) end [2025-06-27 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-27 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-27 01:25:24] Production.INFO: ==30321== Releasing lock... [2025-06-27 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 01:25:24] Production.INFO: 33 MB #Memory Used# [2025-06-27 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-26 23:25:05 [end_date_ymd] => 2025-06-27 02:25:05 [RateCDR] => 1 ) [2025-06-27 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-26 23:25:05' and `end` < '2025-06-27 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-27 02:25:18] Production.INFO: count ==573 [2025-06-27 02:25:18] Production.ERROR: pbx CDR StartTime 2025-06-26 23:25:05 - End Time 2025-06-27 02:25:05 [2025-06-27 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15367634', 'tblTempUsageDetail_20' ) start [2025-06-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15367634', 'tblTempUsageDetail_20' ) end [2025-06-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15367634', 'tblTempVendorCDR_20' ) start [2025-06-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15367634', 'tblTempVendorCDR_20' ) end [2025-06-27 02:25:18] Production.INFO: ProcessCDR(1,15367634,1,1,2) [2025-06-27 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15367634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15367634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15367634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15367634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15367634', 'tblTempUsageDetail_20' ) start [2025-06-27 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15367634', 'tblTempUsageDetail_20' ) end [2025-06-27 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-27 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-27 02:25:25] Production.INFO: ==2502== Releasing lock... [2025-06-27 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 02:25:25] Production.INFO: 33 MB #Memory Used# [2025-06-27 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 00:25:06 [end_date_ymd] => 2025-06-27 03:25:06 [RateCDR] => 1 ) [2025-06-27 03: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-27 00:25:06' and `end` < '2025-06-27 03: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-27 03:25:18] Production.INFO: count ==451 [2025-06-27 03:25:18] Production.ERROR: pbx CDR StartTime 2025-06-27 00:25:06 - End Time 2025-06-27 03:25:06 [2025-06-27 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15367881', 'tblTempUsageDetail_20' ) start [2025-06-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15367881', 'tblTempUsageDetail_20' ) end [2025-06-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15367881', 'tblTempVendorCDR_20' ) start [2025-06-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15367881', 'tblTempVendorCDR_20' ) end [2025-06-27 03:25:18] Production.INFO: ProcessCDR(1,15367881,1,1,2) [2025-06-27 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15367881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15367881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15367881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15367881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15367881', 'tblTempUsageDetail_20' ) start [2025-06-27 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15367881', 'tblTempUsageDetail_20' ) end [2025-06-27 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-27 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-27 03:25:24] Production.INFO: ==6876== Releasing lock... [2025-06-27 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 03:25:24] Production.INFO: 32 MB #Memory Used# [2025-06-27 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 01:25:04 [end_date_ymd] => 2025-06-27 04:25:04 [RateCDR] => 1 ) [2025-06-27 04: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-27 01:25:04' and `end` < '2025-06-27 04: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-27 04:25:17] Production.INFO: count ==301 [2025-06-27 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-27 01:25:04 - End Time 2025-06-27 04:25:04 [2025-06-27 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15368129', 'tblTempUsageDetail_20' ) start [2025-06-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15368129', 'tblTempUsageDetail_20' ) end [2025-06-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15368129', 'tblTempVendorCDR_20' ) start [2025-06-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15368129', 'tblTempVendorCDR_20' ) end [2025-06-27 04:25:17] Production.INFO: ProcessCDR(1,15368129,1,1,2) [2025-06-27 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15368129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15368129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15368129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15368129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15368129', 'tblTempUsageDetail_20' ) start [2025-06-27 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15368129', 'tblTempUsageDetail_20' ) end [2025-06-27 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-27 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-27 04:25:23] Production.INFO: ==11233== Releasing lock... [2025-06-27 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 04:25:23] Production.INFO: 31 MB #Memory Used# [2025-06-27 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 02:25:05 [end_date_ymd] => 2025-06-27 05:25:05 [RateCDR] => 1 ) [2025-06-27 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-06-27 02:25:05' and `end` < '2025-06-27 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-06-27 05:25:18] Production.INFO: count ==160 [2025-06-27 05:25:18] Production.ERROR: pbx CDR StartTime 2025-06-27 02:25:05 - End Time 2025-06-27 05:25:05 [2025-06-27 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15368377', 'tblTempUsageDetail_20' ) start [2025-06-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15368377', 'tblTempUsageDetail_20' ) end [2025-06-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15368377', 'tblTempVendorCDR_20' ) start [2025-06-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15368377', 'tblTempVendorCDR_20' ) end [2025-06-27 05:25:18] Production.INFO: ProcessCDR(1,15368377,1,1,2) [2025-06-27 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15368377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15368377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15368377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15368377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15368377', 'tblTempUsageDetail_20' ) start [2025-06-27 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15368377', 'tblTempUsageDetail_20' ) end [2025-06-27 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-27 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-27 05:25:23] Production.INFO: ==15904== Releasing lock... [2025-06-27 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 05:25:23] Production.INFO: 29.25 MB #Memory Used# [2025-06-27 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 03:25:05 [end_date_ymd] => 2025-06-27 06:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 03:25:05' and `end` < '2025-06-27 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-27 06:25:17] Production.INFO: count ==109 [2025-06-27 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-27 03:25:05 - End Time 2025-06-27 06:25:05 [2025-06-27 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15368624', 'tblTempUsageDetail_20' ) start [2025-06-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15368624', 'tblTempUsageDetail_20' ) end [2025-06-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15368624', 'tblTempVendorCDR_20' ) start [2025-06-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15368624', 'tblTempVendorCDR_20' ) end [2025-06-27 06:25:17] Production.INFO: ProcessCDR(1,15368624,1,1,2) [2025-06-27 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15368624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15368624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15368624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15368624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15368624', 'tblTempUsageDetail_20' ) start [2025-06-27 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15368624', 'tblTempUsageDetail_20' ) end [2025-06-27 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-06-27 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-06-27 06:25:22] Production.INFO: ==20370== Releasing lock... [2025-06-27 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 06:25:22] Production.INFO: 28.75 MB #Memory Used# [2025-06-27 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 04:25:05 [end_date_ymd] => 2025-06-27 07:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 04:25:05' and `end` < '2025-06-27 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-27 07:25:17] Production.INFO: count ==134 [2025-06-27 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-27 04:25:05 - End Time 2025-06-27 07:25:05 [2025-06-27 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15368871', 'tblTempUsageDetail_20' ) start [2025-06-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15368871', 'tblTempUsageDetail_20' ) end [2025-06-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15368871', 'tblTempVendorCDR_20' ) start [2025-06-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15368871', 'tblTempVendorCDR_20' ) end [2025-06-27 07:25:17] Production.INFO: ProcessCDR(1,15368871,1,1,2) [2025-06-27 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15368871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15368871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15368871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15368871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15368871', 'tblTempUsageDetail_20' ) start [2025-06-27 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15368871', 'tblTempUsageDetail_20' ) end [2025-06-27 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-27 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-27 07:25:23] Production.INFO: ==25492== Releasing lock... [2025-06-27 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 07:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-06-27 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 05:25:05 [end_date_ymd] => 2025-06-27 08:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 05:25:05' and `end` < '2025-06-27 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-27 08:25:17] Production.INFO: count ==463 [2025-06-27 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-27 05:25:05 - End Time 2025-06-27 08:25:05 [2025-06-27 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15369118', 'tblTempUsageDetail_20' ) start [2025-06-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15369118', 'tblTempUsageDetail_20' ) end [2025-06-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15369118', 'tblTempVendorCDR_20' ) start [2025-06-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15369118', 'tblTempVendorCDR_20' ) end [2025-06-27 08:25:17] Production.INFO: ProcessCDR(1,15369118,1,1,2) [2025-06-27 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15369118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15369118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15369118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15369118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15369118', 'tblTempUsageDetail_20' ) start [2025-06-27 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15369118', 'tblTempUsageDetail_20' ) end [2025-06-27 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-27 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-27 08:25:24] Production.INFO: ==29932== Releasing lock... [2025-06-27 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 08:25:24] Production.INFO: 32 MB #Memory Used# [2025-06-27 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 06:25:05 [end_date_ymd] => 2025-06-27 09:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 06:25:05' and `end` < '2025-06-27 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-27 09:25:19] Production.INFO: count ==1420 [2025-06-27 09:25:20] Production.ERROR: pbx CDR StartTime 2025-06-27 06:25:05 - End Time 2025-06-27 09:25:05 [2025-06-27 09:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15369365', 'tblTempUsageDetail_20' ) start [2025-06-27 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15369365', 'tblTempUsageDetail_20' ) end [2025-06-27 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15369365', 'tblTempVendorCDR_20' ) start [2025-06-27 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15369365', 'tblTempVendorCDR_20' ) end [2025-06-27 09:25:20] Production.INFO: ProcessCDR(1,15369365,1,1,2) [2025-06-27 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15369365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15369365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15369365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15369365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15369365', 'tblTempUsageDetail_20' ) start [2025-06-27 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15369365', 'tblTempUsageDetail_20' ) end [2025-06-27 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-27 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-27 09:25:28] Production.INFO: ==1965== Releasing lock... [2025-06-27 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 09:25:28] Production.INFO: 38.75 MB #Memory Used# [2025-06-27 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 07:25:05 [end_date_ymd] => 2025-06-27 10:25:05 [RateCDR] => 1 ) [2025-06-27 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-06-27 07:25:05' and `end` < '2025-06-27 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-06-27 10:25:19] Production.INFO: count ==3131 [2025-06-27 10:25:20] Production.ERROR: pbx CDR StartTime 2025-06-27 07:25:05 - End Time 2025-06-27 10:25:05 [2025-06-27 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15369612', 'tblTempUsageDetail_20' ) start [2025-06-27 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15369612', 'tblTempUsageDetail_20' ) end [2025-06-27 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15369612', 'tblTempVendorCDR_20' ) start [2025-06-27 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15369612', 'tblTempVendorCDR_20' ) end [2025-06-27 10:25:20] Production.INFO: ProcessCDR(1,15369612,1,1,2) [2025-06-27 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15369612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15369612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15369612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15369612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15369612', 'tblTempUsageDetail_20' ) start [2025-06-27 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15369612', 'tblTempUsageDetail_20' ) end [2025-06-27 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-27 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-27 10:25:31] Production.INFO: ==6845== Releasing lock... [2025-06-27 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 10:25:31] Production.INFO: 52 MB #Memory Used# [2025-06-27 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 08:25:05 [end_date_ymd] => 2025-06-27 11:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 08:25:05' and `end` < '2025-06-27 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-27 11:25:22] Production.INFO: count ==4682 [2025-06-27 11:25:24] Production.ERROR: pbx CDR StartTime 2025-06-27 08:25:05 - End Time 2025-06-27 11:25:05 [2025-06-27 11:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15369859', 'tblTempUsageDetail_20' ) start [2025-06-27 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15369859', 'tblTempUsageDetail_20' ) end [2025-06-27 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15369859', 'tblTempVendorCDR_20' ) start [2025-06-27 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15369859', 'tblTempVendorCDR_20' ) end [2025-06-27 11:25:24] Production.INFO: ProcessCDR(1,15369859,1,1,2) [2025-06-27 11:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15369859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15369859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15369859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15369859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15369859', 'tblTempUsageDetail_20' ) start [2025-06-27 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15369859', 'tblTempUsageDetail_20' ) end [2025-06-27 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-06-27 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-06-27 11:25:35] Production.INFO: ==11279== Releasing lock... [2025-06-27 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 11:25:35] Production.INFO: 63.25 MB #Memory Used# [2025-06-27 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 09:25:05 [end_date_ymd] => 2025-06-27 12:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 09:25:05' and `end` < '2025-06-27 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-27 12:25:19] Production.INFO: count ==5539 [2025-06-27 12:25:21] Production.ERROR: pbx CDR StartTime 2025-06-27 09:25:05 - End Time 2025-06-27 12:25:05 [2025-06-27 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15370106', 'tblTempUsageDetail_20' ) start [2025-06-27 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15370106', 'tblTempUsageDetail_20' ) end [2025-06-27 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15370106', 'tblTempVendorCDR_20' ) start [2025-06-27 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15370106', 'tblTempVendorCDR_20' ) end [2025-06-27 12:25:22] Production.INFO: ProcessCDR(1,15370106,1,1,2) [2025-06-27 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15370106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15370106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15370106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15370106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15370106', 'tblTempUsageDetail_20' ) start [2025-06-27 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15370106', 'tblTempUsageDetail_20' ) end [2025-06-27 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-27 12:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-27 12:25:32] Production.INFO: ==16167== Releasing lock... [2025-06-27 12:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 12:25:32] Production.INFO: 69.75 MB #Memory Used# [2025-06-27 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 10:25:05 [end_date_ymd] => 2025-06-27 13:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 10:25:05' and `end` < '2025-06-27 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-27 13:25:19] Production.INFO: count ==5422 [2025-06-27 13:25:21] Production.ERROR: pbx CDR StartTime 2025-06-27 10:25:05 - End Time 2025-06-27 13:25:05 [2025-06-27 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15370353', 'tblTempUsageDetail_20' ) start [2025-06-27 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15370353', 'tblTempUsageDetail_20' ) end [2025-06-27 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15370353', 'tblTempVendorCDR_20' ) start [2025-06-27 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15370353', 'tblTempVendorCDR_20' ) end [2025-06-27 13:25:22] Production.INFO: ProcessCDR(1,15370353,1,1,2) [2025-06-27 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15370353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15370353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15370353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15370353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15370353', 'tblTempUsageDetail_20' ) start [2025-06-27 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15370353', 'tblTempUsageDetail_20' ) end [2025-06-27 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-27 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-27 13:25:32] Production.INFO: ==20525== Releasing lock... [2025-06-27 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 13:25:32] Production.INFO: 68.75 MB #Memory Used# [2025-06-27 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 11:25:05 [end_date_ymd] => 2025-06-27 14:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 11:25:05' and `end` < '2025-06-27 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-27 14:25:18] Production.INFO: count ==5173 [2025-06-27 14:25:21] Production.ERROR: pbx CDR StartTime 2025-06-27 11:25:05 - End Time 2025-06-27 14:25:05 [2025-06-27 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15370600', 'tblTempUsageDetail_20' ) start [2025-06-27 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15370600', 'tblTempUsageDetail_20' ) end [2025-06-27 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15370600', 'tblTempVendorCDR_20' ) start [2025-06-27 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15370600', 'tblTempVendorCDR_20' ) end [2025-06-27 14:25:21] Production.INFO: ProcessCDR(1,15370600,1,1,2) [2025-06-27 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15370600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15370600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15370600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15370600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15370600', 'tblTempUsageDetail_20' ) start [2025-06-27 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15370600', 'tblTempUsageDetail_20' ) end [2025-06-27 14:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-27 14:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-27 14:25:30] Production.INFO: ==24931== Releasing lock... [2025-06-27 14:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 14:25:30] Production.INFO: 67 MB #Memory Used# [2025-06-27 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 12:25:05 [end_date_ymd] => 2025-06-27 15:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 12:25:05' and `end` < '2025-06-27 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-27 15:25:19] Production.INFO: count ==4964 [2025-06-27 15:25:22] Production.ERROR: pbx CDR StartTime 2025-06-27 12:25:05 - End Time 2025-06-27 15:25:05 [2025-06-27 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15370847', 'tblTempUsageDetail_20' ) start [2025-06-27 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15370847', 'tblTempUsageDetail_20' ) end [2025-06-27 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15370847', 'tblTempVendorCDR_20' ) start [2025-06-27 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15370847', 'tblTempVendorCDR_20' ) end [2025-06-27 15:25:22] Production.INFO: ProcessCDR(1,15370847,1,1,2) [2025-06-27 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15370847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15370847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15370847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 15:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15370847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15370847', 'tblTempUsageDetail_20' ) start [2025-06-27 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15370847', 'tblTempUsageDetail_20' ) end [2025-06-27 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-06-27 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-06-27 15:25:34] Production.INFO: ==29274== Releasing lock... [2025-06-27 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 15:25:34] Production.INFO: 65.25 MB #Memory Used# [2025-06-27 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 13:25:06 [end_date_ymd] => 2025-06-27 16:25:06 [RateCDR] => 1 ) [2025-06-27 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-27 13:25:06' and `end` < '2025-06-27 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-27 16:25:19] Production.INFO: count ==4986 [2025-06-27 16:25:21] Production.ERROR: pbx CDR StartTime 2025-06-27 13:25:06 - End Time 2025-06-27 16:25:06 [2025-06-27 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15371094', 'tblTempUsageDetail_20' ) start [2025-06-27 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15371094', 'tblTempUsageDetail_20' ) end [2025-06-27 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15371094', 'tblTempVendorCDR_20' ) start [2025-06-27 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15371094', 'tblTempVendorCDR_20' ) end [2025-06-27 16:25:22] Production.INFO: ProcessCDR(1,15371094,1,1,2) [2025-06-27 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15371094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15371094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15371094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15371094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15371094', 'tblTempUsageDetail_20' ) start [2025-06-27 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15371094', 'tblTempUsageDetail_20' ) end [2025-06-27 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-27 16:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-27 16:25:32] Production.INFO: ==1322== Releasing lock... [2025-06-27 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 16:25:32] Production.INFO: 65.5 MB #Memory Used# [2025-06-27 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 14:25:05 [end_date_ymd] => 2025-06-27 17:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 14:25:05' and `end` < '2025-06-27 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-27 17:25:19] Production.INFO: count ==5016 [2025-06-27 17:25:21] Production.ERROR: pbx CDR StartTime 2025-06-27 14:25:05 - End Time 2025-06-27 17:25:05 [2025-06-27 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15371341', 'tblTempUsageDetail_20' ) start [2025-06-27 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15371341', 'tblTempUsageDetail_20' ) end [2025-06-27 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15371341', 'tblTempVendorCDR_20' ) start [2025-06-27 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15371341', 'tblTempVendorCDR_20' ) end [2025-06-27 17:25:22] Production.INFO: ProcessCDR(1,15371341,1,1,2) [2025-06-27 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15371341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15371341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15371341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15371341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15371341', 'tblTempUsageDetail_20' ) start [2025-06-27 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15371341', 'tblTempUsageDetail_20' ) end [2025-06-27 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-27 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-27 17:25:32] Production.INFO: ==6091== Releasing lock... [2025-06-27 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 17:25:32] Production.INFO: 65.75 MB #Memory Used# [2025-06-27 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 15:25:05 [end_date_ymd] => 2025-06-27 18:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 15:25:05' and `end` < '2025-06-27 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-27 18:25:18] Production.INFO: count ==4313 [2025-06-27 18:25:20] Production.ERROR: pbx CDR StartTime 2025-06-27 15:25:05 - End Time 2025-06-27 18:25:05 [2025-06-27 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15371588', 'tblTempUsageDetail_20' ) start [2025-06-27 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15371588', 'tblTempUsageDetail_20' ) end [2025-06-27 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15371588', 'tblTempVendorCDR_20' ) start [2025-06-27 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15371588', 'tblTempVendorCDR_20' ) end [2025-06-27 18:25:21] Production.INFO: ProcessCDR(1,15371588,1,1,2) [2025-06-27 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15371588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15371588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15371588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15371588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15371588', 'tblTempUsageDetail_20' ) start [2025-06-27 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15371588', 'tblTempUsageDetail_20' ) end [2025-06-27 18:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-27 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-06-27 18:25:29] Production.INFO: ==10401== Releasing lock... [2025-06-27 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 18:25:29] Production.INFO: 60.5 MB #Memory Used# [2025-06-27 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 16:25:04 [end_date_ymd] => 2025-06-27 19:25:04 [RateCDR] => 1 ) [2025-06-27 19: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-27 16:25:04' and `end` < '2025-06-27 19: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-27 19:25:17] Production.INFO: count ==3398 [2025-06-27 19:25:18] Production.ERROR: pbx CDR StartTime 2025-06-27 16:25:04 - End Time 2025-06-27 19:25:04 [2025-06-27 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15371832', 'tblTempUsageDetail_20' ) start [2025-06-27 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15371832', 'tblTempUsageDetail_20' ) end [2025-06-27 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15371832', 'tblTempVendorCDR_20' ) start [2025-06-27 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15371832', 'tblTempVendorCDR_20' ) end [2025-06-27 19:25:19] Production.INFO: ProcessCDR(1,15371832,1,1,2) [2025-06-27 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15371832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15371832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15371832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15371832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15371832', 'tblTempUsageDetail_20' ) start [2025-06-27 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15371832', 'tblTempUsageDetail_20' ) end [2025-06-27 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-27 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-27 19:25:26] Production.INFO: ==14844== Releasing lock... [2025-06-27 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 19:25:26] Production.INFO: 53.75 MB #Memory Used# [2025-06-27 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 17:25:05 [end_date_ymd] => 2025-06-27 20:25:05 [RateCDR] => 1 ) [2025-06-27 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-06-27 17:25:05' and `end` < '2025-06-27 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-06-27 20:25:18] Production.INFO: count ==2934 [2025-06-27 20:25:19] Production.ERROR: pbx CDR StartTime 2025-06-27 17:25:05 - End Time 2025-06-27 20:25:05 [2025-06-27 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15372079', 'tblTempUsageDetail_20' ) start [2025-06-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15372079', 'tblTempUsageDetail_20' ) end [2025-06-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15372079', 'tblTempVendorCDR_20' ) start [2025-06-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15372079', 'tblTempVendorCDR_20' ) end [2025-06-27 20:25:19] Production.INFO: ProcessCDR(1,15372079,1,1,2) [2025-06-27 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15372079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15372079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15372079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15372079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15372079', 'tblTempUsageDetail_20' ) start [2025-06-27 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15372079', 'tblTempUsageDetail_20' ) end [2025-06-27 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-27 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-06-27 20:25:29] Production.INFO: ==19358== Releasing lock... [2025-06-27 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 20:25:29] Production.INFO: 50 MB #Memory Used# [2025-06-27 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 18:25:05 [end_date_ymd] => 2025-06-27 21:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 18:25:05' and `end` < '2025-06-27 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-27 21:25:18] Production.INFO: count ==2493 [2025-06-27 21:25:19] Production.ERROR: pbx CDR StartTime 2025-06-27 18:25:05 - End Time 2025-06-27 21:25:05 [2025-06-27 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15372326', 'tblTempUsageDetail_20' ) start [2025-06-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15372326', 'tblTempUsageDetail_20' ) end [2025-06-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15372326', 'tblTempVendorCDR_20' ) start [2025-06-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15372326', 'tblTempVendorCDR_20' ) end [2025-06-27 21:25:19] Production.INFO: ProcessCDR(1,15372326,1,1,2) [2025-06-27 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15372326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15372326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15372326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15372326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15372326', 'tblTempUsageDetail_20' ) start [2025-06-27 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15372326', 'tblTempUsageDetail_20' ) end [2025-06-27 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-27 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-27 21:25:26] Production.INFO: ==24542== Releasing lock... [2025-06-27 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 21:25:26] Production.INFO: 46.75 MB #Memory Used# [2025-06-27 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 19:25:05 [end_date_ymd] => 2025-06-27 22:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 19:25:05' and `end` < '2025-06-27 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-27 22:25:18] Production.INFO: count ==2176 [2025-06-27 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-27 19:25:05 - End Time 2025-06-27 22:25:05 [2025-06-27 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15372573', 'tblTempUsageDetail_20' ) start [2025-06-27 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15372573', 'tblTempUsageDetail_20' ) end [2025-06-27 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15372573', 'tblTempVendorCDR_20' ) start [2025-06-27 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15372573', 'tblTempVendorCDR_20' ) end [2025-06-27 22:25:19] Production.INFO: ProcessCDR(1,15372573,1,1,2) [2025-06-27 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15372573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15372573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15372573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15372573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15372573', 'tblTempUsageDetail_20' ) start [2025-06-27 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15372573', 'tblTempUsageDetail_20' ) end [2025-06-27 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-27 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-27 22:25:26] Production.INFO: ==29877== Releasing lock... [2025-06-27 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 22:25:26] Production.INFO: 44.5 MB #Memory Used# [2025-06-27 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-27 20:25:05 [end_date_ymd] => 2025-06-27 23:25:05 [RateCDR] => 1 ) [2025-06-27 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-27 20:25:05' and `end` < '2025-06-27 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-27 23:25:18] Production.INFO: count ==1400 [2025-06-27 23:25:18] Production.ERROR: pbx CDR StartTime 2025-06-27 20:25:05 - End Time 2025-06-27 23:25:05 [2025-06-27 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15372820', 'tblTempUsageDetail_20' ) start [2025-06-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15372820', 'tblTempUsageDetail_20' ) end [2025-06-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15372820', 'tblTempVendorCDR_20' ) start [2025-06-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15372820', 'tblTempVendorCDR_20' ) end [2025-06-27 23:25:18] Production.INFO: ProcessCDR(1,15372820,1,1,2) [2025-06-27 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15372820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15372820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-27 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15372820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15372820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-27 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15372820', 'tblTempUsageDetail_20' ) start [2025-06-27 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15372820', 'tblTempUsageDetail_20' ) end [2025-06-27 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-27 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-27 23:25:25] Production.INFO: ==2591== Releasing lock... [2025-06-27 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-27 23:25:25] Production.INFO: 39 MB #Memory Used#