[2025-08-22 00:25:04] Production.INFO: next invoice date [2025-08-22 00:25:04] Production.INFO: 2025-09-22 [2025-08-22 00:25:04] Production.INFO: getdaysdiff [2025-08-22 00:25:04] Production.INFO: +31 [2025-08-22 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (253,16,1,31,31,'RMScheduler',2025-08-22 00:25:04,1,0,,,0) [2025-08-22 00:25:04] Production.INFO: next invoice date [2025-08-22 00:25:04] Production.INFO: 2025-09-22 [2025-08-22 00:25:04] Production.INFO: getdaysdiff [2025-08-22 00:25:04] Production.INFO: +31 [2025-08-22 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (253,13,2,31,31,'RMScheduler',2025-08-22 00:25:04,1,0,,,0) [2025-08-22 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 21:25:05 [end_date_ymd] => 2025-08-22 00:25:05 [RateCDR] => 1 ) [2025-08-22 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-21 21:25:05' and `end` < '2025-08-22 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 00:25:17] Production.INFO: count ==564 [2025-08-22 00:25:17] Production.ERROR: pbx CDR StartTime 2025-08-21 21:25:05 - End Time 2025-08-22 00:25:05 [2025-08-22 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15699058', 'tblTempUsageDetail_20' ) start [2025-08-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15699058', 'tblTempUsageDetail_20' ) end [2025-08-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15699058', 'tblTempVendorCDR_20' ) start [2025-08-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15699058', 'tblTempVendorCDR_20' ) end [2025-08-22 00:25:17] Production.INFO: ProcessCDR(1,15699058,1,1,2) [2025-08-22 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15699058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15699058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15699058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15699058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15699058', 'tblTempUsageDetail_20' ) start [2025-08-22 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15699058', 'tblTempUsageDetail_20' ) end [2025-08-22 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-22 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-22 00:25:26] Production.INFO: ==1873== Releasing lock... [2025-08-22 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 00:25:26] Production.INFO: 37 MB #Memory Used# [2025-08-22 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 22:25:05 [end_date_ymd] => 2025-08-22 01:25:05 [RateCDR] => 1 ) [2025-08-22 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-21 22:25:05' and `end` < '2025-08-22 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 01:25:17] Production.INFO: count ==481 [2025-08-22 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-21 22:25:05 - End Time 2025-08-22 01:25:05 [2025-08-22 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15699305', 'tblTempUsageDetail_20' ) start [2025-08-22 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15699305', 'tblTempUsageDetail_20' ) end [2025-08-22 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15699305', 'tblTempVendorCDR_20' ) start [2025-08-22 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15699305', 'tblTempVendorCDR_20' ) end [2025-08-22 01:25:18] Production.INFO: ProcessCDR(1,15699305,1,1,2) [2025-08-22 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15699305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15699305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15699305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15699305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15699305', 'tblTempUsageDetail_20' ) start [2025-08-22 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15699305', 'tblTempUsageDetail_20' ) end [2025-08-22 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-22 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-22 01:25:25] Production.INFO: ==6138== Releasing lock... [2025-08-22 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 01:25:25] Production.INFO: 32 MB #Memory Used# [2025-08-22 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 23:25:05 [end_date_ymd] => 2025-08-22 02:25:05 [RateCDR] => 1 ) [2025-08-22 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-21 23:25:05' and `end` < '2025-08-22 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 02:25:17] Production.INFO: count ==401 [2025-08-22 02:25:17] Production.ERROR: pbx CDR StartTime 2025-08-21 23:25:05 - End Time 2025-08-22 02:25:05 [2025-08-22 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15699552', 'tblTempUsageDetail_20' ) start [2025-08-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15699552', 'tblTempUsageDetail_20' ) end [2025-08-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15699552', 'tblTempVendorCDR_20' ) start [2025-08-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15699552', 'tblTempVendorCDR_20' ) end [2025-08-22 02:25:17] Production.INFO: ProcessCDR(1,15699552,1,1,2) [2025-08-22 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15699552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15699552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15699552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15699552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15699552', 'tblTempUsageDetail_20' ) start [2025-08-22 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15699552', 'tblTempUsageDetail_20' ) end [2025-08-22 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-22 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-22 02:25:25] Production.INFO: ==10862== Releasing lock... [2025-08-22 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 02:25:25] Production.INFO: 32 MB #Memory Used# [2025-08-22 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 00:25:05 [end_date_ymd] => 2025-08-22 03:25:05 [RateCDR] => 1 ) [2025-08-22 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 00:25:05' and `end` < '2025-08-22 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 03:25:17] Production.INFO: count ==304 [2025-08-22 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-22 00:25:05 - End Time 2025-08-22 03:25:05 [2025-08-22 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15699799', 'tblTempUsageDetail_20' ) start [2025-08-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15699799', 'tblTempUsageDetail_20' ) end [2025-08-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15699799', 'tblTempVendorCDR_20' ) start [2025-08-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15699799', 'tblTempVendorCDR_20' ) end [2025-08-22 03:25:17] Production.INFO: ProcessCDR(1,15699799,1,1,2) [2025-08-22 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15699799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15699799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15699799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15699799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15699799', 'tblTempUsageDetail_20' ) start [2025-08-22 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15699799', 'tblTempUsageDetail_20' ) end [2025-08-22 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-22 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-22 03:25:25] Production.INFO: ==15244== Releasing lock... [2025-08-22 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 03:25:25] Production.INFO: 30.75 MB #Memory Used# [2025-08-22 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 01:25:05 [end_date_ymd] => 2025-08-22 04:25:05 [RateCDR] => 1 ) [2025-08-22 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 01:25:05' and `end` < '2025-08-22 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 04:25:17] Production.INFO: count ==212 [2025-08-22 04:25:17] Production.ERROR: pbx CDR StartTime 2025-08-22 01:25:05 - End Time 2025-08-22 04:25:05 [2025-08-22 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15700047', 'tblTempUsageDetail_20' ) start [2025-08-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15700047', 'tblTempUsageDetail_20' ) end [2025-08-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15700047', 'tblTempVendorCDR_20' ) start [2025-08-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15700047', 'tblTempVendorCDR_20' ) end [2025-08-22 04:25:17] Production.INFO: ProcessCDR(1,15700047,1,1,2) [2025-08-22 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15700047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15700047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15700047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15700047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15700047', 'tblTempUsageDetail_20' ) start [2025-08-22 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15700047', 'tblTempUsageDetail_20' ) end [2025-08-22 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-22 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-22 04:25:25] Production.INFO: ==19813== Releasing lock... [2025-08-22 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 04:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-08-22 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 02:25:05 [end_date_ymd] => 2025-08-22 05:25:05 [RateCDR] => 1 ) [2025-08-22 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-08-22 02:25:05' and `end` < '2025-08-22 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-08-22 05:25:17] Production.INFO: count ==132 [2025-08-22 05:25:17] Production.ERROR: pbx CDR StartTime 2025-08-22 02:25:05 - End Time 2025-08-22 05:25:05 [2025-08-22 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15700295', 'tblTempUsageDetail_20' ) start [2025-08-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15700295', 'tblTempUsageDetail_20' ) end [2025-08-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15700295', 'tblTempVendorCDR_20' ) start [2025-08-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15700295', 'tblTempVendorCDR_20' ) end [2025-08-22 05:25:17] Production.INFO: ProcessCDR(1,15700295,1,1,2) [2025-08-22 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15700295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15700295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15700295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15700295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15700295', 'tblTempUsageDetail_20' ) start [2025-08-22 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15700295', 'tblTempUsageDetail_20' ) end [2025-08-22 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-22 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-22 05:25:25] Production.INFO: ==24198== Releasing lock... [2025-08-22 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 05:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-08-22 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 03:25:05 [end_date_ymd] => 2025-08-22 06:25:05 [RateCDR] => 1 ) [2025-08-22 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-08-22 03:25:05' and `end` < '2025-08-22 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-08-22 06:25:17] Production.INFO: count ==107 [2025-08-22 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-22 03:25:05 - End Time 2025-08-22 06:25:05 [2025-08-22 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15700542', 'tblTempUsageDetail_20' ) start [2025-08-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15700542', 'tblTempUsageDetail_20' ) end [2025-08-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15700542', 'tblTempVendorCDR_20' ) start [2025-08-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15700542', 'tblTempVendorCDR_20' ) end [2025-08-22 06:25:17] Production.INFO: ProcessCDR(1,15700542,1,1,2) [2025-08-22 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15700542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15700542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15700542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15700542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15700542', 'tblTempUsageDetail_20' ) start [2025-08-22 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15700542', 'tblTempUsageDetail_20' ) end [2025-08-22 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-22 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-22 06:25:25] Production.INFO: ==28571== Releasing lock... [2025-08-22 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 06:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-08-22 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 04:25:05 [end_date_ymd] => 2025-08-22 07:25:05 [RateCDR] => 1 ) [2025-08-22 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 04:25:05' and `end` < '2025-08-22 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 07:25:17] Production.INFO: count ==121 [2025-08-22 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-22 04:25:05 - End Time 2025-08-22 07:25:05 [2025-08-22 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15700789', 'tblTempUsageDetail_20' ) start [2025-08-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15700789', 'tblTempUsageDetail_20' ) end [2025-08-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15700789', 'tblTempVendorCDR_20' ) start [2025-08-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15700789', 'tblTempVendorCDR_20' ) end [2025-08-22 07:25:17] Production.INFO: ProcessCDR(1,15700789,1,1,2) [2025-08-22 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15700789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15700789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15700789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15700789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15700789', 'tblTempUsageDetail_20' ) start [2025-08-22 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15700789', 'tblTempUsageDetail_20' ) end [2025-08-22 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-22 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-22 07:25:24] Production.INFO: ==1548== Releasing lock... [2025-08-22 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 07:25:24] Production.INFO: 29 MB #Memory Used# [2025-08-22 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 05:25:05 [end_date_ymd] => 2025-08-22 08:25:05 [RateCDR] => 1 ) [2025-08-22 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-08-22 05:25:05' and `end` < '2025-08-22 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-08-22 08:25:17] Production.INFO: count ==329 [2025-08-22 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-22 05:25:05 - End Time 2025-08-22 08:25:05 [2025-08-22 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15701036', 'tblTempUsageDetail_20' ) start [2025-08-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15701036', 'tblTempUsageDetail_20' ) end [2025-08-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15701036', 'tblTempVendorCDR_20' ) start [2025-08-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15701036', 'tblTempVendorCDR_20' ) end [2025-08-22 08:25:17] Production.INFO: ProcessCDR(1,15701036,1,1,2) [2025-08-22 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15701036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15701036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15701036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15701036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15701036', 'tblTempUsageDetail_20' ) start [2025-08-22 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15701036', 'tblTempUsageDetail_20' ) end [2025-08-22 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-22 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-22 08:25:25] Production.INFO: ==6085== Releasing lock... [2025-08-22 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 08:25:25] Production.INFO: 30.75 MB #Memory Used# [2025-08-22 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 06:25:05 [end_date_ymd] => 2025-08-22 09:25:05 [RateCDR] => 1 ) [2025-08-22 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 06:25:05' and `end` < '2025-08-22 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 09:25:18] Production.INFO: count ==1170 [2025-08-22 09:25:19] Production.ERROR: pbx CDR StartTime 2025-08-22 06:25:05 - End Time 2025-08-22 09:25:05 [2025-08-22 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15701283', 'tblTempUsageDetail_20' ) start [2025-08-22 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15701283', 'tblTempUsageDetail_20' ) end [2025-08-22 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15701283', 'tblTempVendorCDR_20' ) start [2025-08-22 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15701283', 'tblTempVendorCDR_20' ) end [2025-08-22 09:25:19] Production.INFO: ProcessCDR(1,15701283,1,1,2) [2025-08-22 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15701283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15701283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15701283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15701283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15701283', 'tblTempUsageDetail_20' ) start [2025-08-22 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15701283', 'tblTempUsageDetail_20' ) end [2025-08-22 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-22 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-22 09:25:27] Production.INFO: ==10474== Releasing lock... [2025-08-22 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 09:25:27] Production.INFO: 37.25 MB #Memory Used# [2025-08-22 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 07:25:05 [end_date_ymd] => 2025-08-22 10:25:05 [RateCDR] => 1 ) [2025-08-22 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 07:25:05' and `end` < '2025-08-22 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 10:25:20] Production.INFO: count ==2585 [2025-08-22 10:25:21] Production.ERROR: pbx CDR StartTime 2025-08-22 07:25:05 - End Time 2025-08-22 10:25:05 [2025-08-22 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15701530', 'tblTempUsageDetail_20' ) start [2025-08-22 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15701530', 'tblTempUsageDetail_20' ) end [2025-08-22 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15701530', 'tblTempVendorCDR_20' ) start [2025-08-22 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15701530', 'tblTempVendorCDR_20' ) end [2025-08-22 10:25:22] Production.INFO: ProcessCDR(1,15701530,1,1,2) [2025-08-22 10:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15701530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 10:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15701530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 10:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15701530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15701530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15701530', 'tblTempUsageDetail_20' ) start [2025-08-22 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15701530', 'tblTempUsageDetail_20' ) end [2025-08-22 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-22 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-22 10:25:32] Production.INFO: ==15160== Releasing lock... [2025-08-22 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 10:25:32] Production.INFO: 47.75 MB #Memory Used# [2025-08-22 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 08:25:05 [end_date_ymd] => 2025-08-22 11:25:05 [RateCDR] => 1 ) [2025-08-22 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 08:25:05' and `end` < '2025-08-22 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 11:25:19] Production.INFO: count ==4097 [2025-08-22 11:25:21] Production.ERROR: pbx CDR StartTime 2025-08-22 08:25:05 - End Time 2025-08-22 11:25:05 [2025-08-22 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15701777', 'tblTempUsageDetail_20' ) start [2025-08-22 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15701777', 'tblTempUsageDetail_20' ) end [2025-08-22 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15701777', 'tblTempVendorCDR_20' ) start [2025-08-22 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15701777', 'tblTempVendorCDR_20' ) end [2025-08-22 11:25:21] Production.INFO: ProcessCDR(1,15701777,1,1,2) [2025-08-22 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15701777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15701777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15701777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15701777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15701777', 'tblTempUsageDetail_20' ) start [2025-08-22 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15701777', 'tblTempUsageDetail_20' ) end [2025-08-22 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-22 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-22 11:25:32] Production.INFO: ==20440== Releasing lock... [2025-08-22 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 11:25:32] Production.INFO: 58.75 MB #Memory Used# [2025-08-22 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 09:25:05 [end_date_ymd] => 2025-08-22 12:25:05 [RateCDR] => 1 ) [2025-08-22 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 09:25:05' and `end` < '2025-08-22 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 12:25:18] Production.INFO: count ==4880 [2025-08-22 12:25:21] Production.ERROR: pbx CDR StartTime 2025-08-22 09:25:05 - End Time 2025-08-22 12:25:05 [2025-08-22 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15702024', 'tblTempUsageDetail_20' ) start [2025-08-22 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15702024', 'tblTempUsageDetail_20' ) end [2025-08-22 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15702024', 'tblTempVendorCDR_20' ) start [2025-08-22 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15702024', 'tblTempVendorCDR_20' ) end [2025-08-22 12:25:21] Production.INFO: ProcessCDR(1,15702024,1,1,2) [2025-08-22 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15702024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15702024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15702024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15702024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15702024', 'tblTempUsageDetail_20' ) start [2025-08-22 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15702024', 'tblTempUsageDetail_20' ) end [2025-08-22 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-22 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-22 12:25:33] Production.INFO: ==24989== Releasing lock... [2025-08-22 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 12:25:33] Production.INFO: 64.75 MB #Memory Used# [2025-08-22 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 10:25:05 [end_date_ymd] => 2025-08-22 13:25:05 [RateCDR] => 1 ) [2025-08-22 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 10:25:05' and `end` < '2025-08-22 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 13:25:18] Production.INFO: count ==5053 [2025-08-22 13:25:21] Production.ERROR: pbx CDR StartTime 2025-08-22 10:25:05 - End Time 2025-08-22 13:25:05 [2025-08-22 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15702271', 'tblTempUsageDetail_20' ) start [2025-08-22 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15702271', 'tblTempUsageDetail_20' ) end [2025-08-22 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15702271', 'tblTempVendorCDR_20' ) start [2025-08-22 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15702271', 'tblTempVendorCDR_20' ) end [2025-08-22 13:25:21] Production.INFO: ProcessCDR(1,15702271,1,1,2) [2025-08-22 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15702271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15702271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15702271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15702271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15702271', 'tblTempUsageDetail_20' ) start [2025-08-22 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15702271', 'tblTempUsageDetail_20' ) end [2025-08-22 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-22 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-22 13:25:32] Production.INFO: ==29279== Releasing lock... [2025-08-22 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 13:25:32] Production.INFO: 66 MB #Memory Used# [2025-08-22 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 11:25:06 [end_date_ymd] => 2025-08-22 14:25:06 [RateCDR] => 1 ) [2025-08-22 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 11:25:06' and `end` < '2025-08-22 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 14:25:19] Production.INFO: count ==5007 [2025-08-22 14:25:22] Production.ERROR: pbx CDR StartTime 2025-08-22 11:25:06 - End Time 2025-08-22 14:25:06 [2025-08-22 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15702518', 'tblTempUsageDetail_20' ) start [2025-08-22 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15702518', 'tblTempUsageDetail_20' ) end [2025-08-22 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15702518', 'tblTempVendorCDR_20' ) start [2025-08-22 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15702518', 'tblTempVendorCDR_20' ) end [2025-08-22 14:25:22] Production.INFO: ProcessCDR(1,15702518,1,1,2) [2025-08-22 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15702518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15702518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15702518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15702518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15702518', 'tblTempUsageDetail_20' ) start [2025-08-22 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15702518', 'tblTempUsageDetail_20' ) end [2025-08-22 14:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-22 14:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-22 14:25:33] Production.INFO: ==1393== Releasing lock... [2025-08-22 14:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 14:25:33] Production.INFO: 65.75 MB #Memory Used# [2025-08-22 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 12:25:05 [end_date_ymd] => 2025-08-22 15:25:05 [RateCDR] => 1 ) [2025-08-22 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-08-22 12:25:05' and `end` < '2025-08-22 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-08-22 15:25:19] Production.INFO: count ==4881 [2025-08-22 15:25:21] Production.ERROR: pbx CDR StartTime 2025-08-22 12:25:05 - End Time 2025-08-22 15:25:05 [2025-08-22 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15702765', 'tblTempUsageDetail_20' ) start [2025-08-22 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15702765', 'tblTempUsageDetail_20' ) end [2025-08-22 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15702765', 'tblTempVendorCDR_20' ) start [2025-08-22 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15702765', 'tblTempVendorCDR_20' ) end [2025-08-22 15:25:22] Production.INFO: ProcessCDR(1,15702765,1,1,2) [2025-08-22 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15702765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15702765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15702765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 15:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15702765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15702765', 'tblTempUsageDetail_20' ) start [2025-08-22 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15702765', 'tblTempUsageDetail_20' ) end [2025-08-22 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-22 15:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-22 15:25:32] Production.INFO: ==7018== Releasing lock... [2025-08-22 15:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 15:25:32] Production.INFO: 64.75 MB #Memory Used# [2025-08-22 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 13:25:05 [end_date_ymd] => 2025-08-22 16:25:05 [RateCDR] => 1 ) [2025-08-22 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 13:25:05' and `end` < '2025-08-22 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 16:25:19] Production.INFO: count ==4851 [2025-08-22 16:25:21] Production.ERROR: pbx CDR StartTime 2025-08-22 13:25:05 - End Time 2025-08-22 16:25:05 [2025-08-22 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15703012', 'tblTempUsageDetail_20' ) start [2025-08-22 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15703012', 'tblTempUsageDetail_20' ) end [2025-08-22 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15703012', 'tblTempVendorCDR_20' ) start [2025-08-22 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15703012', 'tblTempVendorCDR_20' ) end [2025-08-22 16:25:21] Production.INFO: ProcessCDR(1,15703012,1,1,2) [2025-08-22 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15703012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15703012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15703012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15703012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15703012', 'tblTempUsageDetail_20' ) start [2025-08-22 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15703012', 'tblTempUsageDetail_20' ) end [2025-08-22 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-22 16:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-22 16:25:32] Production.INFO: ==11679== Releasing lock... [2025-08-22 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 16:25:32] Production.INFO: 64.5 MB #Memory Used# [2025-08-22 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 14:25:06 [end_date_ymd] => 2025-08-22 17:25:06 [RateCDR] => 1 ) [2025-08-22 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-08-22 14:25:06' and `end` < '2025-08-22 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-08-22 17:25:19] Production.INFO: count ==4539 [2025-08-22 17:25:21] Production.ERROR: pbx CDR StartTime 2025-08-22 14:25:06 - End Time 2025-08-22 17:25:06 [2025-08-22 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15703259', 'tblTempUsageDetail_20' ) start [2025-08-22 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15703259', 'tblTempUsageDetail_20' ) end [2025-08-22 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15703259', 'tblTempVendorCDR_20' ) start [2025-08-22 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15703259', 'tblTempVendorCDR_20' ) end [2025-08-22 17:25:21] Production.INFO: ProcessCDR(1,15703259,1,1,2) [2025-08-22 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15703259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15703259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15703259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15703259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15703259', 'tblTempUsageDetail_20' ) start [2025-08-22 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15703259', 'tblTempUsageDetail_20' ) end [2025-08-22 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-22 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-22 17:25:32] Production.INFO: ==16423== Releasing lock... [2025-08-22 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 17:25:32] Production.INFO: 62.25 MB #Memory Used# [2025-08-22 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 15:25:05 [end_date_ymd] => 2025-08-22 18:25:05 [RateCDR] => 1 ) [2025-08-22 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 15:25:05' and `end` < '2025-08-22 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 18:25:18] Production.INFO: count ==4295 [2025-08-22 18:25:20] Production.ERROR: pbx CDR StartTime 2025-08-22 15:25:05 - End Time 2025-08-22 18:25:05 [2025-08-22 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15703506', 'tblTempUsageDetail_20' ) start [2025-08-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15703506', 'tblTempUsageDetail_20' ) end [2025-08-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15703506', 'tblTempVendorCDR_20' ) start [2025-08-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15703506', 'tblTempVendorCDR_20' ) end [2025-08-22 18:25:20] Production.INFO: ProcessCDR(1,15703506,1,1,2) [2025-08-22 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15703506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15703506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15703506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15703506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15703506', 'tblTempUsageDetail_20' ) start [2025-08-22 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15703506', 'tblTempUsageDetail_20' ) end [2025-08-22 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-22 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-08-22 18:25:30] Production.INFO: ==21529== Releasing lock... [2025-08-22 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 18:25:30] Production.INFO: 60.25 MB #Memory Used# [2025-08-22 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 16:25:05 [end_date_ymd] => 2025-08-22 19:25:05 [RateCDR] => 1 ) [2025-08-22 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 16:25:05' and `end` < '2025-08-22 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 19:25:17] Production.INFO: count ==3451 [2025-08-22 19:25:19] Production.ERROR: pbx CDR StartTime 2025-08-22 16:25:05 - End Time 2025-08-22 19:25:05 [2025-08-22 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15703750', 'tblTempUsageDetail_20' ) start [2025-08-22 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15703750', 'tblTempUsageDetail_20' ) end [2025-08-22 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15703750', 'tblTempVendorCDR_20' ) start [2025-08-22 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15703750', 'tblTempVendorCDR_20' ) end [2025-08-22 19:25:19] Production.INFO: ProcessCDR(1,15703750,1,1,2) [2025-08-22 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15703750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15703750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15703750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15703750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15703750', 'tblTempUsageDetail_20' ) start [2025-08-22 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15703750', 'tblTempUsageDetail_20' ) end [2025-08-22 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-22 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-22 19:25:28] Production.INFO: ==25749== Releasing lock... [2025-08-22 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 19:25:28] Production.INFO: 54 MB #Memory Used# [2025-08-22 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 17:25:05 [end_date_ymd] => 2025-08-22 20:25:05 [RateCDR] => 1 ) [2025-08-22 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 17:25:05' and `end` < '2025-08-22 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 20:25:18] Production.INFO: count ==2616 [2025-08-22 20:25:19] Production.ERROR: pbx CDR StartTime 2025-08-22 17:25:05 - End Time 2025-08-22 20:25:05 [2025-08-22 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15703997', 'tblTempUsageDetail_20' ) start [2025-08-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15703997', 'tblTempUsageDetail_20' ) end [2025-08-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15703997', 'tblTempVendorCDR_20' ) start [2025-08-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15703997', 'tblTempVendorCDR_20' ) end [2025-08-22 20:25:19] Production.INFO: ProcessCDR(1,15703997,1,1,2) [2025-08-22 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15703997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15703997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15703997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15703997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15703997', 'tblTempUsageDetail_20' ) start [2025-08-22 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15703997', 'tblTempUsageDetail_20' ) end [2025-08-22 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-22 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-22 20:25:27] Production.INFO: ==30034== Releasing lock... [2025-08-22 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 20:25:27] Production.INFO: 47.75 MB #Memory Used# [2025-08-22 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 18:25:05 [end_date_ymd] => 2025-08-22 21:25:05 [RateCDR] => 1 ) [2025-08-22 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 18:25:05' and `end` < '2025-08-22 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 21:25:18] Production.INFO: count ==1899 [2025-08-22 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-22 18:25:05 - End Time 2025-08-22 21:25:05 [2025-08-22 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15704244', 'tblTempUsageDetail_20' ) start [2025-08-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15704244', 'tblTempUsageDetail_20' ) end [2025-08-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15704244', 'tblTempVendorCDR_20' ) start [2025-08-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15704244', 'tblTempVendorCDR_20' ) end [2025-08-22 21:25:18] Production.INFO: ProcessCDR(1,15704244,1,1,2) [2025-08-22 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15704244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15704244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15704244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15704244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15704244', 'tblTempUsageDetail_20' ) start [2025-08-22 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15704244', 'tblTempUsageDetail_20' ) end [2025-08-22 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-22 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-22 21:25:27] Production.INFO: ==2225== Releasing lock... [2025-08-22 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 21:25:27] Production.INFO: 42.5 MB #Memory Used# [2025-08-22 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 19:25:05 [end_date_ymd] => 2025-08-22 22:25:05 [RateCDR] => 1 ) [2025-08-22 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 19:25:05' and `end` < '2025-08-22 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 22:25:17] Production.INFO: count ==1515 [2025-08-22 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-22 19:25:05 - End Time 2025-08-22 22:25:05 [2025-08-22 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15704491', 'tblTempUsageDetail_20' ) start [2025-08-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15704491', 'tblTempUsageDetail_20' ) end [2025-08-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15704491', 'tblTempVendorCDR_20' ) start [2025-08-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15704491', 'tblTempVendorCDR_20' ) end [2025-08-22 22:25:18] Production.INFO: ProcessCDR(1,15704491,1,1,2) [2025-08-22 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15704491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15704491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15704491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15704491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15704491', 'tblTempUsageDetail_20' ) start [2025-08-22 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15704491', 'tblTempUsageDetail_20' ) end [2025-08-22 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-22 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-22 22:25:26] Production.INFO: ==6494== Releasing lock... [2025-08-22 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 22:25:26] Production.INFO: 39.5 MB #Memory Used# [2025-08-22 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 20:25:05 [end_date_ymd] => 2025-08-22 23:25:05 [RateCDR] => 1 ) [2025-08-22 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-22 20:25:05' and `end` < '2025-08-22 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-22 23:25:18] Production.INFO: count ==1170 [2025-08-22 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-22 20:25:05 - End Time 2025-08-22 23:25:05 [2025-08-22 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15704738', 'tblTempUsageDetail_20' ) start [2025-08-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15704738', 'tblTempUsageDetail_20' ) end [2025-08-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15704738', 'tblTempVendorCDR_20' ) start [2025-08-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15704738', 'tblTempVendorCDR_20' ) end [2025-08-22 23:25:18] Production.INFO: ProcessCDR(1,15704738,1,1,2) [2025-08-22 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15704738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15704738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-22 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15704738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15704738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-22 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15704738', 'tblTempUsageDetail_20' ) start [2025-08-22 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15704738', 'tblTempUsageDetail_20' ) end [2025-08-22 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-22 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-22 23:25:26] Production.INFO: ==10901== Releasing lock... [2025-08-22 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-22 23:25:26] Production.INFO: 37.25 MB #Memory Used#