[2025-09-07 00:25:04] Production.INFO: next invoice date [2025-09-07 00:25:04] Production.INFO: 2025-10-07 [2025-09-07 00:25:04] Production.INFO: getdaysdiff [2025-09-07 00:25:04] Production.INFO: +30 [2025-09-07 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (232,16,1,30,30,'RMScheduler',2025-09-07 00:25:04,1,0,,,0) [2025-09-07 00:25:04] Production.INFO: next invoice date [2025-09-07 00:25:04] Production.INFO: 2025-10-07 [2025-09-07 00:25:04] Production.INFO: getdaysdiff [2025-09-07 00:25:04] Production.INFO: +30 [2025-09-07 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,30,30,'RMScheduler',2025-09-07 00:25:04,1,0,,,0) [2025-09-07 00:25:04] Production.INFO: next invoice date [2025-09-07 00:25:04] Production.INFO: 2025-10-07 [2025-09-07 00:25:04] Production.INFO: getdaysdiff [2025-09-07 00:25:04] Production.INFO: +30 [2025-09-07 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (232,11,1,30,30,'RMScheduler',2025-09-07 00:25:04,0,0,,,0) [2025-09-07 00:25:05] Production.INFO: next invoice date [2025-09-07 00:25:05] Production.INFO: 2025-10-07 [2025-09-07 00:25:05] Production.INFO: getdaysdiff [2025-09-07 00:25:05] Production.INFO: +30 [2025-09-07 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,30,30,'RMScheduler',2025-09-07 00:25:04,0,0,,,0) [2025-09-07 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-06 21:25:06 [end_date_ymd] => 2025-09-07 00:25:06 [RateCDR] => 1 ) [2025-09-07 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-09-06 21:25:06' and `end` < '2025-09-07 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-09-07 00:25:18] Production.INFO: count ==596 [2025-09-07 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-06 21:25:06 - End Time 2025-09-07 00:25:06 [2025-09-07 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15793895', 'tblTempUsageDetail_20' ) start [2025-09-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15793895', 'tblTempUsageDetail_20' ) end [2025-09-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15793895', 'tblTempVendorCDR_20' ) start [2025-09-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15793895', 'tblTempVendorCDR_20' ) end [2025-09-07 00:25:18] Production.INFO: ProcessCDR(1,15793895,1,1,2) [2025-09-07 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15793895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15793895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15793895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15793895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15793895', 'tblTempUsageDetail_20' ) start [2025-09-07 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15793895', 'tblTempUsageDetail_20' ) end [2025-09-07 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-07 00:25:28] Production.INFO: ==29070== Releasing lock... [2025-09-07 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 00:25:28] Production.INFO: 36.25 MB #Memory Used# [2025-09-07 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-06 22:25:05 [end_date_ymd] => 2025-09-07 01:25:05 [RateCDR] => 1 ) [2025-09-07 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-06 22:25:05' and `end` < '2025-09-07 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 01:25:17] Production.INFO: count ==589 [2025-09-07 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-06 22:25:05 - End Time 2025-09-07 01:25:05 [2025-09-07 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15794142', 'tblTempUsageDetail_20' ) start [2025-09-07 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15794142', 'tblTempUsageDetail_20' ) end [2025-09-07 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15794142', 'tblTempVendorCDR_20' ) start [2025-09-07 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15794142', 'tblTempVendorCDR_20' ) end [2025-09-07 01:25:17] Production.INFO: ProcessCDR(1,15794142,1,1,2) [2025-09-07 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15794142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15794142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15794142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15794142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15794142', 'tblTempUsageDetail_20' ) start [2025-09-07 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15794142', 'tblTempUsageDetail_20' ) end [2025-09-07 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-07 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-07 01:25:25] Production.INFO: ==918== Releasing lock... [2025-09-07 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 01:25:25] Production.INFO: 33 MB #Memory Used# [2025-09-07 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-06 23:25:05 [end_date_ymd] => 2025-09-07 02:25:05 [RateCDR] => 1 ) [2025-09-07 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-06 23:25:05' and `end` < '2025-09-07 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 02:25:17] Production.INFO: count ==567 [2025-09-07 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-06 23:25:05 - End Time 2025-09-07 02:25:05 [2025-09-07 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15794389', 'tblTempUsageDetail_20' ) start [2025-09-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15794389', 'tblTempUsageDetail_20' ) end [2025-09-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15794389', 'tblTempVendorCDR_20' ) start [2025-09-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15794389', 'tblTempVendorCDR_20' ) end [2025-09-07 02:25:18] Production.INFO: ProcessCDR(1,15794389,1,1,2) [2025-09-07 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15794389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15794389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15794389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15794389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15794389', 'tblTempUsageDetail_20' ) start [2025-09-07 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15794389', 'tblTempUsageDetail_20' ) end [2025-09-07 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-07 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-07 02:25:25] Production.INFO: ==5542== Releasing lock... [2025-09-07 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 02:25:25] Production.INFO: 33 MB #Memory Used# [2025-09-07 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 00:25:06 [end_date_ymd] => 2025-09-07 03:25:06 [RateCDR] => 1 ) [2025-09-07 03:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 00:25:06' and `end` < '2025-09-07 03:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 03:25:18] Production.INFO: count ==471 [2025-09-07 03:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 00:25:06 - End Time 2025-09-07 03:25:06 [2025-09-07 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15794636', 'tblTempUsageDetail_20' ) start [2025-09-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15794636', 'tblTempUsageDetail_20' ) end [2025-09-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15794636', 'tblTempVendorCDR_20' ) start [2025-09-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15794636', 'tblTempVendorCDR_20' ) end [2025-09-07 03:25:18] Production.INFO: ProcessCDR(1,15794636,1,1,2) [2025-09-07 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15794636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15794636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15794636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15794636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15794636', 'tblTempUsageDetail_20' ) start [2025-09-07 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15794636', 'tblTempUsageDetail_20' ) end [2025-09-07 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-07 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-07 03:25:26] Production.INFO: ==10183== Releasing lock... [2025-09-07 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 03:25:26] Production.INFO: 32.5 MB #Memory Used# [2025-09-07 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 01:25:06 [end_date_ymd] => 2025-09-07 04:25:06 [RateCDR] => 1 ) [2025-09-07 04:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 01:25:06' and `end` < '2025-09-07 04:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 04:25:18] Production.INFO: count ==345 [2025-09-07 04:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 01:25:06 - End Time 2025-09-07 04:25:06 [2025-09-07 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15794884', 'tblTempUsageDetail_20' ) start [2025-09-07 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15794884', 'tblTempUsageDetail_20' ) end [2025-09-07 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15794884', 'tblTempVendorCDR_20' ) start [2025-09-07 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15794884', 'tblTempVendorCDR_20' ) end [2025-09-07 04:25:18] Production.INFO: ProcessCDR(1,15794884,1,1,2) [2025-09-07 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15794884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15794884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15794884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 04:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15794884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15794884', 'tblTempUsageDetail_20' ) start [2025-09-07 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15794884', 'tblTempUsageDetail_20' ) end [2025-09-07 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-07 04:25:26] Production.INFO: ==15535== Releasing lock... [2025-09-07 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 04:25:26] Production.INFO: 30.75 MB #Memory Used# [2025-09-07 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 02:25:06 [end_date_ymd] => 2025-09-07 05:25:06 [RateCDR] => 1 ) [2025-09-07 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 02:25:06' and `end` < '2025-09-07 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 05:25:18] Production.INFO: count ==252 [2025-09-07 05:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 02:25:06 - End Time 2025-09-07 05:25:06 [2025-09-07 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15795132', 'tblTempUsageDetail_20' ) start [2025-09-07 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15795132', 'tblTempUsageDetail_20' ) end [2025-09-07 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15795132', 'tblTempVendorCDR_20' ) start [2025-09-07 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15795132', 'tblTempVendorCDR_20' ) end [2025-09-07 05:25:18] Production.INFO: ProcessCDR(1,15795132,1,1,2) [2025-09-07 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15795132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15795132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15795132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 05:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15795132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15795132', 'tblTempUsageDetail_20' ) start [2025-09-07 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15795132', 'tblTempUsageDetail_20' ) end [2025-09-07 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-07 05:25:26] Production.INFO: ==19874== Releasing lock... [2025-09-07 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 05:25:26] Production.INFO: 30 MB #Memory Used# [2025-09-07 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 03:25:05 [end_date_ymd] => 2025-09-07 06:25:05 [RateCDR] => 1 ) [2025-09-07 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-09-07 03:25:05' and `end` < '2025-09-07 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 06:25:17] Production.INFO: count ==183 [2025-09-07 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-07 03:25:05 - End Time 2025-09-07 06:25:05 [2025-09-07 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15795379', 'tblTempUsageDetail_20' ) start [2025-09-07 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15795379', 'tblTempUsageDetail_20' ) end [2025-09-07 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15795379', 'tblTempVendorCDR_20' ) start [2025-09-07 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15795379', 'tblTempVendorCDR_20' ) end [2025-09-07 06:25:17] Production.INFO: ProcessCDR(1,15795379,1,1,2) [2025-09-07 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15795379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15795379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15795379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15795379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15795379', 'tblTempUsageDetail_20' ) start [2025-09-07 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15795379', 'tblTempUsageDetail_20' ) end [2025-09-07 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-07 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-07 06:25:23] Production.INFO: ==24352== Releasing lock... [2025-09-07 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 06:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-09-07 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 04:25:05 [end_date_ymd] => 2025-09-07 07:25:05 [RateCDR] => 1 ) [2025-09-07 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 04:25:05' and `end` < '2025-09-07 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 07:25:17] Production.INFO: count ==159 [2025-09-07 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-07 04:25:05 - End Time 2025-09-07 07:25:05 [2025-09-07 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15795626', 'tblTempUsageDetail_20' ) start [2025-09-07 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15795626', 'tblTempUsageDetail_20' ) end [2025-09-07 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15795626', 'tblTempVendorCDR_20' ) start [2025-09-07 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15795626', 'tblTempVendorCDR_20' ) end [2025-09-07 07:25:17] Production.INFO: ProcessCDR(1,15795626,1,1,2) [2025-09-07 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15795626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15795626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15795626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15795626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15795626', 'tblTempUsageDetail_20' ) start [2025-09-07 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15795626', 'tblTempUsageDetail_20' ) end [2025-09-07 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-07 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-07 07:25:25] Production.INFO: ==28665== Releasing lock... [2025-09-07 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 07:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-09-07 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 05:25:05 [end_date_ymd] => 2025-09-07 08:25:05 [RateCDR] => 1 ) [2025-09-07 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-09-07 05:25:05' and `end` < '2025-09-07 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-09-07 08:25:17] Production.INFO: count ==172 [2025-09-07 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-07 05:25:05 - End Time 2025-09-07 08:25:05 [2025-09-07 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15795873', 'tblTempUsageDetail_20' ) start [2025-09-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15795873', 'tblTempUsageDetail_20' ) end [2025-09-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15795873', 'tblTempVendorCDR_20' ) start [2025-09-07 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15795873', 'tblTempVendorCDR_20' ) end [2025-09-07 08:25:17] Production.INFO: ProcessCDR(1,15795873,1,1,2) [2025-09-07 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15795873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15795873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15795873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15795873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15795873', 'tblTempUsageDetail_20' ) start [2025-09-07 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15795873', 'tblTempUsageDetail_20' ) end [2025-09-07 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-07 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-07 08:25:25] Production.INFO: ==459== Releasing lock... [2025-09-07 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 08:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-09-07 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 06:25:04 [end_date_ymd] => 2025-09-07 09:25:04 [RateCDR] => 1 ) [2025-09-07 09:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 06:25:04' and `end` < '2025-09-07 09:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 09:25:16] Production.INFO: count ==176 [2025-09-07 09:25:16] Production.ERROR: pbx CDR StartTime 2025-09-07 06:25:04 - End Time 2025-09-07 09:25:04 [2025-09-07 09:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15796120', 'tblTempUsageDetail_20' ) start [2025-09-07 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15796120', 'tblTempUsageDetail_20' ) end [2025-09-07 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15796120', 'tblTempVendorCDR_20' ) start [2025-09-07 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15796120', 'tblTempVendorCDR_20' ) end [2025-09-07 09:25:16] Production.INFO: ProcessCDR(1,15796120,1,1,2) [2025-09-07 09:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15796120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15796120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15796120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15796120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15796120', 'tblTempUsageDetail_20' ) start [2025-09-07 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15796120', 'tblTempUsageDetail_20' ) end [2025-09-07 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-07 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-07 09:25:24] Production.INFO: ==4851== Releasing lock... [2025-09-07 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 09:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-09-07 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 07:25:04 [end_date_ymd] => 2025-09-07 10:25:04 [RateCDR] => 1 ) [2025-09-07 10:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 07:25:04' and `end` < '2025-09-07 10:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 10:25:17] Production.INFO: count ==297 [2025-09-07 10:25:17] Production.ERROR: pbx CDR StartTime 2025-09-07 07:25:04 - End Time 2025-09-07 10:25:04 [2025-09-07 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15796367', 'tblTempUsageDetail_20' ) start [2025-09-07 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15796367', 'tblTempUsageDetail_20' ) end [2025-09-07 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15796367', 'tblTempVendorCDR_20' ) start [2025-09-07 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15796367', 'tblTempVendorCDR_20' ) end [2025-09-07 10:25:17] Production.INFO: ProcessCDR(1,15796367,1,1,2) [2025-09-07 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15796367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15796367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15796367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15796367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15796367', 'tblTempUsageDetail_20' ) start [2025-09-07 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15796367', 'tblTempUsageDetail_20' ) end [2025-09-07 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-07 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-07 10:25:24] Production.INFO: ==9235== Releasing lock... [2025-09-07 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 10:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-09-07 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 08:25:05 [end_date_ymd] => 2025-09-07 11:25:05 [RateCDR] => 1 ) [2025-09-07 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 08:25:05' and `end` < '2025-09-07 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 11:25:17] Production.INFO: count ==519 [2025-09-07 11:25:17] Production.ERROR: pbx CDR StartTime 2025-09-07 08:25:05 - End Time 2025-09-07 11:25:05 [2025-09-07 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15796614', 'tblTempUsageDetail_20' ) start [2025-09-07 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15796614', 'tblTempUsageDetail_20' ) end [2025-09-07 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15796614', 'tblTempVendorCDR_20' ) start [2025-09-07 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15796614', 'tblTempVendorCDR_20' ) end [2025-09-07 11:25:17] Production.INFO: ProcessCDR(1,15796614,1,1,2) [2025-09-07 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15796614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15796614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15796614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15796614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15796614', 'tblTempUsageDetail_20' ) start [2025-09-07 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15796614', 'tblTempUsageDetail_20' ) end [2025-09-07 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-07 11:25:27] Production.INFO: ==13483== Releasing lock... [2025-09-07 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 11:25:27] Production.INFO: 32.75 MB #Memory Used# [2025-09-07 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 09:25:05 [end_date_ymd] => 2025-09-07 12:25:05 [RateCDR] => 1 ) [2025-09-07 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 09:25:05' and `end` < '2025-09-07 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 12:25:18] Production.INFO: count ==766 [2025-09-07 12:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 09:25:05 - End Time 2025-09-07 12:25:05 [2025-09-07 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15796861', 'tblTempUsageDetail_20' ) start [2025-09-07 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15796861', 'tblTempUsageDetail_20' ) end [2025-09-07 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15796861', 'tblTempVendorCDR_20' ) start [2025-09-07 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15796861', 'tblTempVendorCDR_20' ) end [2025-09-07 12:25:18] Production.INFO: ProcessCDR(1,15796861,1,1,2) [2025-09-07 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15796861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15796861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15796861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15796861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15796861', 'tblTempUsageDetail_20' ) start [2025-09-07 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15796861', 'tblTempUsageDetail_20' ) end [2025-09-07 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-07 12:25:27] Production.INFO: ==17856== Releasing lock... [2025-09-07 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 12:25:27] Production.INFO: 34 MB #Memory Used# [2025-09-07 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 10:25:05 [end_date_ymd] => 2025-09-07 13:25:05 [RateCDR] => 1 ) [2025-09-07 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-09-07 10:25:05' and `end` < '2025-09-07 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-09-07 13:25:17] Production.INFO: count ==910 [2025-09-07 13:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 10:25:05 - End Time 2025-09-07 13:25:05 [2025-09-07 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15797108', 'tblTempUsageDetail_20' ) start [2025-09-07 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15797108', 'tblTempUsageDetail_20' ) end [2025-09-07 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15797108', 'tblTempVendorCDR_20' ) start [2025-09-07 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15797108', 'tblTempVendorCDR_20' ) end [2025-09-07 13:25:18] Production.INFO: ProcessCDR(1,15797108,1,1,2) [2025-09-07 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15797108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15797108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15797108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15797108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15797108', 'tblTempUsageDetail_20' ) start [2025-09-07 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15797108', 'tblTempUsageDetail_20' ) end [2025-09-07 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-07 13:25:26] Production.INFO: ==22367== Releasing lock... [2025-09-07 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 13:25:26] Production.INFO: 35.25 MB #Memory Used# [2025-09-07 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 11:25:05 [end_date_ymd] => 2025-09-07 14:25:05 [RateCDR] => 1 ) [2025-09-07 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 11:25:05' and `end` < '2025-09-07 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 14:25:17] Production.INFO: count ==931 [2025-09-07 14:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 11:25:05 - End Time 2025-09-07 14:25:05 [2025-09-07 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15797355', 'tblTempUsageDetail_20' ) start [2025-09-07 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15797355', 'tblTempUsageDetail_20' ) end [2025-09-07 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15797355', 'tblTempVendorCDR_20' ) start [2025-09-07 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15797355', 'tblTempVendorCDR_20' ) end [2025-09-07 14:25:18] Production.INFO: ProcessCDR(1,15797355,1,1,2) [2025-09-07 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15797355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15797355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15797355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15797355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15797355', 'tblTempUsageDetail_20' ) start [2025-09-07 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15797355', 'tblTempUsageDetail_20' ) end [2025-09-07 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-07 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-07 14:25:27] Production.INFO: ==26758== Releasing lock... [2025-09-07 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 14:25:27] Production.INFO: 35.25 MB #Memory Used# [2025-09-07 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 12:25:05 [end_date_ymd] => 2025-09-07 15:25:05 [RateCDR] => 1 ) [2025-09-07 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 12:25:05' and `end` < '2025-09-07 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 15:25:18] Production.INFO: count ==916 [2025-09-07 15:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 12:25:05 - End Time 2025-09-07 15:25:05 [2025-09-07 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15797602', 'tblTempUsageDetail_20' ) start [2025-09-07 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15797602', 'tblTempUsageDetail_20' ) end [2025-09-07 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15797602', 'tblTempVendorCDR_20' ) start [2025-09-07 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15797602', 'tblTempVendorCDR_20' ) end [2025-09-07 15:25:18] Production.INFO: ProcessCDR(1,15797602,1,1,2) [2025-09-07 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15797602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15797602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15797602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15797602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15797602', 'tblTempUsageDetail_20' ) start [2025-09-07 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15797602', 'tblTempUsageDetail_20' ) end [2025-09-07 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-07 15:25:27] Production.INFO: ==31490== Releasing lock... [2025-09-07 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 15:25:27] Production.INFO: 34.75 MB #Memory Used# [2025-09-07 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 13:25:05 [end_date_ymd] => 2025-09-07 16:25:05 [RateCDR] => 1 ) [2025-09-07 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 13:25:05' and `end` < '2025-09-07 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 16:25:17] Production.INFO: count ==994 [2025-09-07 16:25:17] Production.ERROR: pbx CDR StartTime 2025-09-07 13:25:05 - End Time 2025-09-07 16:25:05 [2025-09-07 16:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15797849', 'tblTempUsageDetail_20' ) start [2025-09-07 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15797849', 'tblTempUsageDetail_20' ) end [2025-09-07 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15797849', 'tblTempVendorCDR_20' ) start [2025-09-07 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15797849', 'tblTempVendorCDR_20' ) end [2025-09-07 16:25:17] Production.INFO: ProcessCDR(1,15797849,1,1,2) [2025-09-07 16:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15797849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15797849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15797849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15797849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15797849', 'tblTempUsageDetail_20' ) start [2025-09-07 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15797849', 'tblTempUsageDetail_20' ) end [2025-09-07 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-07 16:25:26] Production.INFO: ==3440== Releasing lock... [2025-09-07 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 16:25:26] Production.INFO: 35.75 MB #Memory Used# [2025-09-07 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 14:25:06 [end_date_ymd] => 2025-09-07 17:25:06 [RateCDR] => 1 ) [2025-09-07 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 14:25:06' and `end` < '2025-09-07 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 17:25:18] Production.INFO: count ==1224 [2025-09-07 17:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 14:25:06 - End Time 2025-09-07 17:25:06 [2025-09-07 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15798096', 'tblTempUsageDetail_20' ) start [2025-09-07 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15798096', 'tblTempUsageDetail_20' ) end [2025-09-07 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15798096', 'tblTempVendorCDR_20' ) start [2025-09-07 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15798096', 'tblTempVendorCDR_20' ) end [2025-09-07 17:25:18] Production.INFO: ProcessCDR(1,15798096,1,1,2) [2025-09-07 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15798096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15798096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15798096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15798096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15798096', 'tblTempUsageDetail_20' ) start [2025-09-07 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15798096', 'tblTempUsageDetail_20' ) end [2025-09-07 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-07 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-07 17:25:27] Production.INFO: ==7770== Releasing lock... [2025-09-07 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 17:25:27] Production.INFO: 37.25 MB #Memory Used# [2025-09-07 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 15:25:06 [end_date_ymd] => 2025-09-07 18:25:06 [RateCDR] => 1 ) [2025-09-07 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 15:25:06' and `end` < '2025-09-07 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 18:25:18] Production.INFO: count ==1436 [2025-09-07 18:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 15:25:06 - End Time 2025-09-07 18:25:06 [2025-09-07 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15798343', 'tblTempUsageDetail_20' ) start [2025-09-07 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15798343', 'tblTempUsageDetail_20' ) end [2025-09-07 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15798343', 'tblTempVendorCDR_20' ) start [2025-09-07 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15798343', 'tblTempVendorCDR_20' ) end [2025-09-07 18:25:18] Production.INFO: ProcessCDR(1,15798343,1,1,2) [2025-09-07 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15798343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15798343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15798343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15798343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15798343', 'tblTempUsageDetail_20' ) start [2025-09-07 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15798343', 'tblTempUsageDetail_20' ) end [2025-09-07 18:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-07 18:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-07 18:25:27] Production.INFO: ==12165== Releasing lock... [2025-09-07 18:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 18:25:27] Production.INFO: 39 MB #Memory Used# [2025-09-07 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 16:25:05 [end_date_ymd] => 2025-09-07 19:25:05 [RateCDR] => 1 ) [2025-09-07 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 16:25:05' and `end` < '2025-09-07 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 19:25:18] Production.INFO: count ==1392 [2025-09-07 19:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 16:25:05 - End Time 2025-09-07 19:25:05 [2025-09-07 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15798587', 'tblTempUsageDetail_20' ) start [2025-09-07 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15798587', 'tblTempUsageDetail_20' ) end [2025-09-07 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15798587', 'tblTempVendorCDR_20' ) start [2025-09-07 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15798587', 'tblTempVendorCDR_20' ) end [2025-09-07 19:25:18] Production.INFO: ProcessCDR(1,15798587,1,1,2) [2025-09-07 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15798587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15798587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15798587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15798587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15798587', 'tblTempUsageDetail_20' ) start [2025-09-07 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15798587', 'tblTempUsageDetail_20' ) end [2025-09-07 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-07 19:25:26] Production.INFO: ==17610== Releasing lock... [2025-09-07 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 19:25:26] Production.INFO: 39 MB #Memory Used# [2025-09-07 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 17:25:05 [end_date_ymd] => 2025-09-07 20:25:05 [RateCDR] => 1 ) [2025-09-07 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 17:25:05' and `end` < '2025-09-07 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 20:25:18] Production.INFO: count ==1244 [2025-09-07 20:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 17:25:05 - End Time 2025-09-07 20:25:05 [2025-09-07 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15798834', 'tblTempUsageDetail_20' ) start [2025-09-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15798834', 'tblTempUsageDetail_20' ) end [2025-09-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15798834', 'tblTempVendorCDR_20' ) start [2025-09-07 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15798834', 'tblTempVendorCDR_20' ) end [2025-09-07 20:25:18] Production.INFO: ProcessCDR(1,15798834,1,1,2) [2025-09-07 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15798834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15798834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15798834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15798834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15798834', 'tblTempUsageDetail_20' ) start [2025-09-07 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15798834', 'tblTempUsageDetail_20' ) end [2025-09-07 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-07 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-07 20:25:27] Production.INFO: ==22239== Releasing lock... [2025-09-07 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 20:25:27] Production.INFO: 38 MB #Memory Used# [2025-09-07 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 18:25:05 [end_date_ymd] => 2025-09-07 21:25:05 [RateCDR] => 1 ) [2025-09-07 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 18:25:05' and `end` < '2025-09-07 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 21:25:17] Production.INFO: count ==1104 [2025-09-07 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 18:25:05 - End Time 2025-09-07 21:25:05 [2025-09-07 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15799081', 'tblTempUsageDetail_20' ) start [2025-09-07 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15799081', 'tblTempUsageDetail_20' ) end [2025-09-07 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15799081', 'tblTempVendorCDR_20' ) start [2025-09-07 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15799081', 'tblTempVendorCDR_20' ) end [2025-09-07 21:25:18] Production.INFO: ProcessCDR(1,15799081,1,1,2) [2025-09-07 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15799081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15799081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15799081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15799081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15799081', 'tblTempUsageDetail_20' ) start [2025-09-07 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15799081', 'tblTempUsageDetail_20' ) end [2025-09-07 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-07 21:25:27] Production.INFO: ==27223== Releasing lock... [2025-09-07 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 21:25:27] Production.INFO: 37 MB #Memory Used# [2025-09-07 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 19:25:06 [end_date_ymd] => 2025-09-07 22:25:06 [RateCDR] => 1 ) [2025-09-07 22:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 19:25:06' and `end` < '2025-09-07 22:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 22:25:18] Production.INFO: count ==1010 [2025-09-07 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 19:25:06 - End Time 2025-09-07 22:25:06 [2025-09-07 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15799328', 'tblTempUsageDetail_20' ) start [2025-09-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15799328', 'tblTempUsageDetail_20' ) end [2025-09-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15799328', 'tblTempVendorCDR_20' ) start [2025-09-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15799328', 'tblTempVendorCDR_20' ) end [2025-09-07 22:25:18] Production.INFO: ProcessCDR(1,15799328,1,1,2) [2025-09-07 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15799328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15799328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15799328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15799328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15799328', 'tblTempUsageDetail_20' ) start [2025-09-07 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15799328', 'tblTempUsageDetail_20' ) end [2025-09-07 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-07 22:25:26] Production.INFO: ==31571== Releasing lock... [2025-09-07 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 22:25:26] Production.INFO: 36.25 MB #Memory Used# [2025-09-07 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 20:25:06 [end_date_ymd] => 2025-09-07 23:25:06 [RateCDR] => 1 ) [2025-09-07 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-07 20:25:06' and `end` < '2025-09-07 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-07 23:25:18] Production.INFO: count ==800 [2025-09-07 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 20:25:06 - End Time 2025-09-07 23:25:06 [2025-09-07 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15799575', 'tblTempUsageDetail_20' ) start [2025-09-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15799575', 'tblTempUsageDetail_20' ) end [2025-09-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15799575', 'tblTempVendorCDR_20' ) start [2025-09-07 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15799575', 'tblTempVendorCDR_20' ) end [2025-09-07 23:25:18] Production.INFO: ProcessCDR(1,15799575,1,1,2) [2025-09-07 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15799575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15799575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-07 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15799575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15799575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-07 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15799575', 'tblTempUsageDetail_20' ) start [2025-09-07 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15799575', 'tblTempUsageDetail_20' ) end [2025-09-07 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-07 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-07 23:25:26] Production.INFO: ==3603== Releasing lock... [2025-09-07 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-07 23:25:26] Production.INFO: 34 MB #Memory Used#