[2025-09-28 00:25:05] Production.INFO: next invoice date [2025-09-28 00:25:05] Production.INFO: 2025-10-28 [2025-09-28 00:25:05] Production.INFO: getdaysdiff [2025-09-28 00:25:05] Production.INFO: +30 [2025-09-28 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (103,10,2,30,30,'RMScheduler',2025-09-28 00:25:05,1,0,,,0) [2025-09-28 00:25:05] Production.INFO: next invoice date [2025-09-28 00:25:05] Production.INFO: 2025-10-28 [2025-09-28 00:25:05] Production.INFO: getdaysdiff [2025-09-28 00:25:05] Production.INFO: +30 [2025-09-28 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (103,16,1,30,30,'RMScheduler',2025-09-28 00:25:05,1,0,,,0) [2025-09-28 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 21:25:06 [end_date_ymd] => 2025-09-28 00:25:06 [RateCDR] => 1 ) [2025-09-28 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-27 21:25:06' and `end` < '2025-09-28 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-28 00:25:19] Production.INFO: count ==794 [2025-09-28 00:25:19] Production.ERROR: pbx CDR StartTime 2025-09-27 21:25:06 - End Time 2025-09-28 00:25:06 [2025-09-28 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15918368', 'tblTempUsageDetail_20' ) start [2025-09-28 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15918368', 'tblTempUsageDetail_20' ) end [2025-09-28 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15918368', 'tblTempVendorCDR_20' ) start [2025-09-28 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15918368', 'tblTempVendorCDR_20' ) end [2025-09-28 00:25:19] Production.INFO: ProcessCDR(1,15918368,1,1,2) [2025-09-28 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15918368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 00:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15918368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 00:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15918368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 00:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15918368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15918368', 'tblTempUsageDetail_20' ) start [2025-09-28 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15918368', 'tblTempUsageDetail_20' ) end [2025-09-28 00:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-28 00:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-28 00:25:34] Production.INFO: ==25055== Releasing lock... [2025-09-28 00:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 00:25:34] Production.INFO: 38.5 MB #Memory Used# [2025-09-28 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 22:25:05 [end_date_ymd] => 2025-09-28 01:25:05 [RateCDR] => 1 ) [2025-09-28 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-27 22:25:05' and `end` < '2025-09-28 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-28 01:25:17] Production.INFO: count ==703 [2025-09-28 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 22:25:05 - End Time 2025-09-28 01:25:05 [2025-09-28 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15918615', 'tblTempUsageDetail_20' ) start [2025-09-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15918615', 'tblTempUsageDetail_20' ) end [2025-09-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15918615', 'tblTempVendorCDR_20' ) start [2025-09-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15918615', 'tblTempVendorCDR_20' ) end [2025-09-28 01:25:18] Production.INFO: ProcessCDR(1,15918615,1,1,2) [2025-09-28 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15918615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15918615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15918615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15918615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15918615', 'tblTempUsageDetail_20' ) start [2025-09-28 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15918615', 'tblTempUsageDetail_20' ) end [2025-09-28 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-28 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-28 01:25:26] Production.INFO: ==29423== Releasing lock... [2025-09-28 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 01:25:26] Production.INFO: 33.75 MB #Memory Used# [2025-09-28 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-27 23:25:05 [end_date_ymd] => 2025-09-28 02:25:05 [RateCDR] => 1 ) [2025-09-28 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-27 23:25:05' and `end` < '2025-09-28 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-28 02:25:17] Production.INFO: count ==705 [2025-09-28 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-27 23:25:05 - End Time 2025-09-28 02:25:05 [2025-09-28 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15918862', 'tblTempUsageDetail_20' ) start [2025-09-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15918862', 'tblTempUsageDetail_20' ) end [2025-09-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15918862', 'tblTempVendorCDR_20' ) start [2025-09-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15918862', 'tblTempVendorCDR_20' ) end [2025-09-28 02:25:18] Production.INFO: ProcessCDR(1,15918862,1,1,2) [2025-09-28 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15918862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15918862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15918862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 02:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15918862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15918862', 'tblTempUsageDetail_20' ) start [2025-09-28 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15918862', 'tblTempUsageDetail_20' ) end [2025-09-28 02:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-28 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-28 02:25:27] Production.INFO: ==1420== Releasing lock... [2025-09-28 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 02:25:27] Production.INFO: 33.25 MB #Memory Used# [2025-09-28 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 00:25:05 [end_date_ymd] => 2025-09-28 03:25:05 [RateCDR] => 1 ) [2025-09-28 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-09-28 00:25:05' and `end` < '2025-09-28 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-09-28 03:25:17] Production.INFO: count ==594 [2025-09-28 03:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 00:25:05 - End Time 2025-09-28 03:25:05 [2025-09-28 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15919109', 'tblTempUsageDetail_20' ) start [2025-09-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15919109', 'tblTempUsageDetail_20' ) end [2025-09-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15919109', 'tblTempVendorCDR_20' ) start [2025-09-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15919109', 'tblTempVendorCDR_20' ) end [2025-09-28 03:25:18] Production.INFO: ProcessCDR(1,15919109,1,1,2) [2025-09-28 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15919109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15919109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15919109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15919109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15919109', 'tblTempUsageDetail_20' ) start [2025-09-28 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15919109', 'tblTempUsageDetail_20' ) end [2025-09-28 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-28 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-28 03:25:26] Production.INFO: ==6396== Releasing lock... [2025-09-28 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 03:25:26] Production.INFO: 32.75 MB #Memory Used# [2025-09-28 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 01:25:05 [end_date_ymd] => 2025-09-28 04:25:05 [RateCDR] => 1 ) [2025-09-28 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-09-28 01:25:05' and `end` < '2025-09-28 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-09-28 04:25:17] Production.INFO: count ==488 [2025-09-28 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-28 01:25:05 - End Time 2025-09-28 04:25:05 [2025-09-28 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15919357', 'tblTempUsageDetail_20' ) start [2025-09-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15919357', 'tblTempUsageDetail_20' ) end [2025-09-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15919357', 'tblTempVendorCDR_20' ) start [2025-09-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15919357', 'tblTempVendorCDR_20' ) end [2025-09-28 04:25:17] Production.INFO: ProcessCDR(1,15919357,1,1,2) [2025-09-28 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15919357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15919357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15919357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15919357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15919357', 'tblTempUsageDetail_20' ) start [2025-09-28 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15919357', 'tblTempUsageDetail_20' ) end [2025-09-28 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-28 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-28 04:25:25] Production.INFO: ==11038== Releasing lock... [2025-09-28 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 04:25:25] Production.INFO: 32.25 MB #Memory Used# [2025-09-28 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 02:25:05 [end_date_ymd] => 2025-09-28 05:25:05 [RateCDR] => 1 ) [2025-09-28 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-09-28 02:25:05' and `end` < '2025-09-28 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-09-28 05:25:17] Production.INFO: count ==333 [2025-09-28 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-28 02:25:05 - End Time 2025-09-28 05:25:05 [2025-09-28 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15919605', 'tblTempUsageDetail_20' ) start [2025-09-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15919605', 'tblTempUsageDetail_20' ) end [2025-09-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15919605', 'tblTempVendorCDR_20' ) start [2025-09-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15919605', 'tblTempVendorCDR_20' ) end [2025-09-28 05:25:18] Production.INFO: ProcessCDR(1,15919605,1,1,2) [2025-09-28 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15919605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15919605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15919605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15919605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15919605', 'tblTempUsageDetail_20' ) start [2025-09-28 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15919605', 'tblTempUsageDetail_20' ) end [2025-09-28 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-28 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-28 05:25:26] Production.INFO: ==15603== Releasing lock... [2025-09-28 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 05:25:26] Production.INFO: 31 MB #Memory Used# [2025-09-28 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 03:25:06 [end_date_ymd] => 2025-09-28 06:25:06 [RateCDR] => 1 ) [2025-09-28 06: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-28 03:25:06' and `end` < '2025-09-28 06: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-28 06:25:18] Production.INFO: count ==203 [2025-09-28 06:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 03:25:06 - End Time 2025-09-28 06:25:06 [2025-09-28 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15919852', 'tblTempUsageDetail_20' ) start [2025-09-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15919852', 'tblTempUsageDetail_20' ) end [2025-09-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15919852', 'tblTempVendorCDR_20' ) start [2025-09-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15919852', 'tblTempVendorCDR_20' ) end [2025-09-28 06:25:18] Production.INFO: ProcessCDR(1,15919852,1,1,2) [2025-09-28 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15919852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15919852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15919852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15919852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15919852', 'tblTempUsageDetail_20' ) start [2025-09-28 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15919852', 'tblTempUsageDetail_20' ) end [2025-09-28 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-28 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-28 06:25:26] Production.INFO: ==20278== Releasing lock... [2025-09-28 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 06:25:26] Production.INFO: 29.75 MB #Memory Used# [2025-09-28 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 04:25:05 [end_date_ymd] => 2025-09-28 07:25:05 [RateCDR] => 1 ) [2025-09-28 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-28 04:25:05' and `end` < '2025-09-28 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-28 07:25:17] Production.INFO: count ==164 [2025-09-28 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-28 04:25:05 - End Time 2025-09-28 07:25:05 [2025-09-28 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15920099', 'tblTempUsageDetail_20' ) start [2025-09-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15920099', 'tblTempUsageDetail_20' ) end [2025-09-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15920099', 'tblTempVendorCDR_20' ) start [2025-09-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15920099', 'tblTempVendorCDR_20' ) end [2025-09-28 07:25:17] Production.INFO: ProcessCDR(1,15920099,1,1,2) [2025-09-28 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15920099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15920099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15920099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15920099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15920099', 'tblTempUsageDetail_20' ) start [2025-09-28 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15920099', 'tblTempUsageDetail_20' ) end [2025-09-28 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-28 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-28 07:25:26] Production.INFO: ==24521== Releasing lock... [2025-09-28 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 07:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-09-28 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 05:25:05 [end_date_ymd] => 2025-09-28 08:25:05 [RateCDR] => 1 ) [2025-09-28 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-28 05:25:05' and `end` < '2025-09-28 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-28 08:25:17] Production.INFO: count ==125 [2025-09-28 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-28 05:25:05 - End Time 2025-09-28 08:25:05 [2025-09-28 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15920346', 'tblTempUsageDetail_20' ) start [2025-09-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15920346', 'tblTempUsageDetail_20' ) end [2025-09-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15920346', 'tblTempVendorCDR_20' ) start [2025-09-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15920346', 'tblTempVendorCDR_20' ) end [2025-09-28 08:25:17] Production.INFO: ProcessCDR(1,15920346,1,1,2) [2025-09-28 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15920346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15920346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15920346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15920346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15920346', 'tblTempUsageDetail_20' ) start [2025-09-28 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15920346', 'tblTempUsageDetail_20' ) end [2025-09-28 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-28 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-28 08:25:25] Production.INFO: ==29132== Releasing lock... [2025-09-28 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 08:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-28 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 06:25:05 [end_date_ymd] => 2025-09-28 09:25:05 [RateCDR] => 1 ) [2025-09-28 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-09-28 06:25:05' and `end` < '2025-09-28 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-09-28 09:25:17] Production.INFO: count ==170 [2025-09-28 09:25:17] Production.ERROR: pbx CDR StartTime 2025-09-28 06:25:05 - End Time 2025-09-28 09:25:05 [2025-09-28 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15920593', 'tblTempUsageDetail_20' ) start [2025-09-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15920593', 'tblTempUsageDetail_20' ) end [2025-09-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15920593', 'tblTempVendorCDR_20' ) start [2025-09-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15920593', 'tblTempVendorCDR_20' ) end [2025-09-28 09:25:17] Production.INFO: ProcessCDR(1,15920593,1,1,2) [2025-09-28 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15920593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15920593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15920593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15920593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15920593', 'tblTempUsageDetail_20' ) start [2025-09-28 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15920593', 'tblTempUsageDetail_20' ) end [2025-09-28 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-28 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-28 09:25:25] Production.INFO: ==1256== Releasing lock... [2025-09-28 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 09:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-09-28 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 07:25:05 [end_date_ymd] => 2025-09-28 10:25:05 [RateCDR] => 1 ) [2025-09-28 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-09-28 07:25:05' and `end` < '2025-09-28 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-09-28 10:25:17] Production.INFO: count ==304 [2025-09-28 10:25:17] Production.ERROR: pbx CDR StartTime 2025-09-28 07:25:05 - End Time 2025-09-28 10:25:05 [2025-09-28 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15920840', 'tblTempUsageDetail_20' ) start [2025-09-28 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15920840', 'tblTempUsageDetail_20' ) end [2025-09-28 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15920840', 'tblTempVendorCDR_20' ) start [2025-09-28 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15920840', 'tblTempVendorCDR_20' ) end [2025-09-28 10:25:17] Production.INFO: ProcessCDR(1,15920840,1,1,2) [2025-09-28 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15920840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15920840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15920840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15920840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15920840', 'tblTempUsageDetail_20' ) start [2025-09-28 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15920840', 'tblTempUsageDetail_20' ) end [2025-09-28 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-28 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-28 10:25:26] Production.INFO: ==6264== Releasing lock... [2025-09-28 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 10:25:26] Production.INFO: 30.5 MB #Memory Used# [2025-09-28 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 08:25:04 [end_date_ymd] => 2025-09-28 11:25:04 [RateCDR] => 1 ) [2025-09-28 11: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-28 08:25:04' and `end` < '2025-09-28 11: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-28 11:25:17] Production.INFO: count ==591 [2025-09-28 11:25:17] Production.ERROR: pbx CDR StartTime 2025-09-28 08:25:04 - End Time 2025-09-28 11:25:04 [2025-09-28 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15921087', 'tblTempUsageDetail_20' ) start [2025-09-28 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15921087', 'tblTempUsageDetail_20' ) end [2025-09-28 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15921087', 'tblTempVendorCDR_20' ) start [2025-09-28 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15921087', 'tblTempVendorCDR_20' ) end [2025-09-28 11:25:17] Production.INFO: ProcessCDR(1,15921087,1,1,2) [2025-09-28 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15921087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15921087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15921087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15921087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15921087', 'tblTempUsageDetail_20' ) start [2025-09-28 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15921087', 'tblTempUsageDetail_20' ) end [2025-09-28 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-28 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-28 11:25:26] Production.INFO: ==10773== Releasing lock... [2025-09-28 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 11:25:26] Production.INFO: 32.75 MB #Memory Used# [2025-09-28 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 09:25:05 [end_date_ymd] => 2025-09-28 12:25:05 [RateCDR] => 1 ) [2025-09-28 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-28 09:25:05' and `end` < '2025-09-28 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-28 12:25:17] Production.INFO: count ==800 [2025-09-28 12:25:17] Production.ERROR: pbx CDR StartTime 2025-09-28 09:25:05 - End Time 2025-09-28 12:25:05 [2025-09-28 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15921334', 'tblTempUsageDetail_20' ) start [2025-09-28 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15921334', 'tblTempUsageDetail_20' ) end [2025-09-28 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15921334', 'tblTempVendorCDR_20' ) start [2025-09-28 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15921334', 'tblTempVendorCDR_20' ) end [2025-09-28 12:25:17] Production.INFO: ProcessCDR(1,15921334,1,1,2) [2025-09-28 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15921334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15921334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15921334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15921334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15921334', 'tblTempUsageDetail_20' ) start [2025-09-28 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15921334', 'tblTempUsageDetail_20' ) end [2025-09-28 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-28 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-28 12:25:27] Production.INFO: ==15158== Releasing lock... [2025-09-28 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 12:25:27] Production.INFO: 34.5 MB #Memory Used# [2025-09-28 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 10:25:05 [end_date_ymd] => 2025-09-28 13:25:05 [RateCDR] => 1 ) [2025-09-28 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-28 10:25:05' and `end` < '2025-09-28 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-28 13:25:18] Production.INFO: count ==986 [2025-09-28 13:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 10:25:05 - End Time 2025-09-28 13:25:05 [2025-09-28 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15921581', 'tblTempUsageDetail_20' ) start [2025-09-28 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15921581', 'tblTempUsageDetail_20' ) end [2025-09-28 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15921581', 'tblTempVendorCDR_20' ) start [2025-09-28 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15921581', 'tblTempVendorCDR_20' ) end [2025-09-28 13:25:18] Production.INFO: ProcessCDR(1,15921581,1,1,2) [2025-09-28 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15921581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15921581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15921581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15921581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15921581', 'tblTempUsageDetail_20' ) start [2025-09-28 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15921581', 'tblTempUsageDetail_20' ) end [2025-09-28 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-28 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-28 13:25:27] Production.INFO: ==19602== Releasing lock... [2025-09-28 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 13:25:27] Production.INFO: 35.75 MB #Memory Used# [2025-09-28 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 11:25:05 [end_date_ymd] => 2025-09-28 14:25:05 [RateCDR] => 1 ) [2025-09-28 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-28 11:25:05' and `end` < '2025-09-28 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-28 14:25:17] Production.INFO: count ==1104 [2025-09-28 14:25:17] Production.ERROR: pbx CDR StartTime 2025-09-28 11:25:05 - End Time 2025-09-28 14:25:05 [2025-09-28 14:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15921828', 'tblTempUsageDetail_20' ) start [2025-09-28 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15921828', 'tblTempUsageDetail_20' ) end [2025-09-28 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15921828', 'tblTempVendorCDR_20' ) start [2025-09-28 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15921828', 'tblTempVendorCDR_20' ) end [2025-09-28 14:25:17] Production.INFO: ProcessCDR(1,15921828,1,1,2) [2025-09-28 14:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15921828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15921828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15921828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15921828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15921828', 'tblTempUsageDetail_20' ) start [2025-09-28 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15921828', 'tblTempUsageDetail_20' ) end [2025-09-28 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-28 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-28 14:25:28] Production.INFO: ==23911== Releasing lock... [2025-09-28 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 14:25:28] Production.INFO: 37.25 MB #Memory Used# [2025-09-28 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 12:25:05 [end_date_ymd] => 2025-09-28 15:25:05 [RateCDR] => 1 ) [2025-09-28 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-28 12:25:05' and `end` < '2025-09-28 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-28 15:25:17] Production.INFO: count ==1134 [2025-09-28 15:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 12:25:05 - End Time 2025-09-28 15:25:05 [2025-09-28 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15922075', 'tblTempUsageDetail_20' ) start [2025-09-28 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15922075', 'tblTempUsageDetail_20' ) end [2025-09-28 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15922075', 'tblTempVendorCDR_20' ) start [2025-09-28 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15922075', 'tblTempVendorCDR_20' ) end [2025-09-28 15:25:18] Production.INFO: ProcessCDR(1,15922075,1,1,2) [2025-09-28 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15922075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15922075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15922075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15922075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15922075', 'tblTempUsageDetail_20' ) start [2025-09-28 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15922075', 'tblTempUsageDetail_20' ) end [2025-09-28 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-28 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-28 15:25:27] Production.INFO: ==28246== Releasing lock... [2025-09-28 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 15:25:27] Production.INFO: 37 MB #Memory Used# [2025-09-28 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 13:25:05 [end_date_ymd] => 2025-09-28 16:25:05 [RateCDR] => 1 ) [2025-09-28 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-28 13:25:05' and `end` < '2025-09-28 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-28 16:25:17] Production.INFO: count ==1233 [2025-09-28 16:25:17] Production.ERROR: pbx CDR StartTime 2025-09-28 13:25:05 - End Time 2025-09-28 16:25:05 [2025-09-28 16:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15922322', 'tblTempUsageDetail_20' ) start [2025-09-28 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15922322', 'tblTempUsageDetail_20' ) end [2025-09-28 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15922322', 'tblTempVendorCDR_20' ) start [2025-09-28 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15922322', 'tblTempVendorCDR_20' ) end [2025-09-28 16:25:17] Production.INFO: ProcessCDR(1,15922322,1,1,2) [2025-09-28 16:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15922322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15922322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15922322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15922322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15922322', 'tblTempUsageDetail_20' ) start [2025-09-28 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15922322', 'tblTempUsageDetail_20' ) end [2025-09-28 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-28 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-28 16:25:27] Production.INFO: ==32547== Releasing lock... [2025-09-28 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 16:25:27] Production.INFO: 37.25 MB #Memory Used# [2025-09-28 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 14:25:05 [end_date_ymd] => 2025-09-28 17:25:05 [RateCDR] => 1 ) [2025-09-28 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-28 14:25:05' and `end` < '2025-09-28 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-28 17:25:17] Production.INFO: count ==1383 [2025-09-28 17:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 14:25:05 - End Time 2025-09-28 17:25:05 [2025-09-28 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15922569', 'tblTempUsageDetail_20' ) start [2025-09-28 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15922569', 'tblTempUsageDetail_20' ) end [2025-09-28 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15922569', 'tblTempVendorCDR_20' ) start [2025-09-28 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15922569', 'tblTempVendorCDR_20' ) end [2025-09-28 17:25:18] Production.INFO: ProcessCDR(1,15922569,1,1,2) [2025-09-28 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15922569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15922569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15922569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15922569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15922569', 'tblTempUsageDetail_20' ) start [2025-09-28 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15922569', 'tblTempUsageDetail_20' ) end [2025-09-28 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-28 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-28 17:25:27] Production.INFO: ==4507== Releasing lock... [2025-09-28 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 17:25:27] Production.INFO: 38.5 MB #Memory Used# [2025-09-28 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 15:25:05 [end_date_ymd] => 2025-09-28 18:25:05 [RateCDR] => 1 ) [2025-09-28 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-09-28 15:25:05' and `end` < '2025-09-28 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-09-28 18:25:17] Production.INFO: count ==1678 [2025-09-28 18:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 15:25:05 - End Time 2025-09-28 18:25:05 [2025-09-28 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15922816', 'tblTempUsageDetail_20' ) start [2025-09-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15922816', 'tblTempUsageDetail_20' ) end [2025-09-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15922816', 'tblTempVendorCDR_20' ) start [2025-09-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15922816', 'tblTempVendorCDR_20' ) end [2025-09-28 18:25:18] Production.INFO: ProcessCDR(1,15922816,1,1,2) [2025-09-28 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15922816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15922816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15922816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15922816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15922816', 'tblTempUsageDetail_20' ) start [2025-09-28 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15922816', 'tblTempUsageDetail_20' ) end [2025-09-28 18:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-28 18:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-28 18:25:27] Production.INFO: ==8854== Releasing lock... [2025-09-28 18:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 18:25:27] Production.INFO: 40.75 MB #Memory Used# [2025-09-28 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 16:25:05 [end_date_ymd] => 2025-09-28 19:25:05 [RateCDR] => 1 ) [2025-09-28 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-28 16:25:05' and `end` < '2025-09-28 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-28 19:25:17] Production.INFO: count ==2140 [2025-09-28 19:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 16:25:05 - End Time 2025-09-28 19:25:05 [2025-09-28 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15923059', 'tblTempUsageDetail_20' ) start [2025-09-28 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15923059', 'tblTempUsageDetail_20' ) end [2025-09-28 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15923059', 'tblTempVendorCDR_20' ) start [2025-09-28 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15923059', 'tblTempVendorCDR_20' ) end [2025-09-28 19:25:18] Production.INFO: ProcessCDR(1,15923059,1,1,2) [2025-09-28 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15923059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15923059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15923059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15923059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15923059', 'tblTempUsageDetail_20' ) start [2025-09-28 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15923059', 'tblTempUsageDetail_20' ) end [2025-09-28 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-28 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-28 19:25:28] Production.INFO: ==13886== Releasing lock... [2025-09-28 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 19:25:28] Production.INFO: 44.5 MB #Memory Used# [2025-09-28 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 17:25:06 [end_date_ymd] => 2025-09-28 20:25:06 [RateCDR] => 1 ) [2025-09-28 20: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-28 17:25:06' and `end` < '2025-09-28 20: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-28 20:25:18] Production.INFO: count ==2375 [2025-09-28 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-28 17:25:06 - End Time 2025-09-28 20:25:06 [2025-09-28 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15923306', 'tblTempUsageDetail_20' ) start [2025-09-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15923306', 'tblTempUsageDetail_20' ) end [2025-09-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15923306', 'tblTempVendorCDR_20' ) start [2025-09-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15923306', 'tblTempVendorCDR_20' ) end [2025-09-28 20:25:19] Production.INFO: ProcessCDR(1,15923306,1,1,2) [2025-09-28 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15923306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15923306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15923306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15923306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15923306', 'tblTempUsageDetail_20' ) start [2025-09-28 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15923306', 'tblTempUsageDetail_20' ) end [2025-09-28 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-28 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-28 20:25:29] Production.INFO: ==18831== Releasing lock... [2025-09-28 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 20:25:29] Production.INFO: 46 MB #Memory Used# [2025-09-28 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 18:25:05 [end_date_ymd] => 2025-09-28 21:25:05 [RateCDR] => 1 ) [2025-09-28 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-28 18:25:05' and `end` < '2025-09-28 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-28 21:25:18] Production.INFO: count ==2179 [2025-09-28 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 18:25:05 - End Time 2025-09-28 21:25:05 [2025-09-28 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15923553', 'tblTempUsageDetail_20' ) start [2025-09-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15923553', 'tblTempUsageDetail_20' ) end [2025-09-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15923553', 'tblTempVendorCDR_20' ) start [2025-09-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15923553', 'tblTempVendorCDR_20' ) end [2025-09-28 21:25:18] Production.INFO: ProcessCDR(1,15923553,1,1,2) [2025-09-28 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15923553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15923553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15923553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15923553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15923553', 'tblTempUsageDetail_20' ) start [2025-09-28 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15923553', 'tblTempUsageDetail_20' ) end [2025-09-28 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-28 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-28 21:25:28] Production.INFO: ==23980== Releasing lock... [2025-09-28 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 21:25:28] Production.INFO: 44.5 MB #Memory Used# [2025-09-28 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 19:25:05 [end_date_ymd] => 2025-09-28 22:25:05 [RateCDR] => 1 ) [2025-09-28 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-09-28 19:25:05' and `end` < '2025-09-28 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-09-28 22:25:18] Production.INFO: count ==1487 [2025-09-28 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 19:25:05 - End Time 2025-09-28 22:25:05 [2025-09-28 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15923800', 'tblTempUsageDetail_20' ) start [2025-09-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15923800', 'tblTempUsageDetail_20' ) end [2025-09-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15923800', 'tblTempVendorCDR_20' ) start [2025-09-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15923800', 'tblTempVendorCDR_20' ) end [2025-09-28 22:25:18] Production.INFO: ProcessCDR(1,15923800,1,1,2) [2025-09-28 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15923800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15923800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15923800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15923800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15923800', 'tblTempUsageDetail_20' ) start [2025-09-28 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15923800', 'tblTempUsageDetail_20' ) end [2025-09-28 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-28 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-28 22:25:27] Production.INFO: ==28510== Releasing lock... [2025-09-28 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 22:25:27] Production.INFO: 39.75 MB #Memory Used# [2025-09-28 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 20:25:05 [end_date_ymd] => 2025-09-28 23:25:05 [RateCDR] => 1 ) [2025-09-28 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-09-28 20:25:05' and `end` < '2025-09-28 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-09-28 23:25:17] Production.INFO: count ==978 [2025-09-28 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 20:25:05 - End Time 2025-09-28 23:25:05 [2025-09-28 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15924047', 'tblTempUsageDetail_20' ) start [2025-09-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15924047', 'tblTempUsageDetail_20' ) end [2025-09-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15924047', 'tblTempVendorCDR_20' ) start [2025-09-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15924047', 'tblTempVendorCDR_20' ) end [2025-09-28 23:25:18] Production.INFO: ProcessCDR(1,15924047,1,1,2) [2025-09-28 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15924047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15924047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-28 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15924047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15924047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-28 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15924047', 'tblTempUsageDetail_20' ) start [2025-09-28 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15924047', 'tblTempUsageDetail_20' ) end [2025-09-28 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-28 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-28 23:25:27] Production.INFO: ==423== Releasing lock... [2025-09-28 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-28 23:25:27] Production.INFO: 35.75 MB #Memory Used#