[2025-09-27 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 21:25:05 [end_date_ymd] => 2025-09-27 00:25:05 [RateCDR] => 1 ) [2025-09-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-09-26 21:25:05' and `end` < '2025-09-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-09-27 00:25:17] Production.INFO: count ==965 [2025-09-27 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-26 21:25:05 - End Time 2025-09-27 00:25:05 [2025-09-27 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15912441', 'tblTempUsageDetail_20' ) start [2025-09-27 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15912441', 'tblTempUsageDetail_20' ) end [2025-09-27 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15912441', 'tblTempVendorCDR_20' ) start [2025-09-27 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15912441', 'tblTempVendorCDR_20' ) end [2025-09-27 00:25:18] Production.INFO: ProcessCDR(1,15912441,1,1,2) [2025-09-27 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15912441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15912441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15912441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15912441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15912441', 'tblTempUsageDetail_20' ) start [2025-09-27 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15912441', 'tblTempUsageDetail_20' ) end [2025-09-27 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-27 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-27 00:25:28] Production.INFO: ==11873== Releasing lock... [2025-09-27 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 00:25:28] Production.INFO: 39.25 MB #Memory Used# [2025-09-27 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 22:25:05 [end_date_ymd] => 2025-09-27 01:25:05 [RateCDR] => 1 ) [2025-09-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-09-26 22:25:05' and `end` < '2025-09-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-09-27 01:25:17] Production.INFO: count ==1213 [2025-09-27 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-26 22:25:05 - End Time 2025-09-27 01:25:05 [2025-09-27 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15912688', 'tblTempUsageDetail_20' ) start [2025-09-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15912688', 'tblTempUsageDetail_20' ) end [2025-09-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15912688', 'tblTempVendorCDR_20' ) start [2025-09-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15912688', 'tblTempVendorCDR_20' ) end [2025-09-27 01:25:18] Production.INFO: ProcessCDR(1,15912688,1,1,2) [2025-09-27 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15912688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15912688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15912688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 01:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15912688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15912688', 'tblTempUsageDetail_20' ) start [2025-09-27 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15912688', 'tblTempUsageDetail_20' ) end [2025-09-27 01:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-27 01:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-27 01:25:27] Production.INFO: ==17047== Releasing lock... [2025-09-27 01:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 01:25:27] Production.INFO: 37.5 MB #Memory Used# [2025-09-27 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 23:25:05 [end_date_ymd] => 2025-09-27 02:25:05 [RateCDR] => 1 ) [2025-09-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-09-26 23:25:05' and `end` < '2025-09-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-09-27 02:25:17] Production.INFO: count ==1189 [2025-09-27 02:25:17] Production.ERROR: pbx CDR StartTime 2025-09-26 23:25:05 - End Time 2025-09-27 02:25:05 [2025-09-27 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15912935', 'tblTempUsageDetail_20' ) start [2025-09-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15912935', 'tblTempUsageDetail_20' ) end [2025-09-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15912935', 'tblTempVendorCDR_20' ) start [2025-09-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15912935', 'tblTempVendorCDR_20' ) end [2025-09-27 02:25:18] Production.INFO: ProcessCDR(1,15912935,1,1,2) [2025-09-27 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15912935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15912935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15912935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15912935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15912935', 'tblTempUsageDetail_20' ) start [2025-09-27 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15912935', 'tblTempUsageDetail_20' ) end [2025-09-27 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-27 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-27 02:25:27] Production.INFO: ==22022== Releasing lock... [2025-09-27 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 02:25:27] Production.INFO: 37.25 MB #Memory Used# [2025-09-27 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 00:25:06 [end_date_ymd] => 2025-09-27 03:25:06 [RateCDR] => 1 ) [2025-09-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-09-27 00:25:06' and `end` < '2025-09-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-09-27 03:25:18] Production.INFO: count ==862 [2025-09-27 03:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 00:25:06 - End Time 2025-09-27 03:25:06 [2025-09-27 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15913182', 'tblTempUsageDetail_20' ) start [2025-09-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15913182', 'tblTempUsageDetail_20' ) end [2025-09-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15913182', 'tblTempVendorCDR_20' ) start [2025-09-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15913182', 'tblTempVendorCDR_20' ) end [2025-09-27 03:25:18] Production.INFO: ProcessCDR(1,15913182,1,1,2) [2025-09-27 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15913182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15913182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15913182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 03:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15913182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15913182', 'tblTempUsageDetail_20' ) start [2025-09-27 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15913182', 'tblTempUsageDetail_20' ) end [2025-09-27 03:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-27 03:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-27 03:25:27] Production.INFO: ==26755== Releasing lock... [2025-09-27 03:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 03:25:27] Production.INFO: 34.5 MB #Memory Used# [2025-09-27 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 01:25:05 [end_date_ymd] => 2025-09-27 04:25:05 [RateCDR] => 1 ) [2025-09-27 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-09-27 01:25:05' and `end` < '2025-09-27 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-09-27 04:25:17] Production.INFO: count ==383 [2025-09-27 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-27 01:25:05 - End Time 2025-09-27 04:25:05 [2025-09-27 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15913430', 'tblTempUsageDetail_20' ) start [2025-09-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15913430', 'tblTempUsageDetail_20' ) end [2025-09-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15913430', 'tblTempVendorCDR_20' ) start [2025-09-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15913430', 'tblTempVendorCDR_20' ) end [2025-09-27 04:25:17] Production.INFO: ProcessCDR(1,15913430,1,1,2) [2025-09-27 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15913430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15913430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15913430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15913430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15913430', 'tblTempUsageDetail_20' ) start [2025-09-27 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15913430', 'tblTempUsageDetail_20' ) end [2025-09-27 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-27 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-27 04:25:25] Production.INFO: ==31213== Releasing lock... [2025-09-27 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 04:25:25] Production.INFO: 31.75 MB #Memory Used# [2025-09-27 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 02:25:05 [end_date_ymd] => 2025-09-27 05:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 02:25:05' and `end` < '2025-09-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-09-27 05:25:17] Production.INFO: count ==230 [2025-09-27 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-27 02:25:05 - End Time 2025-09-27 05:25:05 [2025-09-27 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15913678', 'tblTempUsageDetail_20' ) start [2025-09-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15913678', 'tblTempUsageDetail_20' ) end [2025-09-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15913678', 'tblTempVendorCDR_20' ) start [2025-09-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15913678', 'tblTempVendorCDR_20' ) end [2025-09-27 05:25:17] Production.INFO: ProcessCDR(1,15913678,1,1,2) [2025-09-27 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15913678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15913678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15913678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15913678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15913678', 'tblTempUsageDetail_20' ) start [2025-09-27 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15913678', 'tblTempUsageDetail_20' ) end [2025-09-27 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-27 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-27 05:25:25] Production.INFO: ==3659== Releasing lock... [2025-09-27 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 05:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-09-27 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 03:25:05 [end_date_ymd] => 2025-09-27 06:25:05 [RateCDR] => 1 ) [2025-09-27 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-09-27 03:25:05' and `end` < '2025-09-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-09-27 06:25:18] Production.INFO: count ==145 [2025-09-27 06:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 03:25:05 - End Time 2025-09-27 06:25:05 [2025-09-27 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15913925', 'tblTempUsageDetail_20' ) start [2025-09-27 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15913925', 'tblTempUsageDetail_20' ) end [2025-09-27 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15913925', 'tblTempVendorCDR_20' ) start [2025-09-27 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15913925', 'tblTempVendorCDR_20' ) end [2025-09-27 06:25:18] Production.INFO: ProcessCDR(1,15913925,1,1,2) [2025-09-27 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15913925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15913925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15913925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15913925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15913925', 'tblTempUsageDetail_20' ) start [2025-09-27 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15913925', 'tblTempUsageDetail_20' ) end [2025-09-27 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-27 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-27 06:25:25] Production.INFO: ==8007== Releasing lock... [2025-09-27 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 06:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-09-27 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 04:25:05 [end_date_ymd] => 2025-09-27 07:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 04:25:05' and `end` < '2025-09-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-09-27 07:25:17] Production.INFO: count ==131 [2025-09-27 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-27 04:25:05 - End Time 2025-09-27 07:25:05 [2025-09-27 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15914172', 'tblTempUsageDetail_20' ) start [2025-09-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15914172', 'tblTempUsageDetail_20' ) end [2025-09-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15914172', 'tblTempVendorCDR_20' ) start [2025-09-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15914172', 'tblTempVendorCDR_20' ) end [2025-09-27 07:25:17] Production.INFO: ProcessCDR(1,15914172,1,1,2) [2025-09-27 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15914172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15914172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15914172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15914172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15914172', 'tblTempUsageDetail_20' ) start [2025-09-27 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15914172', 'tblTempUsageDetail_20' ) end [2025-09-27 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-27 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-27 07:25:25] Production.INFO: ==12602== Releasing lock... [2025-09-27 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 07:25:25] Production.INFO: 29 MB #Memory Used# [2025-09-27 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 05:25:06 [end_date_ymd] => 2025-09-27 08:25:06 [RateCDR] => 1 ) [2025-09-27 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-27 05:25:06' and `end` < '2025-09-27 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-27 08:25:18] Production.INFO: count ==160 [2025-09-27 08:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 05:25:06 - End Time 2025-09-27 08:25:06 [2025-09-27 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15914419', 'tblTempUsageDetail_20' ) start [2025-09-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15914419', 'tblTempUsageDetail_20' ) end [2025-09-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15914419', 'tblTempVendorCDR_20' ) start [2025-09-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15914419', 'tblTempVendorCDR_20' ) end [2025-09-27 08:25:18] Production.INFO: ProcessCDR(1,15914419,1,1,2) [2025-09-27 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15914419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15914419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15914419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15914419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15914419', 'tblTempUsageDetail_20' ) start [2025-09-27 08:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15914419', 'tblTempUsageDetail_20' ) end [2025-09-27 08:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-27 08:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-27 08:25:27] Production.INFO: ==17381== Releasing lock... [2025-09-27 08:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 08:25:27] Production.INFO: 29.5 MB #Memory Used# [2025-09-27 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 06:25:05 [end_date_ymd] => 2025-09-27 09:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 06:25:05' and `end` < '2025-09-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-09-27 09:25:17] Production.INFO: count ==579 [2025-09-27 09:25:17] Production.ERROR: pbx CDR StartTime 2025-09-27 06:25:05 - End Time 2025-09-27 09:25:05 [2025-09-27 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15914666', 'tblTempUsageDetail_20' ) start [2025-09-27 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15914666', 'tblTempUsageDetail_20' ) end [2025-09-27 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15914666', 'tblTempVendorCDR_20' ) start [2025-09-27 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15914666', 'tblTempVendorCDR_20' ) end [2025-09-27 09:25:17] Production.INFO: ProcessCDR(1,15914666,1,1,2) [2025-09-27 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15914666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15914666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15914666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15914666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15914666', 'tblTempUsageDetail_20' ) start [2025-09-27 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15914666', 'tblTempUsageDetail_20' ) end [2025-09-27 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-27 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-27 09:25:26] Production.INFO: ==21828== Releasing lock... [2025-09-27 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 09:25:26] Production.INFO: 33 MB #Memory Used# [2025-09-27 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 07:25:04 [end_date_ymd] => 2025-09-27 10:25:04 [RateCDR] => 1 ) [2025-09-27 10: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-09-27 07:25:04' and `end` < '2025-09-27 10: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-09-27 10:25:17] Production.INFO: count ==1150 [2025-09-27 10:25:17] Production.ERROR: pbx CDR StartTime 2025-09-27 07:25:04 - End Time 2025-09-27 10:25:04 [2025-09-27 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15914913', 'tblTempUsageDetail_20' ) start [2025-09-27 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15914913', 'tblTempUsageDetail_20' ) end [2025-09-27 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15914913', 'tblTempVendorCDR_20' ) start [2025-09-27 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15914913', 'tblTempVendorCDR_20' ) end [2025-09-27 10:25:17] Production.INFO: ProcessCDR(1,15914913,1,1,2) [2025-09-27 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15914913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15914913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15914913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15914913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15914913', 'tblTempUsageDetail_20' ) start [2025-09-27 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15914913', 'tblTempUsageDetail_20' ) end [2025-09-27 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-27 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-27 10:25:26] Production.INFO: ==26171== Releasing lock... [2025-09-27 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 10:25:26] Production.INFO: 37.25 MB #Memory Used# [2025-09-27 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 08:25:05 [end_date_ymd] => 2025-09-27 11:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 08:25:05' and `end` < '2025-09-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-09-27 11:25:18] Production.INFO: count ==1736 [2025-09-27 11:25:19] Production.ERROR: pbx CDR StartTime 2025-09-27 08:25:05 - End Time 2025-09-27 11:25:05 [2025-09-27 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15915160', 'tblTempUsageDetail_20' ) start [2025-09-27 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15915160', 'tblTempUsageDetail_20' ) end [2025-09-27 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15915160', 'tblTempVendorCDR_20' ) start [2025-09-27 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15915160', 'tblTempVendorCDR_20' ) end [2025-09-27 11:25:19] Production.INFO: ProcessCDR(1,15915160,1,1,2) [2025-09-27 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15915160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15915160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15915160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 11:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15915160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15915160', 'tblTempUsageDetail_20' ) start [2025-09-27 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15915160', 'tblTempUsageDetail_20' ) end [2025-09-27 11:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-27 11:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-27 11:25:29] Production.INFO: ==30479== Releasing lock... [2025-09-27 11:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 11:25:29] Production.INFO: 41.25 MB #Memory Used# [2025-09-27 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 09:25:05 [end_date_ymd] => 2025-09-27 12:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 09:25:05' and `end` < '2025-09-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-09-27 12:25:18] Production.INFO: count ==1961 [2025-09-27 12:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 09:25:05 - End Time 2025-09-27 12:25:05 [2025-09-27 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15915407', 'tblTempUsageDetail_20' ) start [2025-09-27 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15915407', 'tblTempUsageDetail_20' ) end [2025-09-27 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15915407', 'tblTempVendorCDR_20' ) start [2025-09-27 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15915407', 'tblTempVendorCDR_20' ) end [2025-09-27 12:25:19] Production.INFO: ProcessCDR(1,15915407,1,1,2) [2025-09-27 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15915407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15915407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15915407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15915407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15915407', 'tblTempUsageDetail_20' ) start [2025-09-27 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15915407', 'tblTempUsageDetail_20' ) end [2025-09-27 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-27 12:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-27 12:25:28] Production.INFO: ==2530== Releasing lock... [2025-09-27 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 12:25:28] Production.INFO: 42.75 MB #Memory Used# [2025-09-27 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 10:25:06 [end_date_ymd] => 2025-09-27 13:25:06 [RateCDR] => 1 ) [2025-09-27 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-09-27 10:25:06' and `end` < '2025-09-27 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-09-27 13:25:18] Production.INFO: count ==2073 [2025-09-27 13:25:19] Production.ERROR: pbx CDR StartTime 2025-09-27 10:25:06 - End Time 2025-09-27 13:25:06 [2025-09-27 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15915654', 'tblTempUsageDetail_20' ) start [2025-09-27 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15915654', 'tblTempUsageDetail_20' ) end [2025-09-27 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15915654', 'tblTempVendorCDR_20' ) start [2025-09-27 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15915654', 'tblTempVendorCDR_20' ) end [2025-09-27 13:25:19] Production.INFO: ProcessCDR(1,15915654,1,1,2) [2025-09-27 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15915654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15915654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15915654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15915654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15915654', 'tblTempUsageDetail_20' ) start [2025-09-27 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15915654', 'tblTempUsageDetail_20' ) end [2025-09-27 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-27 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-27 13:25:28] Production.INFO: ==7416== Releasing lock... [2025-09-27 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 13:25:28] Production.INFO: 44.25 MB #Memory Used# [2025-09-27 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 11:25:05 [end_date_ymd] => 2025-09-27 14:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 11:25:05' and `end` < '2025-09-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-09-27 14:25:17] Production.INFO: count ==1961 [2025-09-27 14:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 11:25:05 - End Time 2025-09-27 14:25:05 [2025-09-27 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15915901', 'tblTempUsageDetail_20' ) start [2025-09-27 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15915901', 'tblTempUsageDetail_20' ) end [2025-09-27 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15915901', 'tblTempVendorCDR_20' ) start [2025-09-27 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15915901', 'tblTempVendorCDR_20' ) end [2025-09-27 14:25:18] Production.INFO: ProcessCDR(1,15915901,1,1,2) [2025-09-27 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15915901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15915901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15915901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15915901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15915901', 'tblTempUsageDetail_20' ) start [2025-09-27 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15915901', 'tblTempUsageDetail_20' ) end [2025-09-27 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-27 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-27 14:25:28] Production.INFO: ==11916== Releasing lock... [2025-09-27 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 14:25:28] Production.INFO: 42.75 MB #Memory Used# [2025-09-27 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 12:25:05 [end_date_ymd] => 2025-09-27 15:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 12:25:05' and `end` < '2025-09-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-09-27 15:25:17] Production.INFO: count ==1841 [2025-09-27 15:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 12:25:05 - End Time 2025-09-27 15:25:05 [2025-09-27 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15916148', 'tblTempUsageDetail_20' ) start [2025-09-27 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15916148', 'tblTempUsageDetail_20' ) end [2025-09-27 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15916148', 'tblTempVendorCDR_20' ) start [2025-09-27 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15916148', 'tblTempVendorCDR_20' ) end [2025-09-27 15:25:18] Production.INFO: ProcessCDR(1,15916148,1,1,2) [2025-09-27 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15916148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15916148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15916148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15916148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15916148', 'tblTempUsageDetail_20' ) start [2025-09-27 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15916148', 'tblTempUsageDetail_20' ) end [2025-09-27 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-27 15:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-27 15:25:29] Production.INFO: ==16616== Releasing lock... [2025-09-27 15:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 15:25:29] Production.INFO: 42 MB #Memory Used# [2025-09-27 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 13:25:05 [end_date_ymd] => 2025-09-27 16:25:05 [RateCDR] => 1 ) [2025-09-27 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-09-27 13:25:05' and `end` < '2025-09-27 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-09-27 16:25:18] Production.INFO: count ==1645 [2025-09-27 16:25:19] Production.ERROR: pbx CDR StartTime 2025-09-27 13:25:05 - End Time 2025-09-27 16:25:05 [2025-09-27 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15916395', 'tblTempUsageDetail_20' ) start [2025-09-27 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15916395', 'tblTempUsageDetail_20' ) end [2025-09-27 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15916395', 'tblTempVendorCDR_20' ) start [2025-09-27 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15916395', 'tblTempVendorCDR_20' ) end [2025-09-27 16:25:19] Production.INFO: ProcessCDR(1,15916395,1,1,2) [2025-09-27 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15916395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15916395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15916395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15916395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15916395', 'tblTempUsageDetail_20' ) start [2025-09-27 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15916395', 'tblTempUsageDetail_20' ) end [2025-09-27 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-27 16:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-27 16:25:29] Production.INFO: ==22410== Releasing lock... [2025-09-27 16:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 16:25:29] Production.INFO: 40.75 MB #Memory Used# [2025-09-27 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 14:25:05 [end_date_ymd] => 2025-09-27 17:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 14:25:05' and `end` < '2025-09-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-09-27 17:25:18] Production.INFO: count ==1832 [2025-09-27 17:25:19] Production.ERROR: pbx CDR StartTime 2025-09-27 14:25:05 - End Time 2025-09-27 17:25:05 [2025-09-27 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15916642', 'tblTempUsageDetail_20' ) start [2025-09-27 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15916642', 'tblTempUsageDetail_20' ) end [2025-09-27 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15916642', 'tblTempVendorCDR_20' ) start [2025-09-27 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15916642', 'tblTempVendorCDR_20' ) end [2025-09-27 17:25:19] Production.INFO: ProcessCDR(1,15916642,1,1,2) [2025-09-27 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15916642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15916642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15916642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15916642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15916642', 'tblTempUsageDetail_20' ) start [2025-09-27 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15916642', 'tblTempUsageDetail_20' ) end [2025-09-27 17:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-27 17:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-27 17:25:30] Production.INFO: ==26737== Releasing lock... [2025-09-27 17:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 17:25:30] Production.INFO: 42.25 MB #Memory Used# [2025-09-27 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 15:25:05 [end_date_ymd] => 2025-09-27 18:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 15:25:05' and `end` < '2025-09-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-09-27 18:25:19] Production.INFO: count ==2198 [2025-09-27 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-27 15:25:05 - End Time 2025-09-27 18:25:05 [2025-09-27 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15916889', 'tblTempUsageDetail_20' ) start [2025-09-27 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15916889', 'tblTempUsageDetail_20' ) end [2025-09-27 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15916889', 'tblTempVendorCDR_20' ) start [2025-09-27 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15916889', 'tblTempVendorCDR_20' ) end [2025-09-27 18:25:20] Production.INFO: ProcessCDR(1,15916889,1,1,2) [2025-09-27 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15916889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15916889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15916889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15916889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15916889', 'tblTempUsageDetail_20' ) start [2025-09-27 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15916889', 'tblTempUsageDetail_20' ) end [2025-09-27 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-27 18:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-27 18:25:31] Production.INFO: ==31167== Releasing lock... [2025-09-27 18:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 18:25:31] Production.INFO: 44.75 MB #Memory Used# [2025-09-27 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 16:25:05 [end_date_ymd] => 2025-09-27 19:25:05 [RateCDR] => 1 ) [2025-09-27 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-09-27 16:25:05' and `end` < '2025-09-27 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-09-27 19:25:17] Production.INFO: count ==2382 [2025-09-27 19:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 16:25:05 - End Time 2025-09-27 19:25:05 [2025-09-27 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15917133', 'tblTempUsageDetail_20' ) start [2025-09-27 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15917133', 'tblTempUsageDetail_20' ) end [2025-09-27 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15917133', 'tblTempVendorCDR_20' ) start [2025-09-27 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15917133', 'tblTempVendorCDR_20' ) end [2025-09-27 19:25:18] Production.INFO: ProcessCDR(1,15917133,1,1,2) [2025-09-27 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15917133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15917133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15917133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15917133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15917133', 'tblTempUsageDetail_20' ) start [2025-09-27 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15917133', 'tblTempUsageDetail_20' ) end [2025-09-27 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-27 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-27 19:25:28] Production.INFO: ==3279== Releasing lock... [2025-09-27 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 19:25:28] Production.INFO: 46 MB #Memory Used# [2025-09-27 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 17:25:05 [end_date_ymd] => 2025-09-27 20:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 17:25:05' and `end` < '2025-09-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-09-27 20:25:18] Production.INFO: count ==2221 [2025-09-27 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-27 17:25:05 - End Time 2025-09-27 20:25:05 [2025-09-27 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15917380', 'tblTempUsageDetail_20' ) start [2025-09-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15917380', 'tblTempUsageDetail_20' ) end [2025-09-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15917380', 'tblTempVendorCDR_20' ) start [2025-09-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15917380', 'tblTempVendorCDR_20' ) end [2025-09-27 20:25:19] Production.INFO: ProcessCDR(1,15917380,1,1,2) [2025-09-27 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15917380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15917380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15917380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15917380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15917380', 'tblTempUsageDetail_20' ) start [2025-09-27 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15917380', 'tblTempUsageDetail_20' ) end [2025-09-27 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-27 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-27 20:25:29] Production.INFO: ==7590== Releasing lock... [2025-09-27 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 20:25:29] Production.INFO: 44.75 MB #Memory Used# [2025-09-27 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 18:25:05 [end_date_ymd] => 2025-09-27 21:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 18:25:05' and `end` < '2025-09-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-09-27 21:25:18] Production.INFO: count ==1833 [2025-09-27 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 18:25:05 - End Time 2025-09-27 21:25:05 [2025-09-27 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15917627', 'tblTempUsageDetail_20' ) start [2025-09-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15917627', 'tblTempUsageDetail_20' ) end [2025-09-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15917627', 'tblTempVendorCDR_20' ) start [2025-09-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15917627', 'tblTempVendorCDR_20' ) end [2025-09-27 21:25:18] Production.INFO: ProcessCDR(1,15917627,1,1,2) [2025-09-27 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15917627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15917627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15917627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15917627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15917627', 'tblTempUsageDetail_20' ) start [2025-09-27 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15917627', 'tblTempUsageDetail_20' ) end [2025-09-27 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-27 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-27 21:25:27] Production.INFO: ==12055== Releasing lock... [2025-09-27 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 21:25:27] Production.INFO: 42 MB #Memory Used# [2025-09-27 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 19:25:05 [end_date_ymd] => 2025-09-27 22:25:05 [RateCDR] => 1 ) [2025-09-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-09-27 19:25:05' and `end` < '2025-09-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-09-27 22:25:17] Production.INFO: count ==1563 [2025-09-27 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 19:25:05 - End Time 2025-09-27 22:25:05 [2025-09-27 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15917874', 'tblTempUsageDetail_20' ) start [2025-09-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15917874', 'tblTempUsageDetail_20' ) end [2025-09-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15917874', 'tblTempVendorCDR_20' ) start [2025-09-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15917874', 'tblTempVendorCDR_20' ) end [2025-09-27 22:25:18] Production.INFO: ProcessCDR(1,15917874,1,1,2) [2025-09-27 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15917874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15917874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15917874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15917874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15917874', 'tblTempUsageDetail_20' ) start [2025-09-27 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15917874', 'tblTempUsageDetail_20' ) end [2025-09-27 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-27 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-27 22:25:27] Production.INFO: ==16447== Releasing lock... [2025-09-27 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 22:25:27] Production.INFO: 39.75 MB #Memory Used# [2025-09-27 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 20:25:06 [end_date_ymd] => 2025-09-27 23:25:06 [RateCDR] => 1 ) [2025-09-27 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-27 20:25:06' and `end` < '2025-09-27 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-27 23:25:18] Production.INFO: count ==1296 [2025-09-27 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 20:25:06 - End Time 2025-09-27 23:25:06 [2025-09-27 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15918121', 'tblTempUsageDetail_20' ) start [2025-09-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15918121', 'tblTempUsageDetail_20' ) end [2025-09-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15918121', 'tblTempVendorCDR_20' ) start [2025-09-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15918121', 'tblTempVendorCDR_20' ) end [2025-09-27 23:25:18] Production.INFO: ProcessCDR(1,15918121,1,1,2) [2025-09-27 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15918121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 23:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15918121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-27 23:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15918121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 23:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15918121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-27 23:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15918121', 'tblTempUsageDetail_20' ) start [2025-09-27 23:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15918121', 'tblTempUsageDetail_20' ) end [2025-09-27 23:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-27 23:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-27 23:25:28] Production.INFO: ==20749== Releasing lock... [2025-09-27 23:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-27 23:25:28] Production.INFO: 37.75 MB #Memory Used#