[2025-07-14 00:25:05] Production.INFO: next invoice date [2025-07-14 00:25:05] Production.INFO: 2025-08-14 [2025-07-14 00:25:05] Production.INFO: getdaysdiff [2025-07-14 00:25:05] Production.INFO: +31 [2025-07-14 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (43,10,2,31,31,'RMScheduler',2025-07-14 00:25:05,1,0,,,0) [2025-07-14 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 21:25:06 [end_date_ymd] => 2025-07-14 00:25:06 [RateCDR] => 1 ) [2025-07-14 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-13 21:25:06' and `end` < '2025-07-14 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-14 00:25:18] Production.INFO: count ==640 [2025-07-14 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 21:25:06 - End Time 2025-07-14 00:25:06 [2025-07-14 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15467902', 'tblTempUsageDetail_20' ) start [2025-07-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15467902', 'tblTempUsageDetail_20' ) end [2025-07-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15467902', 'tblTempVendorCDR_20' ) start [2025-07-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15467902', 'tblTempVendorCDR_20' ) end [2025-07-14 00:25:18] Production.INFO: ProcessCDR(1,15467902,1,1,2) [2025-07-14 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15467902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15467902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15467902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15467902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15467902', 'tblTempUsageDetail_20' ) start [2025-07-14 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15467902', 'tblTempUsageDetail_20' ) end [2025-07-14 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-14 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-14 00:25:27] Production.INFO: ==14168== Releasing lock... [2025-07-14 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 00:25:27] Production.INFO: 35.75 MB #Memory Used# [2025-07-14 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 22:25:05 [end_date_ymd] => 2025-07-14 01:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-13 22:25:05' and `end` < '2025-07-14 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-07-14 01:25:18] Production.INFO: count ==592 [2025-07-14 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 22:25:05 - End Time 2025-07-14 01:25:05 [2025-07-14 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15468149', 'tblTempUsageDetail_20' ) start [2025-07-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15468149', 'tblTempUsageDetail_20' ) end [2025-07-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15468149', 'tblTempVendorCDR_20' ) start [2025-07-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15468149', 'tblTempVendorCDR_20' ) end [2025-07-14 01:25:18] Production.INFO: ProcessCDR(1,15468149,1,1,2) [2025-07-14 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15468149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15468149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15468149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15468149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15468149', 'tblTempUsageDetail_20' ) start [2025-07-14 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15468149', 'tblTempUsageDetail_20' ) end [2025-07-14 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-14 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-14 01:25:24] Production.INFO: ==19362== Releasing lock... [2025-07-14 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 01:25:24] Production.INFO: 32.75 MB #Memory Used# [2025-07-14 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 23:25:05 [end_date_ymd] => 2025-07-14 02:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-13 23:25:05' and `end` < '2025-07-14 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-07-14 02:25:18] Production.INFO: count ==629 [2025-07-14 02:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 23:25:05 - End Time 2025-07-14 02:25:05 [2025-07-14 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15468396', 'tblTempUsageDetail_20' ) start [2025-07-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15468396', 'tblTempUsageDetail_20' ) end [2025-07-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15468396', 'tblTempVendorCDR_20' ) start [2025-07-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15468396', 'tblTempVendorCDR_20' ) end [2025-07-14 02:25:18] Production.INFO: ProcessCDR(1,15468396,1,1,2) [2025-07-14 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15468396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15468396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15468396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15468396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15468396', 'tblTempUsageDetail_20' ) start [2025-07-14 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15468396', 'tblTempUsageDetail_20' ) end [2025-07-14 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-14 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-14 02:25:24] Production.INFO: ==24357== Releasing lock... [2025-07-14 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 02:25:24] Production.INFO: 33.75 MB #Memory Used# [2025-07-14 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 00:25:05 [end_date_ymd] => 2025-07-14 03:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 00:25:05' and `end` < '2025-07-14 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-07-14 03:25:17] Production.INFO: count ==488 [2025-07-14 03:25:18] Production.ERROR: pbx CDR StartTime 2025-07-14 00:25:05 - End Time 2025-07-14 03:25:05 [2025-07-14 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15468643', 'tblTempUsageDetail_20' ) start [2025-07-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15468643', 'tblTempUsageDetail_20' ) end [2025-07-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15468643', 'tblTempVendorCDR_20' ) start [2025-07-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15468643', 'tblTempVendorCDR_20' ) end [2025-07-14 03:25:18] Production.INFO: ProcessCDR(1,15468643,1,1,2) [2025-07-14 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15468643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15468643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15468643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15468643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15468643', 'tblTempUsageDetail_20' ) start [2025-07-14 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15468643', 'tblTempUsageDetail_20' ) end [2025-07-14 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-14 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-14 03:25:24] Production.INFO: ==29031== Releasing lock... [2025-07-14 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 03:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-14 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 01:25:05 [end_date_ymd] => 2025-07-14 04:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 01:25:05' and `end` < '2025-07-14 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-07-14 04:25:17] Production.INFO: count ==332 [2025-07-14 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-14 01:25:05 - End Time 2025-07-14 04:25:05 [2025-07-14 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15468891', 'tblTempUsageDetail_20' ) start [2025-07-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15468891', 'tblTempUsageDetail_20' ) end [2025-07-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15468891', 'tblTempVendorCDR_20' ) start [2025-07-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15468891', 'tblTempVendorCDR_20' ) end [2025-07-14 04:25:17] Production.INFO: ProcessCDR(1,15468891,1,1,2) [2025-07-14 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15468891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15468891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15468891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15468891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15468891', 'tblTempUsageDetail_20' ) start [2025-07-14 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15468891', 'tblTempUsageDetail_20' ) end [2025-07-14 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-14 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-14 04:25:23] Production.INFO: ==955== Releasing lock... [2025-07-14 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 04:25:23] Production.INFO: 31 MB #Memory Used# [2025-07-14 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 02:25:05 [end_date_ymd] => 2025-07-14 05:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 02:25:05' and `end` < '2025-07-14 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-07-14 05:25:18] Production.INFO: count ==196 [2025-07-14 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-14 02:25:05 - End Time 2025-07-14 05:25:05 [2025-07-14 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15469139', 'tblTempUsageDetail_20' ) start [2025-07-14 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15469139', 'tblTempUsageDetail_20' ) end [2025-07-14 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15469139', 'tblTempVendorCDR_20' ) start [2025-07-14 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15469139', 'tblTempVendorCDR_20' ) end [2025-07-14 05:25:18] Production.INFO: ProcessCDR(1,15469139,1,1,2) [2025-07-14 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15469139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15469139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15469139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15469139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15469139', 'tblTempUsageDetail_20' ) start [2025-07-14 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15469139', 'tblTempUsageDetail_20' ) end [2025-07-14 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-14 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-14 05:25:25] Production.INFO: ==5485== Releasing lock... [2025-07-14 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 05:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-07-14 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 03:25:05 [end_date_ymd] => 2025-07-14 06:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 03:25:05' and `end` < '2025-07-14 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-07-14 06:25:17] Production.INFO: count ==159 [2025-07-14 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-14 03:25:05 - End Time 2025-07-14 06:25:05 [2025-07-14 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15469386', 'tblTempUsageDetail_20' ) start [2025-07-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15469386', 'tblTempUsageDetail_20' ) end [2025-07-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15469386', 'tblTempVendorCDR_20' ) start [2025-07-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15469386', 'tblTempVendorCDR_20' ) end [2025-07-14 06:25:17] Production.INFO: ProcessCDR(1,15469386,1,1,2) [2025-07-14 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15469386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15469386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15469386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15469386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15469386', 'tblTempUsageDetail_20' ) start [2025-07-14 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15469386', 'tblTempUsageDetail_20' ) end [2025-07-14 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-14 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-14 06:25:23] Production.INFO: ==10525== Releasing lock... [2025-07-14 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 06:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-07-14 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 04:25:06 [end_date_ymd] => 2025-07-14 07:25:06 [RateCDR] => 1 ) [2025-07-14 07: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-07-14 04:25:06' and `end` < '2025-07-14 07: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-07-14 07:25:18] Production.INFO: count ==150 [2025-07-14 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-14 04:25:06 - End Time 2025-07-14 07:25:06 [2025-07-14 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15469633', 'tblTempUsageDetail_20' ) start [2025-07-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15469633', 'tblTempUsageDetail_20' ) end [2025-07-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15469633', 'tblTempVendorCDR_20' ) start [2025-07-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15469633', 'tblTempVendorCDR_20' ) end [2025-07-14 07:25:18] Production.INFO: ProcessCDR(1,15469633,1,1,2) [2025-07-14 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15469633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15469633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15469633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15469633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15469633', 'tblTempUsageDetail_20' ) start [2025-07-14 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15469633', 'tblTempUsageDetail_20' ) end [2025-07-14 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-14 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-14 07:25:24] Production.INFO: ==15031== Releasing lock... [2025-07-14 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 07:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-07-14 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 05:25:05 [end_date_ymd] => 2025-07-14 08:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 05:25:05' and `end` < '2025-07-14 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-07-14 08:25:17] Production.INFO: count ==373 [2025-07-14 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-14 05:25:05 - End Time 2025-07-14 08:25:05 [2025-07-14 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15469880', 'tblTempUsageDetail_20' ) start [2025-07-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15469880', 'tblTempUsageDetail_20' ) end [2025-07-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15469880', 'tblTempVendorCDR_20' ) start [2025-07-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15469880', 'tblTempVendorCDR_20' ) end [2025-07-14 08:25:17] Production.INFO: ProcessCDR(1,15469880,1,1,2) [2025-07-14 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15469880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15469880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15469880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15469880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15469880', 'tblTempUsageDetail_20' ) start [2025-07-14 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15469880', 'tblTempUsageDetail_20' ) end [2025-07-14 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-14 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-14 08:25:24] Production.INFO: ==19341== Releasing lock... [2025-07-14 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 08:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-07-14 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 06:25:06 [end_date_ymd] => 2025-07-14 09:25:06 [RateCDR] => 1 ) [2025-07-14 09: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-07-14 06:25:06' and `end` < '2025-07-14 09: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-07-14 09:25:19] Production.INFO: count ==1453 [2025-07-14 09:25:19] Production.ERROR: pbx CDR StartTime 2025-07-14 06:25:06 - End Time 2025-07-14 09:25:06 [2025-07-14 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15470127', 'tblTempUsageDetail_20' ) start [2025-07-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15470127', 'tblTempUsageDetail_20' ) end [2025-07-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15470127', 'tblTempVendorCDR_20' ) start [2025-07-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15470127', 'tblTempVendorCDR_20' ) end [2025-07-14 09:25:19] Production.INFO: ProcessCDR(1,15470127,1,1,2) [2025-07-14 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15470127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15470127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15470127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15470127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15470127', 'tblTempUsageDetail_20' ) start [2025-07-14 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15470127', 'tblTempUsageDetail_20' ) end [2025-07-14 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-14 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-14 09:25:27] Production.INFO: ==23894== Releasing lock... [2025-07-14 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 09:25:27] Production.INFO: 39 MB #Memory Used# [2025-07-14 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 07:25:04 [end_date_ymd] => 2025-07-14 10:25:04 [RateCDR] => 1 ) [2025-07-14 10:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-14 07:25:04' and `end` < '2025-07-14 10:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-14 10:25:21] Production.INFO: count ==3400 [2025-07-14 10:25:22] Production.ERROR: pbx CDR StartTime 2025-07-14 07:25:04 - End Time 2025-07-14 10:25:04 [2025-07-14 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15470374', 'tblTempUsageDetail_20' ) start [2025-07-14 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15470374', 'tblTempUsageDetail_20' ) end [2025-07-14 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15470374', 'tblTempVendorCDR_20' ) start [2025-07-14 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15470374', 'tblTempVendorCDR_20' ) end [2025-07-14 10:25:23] Production.INFO: ProcessCDR(1,15470374,1,1,2) [2025-07-14 10:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15470374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15470374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15470374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15470374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15470374', 'tblTempUsageDetail_20' ) start [2025-07-14 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15470374', 'tblTempUsageDetail_20' ) end [2025-07-14 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-14 10:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-14 10:25:33] Production.INFO: ==28330== Releasing lock... [2025-07-14 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 10:25:33] Production.INFO: 53.5 MB #Memory Used# [2025-07-14 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 08:25:05 [end_date_ymd] => 2025-07-14 11:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 08:25:05' and `end` < '2025-07-14 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-07-14 11:25:19] Production.INFO: count ==5567 [2025-07-14 11:25:22] Production.ERROR: pbx CDR StartTime 2025-07-14 08:25:05 - End Time 2025-07-14 11:25:05 [2025-07-14 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15470621', 'tblTempUsageDetail_20' ) start [2025-07-14 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15470621', 'tblTempUsageDetail_20' ) end [2025-07-14 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15470621', 'tblTempVendorCDR_20' ) start [2025-07-14 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15470621', 'tblTempVendorCDR_20' ) end [2025-07-14 11:25:23] Production.INFO: ProcessCDR(1,15470621,1,1,2) [2025-07-14 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15470621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15470621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15470621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15470621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15470621', 'tblTempUsageDetail_20' ) start [2025-07-14 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15470621', 'tblTempUsageDetail_20' ) end [2025-07-14 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-14 11:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-14 11:25:36] Production.INFO: ==32757== Releasing lock... [2025-07-14 11:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 11:25:36] Production.INFO: 70 MB #Memory Used# [2025-07-14 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 09:25:05 [end_date_ymd] => 2025-07-14 12:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 09:25:05' and `end` < '2025-07-14 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-07-14 12:25:20] Production.INFO: count ==7345 [2025-07-14 12:25:24] Production.ERROR: pbx CDR StartTime 2025-07-14 09:25:05 - End Time 2025-07-14 12:25:05 [2025-07-14 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15470868', 'tblTempUsageDetail_20' ) start [2025-07-14 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15470868', 'tblTempUsageDetail_20' ) end [2025-07-14 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15470868', 'tblTempVendorCDR_20' ) start [2025-07-14 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15470868', 'tblTempVendorCDR_20' ) end [2025-07-14 12:25:25] Production.INFO: ProcessCDR(1,15470868,1,1,2) [2025-07-14 12:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15470868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15470868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15470868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15470868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15470868', 'tblTempUsageDetail_20' ) start [2025-07-14 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15470868', 'tblTempUsageDetail_20' ) end [2025-07-14 12:25:34] Production.ERROR: pbx prc_insertCDR start [2025-07-14 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-14 12:25:36] Production.INFO: ==5123== Releasing lock... [2025-07-14 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 12:25:36] Production.INFO: 83.75 MB #Memory Used# [2025-07-14 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 10:25:05 [end_date_ymd] => 2025-07-14 13:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 10:25:05' and `end` < '2025-07-14 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-07-14 13:25:19] Production.INFO: count ==8260 [2025-07-14 13:25:24] Production.ERROR: pbx CDR StartTime 2025-07-14 10:25:05 - End Time 2025-07-14 13:25:05 [2025-07-14 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15471115', 'tblTempUsageDetail_20' ) start [2025-07-14 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15471115', 'tblTempUsageDetail_20' ) end [2025-07-14 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15471115', 'tblTempVendorCDR_20' ) start [2025-07-14 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15471115', 'tblTempVendorCDR_20' ) end [2025-07-14 13:25:24] Production.INFO: ProcessCDR(1,15471115,1,1,2) [2025-07-14 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15471115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15471115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15471115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15471115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15471115', 'tblTempUsageDetail_20' ) start [2025-07-14 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15471115', 'tblTempUsageDetail_20' ) end [2025-07-14 13:25:34] Production.ERROR: pbx prc_insertCDR start [2025-07-14 13:25:37] Production.ERROR: pbx prc_insertCDR end [2025-07-14 13:25:37] Production.INFO: ==9939== Releasing lock... [2025-07-14 13:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 13:25:37] Production.INFO: 90.75 MB #Memory Used# [2025-07-14 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 11:25:05 [end_date_ymd] => 2025-07-14 14:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 11:25:05' and `end` < '2025-07-14 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-07-14 14:25:23] Production.INFO: count ==8871 [2025-07-14 14:25:27] Production.ERROR: pbx CDR StartTime 2025-07-14 11:25:05 - End Time 2025-07-14 14:25:05 [2025-07-14 14:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15471361', 'tblTempUsageDetail_20' ) start [2025-07-14 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15471361', 'tblTempUsageDetail_20' ) end [2025-07-14 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15471361', 'tblTempVendorCDR_20' ) start [2025-07-14 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15471361', 'tblTempVendorCDR_20' ) end [2025-07-14 14:25:28] Production.INFO: ProcessCDR(1,15471361,1,1,2) [2025-07-14 14:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15471361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 14:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15471361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 14:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15471361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 14:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15471361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 14:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15471361', 'tblTempUsageDetail_20' ) start [2025-07-14 14:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15471361', 'tblTempUsageDetail_20' ) end [2025-07-14 14:25:38] Production.ERROR: pbx prc_insertCDR start [2025-07-14 14:25:40] Production.ERROR: pbx prc_insertCDR end [2025-07-14 14:25:40] Production.INFO: ==15684== Releasing lock... [2025-07-14 14:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 14:25:40] Production.INFO: 95.25 MB #Memory Used# [2025-07-14 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 12:25:05 [end_date_ymd] => 2025-07-14 15:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 12:25:05' and `end` < '2025-07-14 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-07-14 15:25:20] Production.INFO: count ==8770 [2025-07-14 15:25:24] Production.ERROR: pbx CDR StartTime 2025-07-14 12:25:05 - End Time 2025-07-14 15:25:05 [2025-07-14 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15471609', 'tblTempUsageDetail_20' ) start [2025-07-14 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15471609', 'tblTempUsageDetail_20' ) end [2025-07-14 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15471609', 'tblTempVendorCDR_20' ) start [2025-07-14 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15471609', 'tblTempVendorCDR_20' ) end [2025-07-14 15:25:25] Production.INFO: ProcessCDR(1,15471609,1,1,2) [2025-07-14 15:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15471609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15471609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15471609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 15:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15471609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15471609', 'tblTempUsageDetail_20' ) start [2025-07-14 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15471609', 'tblTempUsageDetail_20' ) end [2025-07-14 15:25:35] Production.ERROR: pbx prc_insertCDR start [2025-07-14 15:25:37] Production.ERROR: pbx prc_insertCDR end [2025-07-14 15:25:37] Production.INFO: ==21606== Releasing lock... [2025-07-14 15:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 15:25:37] Production.INFO: 94.5 MB #Memory Used# [2025-07-14 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 13:25:05 [end_date_ymd] => 2025-07-14 16:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 13:25:05' and `end` < '2025-07-14 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-07-14 16:25:22] Production.INFO: count ==8536 [2025-07-14 16:25:26] Production.ERROR: pbx CDR StartTime 2025-07-14 13:25:05 - End Time 2025-07-14 16:25:05 [2025-07-14 16:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15471856', 'tblTempUsageDetail_20' ) start [2025-07-14 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15471856', 'tblTempUsageDetail_20' ) end [2025-07-14 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15471856', 'tblTempVendorCDR_20' ) start [2025-07-14 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15471856', 'tblTempVendorCDR_20' ) end [2025-07-14 16:25:27] Production.INFO: ProcessCDR(1,15471856,1,1,2) [2025-07-14 16:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15471856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 16:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15471856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 16:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15471856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 16:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15471856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15471856', 'tblTempUsageDetail_20' ) start [2025-07-14 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15471856', 'tblTempUsageDetail_20' ) end [2025-07-14 16:25:36] Production.ERROR: pbx prc_insertCDR start [2025-07-14 16:25:38] Production.ERROR: pbx prc_insertCDR end [2025-07-14 16:25:38] Production.INFO: ==27120== Releasing lock... [2025-07-14 16:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 16:25:38] Production.INFO: 92.75 MB #Memory Used# [2025-07-14 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 14:25:05 [end_date_ymd] => 2025-07-14 17:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 14:25:05' and `end` < '2025-07-14 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-07-14 17:25:18] Production.INFO: count ==7130 [2025-07-14 17:25:22] Production.ERROR: pbx CDR StartTime 2025-07-14 14:25:05 - End Time 2025-07-14 17:25:05 [2025-07-14 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15472103', 'tblTempUsageDetail_20' ) start [2025-07-14 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15472103', 'tblTempUsageDetail_20' ) end [2025-07-14 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15472103', 'tblTempVendorCDR_20' ) start [2025-07-14 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15472103', 'tblTempVendorCDR_20' ) end [2025-07-14 17:25:23] Production.INFO: ProcessCDR(1,15472103,1,1,2) [2025-07-14 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15472103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15472103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15472103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15472103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15472103', 'tblTempUsageDetail_20' ) start [2025-07-14 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15472103', 'tblTempUsageDetail_20' ) end [2025-07-14 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-14 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-14 17:25:33] Production.INFO: ==32649== Releasing lock... [2025-07-14 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 17:25:33] Production.INFO: 82 MB #Memory Used# [2025-07-14 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 15:25:05 [end_date_ymd] => 2025-07-14 18:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 15:25:05' and `end` < '2025-07-14 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-07-14 18:25:18] Production.INFO: count ==6236 [2025-07-14 18:25:21] Production.ERROR: pbx CDR StartTime 2025-07-14 15:25:05 - End Time 2025-07-14 18:25:05 [2025-07-14 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15472350', 'tblTempUsageDetail_20' ) start [2025-07-14 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15472350', 'tblTempUsageDetail_20' ) end [2025-07-14 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15472350', 'tblTempVendorCDR_20' ) start [2025-07-14 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15472350', 'tblTempVendorCDR_20' ) end [2025-07-14 18:25:22] Production.INFO: ProcessCDR(1,15472350,1,1,2) [2025-07-14 18:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15472350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15472350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15472350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 18:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15472350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15472350', 'tblTempUsageDetail_20' ) start [2025-07-14 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15472350', 'tblTempUsageDetail_20' ) end [2025-07-14 18:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-14 18:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-14 18:25:34] Production.INFO: ==6089== Releasing lock... [2025-07-14 18:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 18:25:34] Production.INFO: 75 MB #Memory Used# [2025-07-14 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 16:25:05 [end_date_ymd] => 2025-07-14 19:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 16:25:05' and `end` < '2025-07-14 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-07-14 19:25:18] Production.INFO: count ==5242 [2025-07-14 19:25:20] Production.ERROR: pbx CDR StartTime 2025-07-14 16:25:05 - End Time 2025-07-14 19:25:05 [2025-07-14 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15472594', 'tblTempUsageDetail_20' ) start [2025-07-14 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15472594', 'tblTempUsageDetail_20' ) end [2025-07-14 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15472594', 'tblTempVendorCDR_20' ) start [2025-07-14 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15472594', 'tblTempVendorCDR_20' ) end [2025-07-14 19:25:21] Production.INFO: ProcessCDR(1,15472594,1,1,2) [2025-07-14 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15472594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15472594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15472594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15472594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15472594', 'tblTempUsageDetail_20' ) start [2025-07-14 19:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15472594', 'tblTempUsageDetail_20' ) end [2025-07-14 19:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-14 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-14 19:25:30] Production.INFO: ==11989== Releasing lock... [2025-07-14 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 19:25:30] Production.INFO: 67.75 MB #Memory Used# [2025-07-14 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 17:25:05 [end_date_ymd] => 2025-07-14 20:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 17:25:05' and `end` < '2025-07-14 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-07-14 20:25:18] Production.INFO: count ==4224 [2025-07-14 20:25:20] Production.ERROR: pbx CDR StartTime 2025-07-14 17:25:05 - End Time 2025-07-14 20:25:05 [2025-07-14 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15472841', 'tblTempUsageDetail_20' ) start [2025-07-14 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15472841', 'tblTempUsageDetail_20' ) end [2025-07-14 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15472841', 'tblTempVendorCDR_20' ) start [2025-07-14 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15472841', 'tblTempVendorCDR_20' ) end [2025-07-14 20:25:20] Production.INFO: ProcessCDR(1,15472841,1,1,2) [2025-07-14 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15472841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15472841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15472841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15472841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15472841', 'tblTempUsageDetail_20' ) start [2025-07-14 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15472841', 'tblTempUsageDetail_20' ) end [2025-07-14 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-14 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-14 20:25:28] Production.INFO: ==18482== Releasing lock... [2025-07-14 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 20:25:28] Production.INFO: 59.75 MB #Memory Used# [2025-07-14 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 18:25:05 [end_date_ymd] => 2025-07-14 21:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 18:25:05' and `end` < '2025-07-14 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-07-14 21:25:18] Production.INFO: count ==2782 [2025-07-14 21:25:19] Production.ERROR: pbx CDR StartTime 2025-07-14 18:25:05 - End Time 2025-07-14 21:25:05 [2025-07-14 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15473088', 'tblTempUsageDetail_20' ) start [2025-07-14 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15473088', 'tblTempUsageDetail_20' ) end [2025-07-14 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15473088', 'tblTempVendorCDR_20' ) start [2025-07-14 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15473088', 'tblTempVendorCDR_20' ) end [2025-07-14 21:25:20] Production.INFO: ProcessCDR(1,15473088,1,1,2) [2025-07-14 21:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15473088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15473088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15473088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15473088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15473088', 'tblTempUsageDetail_20' ) start [2025-07-14 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15473088', 'tblTempUsageDetail_20' ) end [2025-07-14 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-14 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-14 21:25:27] Production.INFO: ==23755== Releasing lock... [2025-07-14 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 21:25:27] Production.INFO: 49 MB #Memory Used# [2025-07-14 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 19:25:04 [end_date_ymd] => 2025-07-14 22:25:04 [RateCDR] => 1 ) [2025-07-14 22: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-07-14 19:25:04' and `end` < '2025-07-14 22: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-07-14 22:25:17] Production.INFO: count ==1372 [2025-07-14 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-14 19:25:04 - End Time 2025-07-14 22:25:04 [2025-07-14 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15473335', 'tblTempUsageDetail_20' ) start [2025-07-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15473335', 'tblTempUsageDetail_20' ) end [2025-07-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15473335', 'tblTempVendorCDR_20' ) start [2025-07-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15473335', 'tblTempVendorCDR_20' ) end [2025-07-14 22:25:18] Production.INFO: ProcessCDR(1,15473335,1,1,2) [2025-07-14 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15473335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15473335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15473335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15473335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15473335', 'tblTempUsageDetail_20' ) start [2025-07-14 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15473335', 'tblTempUsageDetail_20' ) end [2025-07-14 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-14 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-14 22:25:25] Production.INFO: ==29880== Releasing lock... [2025-07-14 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 22:25:25] Production.INFO: 38.5 MB #Memory Used# [2025-07-14 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 20:25:05 [end_date_ymd] => 2025-07-14 23:25:05 [RateCDR] => 1 ) [2025-07-14 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-07-14 20:25:05' and `end` < '2025-07-14 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-07-14 23:25:18] Production.INFO: count ==982 [2025-07-14 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-14 20:25:05 - End Time 2025-07-14 23:25:05 [2025-07-14 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15473582', 'tblTempUsageDetail_20' ) start [2025-07-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15473582', 'tblTempUsageDetail_20' ) end [2025-07-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15473582', 'tblTempVendorCDR_20' ) start [2025-07-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15473582', 'tblTempVendorCDR_20' ) end [2025-07-14 23:25:18] Production.INFO: ProcessCDR(1,15473582,1,1,2) [2025-07-14 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15473582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15473582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-14 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15473582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15473582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-14 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15473582', 'tblTempUsageDetail_20' ) start [2025-07-14 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15473582', 'tblTempUsageDetail_20' ) end [2025-07-14 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-14 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-14 23:25:25] Production.INFO: ==2431== Releasing lock... [2025-07-14 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-14 23:25:25] Production.INFO: 36.5 MB #Memory Used#