[2025-10-12 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-11 21:25:05 [end_date_ymd] => 2025-10-12 00:25:05 [RateCDR] => 1 ) [2025-10-12 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-11 21:25:05' and `end` < '2025-10-12 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 00:25:21] Production.INFO: count ==578 [2025-10-12 00:25:22] Production.ERROR: pbx CDR StartTime 2025-10-11 21:25:05 - End Time 2025-10-12 00:25:05 [2025-10-12 00:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16001351', 'tblTempUsageDetail_20' ) start [2025-10-12 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16001351', 'tblTempUsageDetail_20' ) end [2025-10-12 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16001351', 'tblTempVendorCDR_20' ) start [2025-10-12 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16001351', 'tblTempVendorCDR_20' ) end [2025-10-12 00:25:22] Production.INFO: ProcessCDR(1,16001351,1,1,2) [2025-10-12 00:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16001351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 00:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16001351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 00:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16001351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 00:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16001351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 00:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16001351', 'tblTempUsageDetail_20' ) start [2025-10-12 00:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16001351', 'tblTempUsageDetail_20' ) end [2025-10-12 00:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-12 00:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-12 00:25:33] Production.INFO: ==1462== Releasing lock... [2025-10-12 00:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 00:25:33] Production.INFO: 36 MB #Memory Used# [2025-10-12 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-11 22:25:05 [end_date_ymd] => 2025-10-12 01:25:05 [RateCDR] => 1 ) [2025-10-12 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-11 22:25:05' and `end` < '2025-10-12 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 01:25:17] Production.INFO: count ==593 [2025-10-12 01:25:17] Production.ERROR: pbx CDR StartTime 2025-10-11 22:25:05 - End Time 2025-10-12 01:25:05 [2025-10-12 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16001598', 'tblTempUsageDetail_20' ) start [2025-10-12 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16001598', 'tblTempUsageDetail_20' ) end [2025-10-12 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16001598', 'tblTempVendorCDR_20' ) start [2025-10-12 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16001598', 'tblTempVendorCDR_20' ) end [2025-10-12 01:25:17] Production.INFO: ProcessCDR(1,16001598,1,1,2) [2025-10-12 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16001598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16001598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16001598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16001598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16001598', 'tblTempUsageDetail_20' ) start [2025-10-12 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16001598', 'tblTempUsageDetail_20' ) end [2025-10-12 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-12 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-12 01:25:26] Production.INFO: ==6292== Releasing lock... [2025-10-12 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 01:25:26] Production.INFO: 33.25 MB #Memory Used# [2025-10-12 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-11 23:25:05 [end_date_ymd] => 2025-10-12 02:25:05 [RateCDR] => 1 ) [2025-10-12 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-10-11 23:25:05' and `end` < '2025-10-12 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-10-12 02:25:17] Production.INFO: count ==553 [2025-10-12 02:25:18] Production.ERROR: pbx CDR StartTime 2025-10-11 23:25:05 - End Time 2025-10-12 02:25:05 [2025-10-12 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16001845', 'tblTempUsageDetail_20' ) start [2025-10-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16001845', 'tblTempUsageDetail_20' ) end [2025-10-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16001845', 'tblTempVendorCDR_20' ) start [2025-10-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16001845', 'tblTempVendorCDR_20' ) end [2025-10-12 02:25:18] Production.INFO: ProcessCDR(1,16001845,1,1,2) [2025-10-12 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16001845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16001845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16001845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16001845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16001845', 'tblTempUsageDetail_20' ) start [2025-10-12 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16001845', 'tblTempUsageDetail_20' ) end [2025-10-12 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-12 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-12 02:25:26] Production.INFO: ==11396== Releasing lock... [2025-10-12 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 02:25:26] Production.INFO: 32.75 MB #Memory Used# [2025-10-12 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 00:25:05 [end_date_ymd] => 2025-10-12 03:25:05 [RateCDR] => 1 ) [2025-10-12 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 00:25:05' and `end` < '2025-10-12 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 03:25:18] Production.INFO: count ==442 [2025-10-12 03:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 00:25:05 - End Time 2025-10-12 03:25:05 [2025-10-12 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16002092', 'tblTempUsageDetail_20' ) start [2025-10-12 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16002092', 'tblTempUsageDetail_20' ) end [2025-10-12 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16002092', 'tblTempVendorCDR_20' ) start [2025-10-12 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16002092', 'tblTempVendorCDR_20' ) end [2025-10-12 03:25:18] Production.INFO: ProcessCDR(1,16002092,1,1,2) [2025-10-12 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16002092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16002092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16002092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 03:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16002092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16002092', 'tblTempUsageDetail_20' ) start [2025-10-12 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16002092', 'tblTempUsageDetail_20' ) end [2025-10-12 03:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 03:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-12 03:25:27] Production.INFO: ==15987== Releasing lock... [2025-10-12 03:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 03:25:27] Production.INFO: 31.75 MB #Memory Used# [2025-10-12 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 01:25:05 [end_date_ymd] => 2025-10-12 04:25:05 [RateCDR] => 1 ) [2025-10-12 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 01:25:05' and `end` < '2025-10-12 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 04:25:17] Production.INFO: count ==295 [2025-10-12 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-12 01:25:05 - End Time 2025-10-12 04:25:05 [2025-10-12 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16002340', 'tblTempUsageDetail_20' ) start [2025-10-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16002340', 'tblTempUsageDetail_20' ) end [2025-10-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16002340', 'tblTempVendorCDR_20' ) start [2025-10-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16002340', 'tblTempVendorCDR_20' ) end [2025-10-12 04:25:17] Production.INFO: ProcessCDR(1,16002340,1,1,2) [2025-10-12 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16002340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16002340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16002340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16002340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16002340', 'tblTempUsageDetail_20' ) start [2025-10-12 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16002340', 'tblTempUsageDetail_20' ) end [2025-10-12 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-12 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-12 04:25:26] Production.INFO: ==20376== Releasing lock... [2025-10-12 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 04:25:26] Production.INFO: 30.75 MB #Memory Used# [2025-10-12 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 02:25:05 [end_date_ymd] => 2025-10-12 05:25:05 [RateCDR] => 1 ) [2025-10-12 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-10-12 02:25:05' and `end` < '2025-10-12 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-10-12 05:25:18] Production.INFO: count ==196 [2025-10-12 05:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 02:25:05 - End Time 2025-10-12 05:25:05 [2025-10-12 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16002588', 'tblTempUsageDetail_20' ) start [2025-10-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16002588', 'tblTempUsageDetail_20' ) end [2025-10-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16002588', 'tblTempVendorCDR_20' ) start [2025-10-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16002588', 'tblTempVendorCDR_20' ) end [2025-10-12 05:25:18] Production.INFO: ProcessCDR(1,16002588,1,1,2) [2025-10-12 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16002588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16002588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16002588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16002588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16002588', 'tblTempUsageDetail_20' ) start [2025-10-12 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16002588', 'tblTempUsageDetail_20' ) end [2025-10-12 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-10-12 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-10-12 05:25:24] Production.INFO: ==25046== Releasing lock... [2025-10-12 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 05:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-10-12 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 03:25:05 [end_date_ymd] => 2025-10-12 06:25:05 [RateCDR] => 1 ) [2025-10-12 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 03:25:05' and `end` < '2025-10-12 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 06:25:17] Production.INFO: count ==128 [2025-10-12 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-12 03:25:05 - End Time 2025-10-12 06:25:05 [2025-10-12 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16002835', 'tblTempUsageDetail_20' ) start [2025-10-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16002835', 'tblTempUsageDetail_20' ) end [2025-10-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16002835', 'tblTempVendorCDR_20' ) start [2025-10-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16002835', 'tblTempVendorCDR_20' ) end [2025-10-12 06:25:17] Production.INFO: ProcessCDR(1,16002835,1,1,2) [2025-10-12 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16002835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16002835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16002835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16002835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16002835', 'tblTempUsageDetail_20' ) start [2025-10-12 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16002835', 'tblTempUsageDetail_20' ) end [2025-10-12 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-12 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-12 06:25:26] Production.INFO: ==29457== Releasing lock... [2025-10-12 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 06:25:26] Production.INFO: 28.75 MB #Memory Used# [2025-10-12 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 04:25:05 [end_date_ymd] => 2025-10-12 07:25:05 [RateCDR] => 1 ) [2025-10-12 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 04:25:05' and `end` < '2025-10-12 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 07:25:17] Production.INFO: count ==99 [2025-10-12 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-12 04:25:05 - End Time 2025-10-12 07:25:05 [2025-10-12 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16003082', 'tblTempUsageDetail_20' ) start [2025-10-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16003082', 'tblTempUsageDetail_20' ) end [2025-10-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16003082', 'tblTempVendorCDR_20' ) start [2025-10-12 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16003082', 'tblTempVendorCDR_20' ) end [2025-10-12 07:25:17] Production.INFO: ProcessCDR(1,16003082,1,1,2) [2025-10-12 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16003082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16003082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16003082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16003082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16003082', 'tblTempUsageDetail_20' ) start [2025-10-12 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16003082', 'tblTempUsageDetail_20' ) end [2025-10-12 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-12 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-12 07:25:26] Production.INFO: ==1710== Releasing lock... [2025-10-12 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 07:25:26] Production.INFO: 28.5 MB #Memory Used# [2025-10-12 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 05:25:05 [end_date_ymd] => 2025-10-12 08:25:05 [RateCDR] => 1 ) [2025-10-12 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 05:25:05' and `end` < '2025-10-12 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 08:25:17] Production.INFO: count ==105 [2025-10-12 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-12 05:25:05 - End Time 2025-10-12 08:25:05 [2025-10-12 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16003329', 'tblTempUsageDetail_20' ) start [2025-10-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16003329', 'tblTempUsageDetail_20' ) end [2025-10-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16003329', 'tblTempVendorCDR_20' ) start [2025-10-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16003329', 'tblTempVendorCDR_20' ) end [2025-10-12 08:25:17] Production.INFO: ProcessCDR(1,16003329,1,1,2) [2025-10-12 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16003329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16003329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16003329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16003329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16003329', 'tblTempUsageDetail_20' ) start [2025-10-12 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16003329', 'tblTempUsageDetail_20' ) end [2025-10-12 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-12 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-12 08:25:26] Production.INFO: ==6122== Releasing lock... [2025-10-12 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 08:25:26] Production.INFO: 28.75 MB #Memory Used# [2025-10-12 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 06:25:05 [end_date_ymd] => 2025-10-12 09:25:05 [RateCDR] => 1 ) [2025-10-12 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 06:25:05' and `end` < '2025-10-12 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 09:25:18] Production.INFO: count ==172 [2025-10-12 09:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 06:25:05 - End Time 2025-10-12 09:25:05 [2025-10-12 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16003576', 'tblTempUsageDetail_20' ) start [2025-10-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16003576', 'tblTempUsageDetail_20' ) end [2025-10-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16003576', 'tblTempVendorCDR_20' ) start [2025-10-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16003576', 'tblTempVendorCDR_20' ) end [2025-10-12 09:25:18] Production.INFO: ProcessCDR(1,16003576,1,1,2) [2025-10-12 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16003576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16003576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16003576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16003576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16003576', 'tblTempUsageDetail_20' ) start [2025-10-12 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16003576', 'tblTempUsageDetail_20' ) end [2025-10-12 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-12 09:25:27] Production.INFO: ==10528== Releasing lock... [2025-10-12 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 09:25:27] Production.INFO: 29.5 MB #Memory Used# [2025-10-12 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 07:25:06 [end_date_ymd] => 2025-10-12 10:25:06 [RateCDR] => 1 ) [2025-10-12 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 07:25:06' and `end` < '2025-10-12 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 10:25:18] Production.INFO: count ==239 [2025-10-12 10:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 07:25:06 - End Time 2025-10-12 10:25:06 [2025-10-12 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16003823', 'tblTempUsageDetail_20' ) start [2025-10-12 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16003823', 'tblTempUsageDetail_20' ) end [2025-10-12 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16003823', 'tblTempVendorCDR_20' ) start [2025-10-12 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16003823', 'tblTempVendorCDR_20' ) end [2025-10-12 10:25:18] Production.INFO: ProcessCDR(1,16003823,1,1,2) [2025-10-12 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16003823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16003823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16003823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16003823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16003823', 'tblTempUsageDetail_20' ) start [2025-10-12 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16003823', 'tblTempUsageDetail_20' ) end [2025-10-12 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 10:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-12 10:25:27] Production.INFO: ==15054== Releasing lock... [2025-10-12 10:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 10:25:27] Production.INFO: 30.5 MB #Memory Used# [2025-10-12 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 08:25:05 [end_date_ymd] => 2025-10-12 11:25:05 [RateCDR] => 1 ) [2025-10-12 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 08:25:05' and `end` < '2025-10-12 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 11:25:17] Production.INFO: count ==398 [2025-10-12 11:25:17] Production.ERROR: pbx CDR StartTime 2025-10-12 08:25:05 - End Time 2025-10-12 11:25:05 [2025-10-12 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16004070', 'tblTempUsageDetail_20' ) start [2025-10-12 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16004070', 'tblTempUsageDetail_20' ) end [2025-10-12 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16004070', 'tblTempVendorCDR_20' ) start [2025-10-12 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16004070', 'tblTempVendorCDR_20' ) end [2025-10-12 11:25:17] Production.INFO: ProcessCDR(1,16004070,1,1,2) [2025-10-12 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16004070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16004070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16004070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16004070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16004070', 'tblTempUsageDetail_20' ) start [2025-10-12 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16004070', 'tblTempUsageDetail_20' ) end [2025-10-12 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-12 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-12 11:25:26] Production.INFO: ==19432== Releasing lock... [2025-10-12 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 11:25:26] Production.INFO: 31.5 MB #Memory Used# [2025-10-12 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 09:25:05 [end_date_ymd] => 2025-10-12 12:25:05 [RateCDR] => 1 ) [2025-10-12 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 09:25:05' and `end` < '2025-10-12 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 12:25:18] Production.INFO: count ==512 [2025-10-12 12:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 09:25:05 - End Time 2025-10-12 12:25:05 [2025-10-12 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16004317', 'tblTempUsageDetail_20' ) start [2025-10-12 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16004317', 'tblTempUsageDetail_20' ) end [2025-10-12 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16004317', 'tblTempVendorCDR_20' ) start [2025-10-12 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16004317', 'tblTempVendorCDR_20' ) end [2025-10-12 12:25:18] Production.INFO: ProcessCDR(1,16004317,1,1,2) [2025-10-12 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16004317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16004317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16004317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16004317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16004317', 'tblTempUsageDetail_20' ) start [2025-10-12 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16004317', 'tblTempUsageDetail_20' ) end [2025-10-12 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-12 12:25:27] Production.INFO: ==24244== Releasing lock... [2025-10-12 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 12:25:27] Production.INFO: 32.75 MB #Memory Used# [2025-10-12 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 10:25:05 [end_date_ymd] => 2025-10-12 13:25:05 [RateCDR] => 1 ) [2025-10-12 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 10:25:05' and `end` < '2025-10-12 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 13:25:17] Production.INFO: count ==672 [2025-10-12 13:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 10:25:05 - End Time 2025-10-12 13:25:05 [2025-10-12 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16004564', 'tblTempUsageDetail_20' ) start [2025-10-12 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16004564', 'tblTempUsageDetail_20' ) end [2025-10-12 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16004564', 'tblTempVendorCDR_20' ) start [2025-10-12 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16004564', 'tblTempVendorCDR_20' ) end [2025-10-12 13:25:18] Production.INFO: ProcessCDR(1,16004564,1,1,2) [2025-10-12 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16004564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16004564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16004564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16004564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16004564', 'tblTempUsageDetail_20' ) start [2025-10-12 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16004564', 'tblTempUsageDetail_20' ) end [2025-10-12 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-12 13:25:27] Production.INFO: ==29010== Releasing lock... [2025-10-12 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 13:25:27] Production.INFO: 33.5 MB #Memory Used# [2025-10-12 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 11:25:05 [end_date_ymd] => 2025-10-12 14:25:05 [RateCDR] => 1 ) [2025-10-12 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 11:25:05' and `end` < '2025-10-12 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 14:25:17] Production.INFO: count ==844 [2025-10-12 14:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 11:25:05 - End Time 2025-10-12 14:25:05 [2025-10-12 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16004811', 'tblTempUsageDetail_20' ) start [2025-10-12 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16004811', 'tblTempUsageDetail_20' ) end [2025-10-12 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16004811', 'tblTempVendorCDR_20' ) start [2025-10-12 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16004811', 'tblTempVendorCDR_20' ) end [2025-10-12 14:25:18] Production.INFO: ProcessCDR(1,16004811,1,1,2) [2025-10-12 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16004811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16004811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16004811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16004811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16004811', 'tblTempUsageDetail_20' ) start [2025-10-12 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16004811', 'tblTempUsageDetail_20' ) end [2025-10-12 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 14:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-12 14:25:29] Production.INFO: ==1045== Releasing lock... [2025-10-12 14:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 14:25:29] Production.INFO: 34.5 MB #Memory Used# [2025-10-12 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 12:25:05 [end_date_ymd] => 2025-10-12 15:25:05 [RateCDR] => 1 ) [2025-10-12 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 12:25:05' and `end` < '2025-10-12 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 15:25:17] Production.INFO: count ==940 [2025-10-12 15:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 12:25:05 - End Time 2025-10-12 15:25:05 [2025-10-12 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16005058', 'tblTempUsageDetail_20' ) start [2025-10-12 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16005058', 'tblTempUsageDetail_20' ) end [2025-10-12 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16005058', 'tblTempVendorCDR_20' ) start [2025-10-12 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16005058', 'tblTempVendorCDR_20' ) end [2025-10-12 15:25:18] Production.INFO: ProcessCDR(1,16005058,1,1,2) [2025-10-12 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16005058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16005058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16005058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16005058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16005058', 'tblTempUsageDetail_20' ) start [2025-10-12 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16005058', 'tblTempUsageDetail_20' ) end [2025-10-12 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 15:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-12 15:25:28] Production.INFO: ==5597== Releasing lock... [2025-10-12 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 15:25:28] Production.INFO: 36 MB #Memory Used# [2025-10-12 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 13:25:05 [end_date_ymd] => 2025-10-12 16:25:05 [RateCDR] => 1 ) [2025-10-12 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 13:25:05' and `end` < '2025-10-12 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 16:25:18] Production.INFO: count ==953 [2025-10-12 16:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 13:25:05 - End Time 2025-10-12 16:25:05 [2025-10-12 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16005305', 'tblTempUsageDetail_20' ) start [2025-10-12 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16005305', 'tblTempUsageDetail_20' ) end [2025-10-12 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16005305', 'tblTempVendorCDR_20' ) start [2025-10-12 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16005305', 'tblTempVendorCDR_20' ) end [2025-10-12 16:25:18] Production.INFO: ProcessCDR(1,16005305,1,1,2) [2025-10-12 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16005305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16005305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16005305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16005305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16005305', 'tblTempUsageDetail_20' ) start [2025-10-12 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16005305', 'tblTempUsageDetail_20' ) end [2025-10-12 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-12 16:25:28] Production.INFO: ==10062== Releasing lock... [2025-10-12 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 16:25:28] Production.INFO: 35.5 MB #Memory Used# [2025-10-12 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 14:25:05 [end_date_ymd] => 2025-10-12 17:25:05 [RateCDR] => 1 ) [2025-10-12 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 14:25:05' and `end` < '2025-10-12 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 17:25:18] Production.INFO: count ==965 [2025-10-12 17:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 14:25:05 - End Time 2025-10-12 17:25:05 [2025-10-12 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16005552', 'tblTempUsageDetail_20' ) start [2025-10-12 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16005552', 'tblTempUsageDetail_20' ) end [2025-10-12 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16005552', 'tblTempVendorCDR_20' ) start [2025-10-12 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16005552', 'tblTempVendorCDR_20' ) end [2025-10-12 17:25:18] Production.INFO: ProcessCDR(1,16005552,1,1,2) [2025-10-12 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16005552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16005552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16005552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16005552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16005552', 'tblTempUsageDetail_20' ) start [2025-10-12 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16005552', 'tblTempUsageDetail_20' ) end [2025-10-12 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-12 17:25:28] Production.INFO: ==14678== Releasing lock... [2025-10-12 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 17:25:28] Production.INFO: 35.75 MB #Memory Used# [2025-10-12 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 15:25:06 [end_date_ymd] => 2025-10-12 18:25:06 [RateCDR] => 1 ) [2025-10-12 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 15:25:06' and `end` < '2025-10-12 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 18:25:18] Production.INFO: count ==984 [2025-10-12 18:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 15:25:06 - End Time 2025-10-12 18:25:06 [2025-10-12 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16005799', 'tblTempUsageDetail_20' ) start [2025-10-12 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16005799', 'tblTempUsageDetail_20' ) end [2025-10-12 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16005799', 'tblTempVendorCDR_20' ) start [2025-10-12 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16005799', 'tblTempVendorCDR_20' ) end [2025-10-12 18:25:18] Production.INFO: ProcessCDR(1,16005799,1,1,2) [2025-10-12 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16005799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16005799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16005799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16005799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16005799', 'tblTempUsageDetail_20' ) start [2025-10-12 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16005799', 'tblTempUsageDetail_20' ) end [2025-10-12 18:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-12 18:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-12 18:25:28] Production.INFO: ==19467== Releasing lock... [2025-10-12 18:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 18:25:28] Production.INFO: 35.75 MB #Memory Used# [2025-10-12 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 16:25:05 [end_date_ymd] => 2025-10-12 19:25:05 [RateCDR] => 1 ) [2025-10-12 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 16:25:05' and `end` < '2025-10-12 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 19:25:17] Production.INFO: count ==1004 [2025-10-12 19:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 16:25:05 - End Time 2025-10-12 19:25:05 [2025-10-12 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16006043', 'tblTempUsageDetail_20' ) start [2025-10-12 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16006043', 'tblTempUsageDetail_20' ) end [2025-10-12 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16006043', 'tblTempVendorCDR_20' ) start [2025-10-12 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16006043', 'tblTempVendorCDR_20' ) end [2025-10-12 19:25:18] Production.INFO: ProcessCDR(1,16006043,1,1,2) [2025-10-12 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16006043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16006043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16006043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16006043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16006043', 'tblTempUsageDetail_20' ) start [2025-10-12 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16006043', 'tblTempUsageDetail_20' ) end [2025-10-12 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-12 19:25:27] Production.INFO: ==24092== Releasing lock... [2025-10-12 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 19:25:27] Production.INFO: 36.25 MB #Memory Used# [2025-10-12 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 17:25:05 [end_date_ymd] => 2025-10-12 20:25:05 [RateCDR] => 1 ) [2025-10-12 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 17:25:05' and `end` < '2025-10-12 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 20:25:17] Production.INFO: count ==946 [2025-10-12 20:25:17] Production.ERROR: pbx CDR StartTime 2025-10-12 17:25:05 - End Time 2025-10-12 20:25:05 [2025-10-12 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16006290', 'tblTempUsageDetail_20' ) start [2025-10-12 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16006290', 'tblTempUsageDetail_20' ) end [2025-10-12 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16006290', 'tblTempVendorCDR_20' ) start [2025-10-12 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16006290', 'tblTempVendorCDR_20' ) end [2025-10-12 20:25:18] Production.INFO: ProcessCDR(1,16006290,1,1,2) [2025-10-12 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16006290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16006290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16006290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16006290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16006290', 'tblTempUsageDetail_20' ) start [2025-10-12 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16006290', 'tblTempUsageDetail_20' ) end [2025-10-12 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-12 20:25:27] Production.INFO: ==28662== Releasing lock... [2025-10-12 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 20:25:27] Production.INFO: 35.25 MB #Memory Used# [2025-10-12 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 18:25:05 [end_date_ymd] => 2025-10-12 21:25:05 [RateCDR] => 1 ) [2025-10-12 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-10-12 18:25:05' and `end` < '2025-10-12 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-10-12 21:25:18] Production.INFO: count ==950 [2025-10-12 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 18:25:05 - End Time 2025-10-12 21:25:05 [2025-10-12 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16006537', 'tblTempUsageDetail_20' ) start [2025-10-12 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16006537', 'tblTempUsageDetail_20' ) end [2025-10-12 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16006537', 'tblTempVendorCDR_20' ) start [2025-10-12 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16006537', 'tblTempVendorCDR_20' ) end [2025-10-12 21:25:18] Production.INFO: ProcessCDR(1,16006537,1,1,2) [2025-10-12 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16006537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16006537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16006537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16006537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16006537', 'tblTempUsageDetail_20' ) start [2025-10-12 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16006537', 'tblTempUsageDetail_20' ) end [2025-10-12 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-12 21:25:27] Production.INFO: ==930== Releasing lock... [2025-10-12 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 21:25:27] Production.INFO: 36 MB #Memory Used# [2025-10-12 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 19:25:05 [end_date_ymd] => 2025-10-12 22:25:05 [RateCDR] => 1 ) [2025-10-12 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 19:25:05' and `end` < '2025-10-12 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 22:25:17] Production.INFO: count ==946 [2025-10-12 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 19:25:05 - End Time 2025-10-12 22:25:05 [2025-10-12 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16006784', 'tblTempUsageDetail_20' ) start [2025-10-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16006784', 'tblTempUsageDetail_20' ) end [2025-10-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16006784', 'tblTempVendorCDR_20' ) start [2025-10-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16006784', 'tblTempVendorCDR_20' ) end [2025-10-12 22:25:18] Production.INFO: ProcessCDR(1,16006784,1,1,2) [2025-10-12 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16006784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16006784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16006784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16006784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16006784', 'tblTempUsageDetail_20' ) start [2025-10-12 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16006784', 'tblTempUsageDetail_20' ) end [2025-10-12 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-12 22:25:27] Production.INFO: ==5585== Releasing lock... [2025-10-12 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 22:25:27] Production.INFO: 35.75 MB #Memory Used# [2025-10-12 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 20:25:05 [end_date_ymd] => 2025-10-12 23:25:05 [RateCDR] => 1 ) [2025-10-12 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 20:25:05' and `end` < '2025-10-12 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-12 23:25:17] Production.INFO: count ==931 [2025-10-12 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 20:25:05 - End Time 2025-10-12 23:25:05 [2025-10-12 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16007031', 'tblTempUsageDetail_20' ) start [2025-10-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16007031', 'tblTempUsageDetail_20' ) end [2025-10-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16007031', 'tblTempVendorCDR_20' ) start [2025-10-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16007031', 'tblTempVendorCDR_20' ) end [2025-10-12 23:25:18] Production.INFO: ProcessCDR(1,16007031,1,1,2) [2025-10-12 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16007031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16007031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-12 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16007031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16007031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-12 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16007031', 'tblTempUsageDetail_20' ) start [2025-10-12 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16007031', 'tblTempUsageDetail_20' ) end [2025-10-12 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-12 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-12 23:25:27] Production.INFO: ==10070== Releasing lock... [2025-10-12 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-12 23:25:27] Production.INFO: 35.5 MB #Memory Used#