[2025-06-19 00:25:05] Production.INFO: next invoice date [2025-06-19 00:25:05] Production.INFO: 2025-07-19 [2025-06-19 00:25:05] Production.INFO: getdaysdiff [2025-06-19 00:25:05] Production.INFO: +30 [2025-06-19 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (108,15,1,30,30,'RMScheduler',2025-06-19 00:25:05,1,0,,,0) [2025-06-19 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 21:25:06 [end_date_ymd] => 2025-06-19 00:25:06 [RateCDR] => 1 ) [2025-06-19 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-06-18 21:25:06' and `end` < '2025-06-19 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-06-19 00:25:20] Production.INFO: count ==502 [2025-06-19 00:25:20] Production.ERROR: pbx CDR StartTime 2025-06-18 21:25:06 - End Time 2025-06-19 00:25:06 [2025-06-19 00:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15319725', 'tblTempUsageDetail_20' ) start [2025-06-19 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15319725', 'tblTempUsageDetail_20' ) end [2025-06-19 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15319725', 'tblTempVendorCDR_20' ) start [2025-06-19 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15319725', 'tblTempVendorCDR_20' ) end [2025-06-19 00:25:20] Production.INFO: ProcessCDR(1,15319725,1,1,2) [2025-06-19 00:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15319725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 00:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15319725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 00:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15319725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15319725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15319725', 'tblTempUsageDetail_20' ) start [2025-06-19 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15319725', 'tblTempUsageDetail_20' ) end [2025-06-19 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-19 00:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-19 00:25:28] Production.INFO: ==3248== Releasing lock... [2025-06-19 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 00:25:28] Production.INFO: 36.5 MB #Memory Used# [2025-06-19 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 22:25:05 [end_date_ymd] => 2025-06-19 01:25:05 [RateCDR] => 1 ) [2025-06-19 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-18 22:25:05' and `end` < '2025-06-19 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 01:25:17] Production.INFO: count ==411 [2025-06-19 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-18 22:25:05 - End Time 2025-06-19 01:25:05 [2025-06-19 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15319972', 'tblTempUsageDetail_20' ) start [2025-06-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15319972', 'tblTempUsageDetail_20' ) end [2025-06-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15319972', 'tblTempVendorCDR_20' ) start [2025-06-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15319972', 'tblTempVendorCDR_20' ) end [2025-06-19 01:25:17] Production.INFO: ProcessCDR(1,15319972,1,1,2) [2025-06-19 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15319972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15319972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15319972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15319972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15319972', 'tblTempUsageDetail_20' ) start [2025-06-19 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15319972', 'tblTempUsageDetail_20' ) end [2025-06-19 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-19 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-19 01:25:23] Production.INFO: ==7938== Releasing lock... [2025-06-19 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 01:25:23] Production.INFO: 32 MB #Memory Used# [2025-06-19 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-18 23:25:05 [end_date_ymd] => 2025-06-19 02:25:05 [RateCDR] => 1 ) [2025-06-19 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-18 23:25:05' and `end` < '2025-06-19 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 02:25:18] Production.INFO: count ==340 [2025-06-19 02:25:18] Production.ERROR: pbx CDR StartTime 2025-06-18 23:25:05 - End Time 2025-06-19 02:25:05 [2025-06-19 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15320219', 'tblTempUsageDetail_20' ) start [2025-06-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15320219', 'tblTempUsageDetail_20' ) end [2025-06-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15320219', 'tblTempVendorCDR_20' ) start [2025-06-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15320219', 'tblTempVendorCDR_20' ) end [2025-06-19 02:25:18] Production.INFO: ProcessCDR(1,15320219,1,1,2) [2025-06-19 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15320219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15320219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15320219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15320219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15320219', 'tblTempUsageDetail_20' ) start [2025-06-19 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15320219', 'tblTempUsageDetail_20' ) end [2025-06-19 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-19 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-19 02:25:25] Production.INFO: ==13297== Releasing lock... [2025-06-19 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 02:25:25] Production.INFO: 31 MB #Memory Used# [2025-06-19 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 00:25:05 [end_date_ymd] => 2025-06-19 03:25:05 [RateCDR] => 1 ) [2025-06-19 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-06-19 00:25:05' and `end` < '2025-06-19 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-06-19 03:25:17] Production.INFO: count ==280 [2025-06-19 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-19 00:25:05 - End Time 2025-06-19 03:25:05 [2025-06-19 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15320466', 'tblTempUsageDetail_20' ) start [2025-06-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15320466', 'tblTempUsageDetail_20' ) end [2025-06-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15320466', 'tblTempVendorCDR_20' ) start [2025-06-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15320466', 'tblTempVendorCDR_20' ) end [2025-06-19 03:25:17] Production.INFO: ProcessCDR(1,15320466,1,1,2) [2025-06-19 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15320466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15320466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15320466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15320466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15320466', 'tblTempUsageDetail_20' ) start [2025-06-19 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15320466', 'tblTempUsageDetail_20' ) end [2025-06-19 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-19 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-19 03:25:23] Production.INFO: ==21262== Releasing lock... [2025-06-19 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 03:25:23] Production.INFO: 30.5 MB #Memory Used# [2025-06-19 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 01:25:05 [end_date_ymd] => 2025-06-19 04:25:05 [RateCDR] => 1 ) [2025-06-19 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-06-19 01:25:05' and `end` < '2025-06-19 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-06-19 04:25:17] Production.INFO: count ==182 [2025-06-19 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-19 01:25:05 - End Time 2025-06-19 04:25:05 [2025-06-19 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15320714', 'tblTempUsageDetail_20' ) start [2025-06-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15320714', 'tblTempUsageDetail_20' ) end [2025-06-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15320714', 'tblTempVendorCDR_20' ) start [2025-06-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15320714', 'tblTempVendorCDR_20' ) end [2025-06-19 04:25:17] Production.INFO: ProcessCDR(1,15320714,1,1,2) [2025-06-19 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15320714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15320714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15320714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15320714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15320714', 'tblTempUsageDetail_20' ) start [2025-06-19 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15320714', 'tblTempUsageDetail_20' ) end [2025-06-19 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-19 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-19 04:25:23] Production.INFO: ==28819== Releasing lock... [2025-06-19 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 04:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-06-19 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 02:25:05 [end_date_ymd] => 2025-06-19 05:25:05 [RateCDR] => 1 ) [2025-06-19 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 02:25:05' and `end` < '2025-06-19 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 05:25:17] Production.INFO: count ==112 [2025-06-19 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-19 02:25:05 - End Time 2025-06-19 05:25:05 [2025-06-19 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15320962', 'tblTempUsageDetail_20' ) start [2025-06-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15320962', 'tblTempUsageDetail_20' ) end [2025-06-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15320962', 'tblTempVendorCDR_20' ) start [2025-06-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15320962', 'tblTempVendorCDR_20' ) end [2025-06-19 05:25:17] Production.INFO: ProcessCDR(1,15320962,1,1,2) [2025-06-19 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15320962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15320962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15320962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15320962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15320962', 'tblTempUsageDetail_20' ) start [2025-06-19 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15320962', 'tblTempUsageDetail_20' ) end [2025-06-19 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-06-19 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-06-19 05:25:22] Production.INFO: ==4047== Releasing lock... [2025-06-19 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 05:25:22] Production.INFO: 28.75 MB #Memory Used# [2025-06-19 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 03:25:05 [end_date_ymd] => 2025-06-19 06:25:05 [RateCDR] => 1 ) [2025-06-19 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 03:25:05' and `end` < '2025-06-19 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 06:25:17] Production.INFO: count ==84 [2025-06-19 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-19 03:25:05 - End Time 2025-06-19 06:25:05 [2025-06-19 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15321209', 'tblTempUsageDetail_20' ) start [2025-06-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15321209', 'tblTempUsageDetail_20' ) end [2025-06-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15321209', 'tblTempVendorCDR_20' ) start [2025-06-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15321209', 'tblTempVendorCDR_20' ) end [2025-06-19 06:25:17] Production.INFO: ProcessCDR(1,15321209,1,1,2) [2025-06-19 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15321209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15321209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15321209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15321209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15321209', 'tblTempUsageDetail_20' ) start [2025-06-19 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15321209', 'tblTempUsageDetail_20' ) end [2025-06-19 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-19 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-19 06:25:23] Production.INFO: ==11488== Releasing lock... [2025-06-19 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 06:25:23] Production.INFO: 28.5 MB #Memory Used# [2025-06-19 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 04:25:05 [end_date_ymd] => 2025-06-19 07:25:05 [RateCDR] => 1 ) [2025-06-19 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 04:25:05' and `end` < '2025-06-19 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 07:25:18] Production.INFO: count ==144 [2025-06-19 07:25:18] Production.ERROR: pbx CDR StartTime 2025-06-19 04:25:05 - End Time 2025-06-19 07:25:05 [2025-06-19 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15321456', 'tblTempUsageDetail_20' ) start [2025-06-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15321456', 'tblTempUsageDetail_20' ) end [2025-06-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15321456', 'tblTempVendorCDR_20' ) start [2025-06-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15321456', 'tblTempVendorCDR_20' ) end [2025-06-19 07:25:18] Production.INFO: ProcessCDR(1,15321456,1,1,2) [2025-06-19 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15321456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15321456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15321456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15321456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15321456', 'tblTempUsageDetail_20' ) start [2025-06-19 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15321456', 'tblTempUsageDetail_20' ) end [2025-06-19 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-19 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-19 07:25:24] Production.INFO: ==19427== Releasing lock... [2025-06-19 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-06-19 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 05:25:05 [end_date_ymd] => 2025-06-19 08:25:05 [RateCDR] => 1 ) [2025-06-19 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 05:25:05' and `end` < '2025-06-19 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 08:25:17] Production.INFO: count ==413 [2025-06-19 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-19 05:25:05 - End Time 2025-06-19 08:25:05 [2025-06-19 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15321703', 'tblTempUsageDetail_20' ) start [2025-06-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15321703', 'tblTempUsageDetail_20' ) end [2025-06-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15321703', 'tblTempVendorCDR_20' ) start [2025-06-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15321703', 'tblTempVendorCDR_20' ) end [2025-06-19 08:25:17] Production.INFO: ProcessCDR(1,15321703,1,1,2) [2025-06-19 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15321703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15321703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15321703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15321703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15321703', 'tblTempUsageDetail_20' ) start [2025-06-19 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15321703', 'tblTempUsageDetail_20' ) end [2025-06-19 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-19 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-19 08:25:23] Production.INFO: ==29704== Releasing lock... [2025-06-19 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 08:25:23] Production.INFO: 32 MB #Memory Used# [2025-06-19 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 06:25:05 [end_date_ymd] => 2025-06-19 09:25:05 [RateCDR] => 1 ) [2025-06-19 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 06:25:05' and `end` < '2025-06-19 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 09:25:17] Production.INFO: count ==1279 [2025-06-19 09:25:18] Production.ERROR: pbx CDR StartTime 2025-06-19 06:25:05 - End Time 2025-06-19 09:25:05 [2025-06-19 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15321950', 'tblTempUsageDetail_20' ) start [2025-06-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15321950', 'tblTempUsageDetail_20' ) end [2025-06-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15321950', 'tblTempVendorCDR_20' ) start [2025-06-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15321950', 'tblTempVendorCDR_20' ) end [2025-06-19 09:25:18] Production.INFO: ProcessCDR(1,15321950,1,1,2) [2025-06-19 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15321950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15321950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15321950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15321950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15321950', 'tblTempUsageDetail_20' ) start [2025-06-19 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15321950', 'tblTempUsageDetail_20' ) end [2025-06-19 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-19 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-19 09:25:26] Production.INFO: ==4777== Releasing lock... [2025-06-19 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 09:25:26] Production.INFO: 37.75 MB #Memory Used# [2025-06-19 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 07:25:05 [end_date_ymd] => 2025-06-19 10:25:05 [RateCDR] => 1 ) [2025-06-19 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 07:25:05' and `end` < '2025-06-19 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 10:25:18] Production.INFO: count ==3055 [2025-06-19 10:25:19] Production.ERROR: pbx CDR StartTime 2025-06-19 07:25:05 - End Time 2025-06-19 10:25:05 [2025-06-19 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15322197', 'tblTempUsageDetail_20' ) start [2025-06-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15322197', 'tblTempUsageDetail_20' ) end [2025-06-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15322197', 'tblTempVendorCDR_20' ) start [2025-06-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15322197', 'tblTempVendorCDR_20' ) end [2025-06-19 10:25:20] Production.INFO: ProcessCDR(1,15322197,1,1,2) [2025-06-19 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15322197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15322197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15322197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15322197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15322197', 'tblTempUsageDetail_20' ) start [2025-06-19 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15322197', 'tblTempUsageDetail_20' ) end [2025-06-19 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-19 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-06-19 10:25:29] Production.INFO: ==12504== Releasing lock... [2025-06-19 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 10:25:29] Production.INFO: 51.25 MB #Memory Used# [2025-06-19 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 08:25:05 [end_date_ymd] => 2025-06-19 11:25:05 [RateCDR] => 1 ) [2025-06-19 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 08:25:05' and `end` < '2025-06-19 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 11:25:25] Production.INFO: count ==4702 [2025-06-19 11:25:27] Production.ERROR: pbx CDR StartTime 2025-06-19 08:25:05 - End Time 2025-06-19 11:25:05 [2025-06-19 11:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15322444', 'tblTempUsageDetail_20' ) start [2025-06-19 11:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15322444', 'tblTempUsageDetail_20' ) end [2025-06-19 11:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15322444', 'tblTempVendorCDR_20' ) start [2025-06-19 11:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15322444', 'tblTempVendorCDR_20' ) end [2025-06-19 11:25:28] Production.INFO: ProcessCDR(1,15322444,1,1,2) [2025-06-19 11:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15322444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 11:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15322444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 11:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15322444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 11:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15322444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 11:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15322444', 'tblTempUsageDetail_20' ) start [2025-06-19 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15322444', 'tblTempUsageDetail_20' ) end [2025-06-19 11:25:37] Production.ERROR: pbx prc_insertCDR start [2025-06-19 11:25:39] Production.ERROR: pbx prc_insertCDR end [2025-06-19 11:25:39] Production.INFO: ==21131== Releasing lock... [2025-06-19 11:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 11:25:39] Production.INFO: 63.5 MB #Memory Used# [2025-06-19 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 09:25:05 [end_date_ymd] => 2025-06-19 12:25:05 [RateCDR] => 1 ) [2025-06-19 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 09:25:05' and `end` < '2025-06-19 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 12:25:19] Production.INFO: count ==5615 [2025-06-19 12:25:21] Production.ERROR: pbx CDR StartTime 2025-06-19 09:25:05 - End Time 2025-06-19 12:25:05 [2025-06-19 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15322691', 'tblTempUsageDetail_20' ) start [2025-06-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15322691', 'tblTempUsageDetail_20' ) end [2025-06-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15322691', 'tblTempVendorCDR_20' ) start [2025-06-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15322691', 'tblTempVendorCDR_20' ) end [2025-06-19 12:25:22] Production.INFO: ProcessCDR(1,15322691,1,1,2) [2025-06-19 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15322691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15322691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15322691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15322691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15322691', 'tblTempUsageDetail_20' ) start [2025-06-19 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15322691', 'tblTempUsageDetail_20' ) end [2025-06-19 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-19 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-19 12:25:33] Production.INFO: ==28639== Releasing lock... [2025-06-19 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 12:25:33] Production.INFO: 70.25 MB #Memory Used# [2025-06-19 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 10:25:05 [end_date_ymd] => 2025-06-19 13:25:05 [RateCDR] => 1 ) [2025-06-19 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 10:25:05' and `end` < '2025-06-19 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 13:25:19] Production.INFO: count ==5504 [2025-06-19 13:25:21] Production.ERROR: pbx CDR StartTime 2025-06-19 10:25:05 - End Time 2025-06-19 13:25:05 [2025-06-19 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15322938', 'tblTempUsageDetail_20' ) start [2025-06-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15322938', 'tblTempUsageDetail_20' ) end [2025-06-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15322938', 'tblTempVendorCDR_20' ) start [2025-06-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15322938', 'tblTempVendorCDR_20' ) end [2025-06-19 13:25:21] Production.INFO: ProcessCDR(1,15322938,1,1,2) [2025-06-19 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15322938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15322938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15322938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 13:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15322938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15322938', 'tblTempUsageDetail_20' ) start [2025-06-19 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15322938', 'tblTempUsageDetail_20' ) end [2025-06-19 13:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-19 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-19 13:25:32] Production.INFO: ==4793== Releasing lock... [2025-06-19 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 13:25:32] Production.INFO: 69.5 MB #Memory Used# [2025-06-19 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 11:25:05 [end_date_ymd] => 2025-06-19 14:25:05 [RateCDR] => 1 ) [2025-06-19 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 11:25:05' and `end` < '2025-06-19 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 14:25:18] Production.INFO: count ==5284 [2025-06-19 14:25:21] Production.ERROR: pbx CDR StartTime 2025-06-19 11:25:05 - End Time 2025-06-19 14:25:05 [2025-06-19 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15323185', 'tblTempUsageDetail_20' ) start [2025-06-19 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15323185', 'tblTempUsageDetail_20' ) end [2025-06-19 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15323185', 'tblTempVendorCDR_20' ) start [2025-06-19 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15323185', 'tblTempVendorCDR_20' ) end [2025-06-19 14:25:21] Production.INFO: ProcessCDR(1,15323185,1,1,2) [2025-06-19 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15323185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15323185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15323185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 14:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15323185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15323185', 'tblTempUsageDetail_20' ) start [2025-06-19 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15323185', 'tblTempUsageDetail_20' ) end [2025-06-19 14:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-19 14:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-19 14:25:30] Production.INFO: ==12214== Releasing lock... [2025-06-19 14:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 14:25:30] Production.INFO: 67.75 MB #Memory Used# [2025-06-19 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 12:25:05 [end_date_ymd] => 2025-06-19 15:25:05 [RateCDR] => 1 ) [2025-06-19 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 12:25:05' and `end` < '2025-06-19 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 15:25:20] Production.INFO: count ==5111 [2025-06-19 15:25:23] Production.ERROR: pbx CDR StartTime 2025-06-19 12:25:05 - End Time 2025-06-19 15:25:05 [2025-06-19 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15323432', 'tblTempUsageDetail_20' ) start [2025-06-19 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15323432', 'tblTempUsageDetail_20' ) end [2025-06-19 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15323432', 'tblTempVendorCDR_20' ) start [2025-06-19 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15323432', 'tblTempVendorCDR_20' ) end [2025-06-19 15:25:23] Production.INFO: ProcessCDR(1,15323432,1,1,2) [2025-06-19 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15323432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15323432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15323432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 15:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15323432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15323432', 'tblTempUsageDetail_20' ) start [2025-06-19 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15323432', 'tblTempUsageDetail_20' ) end [2025-06-19 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-19 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-19 15:25:33] Production.INFO: ==19606== Releasing lock... [2025-06-19 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 15:25:33] Production.INFO: 66.5 MB #Memory Used# [2025-06-19 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 13:25:05 [end_date_ymd] => 2025-06-19 16:25:05 [RateCDR] => 1 ) [2025-06-19 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-06-19 13:25:05' and `end` < '2025-06-19 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-06-19 16:25:19] Production.INFO: count ==5424 [2025-06-19 16:25:21] Production.ERROR: pbx CDR StartTime 2025-06-19 13:25:05 - End Time 2025-06-19 16:25:05 [2025-06-19 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15323679', 'tblTempUsageDetail_20' ) start [2025-06-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15323679', 'tblTempUsageDetail_20' ) end [2025-06-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15323679', 'tblTempVendorCDR_20' ) start [2025-06-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15323679', 'tblTempVendorCDR_20' ) end [2025-06-19 16:25:21] Production.INFO: ProcessCDR(1,15323679,1,1,2) [2025-06-19 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15323679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15323679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15323679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15323679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15323679', 'tblTempUsageDetail_20' ) start [2025-06-19 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15323679', 'tblTempUsageDetail_20' ) end [2025-06-19 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-19 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-19 16:25:33] Production.INFO: ==27026== Releasing lock... [2025-06-19 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 16:25:33] Production.INFO: 68.75 MB #Memory Used# [2025-06-19 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 14:25:05 [end_date_ymd] => 2025-06-19 17:25:05 [RateCDR] => 1 ) [2025-06-19 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 14:25:05' and `end` < '2025-06-19 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 17:25:19] Production.INFO: count ==5498 [2025-06-19 17:25:22] Production.ERROR: pbx CDR StartTime 2025-06-19 14:25:05 - End Time 2025-06-19 17:25:05 [2025-06-19 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15323926', 'tblTempUsageDetail_20' ) start [2025-06-19 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15323926', 'tblTempUsageDetail_20' ) end [2025-06-19 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15323926', 'tblTempVendorCDR_20' ) start [2025-06-19 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15323926', 'tblTempVendorCDR_20' ) end [2025-06-19 17:25:22] Production.INFO: ProcessCDR(1,15323926,1,1,2) [2025-06-19 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15323926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15323926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15323926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15323926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15323926', 'tblTempUsageDetail_20' ) start [2025-06-19 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15323926', 'tblTempUsageDetail_20' ) end [2025-06-19 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-19 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-19 17:25:33] Production.INFO: ==2154== Releasing lock... [2025-06-19 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 17:25:33] Production.INFO: 69.5 MB #Memory Used# [2025-06-19 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 15:25:05 [end_date_ymd] => 2025-06-19 18:25:05 [RateCDR] => 1 ) [2025-06-19 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 15:25:05' and `end` < '2025-06-19 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 18:25:18] Production.INFO: count ==4855 [2025-06-19 18:25:21] Production.ERROR: pbx CDR StartTime 2025-06-19 15:25:05 - End Time 2025-06-19 18:25:05 [2025-06-19 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15324173', 'tblTempUsageDetail_20' ) start [2025-06-19 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15324173', 'tblTempUsageDetail_20' ) end [2025-06-19 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15324173', 'tblTempVendorCDR_20' ) start [2025-06-19 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15324173', 'tblTempVendorCDR_20' ) end [2025-06-19 18:25:21] Production.INFO: ProcessCDR(1,15324173,1,1,2) [2025-06-19 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15324173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15324173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15324173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15324173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15324173', 'tblTempUsageDetail_20' ) start [2025-06-19 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15324173', 'tblTempUsageDetail_20' ) end [2025-06-19 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-19 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-19 18:25:30] Production.INFO: ==7795== Releasing lock... [2025-06-19 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 18:25:30] Production.INFO: 64.5 MB #Memory Used# [2025-06-19 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 16:25:05 [end_date_ymd] => 2025-06-19 19:25:05 [RateCDR] => 1 ) [2025-06-19 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-06-19 16:25:05' and `end` < '2025-06-19 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-06-19 19:25:18] Production.INFO: count ==3438 [2025-06-19 19:25:19] Production.ERROR: pbx CDR StartTime 2025-06-19 16:25:05 - End Time 2025-06-19 19:25:05 [2025-06-19 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15324417', 'tblTempUsageDetail_20' ) start [2025-06-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15324417', 'tblTempUsageDetail_20' ) end [2025-06-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15324417', 'tblTempVendorCDR_20' ) start [2025-06-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15324417', 'tblTempVendorCDR_20' ) end [2025-06-19 19:25:19] Production.INFO: ProcessCDR(1,15324417,1,1,2) [2025-06-19 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15324417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15324417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15324417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15324417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15324417', 'tblTempUsageDetail_20' ) start [2025-06-19 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15324417', 'tblTempUsageDetail_20' ) end [2025-06-19 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-19 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-19 19:25:27] Production.INFO: ==12241== Releasing lock... [2025-06-19 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 19:25:27] Production.INFO: 53.75 MB #Memory Used# [2025-06-19 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 17:25:05 [end_date_ymd] => 2025-06-19 20:25:05 [RateCDR] => 1 ) [2025-06-19 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 17:25:05' and `end` < '2025-06-19 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 20:25:17] Production.INFO: count ==2269 [2025-06-19 20:25:18] Production.ERROR: pbx CDR StartTime 2025-06-19 17:25:05 - End Time 2025-06-19 20:25:05 [2025-06-19 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15324664', 'tblTempUsageDetail_20' ) start [2025-06-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15324664', 'tblTempUsageDetail_20' ) end [2025-06-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15324664', 'tblTempVendorCDR_20' ) start [2025-06-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15324664', 'tblTempVendorCDR_20' ) end [2025-06-19 20:25:18] Production.INFO: ProcessCDR(1,15324664,1,1,2) [2025-06-19 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15324664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15324664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15324664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15324664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15324664', 'tblTempUsageDetail_20' ) start [2025-06-19 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15324664', 'tblTempUsageDetail_20' ) end [2025-06-19 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-19 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-19 20:25:25] Production.INFO: ==16519== Releasing lock... [2025-06-19 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 20:25:25] Production.INFO: 45.25 MB #Memory Used# [2025-06-19 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 18:25:05 [end_date_ymd] => 2025-06-19 21:25:05 [RateCDR] => 1 ) [2025-06-19 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 18:25:05' and `end` < '2025-06-19 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 21:25:18] Production.INFO: count ==1611 [2025-06-19 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-19 18:25:05 - End Time 2025-06-19 21:25:05 [2025-06-19 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15324911', 'tblTempUsageDetail_20' ) start [2025-06-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15324911', 'tblTempUsageDetail_20' ) end [2025-06-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15324911', 'tblTempVendorCDR_20' ) start [2025-06-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15324911', 'tblTempVendorCDR_20' ) end [2025-06-19 21:25:19] Production.INFO: ProcessCDR(1,15324911,1,1,2) [2025-06-19 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15324911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15324911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15324911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15324911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15324911', 'tblTempUsageDetail_20' ) start [2025-06-19 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15324911', 'tblTempUsageDetail_20' ) end [2025-06-19 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-19 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-19 21:25:25] Production.INFO: ==21272== Releasing lock... [2025-06-19 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 21:25:25] Production.INFO: 40.25 MB #Memory Used# [2025-06-19 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 19:25:05 [end_date_ymd] => 2025-06-19 22:25:05 [RateCDR] => 1 ) [2025-06-19 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 19:25:05' and `end` < '2025-06-19 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 22:25:17] Production.INFO: count ==1192 [2025-06-19 22:25:17] Production.ERROR: pbx CDR StartTime 2025-06-19 19:25:05 - End Time 2025-06-19 22:25:05 [2025-06-19 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15325158', 'tblTempUsageDetail_20' ) start [2025-06-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15325158', 'tblTempUsageDetail_20' ) end [2025-06-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15325158', 'tblTempVendorCDR_20' ) start [2025-06-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15325158', 'tblTempVendorCDR_20' ) end [2025-06-19 22:25:18] Production.INFO: ProcessCDR(1,15325158,1,1,2) [2025-06-19 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15325158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15325158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15325158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15325158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15325158', 'tblTempUsageDetail_20' ) start [2025-06-19 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15325158', 'tblTempUsageDetail_20' ) end [2025-06-19 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-19 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-19 22:25:25] Production.INFO: ==25497== Releasing lock... [2025-06-19 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 22:25:25] Production.INFO: 36.75 MB #Memory Used# [2025-06-19 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 20:25:05 [end_date_ymd] => 2025-06-19 23:25:05 [RateCDR] => 1 ) [2025-06-19 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 20:25:05' and `end` < '2025-06-19 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-19 23:25:17] Production.INFO: count ==915 [2025-06-19 23:25:17] Production.ERROR: pbx CDR StartTime 2025-06-19 20:25:05 - End Time 2025-06-19 23:25:05 [2025-06-19 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15325405', 'tblTempUsageDetail_20' ) start [2025-06-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15325405', 'tblTempUsageDetail_20' ) end [2025-06-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15325405', 'tblTempVendorCDR_20' ) start [2025-06-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15325405', 'tblTempVendorCDR_20' ) end [2025-06-19 23:25:17] Production.INFO: ProcessCDR(1,15325405,1,1,2) [2025-06-19 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15325405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15325405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-19 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15325405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15325405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-19 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15325405', 'tblTempUsageDetail_20' ) start [2025-06-19 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15325405', 'tblTempUsageDetail_20' ) end [2025-06-19 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-19 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-19 23:25:24] Production.INFO: ==30246== Releasing lock... [2025-06-19 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-19 23:25:24] Production.INFO: 35 MB #Memory Used#