[2025-08-19 00:25:04] Production.INFO: next invoice date [2025-08-19 00:25:04] Production.INFO: 2025-09-19 [2025-08-19 00:25:04] Production.INFO: getdaysdiff [2025-08-19 00:25:04] Production.INFO: +31 [2025-08-19 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (108,15,1,31,31,'RMScheduler',2025-08-19 00:25:04,1,0,,,0) [2025-08-19 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 21:25:06 [end_date_ymd] => 2025-08-19 00:25:06 [RateCDR] => 1 ) [2025-08-19 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-18 21:25:06' and `end` < '2025-08-19 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 00:25:18] Production.INFO: count ==486 [2025-08-19 00:25:18] Production.ERROR: pbx CDR StartTime 2025-08-18 21:25:06 - End Time 2025-08-19 00:25:06 [2025-08-19 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15681276', 'tblTempUsageDetail_20' ) start [2025-08-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15681276', 'tblTempUsageDetail_20' ) end [2025-08-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15681276', 'tblTempVendorCDR_20' ) start [2025-08-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15681276', 'tblTempVendorCDR_20' ) end [2025-08-19 00:25:18] Production.INFO: ProcessCDR(1,15681276,1,1,2) [2025-08-19 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15681276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15681276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15681276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15681276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15681276', 'tblTempUsageDetail_20' ) start [2025-08-19 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15681276', 'tblTempUsageDetail_20' ) end [2025-08-19 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-19 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-19 00:25:26] Production.INFO: ==11360== Releasing lock... [2025-08-19 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 00:25:26] Production.INFO: 35.75 MB #Memory Used# [2025-08-19 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 22:25:05 [end_date_ymd] => 2025-08-19 01:25:05 [RateCDR] => 1 ) [2025-08-19 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-18 22:25:05' and `end` < '2025-08-19 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 01:25:17] Production.INFO: count ==490 [2025-08-19 01:25:17] Production.ERROR: pbx CDR StartTime 2025-08-18 22:25:05 - End Time 2025-08-19 01:25:05 [2025-08-19 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15681523', 'tblTempUsageDetail_20' ) start [2025-08-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15681523', 'tblTempUsageDetail_20' ) end [2025-08-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15681523', 'tblTempVendorCDR_20' ) start [2025-08-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15681523', 'tblTempVendorCDR_20' ) end [2025-08-19 01:25:17] Production.INFO: ProcessCDR(1,15681523,1,1,2) [2025-08-19 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15681523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15681523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15681523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15681523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15681523', 'tblTempUsageDetail_20' ) start [2025-08-19 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15681523', 'tblTempUsageDetail_20' ) end [2025-08-19 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-19 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-19 01:25:25] Production.INFO: ==15787== Releasing lock... [2025-08-19 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 01:25:25] Production.INFO: 32 MB #Memory Used# [2025-08-19 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-18 23:25:05 [end_date_ymd] => 2025-08-19 02:25:05 [RateCDR] => 1 ) [2025-08-19 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-18 23:25:05' and `end` < '2025-08-19 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 02:25:19] Production.INFO: count ==413 [2025-08-19 02:25:19] Production.ERROR: pbx CDR StartTime 2025-08-18 23:25:05 - End Time 2025-08-19 02:25:05 [2025-08-19 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15681770', 'tblTempUsageDetail_20' ) start [2025-08-19 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15681770', 'tblTempUsageDetail_20' ) end [2025-08-19 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15681770', 'tblTempVendorCDR_20' ) start [2025-08-19 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15681770', 'tblTempVendorCDR_20' ) end [2025-08-19 02:25:19] Production.INFO: ProcessCDR(1,15681770,1,1,2) [2025-08-19 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15681770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15681770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15681770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15681770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15681770', 'tblTempUsageDetail_20' ) start [2025-08-19 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15681770', 'tblTempUsageDetail_20' ) end [2025-08-19 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-19 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-19 02:25:26] Production.INFO: ==20346== Releasing lock... [2025-08-19 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 02:25:26] Production.INFO: 32 MB #Memory Used# [2025-08-19 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 00:25:05 [end_date_ymd] => 2025-08-19 03:25:05 [RateCDR] => 1 ) [2025-08-19 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 00:25:05' and `end` < '2025-08-19 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 03:25:17] Production.INFO: count ==365 [2025-08-19 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-19 00:25:05 - End Time 2025-08-19 03:25:05 [2025-08-19 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15682017', 'tblTempUsageDetail_20' ) start [2025-08-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15682017', 'tblTempUsageDetail_20' ) end [2025-08-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15682017', 'tblTempVendorCDR_20' ) start [2025-08-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15682017', 'tblTempVendorCDR_20' ) end [2025-08-19 03:25:17] Production.INFO: ProcessCDR(1,15682017,1,1,2) [2025-08-19 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15682017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15682017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15682017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15682017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15682017', 'tblTempUsageDetail_20' ) start [2025-08-19 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15682017', 'tblTempUsageDetail_20' ) end [2025-08-19 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-19 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-19 03:25:24] Production.INFO: ==24855== Releasing lock... [2025-08-19 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 03:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-08-19 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 01:25:05 [end_date_ymd] => 2025-08-19 04:25:05 [RateCDR] => 1 ) [2025-08-19 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 01:25:05' and `end` < '2025-08-19 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 04:25:18] Production.INFO: count ==240 [2025-08-19 04:25:18] Production.ERROR: pbx CDR StartTime 2025-08-19 01:25:05 - End Time 2025-08-19 04:25:05 [2025-08-19 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15682265', 'tblTempUsageDetail_20' ) start [2025-08-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15682265', 'tblTempUsageDetail_20' ) end [2025-08-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15682265', 'tblTempVendorCDR_20' ) start [2025-08-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15682265', 'tblTempVendorCDR_20' ) end [2025-08-19 04:25:18] Production.INFO: ProcessCDR(1,15682265,1,1,2) [2025-08-19 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15682265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15682265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15682265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15682265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15682265', 'tblTempUsageDetail_20' ) start [2025-08-19 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15682265', 'tblTempUsageDetail_20' ) end [2025-08-19 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-19 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-19 04:25:25] Production.INFO: ==29155== Releasing lock... [2025-08-19 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 04:25:25] Production.INFO: 30 MB #Memory Used# [2025-08-19 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 02:25:05 [end_date_ymd] => 2025-08-19 05:25:05 [RateCDR] => 1 ) [2025-08-19 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 02:25:05' and `end` < '2025-08-19 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 05:25:18] Production.INFO: count ==180 [2025-08-19 05:25:18] Production.ERROR: pbx CDR StartTime 2025-08-19 02:25:05 - End Time 2025-08-19 05:25:05 [2025-08-19 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15682513', 'tblTempUsageDetail_20' ) start [2025-08-19 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15682513', 'tblTempUsageDetail_20' ) end [2025-08-19 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15682513', 'tblTempVendorCDR_20' ) start [2025-08-19 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15682513', 'tblTempVendorCDR_20' ) end [2025-08-19 05:25:18] Production.INFO: ProcessCDR(1,15682513,1,1,2) [2025-08-19 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15682513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15682513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15682513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15682513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15682513', 'tblTempUsageDetail_20' ) start [2025-08-19 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15682513', 'tblTempUsageDetail_20' ) end [2025-08-19 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-19 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-19 05:25:25] Production.INFO: ==1285== Releasing lock... [2025-08-19 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 05:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-08-19 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 03:25:05 [end_date_ymd] => 2025-08-19 06:25:05 [RateCDR] => 1 ) [2025-08-19 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 03:25:05' and `end` < '2025-08-19 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 06:25:17] Production.INFO: count ==148 [2025-08-19 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-19 03:25:05 - End Time 2025-08-19 06:25:05 [2025-08-19 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15682760', 'tblTempUsageDetail_20' ) start [2025-08-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15682760', 'tblTempUsageDetail_20' ) end [2025-08-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15682760', 'tblTempVendorCDR_20' ) start [2025-08-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15682760', 'tblTempVendorCDR_20' ) end [2025-08-19 06:25:17] Production.INFO: ProcessCDR(1,15682760,1,1,2) [2025-08-19 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15682760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15682760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15682760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15682760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15682760', 'tblTempUsageDetail_20' ) start [2025-08-19 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15682760', 'tblTempUsageDetail_20' ) end [2025-08-19 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-19 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-19 06:25:24] Production.INFO: ==5861== Releasing lock... [2025-08-19 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 06:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-08-19 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 04:25:06 [end_date_ymd] => 2025-08-19 07:25:06 [RateCDR] => 1 ) [2025-08-19 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 04:25:06' and `end` < '2025-08-19 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 07:25:18] Production.INFO: count ==151 [2025-08-19 07:25:18] Production.ERROR: pbx CDR StartTime 2025-08-19 04:25:06 - End Time 2025-08-19 07:25:06 [2025-08-19 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15683007', 'tblTempUsageDetail_20' ) start [2025-08-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15683007', 'tblTempUsageDetail_20' ) end [2025-08-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15683007', 'tblTempVendorCDR_20' ) start [2025-08-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15683007', 'tblTempVendorCDR_20' ) end [2025-08-19 07:25:18] Production.INFO: ProcessCDR(1,15683007,1,1,2) [2025-08-19 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15683007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15683007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15683007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15683007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15683007', 'tblTempUsageDetail_20' ) start [2025-08-19 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15683007', 'tblTempUsageDetail_20' ) end [2025-08-19 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-19 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-19 07:25:25] Production.INFO: ==11538== Releasing lock... [2025-08-19 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 07:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-08-19 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 05:25:05 [end_date_ymd] => 2025-08-19 08:25:05 [RateCDR] => 1 ) [2025-08-19 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 05:25:05' and `end` < '2025-08-19 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 08:25:17] Production.INFO: count ==318 [2025-08-19 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-19 05:25:05 - End Time 2025-08-19 08:25:05 [2025-08-19 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15683254', 'tblTempUsageDetail_20' ) start [2025-08-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15683254', 'tblTempUsageDetail_20' ) end [2025-08-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15683254', 'tblTempVendorCDR_20' ) start [2025-08-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15683254', 'tblTempVendorCDR_20' ) end [2025-08-19 08:25:17] Production.INFO: ProcessCDR(1,15683254,1,1,2) [2025-08-19 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15683254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15683254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15683254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15683254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15683254', 'tblTempUsageDetail_20' ) start [2025-08-19 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15683254', 'tblTempUsageDetail_20' ) end [2025-08-19 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-19 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-19 08:25:25] Production.INFO: ==19044== Releasing lock... [2025-08-19 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 08:25:25] Production.INFO: 31 MB #Memory Used# [2025-08-19 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 06:25:06 [end_date_ymd] => 2025-08-19 09:25:06 [RateCDR] => 1 ) [2025-08-19 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 06:25:06' and `end` < '2025-08-19 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 09:25:18] Production.INFO: count ==1096 [2025-08-19 09:25:19] Production.ERROR: pbx CDR StartTime 2025-08-19 06:25:06 - End Time 2025-08-19 09:25:06 [2025-08-19 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15683501', 'tblTempUsageDetail_20' ) start [2025-08-19 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15683501', 'tblTempUsageDetail_20' ) end [2025-08-19 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15683501', 'tblTempVendorCDR_20' ) start [2025-08-19 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15683501', 'tblTempVendorCDR_20' ) end [2025-08-19 09:25:19] Production.INFO: ProcessCDR(1,15683501,1,1,2) [2025-08-19 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15683501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15683501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15683501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15683501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15683501', 'tblTempUsageDetail_20' ) start [2025-08-19 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15683501', 'tblTempUsageDetail_20' ) end [2025-08-19 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-19 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-19 09:25:27] Production.INFO: ==26472== Releasing lock... [2025-08-19 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 09:25:27] Production.INFO: 36.75 MB #Memory Used# [2025-08-19 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 07:25:05 [end_date_ymd] => 2025-08-19 10:25:05 [RateCDR] => 1 ) [2025-08-19 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 07:25:05' and `end` < '2025-08-19 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 10:25:19] Production.INFO: count ==2725 [2025-08-19 10:25:20] Production.ERROR: pbx CDR StartTime 2025-08-19 07:25:05 - End Time 2025-08-19 10:25:05 [2025-08-19 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15683748', 'tblTempUsageDetail_20' ) start [2025-08-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15683748', 'tblTempUsageDetail_20' ) end [2025-08-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15683748', 'tblTempVendorCDR_20' ) start [2025-08-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15683748', 'tblTempVendorCDR_20' ) end [2025-08-19 10:25:20] Production.INFO: ProcessCDR(1,15683748,1,1,2) [2025-08-19 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15683748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15683748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15683748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15683748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15683748', 'tblTempUsageDetail_20' ) start [2025-08-19 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15683748', 'tblTempUsageDetail_20' ) end [2025-08-19 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-19 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-08-19 10:25:31] Production.INFO: ==1151== Releasing lock... [2025-08-19 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 10:25:31] Production.INFO: 49 MB #Memory Used# [2025-08-19 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 08:25:06 [end_date_ymd] => 2025-08-19 11:25:06 [RateCDR] => 1 ) [2025-08-19 11: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-19 08:25:06' and `end` < '2025-08-19 11: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-19 11:25:19] Production.INFO: count ==4253 [2025-08-19 11:25:21] Production.ERROR: pbx CDR StartTime 2025-08-19 08:25:06 - End Time 2025-08-19 11:25:06 [2025-08-19 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15683995', 'tblTempUsageDetail_20' ) start [2025-08-19 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15683995', 'tblTempUsageDetail_20' ) end [2025-08-19 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15683995', 'tblTempVendorCDR_20' ) start [2025-08-19 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15683995', 'tblTempVendorCDR_20' ) end [2025-08-19 11:25:21] Production.INFO: ProcessCDR(1,15683995,1,1,2) [2025-08-19 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15683995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15683995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15683995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15683995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15683995', 'tblTempUsageDetail_20' ) start [2025-08-19 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15683995', 'tblTempUsageDetail_20' ) end [2025-08-19 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-19 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-19 11:25:32] Production.INFO: ==7529== Releasing lock... [2025-08-19 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 11:25:32] Production.INFO: 60 MB #Memory Used# [2025-08-19 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 09:25:04 [end_date_ymd] => 2025-08-19 12:25:04 [RateCDR] => 1 ) [2025-08-19 12: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-08-19 09:25:04' and `end` < '2025-08-19 12: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-08-19 12:25:19] Production.INFO: count ==5180 [2025-08-19 12:25:22] Production.ERROR: pbx CDR StartTime 2025-08-19 09:25:04 - End Time 2025-08-19 12:25:04 [2025-08-19 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15684242', 'tblTempUsageDetail_20' ) start [2025-08-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15684242', 'tblTempUsageDetail_20' ) end [2025-08-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15684242', 'tblTempVendorCDR_20' ) start [2025-08-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15684242', 'tblTempVendorCDR_20' ) end [2025-08-19 12:25:22] Production.INFO: ProcessCDR(1,15684242,1,1,2) [2025-08-19 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15684242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15684242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15684242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15684242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15684242', 'tblTempUsageDetail_20' ) start [2025-08-19 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15684242', 'tblTempUsageDetail_20' ) end [2025-08-19 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-19 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-19 12:25:34] Production.INFO: ==12879== Releasing lock... [2025-08-19 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 12:25:34] Production.INFO: 67 MB #Memory Used# [2025-08-19 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 10:25:05 [end_date_ymd] => 2025-08-19 13:25:05 [RateCDR] => 1 ) [2025-08-19 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 10:25:05' and `end` < '2025-08-19 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 13:25:18] Production.INFO: count ==5375 [2025-08-19 13:25:21] Production.ERROR: pbx CDR StartTime 2025-08-19 10:25:05 - End Time 2025-08-19 13:25:05 [2025-08-19 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15684489', 'tblTempUsageDetail_20' ) start [2025-08-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15684489', 'tblTempUsageDetail_20' ) end [2025-08-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15684489', 'tblTempVendorCDR_20' ) start [2025-08-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15684489', 'tblTempVendorCDR_20' ) end [2025-08-19 13:25:21] Production.INFO: ProcessCDR(1,15684489,1,1,2) [2025-08-19 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15684489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15684489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15684489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15684489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15684489', 'tblTempUsageDetail_20' ) start [2025-08-19 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15684489', 'tblTempUsageDetail_20' ) end [2025-08-19 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-19 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-19 13:25:33] Production.INFO: ==17371== Releasing lock... [2025-08-19 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 13:25:33] Production.INFO: 68.5 MB #Memory Used# [2025-08-19 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 11:25:05 [end_date_ymd] => 2025-08-19 14:25:05 [RateCDR] => 1 ) [2025-08-19 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 11:25:05' and `end` < '2025-08-19 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 14:25:21] Production.INFO: count ==5457 [2025-08-19 14:25:23] Production.ERROR: pbx CDR StartTime 2025-08-19 11:25:05 - End Time 2025-08-19 14:25:05 [2025-08-19 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15684736', 'tblTempUsageDetail_20' ) start [2025-08-19 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15684736', 'tblTempUsageDetail_20' ) end [2025-08-19 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15684736', 'tblTempVendorCDR_20' ) start [2025-08-19 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15684736', 'tblTempVendorCDR_20' ) end [2025-08-19 14:25:24] Production.INFO: ProcessCDR(1,15684736,1,1,2) [2025-08-19 14:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15684736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15684736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15684736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 14:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15684736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15684736', 'tblTempUsageDetail_20' ) start [2025-08-19 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15684736', 'tblTempUsageDetail_20' ) end [2025-08-19 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-19 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-19 14:25:35] Production.INFO: ==22368== Releasing lock... [2025-08-19 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 14:25:35] Production.INFO: 69 MB #Memory Used# [2025-08-19 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 12:25:05 [end_date_ymd] => 2025-08-19 15:25:05 [RateCDR] => 1 ) [2025-08-19 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 12:25:05' and `end` < '2025-08-19 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 15:25:19] Production.INFO: count ==5400 [2025-08-19 15:25:21] Production.ERROR: pbx CDR StartTime 2025-08-19 12:25:05 - End Time 2025-08-19 15:25:05 [2025-08-19 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15684983', 'tblTempUsageDetail_20' ) start [2025-08-19 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15684983', 'tblTempUsageDetail_20' ) end [2025-08-19 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15684983', 'tblTempVendorCDR_20' ) start [2025-08-19 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15684983', 'tblTempVendorCDR_20' ) end [2025-08-19 15:25:22] Production.INFO: ProcessCDR(1,15684983,1,1,2) [2025-08-19 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15684983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15684983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15684983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15684983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15684983', 'tblTempUsageDetail_20' ) start [2025-08-19 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15684983', 'tblTempUsageDetail_20' ) end [2025-08-19 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-19 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-19 15:25:33] Production.INFO: ==28148== Releasing lock... [2025-08-19 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 15:25:33] Production.INFO: 68.75 MB #Memory Used# [2025-08-19 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 13:25:05 [end_date_ymd] => 2025-08-19 16:25:05 [RateCDR] => 1 ) [2025-08-19 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 13:25:05' and `end` < '2025-08-19 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 16:25:20] Production.INFO: count ==5375 [2025-08-19 16:25:23] Production.ERROR: pbx CDR StartTime 2025-08-19 13:25:05 - End Time 2025-08-19 16:25:05 [2025-08-19 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15685230', 'tblTempUsageDetail_20' ) start [2025-08-19 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15685230', 'tblTempUsageDetail_20' ) end [2025-08-19 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15685230', 'tblTempVendorCDR_20' ) start [2025-08-19 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15685230', 'tblTempVendorCDR_20' ) end [2025-08-19 16:25:23] Production.INFO: ProcessCDR(1,15685230,1,1,2) [2025-08-19 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15685230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15685230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15685230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15685230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15685230', 'tblTempUsageDetail_20' ) start [2025-08-19 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15685230', 'tblTempUsageDetail_20' ) end [2025-08-19 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-19 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-19 16:25:35] Production.INFO: ==1069== Releasing lock... [2025-08-19 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 16:25:35] Production.INFO: 68.5 MB #Memory Used# [2025-08-19 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 14:25:05 [end_date_ymd] => 2025-08-19 17:25:05 [RateCDR] => 1 ) [2025-08-19 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 14:25:05' and `end` < '2025-08-19 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 17:25:19] Production.INFO: count ==4976 [2025-08-19 17:25:21] Production.ERROR: pbx CDR StartTime 2025-08-19 14:25:05 - End Time 2025-08-19 17:25:05 [2025-08-19 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15685477', 'tblTempUsageDetail_20' ) start [2025-08-19 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15685477', 'tblTempUsageDetail_20' ) end [2025-08-19 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15685477', 'tblTempVendorCDR_20' ) start [2025-08-19 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15685477', 'tblTempVendorCDR_20' ) end [2025-08-19 17:25:21] Production.INFO: ProcessCDR(1,15685477,1,1,2) [2025-08-19 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15685477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15685477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15685477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15685477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15685477', 'tblTempUsageDetail_20' ) start [2025-08-19 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15685477', 'tblTempUsageDetail_20' ) end [2025-08-19 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-19 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-19 17:25:32] Production.INFO: ==5801== Releasing lock... [2025-08-19 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 17:25:32] Production.INFO: 65.5 MB #Memory Used# [2025-08-19 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 15:25:05 [end_date_ymd] => 2025-08-19 18:25:05 [RateCDR] => 1 ) [2025-08-19 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 15:25:05' and `end` < '2025-08-19 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 18:25:18] Production.INFO: count ==4078 [2025-08-19 18:25:20] Production.ERROR: pbx CDR StartTime 2025-08-19 15:25:05 - End Time 2025-08-19 18:25:05 [2025-08-19 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15685724', 'tblTempUsageDetail_20' ) start [2025-08-19 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15685724', 'tblTempUsageDetail_20' ) end [2025-08-19 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15685724', 'tblTempVendorCDR_20' ) start [2025-08-19 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15685724', 'tblTempVendorCDR_20' ) end [2025-08-19 18:25:20] Production.INFO: ProcessCDR(1,15685724,1,1,2) [2025-08-19 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15685724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15685724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15685724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15685724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15685724', 'tblTempUsageDetail_20' ) start [2025-08-19 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15685724', 'tblTempUsageDetail_20' ) end [2025-08-19 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-19 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-08-19 18:25:30] Production.INFO: ==10209== Releasing lock... [2025-08-19 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 18:25:30] Production.INFO: 58.75 MB #Memory Used# [2025-08-19 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 16:25:05 [end_date_ymd] => 2025-08-19 19:25:05 [RateCDR] => 1 ) [2025-08-19 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 16:25:05' and `end` < '2025-08-19 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 19:25:18] Production.INFO: count ==3197 [2025-08-19 19:25:20] Production.ERROR: pbx CDR StartTime 2025-08-19 16:25:05 - End Time 2025-08-19 19:25:05 [2025-08-19 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15685968', 'tblTempUsageDetail_20' ) start [2025-08-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15685968', 'tblTempUsageDetail_20' ) end [2025-08-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15685968', 'tblTempVendorCDR_20' ) start [2025-08-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15685968', 'tblTempVendorCDR_20' ) end [2025-08-19 19:25:20] Production.INFO: ProcessCDR(1,15685968,1,1,2) [2025-08-19 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15685968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15685968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15685968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15685968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15685968', 'tblTempUsageDetail_20' ) start [2025-08-19 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15685968', 'tblTempUsageDetail_20' ) end [2025-08-19 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-19 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-08-19 19:25:29] Production.INFO: ==14846== Releasing lock... [2025-08-19 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 19:25:29] Production.INFO: 52 MB #Memory Used# [2025-08-19 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 17:25:05 [end_date_ymd] => 2025-08-19 20:25:05 [RateCDR] => 1 ) [2025-08-19 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 17:25:05' and `end` < '2025-08-19 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 20:25:17] Production.INFO: count ==2361 [2025-08-19 20:25:18] Production.ERROR: pbx CDR StartTime 2025-08-19 17:25:05 - End Time 2025-08-19 20:25:05 [2025-08-19 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15686215', 'tblTempUsageDetail_20' ) start [2025-08-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15686215', 'tblTempUsageDetail_20' ) end [2025-08-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15686215', 'tblTempVendorCDR_20' ) start [2025-08-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15686215', 'tblTempVendorCDR_20' ) end [2025-08-19 20:25:18] Production.INFO: ProcessCDR(1,15686215,1,1,2) [2025-08-19 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15686215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15686215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15686215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15686215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15686215', 'tblTempUsageDetail_20' ) start [2025-08-19 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15686215', 'tblTempUsageDetail_20' ) end [2025-08-19 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-19 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-19 20:25:27] Production.INFO: ==19235== Releasing lock... [2025-08-19 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 20:25:27] Production.INFO: 46 MB #Memory Used# [2025-08-19 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 18:25:06 [end_date_ymd] => 2025-08-19 21:25:06 [RateCDR] => 1 ) [2025-08-19 21: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-19 18:25:06' and `end` < '2025-08-19 21: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-19 21:25:18] Production.INFO: count ==2292 [2025-08-19 21:25:19] Production.ERROR: pbx CDR StartTime 2025-08-19 18:25:06 - End Time 2025-08-19 21:25:06 [2025-08-19 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15686462', 'tblTempUsageDetail_20' ) start [2025-08-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15686462', 'tblTempUsageDetail_20' ) end [2025-08-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15686462', 'tblTempVendorCDR_20' ) start [2025-08-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15686462', 'tblTempVendorCDR_20' ) end [2025-08-19 21:25:19] Production.INFO: ProcessCDR(1,15686462,1,1,2) [2025-08-19 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15686462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15686462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15686462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 21:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15686462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15686462', 'tblTempUsageDetail_20' ) start [2025-08-19 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15686462', 'tblTempUsageDetail_20' ) end [2025-08-19 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-19 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-19 21:25:28] Production.INFO: ==23761== Releasing lock... [2025-08-19 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 21:25:28] Production.INFO: 45.25 MB #Memory Used# [2025-08-19 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 19:25:05 [end_date_ymd] => 2025-08-19 22:25:05 [RateCDR] => 1 ) [2025-08-19 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 19:25:05' and `end` < '2025-08-19 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 22:25:17] Production.INFO: count ==1785 [2025-08-19 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-19 19:25:05 - End Time 2025-08-19 22:25:05 [2025-08-19 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15686709', 'tblTempUsageDetail_20' ) start [2025-08-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15686709', 'tblTempUsageDetail_20' ) end [2025-08-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15686709', 'tblTempVendorCDR_20' ) start [2025-08-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15686709', 'tblTempVendorCDR_20' ) end [2025-08-19 22:25:18] Production.INFO: ProcessCDR(1,15686709,1,1,2) [2025-08-19 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15686709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15686709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15686709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15686709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15686709', 'tblTempUsageDetail_20' ) start [2025-08-19 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15686709', 'tblTempUsageDetail_20' ) end [2025-08-19 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-19 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-19 22:25:27] Production.INFO: ==28226== Releasing lock... [2025-08-19 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 22:25:27] Production.INFO: 41.5 MB #Memory Used# [2025-08-19 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 20:25:05 [end_date_ymd] => 2025-08-19 23:25:05 [RateCDR] => 1 ) [2025-08-19 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-19 20:25:05' and `end` < '2025-08-19 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-19 23:25:18] Production.INFO: count ==1517 [2025-08-19 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-19 20:25:05 - End Time 2025-08-19 23:25:05 [2025-08-19 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15686956', 'tblTempUsageDetail_20' ) start [2025-08-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15686956', 'tblTempUsageDetail_20' ) end [2025-08-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15686956', 'tblTempVendorCDR_20' ) start [2025-08-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15686956', 'tblTempVendorCDR_20' ) end [2025-08-19 23:25:18] Production.INFO: ProcessCDR(1,15686956,1,1,2) [2025-08-19 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15686956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15686956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-19 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15686956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15686956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-19 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15686956', 'tblTempUsageDetail_20' ) start [2025-08-19 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15686956', 'tblTempUsageDetail_20' ) end [2025-08-19 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-19 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-19 23:25:26] Production.INFO: ==430== Releasing lock... [2025-08-19 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-19 23:25:26] Production.INFO: 39.5 MB #Memory Used#