[2025-08-26 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 21:25:05 [end_date_ymd] => 2025-08-26 00:25:05 [RateCDR] => 1 ) [2025-08-26 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-08-25 21:25:05' and `end` < '2025-08-26 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-08-26 00:25:17] Production.INFO: count ==472 [2025-08-26 00:25:17] Production.ERROR: pbx CDR StartTime 2025-08-25 21:25:05 - End Time 2025-08-26 00:25:05 [2025-08-26 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15722766', 'tblTempUsageDetail_20' ) start [2025-08-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15722766', 'tblTempUsageDetail_20' ) end [2025-08-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15722766', 'tblTempVendorCDR_20' ) start [2025-08-26 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15722766', 'tblTempVendorCDR_20' ) end [2025-08-26 00:25:17] Production.INFO: ProcessCDR(1,15722766,1,1,2) [2025-08-26 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15722766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15722766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15722766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15722766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15722766', 'tblTempUsageDetail_20' ) start [2025-08-26 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15722766', 'tblTempUsageDetail_20' ) end [2025-08-26 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-26 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-26 00:25:26] Production.INFO: ==29060== Releasing lock... [2025-08-26 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 00:25:26] Production.INFO: 35.25 MB #Memory Used# [2025-08-26 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 22:25:05 [end_date_ymd] => 2025-08-26 01:25:05 [RateCDR] => 1 ) [2025-08-26 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-25 22:25:05' and `end` < '2025-08-26 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 01:25:18] Production.INFO: count ==442 [2025-08-26 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-25 22:25:05 - End Time 2025-08-26 01:25:05 [2025-08-26 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15723013', 'tblTempUsageDetail_20' ) start [2025-08-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15723013', 'tblTempUsageDetail_20' ) end [2025-08-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15723013', 'tblTempVendorCDR_20' ) start [2025-08-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15723013', 'tblTempVendorCDR_20' ) end [2025-08-26 01:25:18] Production.INFO: ProcessCDR(1,15723013,1,1,2) [2025-08-26 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15723013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15723013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15723013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15723013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15723013', 'tblTempUsageDetail_20' ) start [2025-08-26 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15723013', 'tblTempUsageDetail_20' ) end [2025-08-26 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-26 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-26 01:25:25] Production.INFO: ==1145== Releasing lock... [2025-08-26 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 01:25:25] Production.INFO: 32.25 MB #Memory Used# [2025-08-26 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 23:25:05 [end_date_ymd] => 2025-08-26 02:25:05 [RateCDR] => 1 ) [2025-08-26 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-08-25 23:25:05' and `end` < '2025-08-26 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-08-26 02:25:18] Production.INFO: count ==443 [2025-08-26 02:25:18] Production.ERROR: pbx CDR StartTime 2025-08-25 23:25:05 - End Time 2025-08-26 02:25:05 [2025-08-26 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15723260', 'tblTempUsageDetail_20' ) start [2025-08-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15723260', 'tblTempUsageDetail_20' ) end [2025-08-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15723260', 'tblTempVendorCDR_20' ) start [2025-08-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15723260', 'tblTempVendorCDR_20' ) end [2025-08-26 02:25:18] Production.INFO: ProcessCDR(1,15723260,1,1,2) [2025-08-26 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15723260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15723260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15723260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15723260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15723260', 'tblTempUsageDetail_20' ) start [2025-08-26 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15723260', 'tblTempUsageDetail_20' ) end [2025-08-26 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-26 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-26 02:25:26] Production.INFO: ==6851== Releasing lock... [2025-08-26 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 02:25:26] Production.INFO: 31.75 MB #Memory Used# [2025-08-26 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 00:25:05 [end_date_ymd] => 2025-08-26 03:25:05 [RateCDR] => 1 ) [2025-08-26 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 00:25:05' and `end` < '2025-08-26 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 03:25:18] Production.INFO: count ==370 [2025-08-26 03:25:18] Production.ERROR: pbx CDR StartTime 2025-08-26 00:25:05 - End Time 2025-08-26 03:25:05 [2025-08-26 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15723507', 'tblTempUsageDetail_20' ) start [2025-08-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15723507', 'tblTempUsageDetail_20' ) end [2025-08-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15723507', 'tblTempVendorCDR_20' ) start [2025-08-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15723507', 'tblTempVendorCDR_20' ) end [2025-08-26 03:25:18] Production.INFO: ProcessCDR(1,15723507,1,1,2) [2025-08-26 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15723507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15723507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15723507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15723507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15723507', 'tblTempUsageDetail_20' ) start [2025-08-26 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15723507', 'tblTempUsageDetail_20' ) end [2025-08-26 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-26 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-26 03:25:25] Production.INFO: ==11370== Releasing lock... [2025-08-26 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 03:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-08-26 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 01:25:05 [end_date_ymd] => 2025-08-26 04:25:05 [RateCDR] => 1 ) [2025-08-26 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 01:25:05' and `end` < '2025-08-26 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 04:25:17] Production.INFO: count ==265 [2025-08-26 04:25:17] Production.ERROR: pbx CDR StartTime 2025-08-26 01:25:05 - End Time 2025-08-26 04:25:05 [2025-08-26 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15723755', 'tblTempUsageDetail_20' ) start [2025-08-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15723755', 'tblTempUsageDetail_20' ) end [2025-08-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15723755', 'tblTempVendorCDR_20' ) start [2025-08-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15723755', 'tblTempVendorCDR_20' ) end [2025-08-26 04:25:17] Production.INFO: ProcessCDR(1,15723755,1,1,2) [2025-08-26 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15723755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15723755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15723755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15723755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15723755', 'tblTempUsageDetail_20' ) start [2025-08-26 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15723755', 'tblTempUsageDetail_20' ) end [2025-08-26 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-26 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-26 04:25:24] Production.INFO: ==15864== Releasing lock... [2025-08-26 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 04:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-08-26 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 02:25:06 [end_date_ymd] => 2025-08-26 05:25:06 [RateCDR] => 1 ) [2025-08-26 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 02:25:06' and `end` < '2025-08-26 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 05:25:18] Production.INFO: count ==150 [2025-08-26 05:25:18] Production.ERROR: pbx CDR StartTime 2025-08-26 02:25:06 - End Time 2025-08-26 05:25:06 [2025-08-26 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15724003', 'tblTempUsageDetail_20' ) start [2025-08-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15724003', 'tblTempUsageDetail_20' ) end [2025-08-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15724003', 'tblTempVendorCDR_20' ) start [2025-08-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15724003', 'tblTempVendorCDR_20' ) end [2025-08-26 05:25:18] Production.INFO: ProcessCDR(1,15724003,1,1,2) [2025-08-26 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15724003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15724003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15724003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15724003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15724003', 'tblTempUsageDetail_20' ) start [2025-08-26 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15724003', 'tblTempUsageDetail_20' ) end [2025-08-26 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-08-26 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-26 05:25:24] Production.INFO: ==20518== Releasing lock... [2025-08-26 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 05:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-08-26 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 03:25:04 [end_date_ymd] => 2025-08-26 06:25:04 [RateCDR] => 1 ) [2025-08-26 06:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 03:25:04' and `end` < '2025-08-26 06:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 06:25:17] Production.INFO: count ==122 [2025-08-26 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-26 03:25:04 - End Time 2025-08-26 06:25:04 [2025-08-26 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15724250', 'tblTempUsageDetail_20' ) start [2025-08-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15724250', 'tblTempUsageDetail_20' ) end [2025-08-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15724250', 'tblTempVendorCDR_20' ) start [2025-08-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15724250', 'tblTempVendorCDR_20' ) end [2025-08-26 06:25:17] Production.INFO: ProcessCDR(1,15724250,1,1,2) [2025-08-26 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15724250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15724250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15724250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15724250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15724250', 'tblTempUsageDetail_20' ) start [2025-08-26 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15724250', 'tblTempUsageDetail_20' ) end [2025-08-26 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-26 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-26 06:25:24] Production.INFO: ==25134== Releasing lock... [2025-08-26 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 06:25:24] Production.INFO: 28.75 MB #Memory Used# [2025-08-26 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 04:25:05 [end_date_ymd] => 2025-08-26 07:25:05 [RateCDR] => 1 ) [2025-08-26 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 04:25:05' and `end` < '2025-08-26 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 07:25:18] Production.INFO: count ==130 [2025-08-26 07:25:18] Production.ERROR: pbx CDR StartTime 2025-08-26 04:25:05 - End Time 2025-08-26 07:25:05 [2025-08-26 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15724497', 'tblTempUsageDetail_20' ) start [2025-08-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15724497', 'tblTempUsageDetail_20' ) end [2025-08-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15724497', 'tblTempVendorCDR_20' ) start [2025-08-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15724497', 'tblTempVendorCDR_20' ) end [2025-08-26 07:25:18] Production.INFO: ProcessCDR(1,15724497,1,1,2) [2025-08-26 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15724497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15724497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15724497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15724497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15724497', 'tblTempUsageDetail_20' ) start [2025-08-26 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15724497', 'tblTempUsageDetail_20' ) end [2025-08-26 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-26 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-26 07:25:25] Production.INFO: ==29569== Releasing lock... [2025-08-26 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 07:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-08-26 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 05:25:06 [end_date_ymd] => 2025-08-26 08:25:06 [RateCDR] => 1 ) [2025-08-26 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-08-26 05:25:06' and `end` < '2025-08-26 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-08-26 08:25:18] Production.INFO: count ==303 [2025-08-26 08:25:18] Production.ERROR: pbx CDR StartTime 2025-08-26 05:25:06 - End Time 2025-08-26 08:25:06 [2025-08-26 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15724744', 'tblTempUsageDetail_20' ) start [2025-08-26 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15724744', 'tblTempUsageDetail_20' ) end [2025-08-26 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15724744', 'tblTempVendorCDR_20' ) start [2025-08-26 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15724744', 'tblTempVendorCDR_20' ) end [2025-08-26 08:25:18] Production.INFO: ProcessCDR(1,15724744,1,1,2) [2025-08-26 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15724744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15724744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15724744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15724744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15724744', 'tblTempUsageDetail_20' ) start [2025-08-26 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15724744', 'tblTempUsageDetail_20' ) end [2025-08-26 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-26 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-26 08:25:25] Production.INFO: ==1694== Releasing lock... [2025-08-26 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 08:25:25] Production.INFO: 31 MB #Memory Used# [2025-08-26 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 06:25:05 [end_date_ymd] => 2025-08-26 09:25:05 [RateCDR] => 1 ) [2025-08-26 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 06:25:05' and `end` < '2025-08-26 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 09:25:18] Production.INFO: count ==1413 [2025-08-26 09:25:18] Production.ERROR: pbx CDR StartTime 2025-08-26 06:25:05 - End Time 2025-08-26 09:25:05 [2025-08-26 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15724991', 'tblTempUsageDetail_20' ) start [2025-08-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15724991', 'tblTempUsageDetail_20' ) end [2025-08-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15724991', 'tblTempVendorCDR_20' ) start [2025-08-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15724991', 'tblTempVendorCDR_20' ) end [2025-08-26 09:25:18] Production.INFO: ProcessCDR(1,15724991,1,1,2) [2025-08-26 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15724991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15724991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15724991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15724991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15724991', 'tblTempUsageDetail_20' ) start [2025-08-26 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15724991', 'tblTempUsageDetail_20' ) end [2025-08-26 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-26 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-26 09:25:28] Production.INFO: ==6052== Releasing lock... [2025-08-26 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 09:25:28] Production.INFO: 39 MB #Memory Used# [2025-08-26 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 07:25:05 [end_date_ymd] => 2025-08-26 10:25:05 [RateCDR] => 1 ) [2025-08-26 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 07:25:05' and `end` < '2025-08-26 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 10:25:21] Production.INFO: count ==3039 [2025-08-26 10:25:22] Production.ERROR: pbx CDR StartTime 2025-08-26 07:25:05 - End Time 2025-08-26 10:25:05 [2025-08-26 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15725238', 'tblTempUsageDetail_20' ) start [2025-08-26 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15725238', 'tblTempUsageDetail_20' ) end [2025-08-26 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15725238', 'tblTempVendorCDR_20' ) start [2025-08-26 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15725238', 'tblTempVendorCDR_20' ) end [2025-08-26 10:25:22] Production.INFO: ProcessCDR(1,15725238,1,1,2) [2025-08-26 10:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15725238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15725238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15725238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15725238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15725238', 'tblTempUsageDetail_20' ) start [2025-08-26 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15725238', 'tblTempUsageDetail_20' ) end [2025-08-26 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-26 10:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-26 10:25:33] Production.INFO: ==10530== Releasing lock... [2025-08-26 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 10:25:33] Production.INFO: 50.75 MB #Memory Used# [2025-08-26 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 08:25:05 [end_date_ymd] => 2025-08-26 11:25:05 [RateCDR] => 1 ) [2025-08-26 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-08-26 08:25:05' and `end` < '2025-08-26 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-08-26 11:25:19] Production.INFO: count ==4528 [2025-08-26 11:25:21] Production.ERROR: pbx CDR StartTime 2025-08-26 08:25:05 - End Time 2025-08-26 11:25:05 [2025-08-26 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15725485', 'tblTempUsageDetail_20' ) start [2025-08-26 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15725485', 'tblTempUsageDetail_20' ) end [2025-08-26 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15725485', 'tblTempVendorCDR_20' ) start [2025-08-26 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15725485', 'tblTempVendorCDR_20' ) end [2025-08-26 11:25:21] Production.INFO: ProcessCDR(1,15725485,1,1,2) [2025-08-26 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15725485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15725485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15725485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15725485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15725485', 'tblTempUsageDetail_20' ) start [2025-08-26 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15725485', 'tblTempUsageDetail_20' ) end [2025-08-26 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-26 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-26 11:25:33] Production.INFO: ==15075== Releasing lock... [2025-08-26 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 11:25:33] Production.INFO: 62 MB #Memory Used# [2025-08-26 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 09:25:05 [end_date_ymd] => 2025-08-26 12:25:05 [RateCDR] => 1 ) [2025-08-26 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 09:25:05' and `end` < '2025-08-26 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 12:25:21] Production.INFO: count ==5224 [2025-08-26 12:25:23] Production.ERROR: pbx CDR StartTime 2025-08-26 09:25:05 - End Time 2025-08-26 12:25:05 [2025-08-26 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15725732', 'tblTempUsageDetail_20' ) start [2025-08-26 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15725732', 'tblTempUsageDetail_20' ) end [2025-08-26 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15725732', 'tblTempVendorCDR_20' ) start [2025-08-26 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15725732', 'tblTempVendorCDR_20' ) end [2025-08-26 12:25:23] Production.INFO: ProcessCDR(1,15725732,1,1,2) [2025-08-26 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15725732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15725732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15725732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15725732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15725732', 'tblTempUsageDetail_20' ) start [2025-08-26 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15725732', 'tblTempUsageDetail_20' ) end [2025-08-26 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-26 12:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-26 12:25:35] Production.INFO: ==20069== Releasing lock... [2025-08-26 12:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 12:25:35] Production.INFO: 67.25 MB #Memory Used# [2025-08-26 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 10:25:05 [end_date_ymd] => 2025-08-26 13:25:05 [RateCDR] => 1 ) [2025-08-26 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-08-26 10:25:05' and `end` < '2025-08-26 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-08-26 13:25:18] Production.INFO: count ==5063 [2025-08-26 13:25:21] Production.ERROR: pbx CDR StartTime 2025-08-26 10:25:05 - End Time 2025-08-26 13:25:05 [2025-08-26 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15725979', 'tblTempUsageDetail_20' ) start [2025-08-26 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15725979', 'tblTempUsageDetail_20' ) end [2025-08-26 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15725979', 'tblTempVendorCDR_20' ) start [2025-08-26 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15725979', 'tblTempVendorCDR_20' ) end [2025-08-26 13:25:21] Production.INFO: ProcessCDR(1,15725979,1,1,2) [2025-08-26 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15725979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15725979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15725979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15725979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15725979', 'tblTempUsageDetail_20' ) start [2025-08-26 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15725979', 'tblTempUsageDetail_20' ) end [2025-08-26 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-26 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-26 13:25:32] Production.INFO: ==25408== Releasing lock... [2025-08-26 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 13:25:32] Production.INFO: 66 MB #Memory Used# [2025-08-26 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 11:25:06 [end_date_ymd] => 2025-08-26 14:25:06 [RateCDR] => 1 ) [2025-08-26 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 11:25:06' and `end` < '2025-08-26 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 14:25:20] Production.INFO: count ==5144 [2025-08-26 14:25:22] Production.ERROR: pbx CDR StartTime 2025-08-26 11:25:06 - End Time 2025-08-26 14:25:06 [2025-08-26 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15726226', 'tblTempUsageDetail_20' ) start [2025-08-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15726226', 'tblTempUsageDetail_20' ) end [2025-08-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15726226', 'tblTempVendorCDR_20' ) start [2025-08-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15726226', 'tblTempVendorCDR_20' ) end [2025-08-26 14:25:22] Production.INFO: ProcessCDR(1,15726226,1,1,2) [2025-08-26 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15726226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15726226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15726226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15726226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15726226', 'tblTempUsageDetail_20' ) start [2025-08-26 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15726226', 'tblTempUsageDetail_20' ) end [2025-08-26 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-26 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-26 14:25:34] Production.INFO: ==30028== Releasing lock... [2025-08-26 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 14:25:34] Production.INFO: 66.75 MB #Memory Used# [2025-08-26 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 12:25:06 [end_date_ymd] => 2025-08-26 15:25:06 [RateCDR] => 1 ) [2025-08-26 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 12:25:06' and `end` < '2025-08-26 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 15:25:22] Production.INFO: count ==5441 [2025-08-26 15:25:24] Production.ERROR: pbx CDR StartTime 2025-08-26 12:25:06 - End Time 2025-08-26 15:25:06 [2025-08-26 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15726473', 'tblTempUsageDetail_20' ) start [2025-08-26 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15726473', 'tblTempUsageDetail_20' ) end [2025-08-26 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15726473', 'tblTempVendorCDR_20' ) start [2025-08-26 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15726473', 'tblTempVendorCDR_20' ) end [2025-08-26 15:25:24] Production.INFO: ProcessCDR(1,15726473,1,1,2) [2025-08-26 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15726473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15726473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15726473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15726473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15726473', 'tblTempUsageDetail_20' ) start [2025-08-26 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15726473', 'tblTempUsageDetail_20' ) end [2025-08-26 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-08-26 15:25:36] Production.ERROR: pbx prc_insertCDR end [2025-08-26 15:25:36] Production.INFO: ==2699== Releasing lock... [2025-08-26 15:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 15:25:36] Production.INFO: 69 MB #Memory Used# [2025-08-26 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 13:25:05 [end_date_ymd] => 2025-08-26 16:25:05 [RateCDR] => 1 ) [2025-08-26 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 13:25:05' and `end` < '2025-08-26 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 16:25:18] Production.INFO: count ==5647 [2025-08-26 16:25:21] Production.ERROR: pbx CDR StartTime 2025-08-26 13:25:05 - End Time 2025-08-26 16:25:05 [2025-08-26 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15726720', 'tblTempUsageDetail_20' ) start [2025-08-26 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15726720', 'tblTempUsageDetail_20' ) end [2025-08-26 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15726720', 'tblTempVendorCDR_20' ) start [2025-08-26 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15726720', 'tblTempVendorCDR_20' ) end [2025-08-26 16:25:21] Production.INFO: ProcessCDR(1,15726720,1,1,2) [2025-08-26 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15726720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15726720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15726720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15726720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15726720', 'tblTempUsageDetail_20' ) start [2025-08-26 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15726720', 'tblTempUsageDetail_20' ) end [2025-08-26 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-26 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-26 16:25:33] Production.INFO: ==7099== Releasing lock... [2025-08-26 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 16:25:33] Production.INFO: 70.5 MB #Memory Used# [2025-08-26 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 14:25:05 [end_date_ymd] => 2025-08-26 17:25:05 [RateCDR] => 1 ) [2025-08-26 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 14:25:05' and `end` < '2025-08-26 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 17:25:20] Production.INFO: count ==5254 [2025-08-26 17:25:22] Production.ERROR: pbx CDR StartTime 2025-08-26 14:25:05 - End Time 2025-08-26 17:25:05 [2025-08-26 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15726967', 'tblTempUsageDetail_20' ) start [2025-08-26 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15726967', 'tblTempUsageDetail_20' ) end [2025-08-26 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15726967', 'tblTempVendorCDR_20' ) start [2025-08-26 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15726967', 'tblTempVendorCDR_20' ) end [2025-08-26 17:25:22] Production.INFO: ProcessCDR(1,15726967,1,1,2) [2025-08-26 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15726967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15726967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15726967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15726967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15726967', 'tblTempUsageDetail_20' ) start [2025-08-26 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15726967', 'tblTempUsageDetail_20' ) end [2025-08-26 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-26 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-26 17:25:34] Production.INFO: ==11464== Releasing lock... [2025-08-26 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 17:25:34] Production.INFO: 67.5 MB #Memory Used# [2025-08-26 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 15:25:05 [end_date_ymd] => 2025-08-26 18:25:05 [RateCDR] => 1 ) [2025-08-26 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 15:25:05' and `end` < '2025-08-26 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 18:25:18] Production.INFO: count ==3889 [2025-08-26 18:25:20] Production.ERROR: pbx CDR StartTime 2025-08-26 15:25:05 - End Time 2025-08-26 18:25:05 [2025-08-26 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15727214', 'tblTempUsageDetail_20' ) start [2025-08-26 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15727214', 'tblTempUsageDetail_20' ) end [2025-08-26 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15727214', 'tblTempVendorCDR_20' ) start [2025-08-26 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15727214', 'tblTempVendorCDR_20' ) end [2025-08-26 18:25:20] Production.INFO: ProcessCDR(1,15727214,1,1,2) [2025-08-26 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15727214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15727214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15727214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15727214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15727214', 'tblTempUsageDetail_20' ) start [2025-08-26 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15727214', 'tblTempUsageDetail_20' ) end [2025-08-26 18:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-26 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-08-26 18:25:29] Production.INFO: ==15815== Releasing lock... [2025-08-26 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 18:25:29] Production.INFO: 57.25 MB #Memory Used# [2025-08-26 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 16:25:05 [end_date_ymd] => 2025-08-26 19:25:05 [RateCDR] => 1 ) [2025-08-26 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 16:25:05' and `end` < '2025-08-26 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 19:25:18] Production.INFO: count ==2861 [2025-08-26 19:25:19] Production.ERROR: pbx CDR StartTime 2025-08-26 16:25:05 - End Time 2025-08-26 19:25:05 [2025-08-26 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15727458', 'tblTempUsageDetail_20' ) start [2025-08-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15727458', 'tblTempUsageDetail_20' ) end [2025-08-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15727458', 'tblTempVendorCDR_20' ) start [2025-08-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15727458', 'tblTempVendorCDR_20' ) end [2025-08-26 19:25:19] Production.INFO: ProcessCDR(1,15727458,1,1,2) [2025-08-26 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15727458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15727458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15727458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15727458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15727458', 'tblTempUsageDetail_20' ) start [2025-08-26 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15727458', 'tblTempUsageDetail_20' ) end [2025-08-26 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-26 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-26 19:25:28] Production.INFO: ==20017== Releasing lock... [2025-08-26 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 19:25:28] Production.INFO: 50.5 MB #Memory Used# [2025-08-26 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 17:25:05 [end_date_ymd] => 2025-08-26 20:25:05 [RateCDR] => 1 ) [2025-08-26 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 17:25:05' and `end` < '2025-08-26 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 20:25:17] Production.INFO: count ==1991 [2025-08-26 20:25:18] Production.ERROR: pbx CDR StartTime 2025-08-26 17:25:05 - End Time 2025-08-26 20:25:05 [2025-08-26 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15727705', 'tblTempUsageDetail_20' ) start [2025-08-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15727705', 'tblTempUsageDetail_20' ) end [2025-08-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15727705', 'tblTempVendorCDR_20' ) start [2025-08-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15727705', 'tblTempVendorCDR_20' ) end [2025-08-26 20:25:18] Production.INFO: ProcessCDR(1,15727705,1,1,2) [2025-08-26 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15727705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15727705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15727705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15727705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15727705', 'tblTempUsageDetail_20' ) start [2025-08-26 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15727705', 'tblTempUsageDetail_20' ) end [2025-08-26 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-26 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-26 20:25:26] Production.INFO: ==24215== Releasing lock... [2025-08-26 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 20:25:26] Production.INFO: 43 MB #Memory Used# [2025-08-26 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 18:25:05 [end_date_ymd] => 2025-08-26 21:25:05 [RateCDR] => 1 ) [2025-08-26 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-08-26 18:25:05' and `end` < '2025-08-26 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-08-26 21:25:18] Production.INFO: count ==1537 [2025-08-26 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-26 18:25:05 - End Time 2025-08-26 21:25:05 [2025-08-26 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15727952', 'tblTempUsageDetail_20' ) start [2025-08-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15727952', 'tblTempUsageDetail_20' ) end [2025-08-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15727952', 'tblTempVendorCDR_20' ) start [2025-08-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15727952', 'tblTempVendorCDR_20' ) end [2025-08-26 21:25:19] Production.INFO: ProcessCDR(1,15727952,1,1,2) [2025-08-26 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15727952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15727952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15727952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15727952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15727952', 'tblTempUsageDetail_20' ) start [2025-08-26 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15727952', 'tblTempUsageDetail_20' ) end [2025-08-26 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-26 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-26 21:25:26] Production.INFO: ==28513== Releasing lock... [2025-08-26 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 21:25:26] Production.INFO: 39.75 MB #Memory Used# [2025-08-26 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 19:25:05 [end_date_ymd] => 2025-08-26 22:25:05 [RateCDR] => 1 ) [2025-08-26 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-08-26 19:25:05' and `end` < '2025-08-26 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-08-26 22:25:18] Production.INFO: count ==1288 [2025-08-26 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-26 19:25:05 - End Time 2025-08-26 22:25:05 [2025-08-26 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15728199', 'tblTempUsageDetail_20' ) start [2025-08-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15728199', 'tblTempUsageDetail_20' ) end [2025-08-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15728199', 'tblTempVendorCDR_20' ) start [2025-08-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15728199', 'tblTempVendorCDR_20' ) end [2025-08-26 22:25:18] Production.INFO: ProcessCDR(1,15728199,1,1,2) [2025-08-26 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15728199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15728199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15728199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15728199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15728199', 'tblTempUsageDetail_20' ) start [2025-08-26 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15728199', 'tblTempUsageDetail_20' ) end [2025-08-26 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-26 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-26 22:25:27] Production.INFO: ==1320== Releasing lock... [2025-08-26 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 22:25:27] Production.INFO: 38 MB #Memory Used# [2025-08-26 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 20:25:05 [end_date_ymd] => 2025-08-26 23:25:05 [RateCDR] => 1 ) [2025-08-26 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-26 20:25:05' and `end` < '2025-08-26 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-26 23:25:17] Production.INFO: count ==1047 [2025-08-26 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-26 20:25:05 - End Time 2025-08-26 23:25:05 [2025-08-26 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15728446', 'tblTempUsageDetail_20' ) start [2025-08-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15728446', 'tblTempUsageDetail_20' ) end [2025-08-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15728446', 'tblTempVendorCDR_20' ) start [2025-08-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15728446', 'tblTempVendorCDR_20' ) end [2025-08-26 23:25:18] Production.INFO: ProcessCDR(1,15728446,1,1,2) [2025-08-26 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15728446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15728446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-26 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15728446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15728446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-26 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15728446', 'tblTempUsageDetail_20' ) start [2025-08-26 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15728446', 'tblTempUsageDetail_20' ) end [2025-08-26 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-26 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-26 23:25:26] Production.INFO: ==5927== Releasing lock... [2025-08-26 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-26 23:25:26] Production.INFO: 36.75 MB #Memory Used#