[2025-06-23 00:25:04] Production.INFO: next invoice date [2025-06-23 00:25:04] Production.INFO: 2025-07-23 [2025-06-23 00:25:04] Production.INFO: getdaysdiff [2025-06-23 00:25:04] Production.INFO: +30 [2025-06-23 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (226,11,1,30,30,'RMScheduler',2025-06-23 00:25:04,1,0,,,0) [2025-06-23 00:25:04] Production.INFO: next invoice date [2025-06-23 00:25:04] Production.INFO: 2025-07-23 [2025-06-23 00:25:04] Production.INFO: getdaysdiff [2025-06-23 00:25:04] Production.INFO: +30 [2025-06-23 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (226,13,2,30,30,'RMScheduler',2025-06-23 00:25:04,1,0,,,0) [2025-06-23 00:25:05] Production.INFO: next invoice date [2025-06-23 00:25:05] Production.INFO: 2025-07-23 [2025-06-23 00:25:05] Production.INFO: getdaysdiff [2025-06-23 00:25:05] Production.INFO: +30 [2025-06-23 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (252,16,1,30,30,'RMScheduler',2025-06-23 00:25:04,1,0,,,0) [2025-06-23 00:25:05] Production.INFO: next invoice date [2025-06-23 00:25:05] Production.INFO: 2025-07-23 [2025-06-23 00:25:05] Production.INFO: getdaysdiff [2025-06-23 00:25:05] Production.INFO: +30 [2025-06-23 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (252,13,2,30,30,'RMScheduler',2025-06-23 00:25:04,1,0,,,0) [2025-06-23 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 21:25:06 [end_date_ymd] => 2025-06-23 00:25:06 [RateCDR] => 1 ) [2025-06-23 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 21:25:06' and `end` < '2025-06-23 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 00:25:18] Production.INFO: count ==925 [2025-06-23 00:25:19] Production.ERROR: pbx CDR StartTime 2025-06-22 21:25:06 - End Time 2025-06-23 00:25:06 [2025-06-23 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15343432', 'tblTempUsageDetail_20' ) start [2025-06-23 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15343432', 'tblTempUsageDetail_20' ) end [2025-06-23 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15343432', 'tblTempVendorCDR_20' ) start [2025-06-23 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15343432', 'tblTempVendorCDR_20' ) end [2025-06-23 00:25:19] Production.INFO: ProcessCDR(1,15343432,1,1,2) [2025-06-23 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15343432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15343432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15343432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15343432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15343432', 'tblTempUsageDetail_20' ) start [2025-06-23 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15343432', 'tblTempUsageDetail_20' ) end [2025-06-23 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-23 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-23 00:25:29] Production.INFO: ==10566== Releasing lock... [2025-06-23 00:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 00:25:29] Production.INFO: 38 MB #Memory Used# [2025-06-23 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 22:25:05 [end_date_ymd] => 2025-06-23 01:25:05 [RateCDR] => 1 ) [2025-06-23 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 22:25:05' and `end` < '2025-06-23 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 01:25:17] Production.INFO: count ==724 [2025-06-23 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-22 22:25:05 - End Time 2025-06-23 01:25:05 [2025-06-23 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15343679', 'tblTempUsageDetail_20' ) start [2025-06-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15343679', 'tblTempUsageDetail_20' ) end [2025-06-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15343679', 'tblTempVendorCDR_20' ) start [2025-06-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15343679', 'tblTempVendorCDR_20' ) end [2025-06-23 01:25:17] Production.INFO: ProcessCDR(1,15343679,1,1,2) [2025-06-23 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15343679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15343679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15343679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15343679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15343679', 'tblTempUsageDetail_20' ) start [2025-06-23 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15343679', 'tblTempUsageDetail_20' ) end [2025-06-23 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-23 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-23 01:25:24] Production.INFO: ==15052== Releasing lock... [2025-06-23 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 01:25:24] Production.INFO: 34.25 MB #Memory Used# [2025-06-23 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 23:25:05 [end_date_ymd] => 2025-06-23 02:25:05 [RateCDR] => 1 ) [2025-06-23 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 23:25:05' and `end` < '2025-06-23 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 02:25:18] Production.INFO: count ==366 [2025-06-23 02:25:18] Production.ERROR: pbx CDR StartTime 2025-06-22 23:25:05 - End Time 2025-06-23 02:25:05 [2025-06-23 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15343926', 'tblTempUsageDetail_20' ) start [2025-06-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15343926', 'tblTempUsageDetail_20' ) end [2025-06-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15343926', 'tblTempVendorCDR_20' ) start [2025-06-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15343926', 'tblTempVendorCDR_20' ) end [2025-06-23 02:25:18] Production.INFO: ProcessCDR(1,15343926,1,1,2) [2025-06-23 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15343926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15343926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15343926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15343926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15343926', 'tblTempUsageDetail_20' ) start [2025-06-23 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15343926', 'tblTempUsageDetail_20' ) end [2025-06-23 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-23 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-23 02:25:24] Production.INFO: ==19611== Releasing lock... [2025-06-23 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 02:25:24] Production.INFO: 31 MB #Memory Used# [2025-06-23 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 00:25:05 [end_date_ymd] => 2025-06-23 03:25:05 [RateCDR] => 1 ) [2025-06-23 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 00:25:05' and `end` < '2025-06-23 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 03:25:17] Production.INFO: count ==277 [2025-06-23 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-23 00:25:05 - End Time 2025-06-23 03:25:05 [2025-06-23 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15344173', 'tblTempUsageDetail_20' ) start [2025-06-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15344173', 'tblTempUsageDetail_20' ) end [2025-06-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15344173', 'tblTempVendorCDR_20' ) start [2025-06-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15344173', 'tblTempVendorCDR_20' ) end [2025-06-23 03:25:17] Production.INFO: ProcessCDR(1,15344173,1,1,2) [2025-06-23 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15344173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15344173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15344173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15344173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15344173', 'tblTempUsageDetail_20' ) start [2025-06-23 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15344173', 'tblTempUsageDetail_20' ) end [2025-06-23 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-23 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-23 03:25:23] Production.INFO: ==23906== Releasing lock... [2025-06-23 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 03:25:23] Production.INFO: 30.5 MB #Memory Used# [2025-06-23 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 01:25:05 [end_date_ymd] => 2025-06-23 04:25:05 [RateCDR] => 1 ) [2025-06-23 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 01:25:05' and `end` < '2025-06-23 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 04:25:17] Production.INFO: count ==164 [2025-06-23 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-23 01:25:05 - End Time 2025-06-23 04:25:05 [2025-06-23 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15344421', 'tblTempUsageDetail_20' ) start [2025-06-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15344421', 'tblTempUsageDetail_20' ) end [2025-06-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15344421', 'tblTempVendorCDR_20' ) start [2025-06-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15344421', 'tblTempVendorCDR_20' ) end [2025-06-23 04:25:17] Production.INFO: ProcessCDR(1,15344421,1,1,2) [2025-06-23 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15344421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15344421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15344421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15344421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15344421', 'tblTempUsageDetail_20' ) start [2025-06-23 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15344421', 'tblTempUsageDetail_20' ) end [2025-06-23 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-06-23 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-06-23 04:25:21] Production.INFO: ==28278== Releasing lock... [2025-06-23 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 04:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-06-23 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 02:25:05 [end_date_ymd] => 2025-06-23 05:25:05 [RateCDR] => 1 ) [2025-06-23 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 02:25:05' and `end` < '2025-06-23 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 05:25:18] Production.INFO: count ==111 [2025-06-23 05:25:18] Production.ERROR: pbx CDR StartTime 2025-06-23 02:25:05 - End Time 2025-06-23 05:25:05 [2025-06-23 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15344669', 'tblTempUsageDetail_20' ) start [2025-06-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15344669', 'tblTempUsageDetail_20' ) end [2025-06-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15344669', 'tblTempVendorCDR_20' ) start [2025-06-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15344669', 'tblTempVendorCDR_20' ) end [2025-06-23 05:25:18] Production.INFO: ProcessCDR(1,15344669,1,1,2) [2025-06-23 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15344669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15344669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15344669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15344669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15344669', 'tblTempUsageDetail_20' ) start [2025-06-23 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15344669', 'tblTempUsageDetail_20' ) end [2025-06-23 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-23 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-23 05:25:24] Production.INFO: ==32701== Releasing lock... [2025-06-23 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 05:25:24] Production.INFO: 28.75 MB #Memory Used# [2025-06-23 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 03:25:06 [end_date_ymd] => 2025-06-23 06:25:06 [RateCDR] => 1 ) [2025-06-23 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-06-23 03:25:06' and `end` < '2025-06-23 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-06-23 06:25:18] Production.INFO: count ==80 [2025-06-23 06:25:18] Production.ERROR: pbx CDR StartTime 2025-06-23 03:25:06 - End Time 2025-06-23 06:25:06 [2025-06-23 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15344916', 'tblTempUsageDetail_20' ) start [2025-06-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15344916', 'tblTempUsageDetail_20' ) end [2025-06-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15344916', 'tblTempVendorCDR_20' ) start [2025-06-23 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15344916', 'tblTempVendorCDR_20' ) end [2025-06-23 06:25:18] Production.INFO: ProcessCDR(1,15344916,1,1,2) [2025-06-23 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15344916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15344916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15344916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15344916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15344916', 'tblTempUsageDetail_20' ) start [2025-06-23 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15344916', 'tblTempUsageDetail_20' ) end [2025-06-23 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-23 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-23 06:25:24] Production.INFO: ==5134== Releasing lock... [2025-06-23 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 06:25:24] Production.INFO: 28.25 MB #Memory Used# [2025-06-23 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 04:25:05 [end_date_ymd] => 2025-06-23 07:25:05 [RateCDR] => 1 ) [2025-06-23 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 04:25:05' and `end` < '2025-06-23 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 07:25:18] Production.INFO: count ==119 [2025-06-23 07:25:18] Production.ERROR: pbx CDR StartTime 2025-06-23 04:25:05 - End Time 2025-06-23 07:25:05 [2025-06-23 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15345163', 'tblTempUsageDetail_20' ) start [2025-06-23 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15345163', 'tblTempUsageDetail_20' ) end [2025-06-23 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15345163', 'tblTempVendorCDR_20' ) start [2025-06-23 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15345163', 'tblTempVendorCDR_20' ) end [2025-06-23 07:25:18] Production.INFO: ProcessCDR(1,15345163,1,1,2) [2025-06-23 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15345163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15345163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15345163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15345163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15345163', 'tblTempUsageDetail_20' ) start [2025-06-23 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15345163', 'tblTempUsageDetail_20' ) end [2025-06-23 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-23 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-23 07:25:24] Production.INFO: ==9483== Releasing lock... [2025-06-23 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 07:25:24] Production.INFO: 28.75 MB #Memory Used# [2025-06-23 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 05:25:05 [end_date_ymd] => 2025-06-23 08:25:05 [RateCDR] => 1 ) [2025-06-23 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 05:25:05' and `end` < '2025-06-23 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 08:25:17] Production.INFO: count ==445 [2025-06-23 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-23 05:25:05 - End Time 2025-06-23 08:25:05 [2025-06-23 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15345410', 'tblTempUsageDetail_20' ) start [2025-06-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15345410', 'tblTempUsageDetail_20' ) end [2025-06-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15345410', 'tblTempVendorCDR_20' ) start [2025-06-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15345410', 'tblTempVendorCDR_20' ) end [2025-06-23 08:25:17] Production.INFO: ProcessCDR(1,15345410,1,1,2) [2025-06-23 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15345410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15345410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15345410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15345410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15345410', 'tblTempUsageDetail_20' ) start [2025-06-23 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15345410', 'tblTempUsageDetail_20' ) end [2025-06-23 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-23 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-23 08:25:24] Production.INFO: ==13924== Releasing lock... [2025-06-23 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 08:25:24] Production.INFO: 32.25 MB #Memory Used# [2025-06-23 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 06:25:05 [end_date_ymd] => 2025-06-23 09:25:05 [RateCDR] => 1 ) [2025-06-23 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 06:25:05' and `end` < '2025-06-23 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 09:25:18] Production.INFO: count ==1493 [2025-06-23 09:25:19] Production.ERROR: pbx CDR StartTime 2025-06-23 06:25:05 - End Time 2025-06-23 09:25:05 [2025-06-23 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15345657', 'tblTempUsageDetail_20' ) start [2025-06-23 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15345657', 'tblTempUsageDetail_20' ) end [2025-06-23 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15345657', 'tblTempVendorCDR_20' ) start [2025-06-23 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15345657', 'tblTempVendorCDR_20' ) end [2025-06-23 09:25:19] Production.INFO: ProcessCDR(1,15345657,1,1,2) [2025-06-23 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15345657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15345657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15345657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15345657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15345657', 'tblTempUsageDetail_20' ) start [2025-06-23 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15345657', 'tblTempUsageDetail_20' ) end [2025-06-23 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-23 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-23 09:25:27] Production.INFO: ==18313== Releasing lock... [2025-06-23 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 09:25:27] Production.INFO: 39.25 MB #Memory Used# [2025-06-23 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 07:25:05 [end_date_ymd] => 2025-06-23 10:25:05 [RateCDR] => 1 ) [2025-06-23 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 07:25:05' and `end` < '2025-06-23 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 10:25:17] Production.INFO: count ==3233 [2025-06-23 10:25:19] Production.ERROR: pbx CDR StartTime 2025-06-23 07:25:05 - End Time 2025-06-23 10:25:05 [2025-06-23 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15345904', 'tblTempUsageDetail_20' ) start [2025-06-23 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15345904', 'tblTempUsageDetail_20' ) end [2025-06-23 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15345904', 'tblTempVendorCDR_20' ) start [2025-06-23 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15345904', 'tblTempVendorCDR_20' ) end [2025-06-23 10:25:19] Production.INFO: ProcessCDR(1,15345904,1,1,2) [2025-06-23 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15345904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15345904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15345904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15345904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15345904', 'tblTempUsageDetail_20' ) start [2025-06-23 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15345904', 'tblTempUsageDetail_20' ) end [2025-06-23 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-23 10:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-23 10:25:28] Production.INFO: ==22598== Releasing lock... [2025-06-23 10:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 10:25:28] Production.INFO: 52.25 MB #Memory Used# [2025-06-23 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 08:25:05 [end_date_ymd] => 2025-06-23 11:25:05 [RateCDR] => 1 ) [2025-06-23 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 08:25:05' and `end` < '2025-06-23 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 11:25:20] Production.INFO: count ==4974 [2025-06-23 11:25:23] Production.ERROR: pbx CDR StartTime 2025-06-23 08:25:05 - End Time 2025-06-23 11:25:05 [2025-06-23 11:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15346151', 'tblTempUsageDetail_20' ) start [2025-06-23 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15346151', 'tblTempUsageDetail_20' ) end [2025-06-23 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15346151', 'tblTempVendorCDR_20' ) start [2025-06-23 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15346151', 'tblTempVendorCDR_20' ) end [2025-06-23 11:25:23] Production.INFO: ProcessCDR(1,15346151,1,1,2) [2025-06-23 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15346151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15346151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15346151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15346151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15346151', 'tblTempUsageDetail_20' ) start [2025-06-23 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15346151', 'tblTempUsageDetail_20' ) end [2025-06-23 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-23 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-06-23 11:25:34] Production.INFO: ==26946== Releasing lock... [2025-06-23 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 11:25:34] Production.INFO: 65.5 MB #Memory Used# [2025-06-23 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 09:25:05 [end_date_ymd] => 2025-06-23 12:25:05 [RateCDR] => 1 ) [2025-06-23 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 09:25:05' and `end` < '2025-06-23 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 12:25:19] Production.INFO: count ==5611 [2025-06-23 12:25:21] Production.ERROR: pbx CDR StartTime 2025-06-23 09:25:05 - End Time 2025-06-23 12:25:05 [2025-06-23 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15346398', 'tblTempUsageDetail_20' ) start [2025-06-23 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15346398', 'tblTempUsageDetail_20' ) end [2025-06-23 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15346398', 'tblTempVendorCDR_20' ) start [2025-06-23 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15346398', 'tblTempVendorCDR_20' ) end [2025-06-23 12:25:22] Production.INFO: ProcessCDR(1,15346398,1,1,2) [2025-06-23 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15346398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15346398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15346398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 12:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15346398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15346398', 'tblTempUsageDetail_20' ) start [2025-06-23 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15346398', 'tblTempUsageDetail_20' ) end [2025-06-23 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-23 12:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-23 12:25:31] Production.INFO: ==32160== Releasing lock... [2025-06-23 12:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 12:25:31] Production.INFO: 70.25 MB #Memory Used# [2025-06-23 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 10:25:04 [end_date_ymd] => 2025-06-23 13:25:04 [RateCDR] => 1 ) [2025-06-23 13: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-06-23 10:25:04' and `end` < '2025-06-23 13: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-06-23 13:25:18] Production.INFO: count ==5740 [2025-06-23 13:25:20] Production.ERROR: pbx CDR StartTime 2025-06-23 10:25:04 - End Time 2025-06-23 13:25:04 [2025-06-23 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15346645', 'tblTempUsageDetail_20' ) start [2025-06-23 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15346645', 'tblTempUsageDetail_20' ) end [2025-06-23 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15346645', 'tblTempVendorCDR_20' ) start [2025-06-23 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15346645', 'tblTempVendorCDR_20' ) end [2025-06-23 13:25:21] Production.INFO: ProcessCDR(1,15346645,1,1,2) [2025-06-23 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15346645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15346645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15346645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 13:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15346645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15346645', 'tblTempUsageDetail_20' ) start [2025-06-23 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15346645', 'tblTempUsageDetail_20' ) end [2025-06-23 13:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-23 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-23 13:25:32] Production.INFO: ==4166== Releasing lock... [2025-06-23 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 13:25:32] Production.INFO: 71.25 MB #Memory Used# [2025-06-23 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 11:25:05 [end_date_ymd] => 2025-06-23 14:25:05 [RateCDR] => 1 ) [2025-06-23 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 11:25:05' and `end` < '2025-06-23 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 14:25:19] Production.INFO: count ==5540 [2025-06-23 14:25:21] Production.ERROR: pbx CDR StartTime 2025-06-23 11:25:05 - End Time 2025-06-23 14:25:05 [2025-06-23 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15346892', 'tblTempUsageDetail_20' ) start [2025-06-23 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15346892', 'tblTempUsageDetail_20' ) end [2025-06-23 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15346892', 'tblTempVendorCDR_20' ) start [2025-06-23 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15346892', 'tblTempVendorCDR_20' ) end [2025-06-23 14:25:22] Production.INFO: ProcessCDR(1,15346892,1,1,2) [2025-06-23 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15346892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15346892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15346892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15346892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15346892', 'tblTempUsageDetail_20' ) start [2025-06-23 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15346892', 'tblTempUsageDetail_20' ) end [2025-06-23 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-23 14:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-23 14:25:33] Production.INFO: ==8475== Releasing lock... [2025-06-23 14:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 14:25:33] Production.INFO: 69.75 MB #Memory Used# [2025-06-23 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 12:25:06 [end_date_ymd] => 2025-06-23 15:25:06 [RateCDR] => 1 ) [2025-06-23 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 12:25:06' and `end` < '2025-06-23 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 15:25:20] Production.INFO: count ==5760 [2025-06-23 15:25:23] Production.ERROR: pbx CDR StartTime 2025-06-23 12:25:06 - End Time 2025-06-23 15:25:06 [2025-06-23 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15347139', 'tblTempUsageDetail_20' ) start [2025-06-23 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15347139', 'tblTempUsageDetail_20' ) end [2025-06-23 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15347139', 'tblTempVendorCDR_20' ) start [2025-06-23 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15347139', 'tblTempVendorCDR_20' ) end [2025-06-23 15:25:24] Production.INFO: ProcessCDR(1,15347139,1,1,2) [2025-06-23 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15347139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15347139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15347139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15347139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15347139', 'tblTempUsageDetail_20' ) start [2025-06-23 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15347139', 'tblTempUsageDetail_20' ) end [2025-06-23 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-06-23 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-06-23 15:25:34] Production.INFO: ==12908== Releasing lock... [2025-06-23 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 15:25:34] Production.INFO: 71.25 MB #Memory Used# [2025-06-23 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 13:25:05 [end_date_ymd] => 2025-06-23 16:25:05 [RateCDR] => 1 ) [2025-06-23 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 13:25:05' and `end` < '2025-06-23 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 16:25:19] Production.INFO: count ==5791 [2025-06-23 16:25:22] Production.ERROR: pbx CDR StartTime 2025-06-23 13:25:05 - End Time 2025-06-23 16:25:05 [2025-06-23 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15347386', 'tblTempUsageDetail_20' ) start [2025-06-23 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15347386', 'tblTempUsageDetail_20' ) end [2025-06-23 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15347386', 'tblTempVendorCDR_20' ) start [2025-06-23 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15347386', 'tblTempVendorCDR_20' ) end [2025-06-23 16:25:22] Production.INFO: ProcessCDR(1,15347386,1,1,2) [2025-06-23 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15347386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15347386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15347386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15347386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15347386', 'tblTempUsageDetail_20' ) start [2025-06-23 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15347386', 'tblTempUsageDetail_20' ) end [2025-06-23 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-23 16:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-23 16:25:32] Production.INFO: ==17348== Releasing lock... [2025-06-23 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 16:25:32] Production.INFO: 71.5 MB #Memory Used# [2025-06-23 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 14:25:06 [end_date_ymd] => 2025-06-23 17:25:06 [RateCDR] => 1 ) [2025-06-23 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 14:25:06' and `end` < '2025-06-23 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 17:25:19] Production.INFO: count ==5409 [2025-06-23 17:25:22] Production.ERROR: pbx CDR StartTime 2025-06-23 14:25:06 - End Time 2025-06-23 17:25:06 [2025-06-23 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15347633', 'tblTempUsageDetail_20' ) start [2025-06-23 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15347633', 'tblTempUsageDetail_20' ) end [2025-06-23 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15347633', 'tblTempVendorCDR_20' ) start [2025-06-23 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15347633', 'tblTempVendorCDR_20' ) end [2025-06-23 17:25:22] Production.INFO: ProcessCDR(1,15347633,1,1,2) [2025-06-23 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15347633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15347633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15347633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15347633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15347633', 'tblTempUsageDetail_20' ) start [2025-06-23 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15347633', 'tblTempUsageDetail_20' ) end [2025-06-23 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-23 17:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-23 17:25:31] Production.INFO: ==21976== Releasing lock... [2025-06-23 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 17:25:31] Production.INFO: 68.75 MB #Memory Used# [2025-06-23 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 15:25:06 [end_date_ymd] => 2025-06-23 18:25:06 [RateCDR] => 1 ) [2025-06-23 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 15:25:06' and `end` < '2025-06-23 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 18:25:19] Production.INFO: count ==4592 [2025-06-23 18:25:21] Production.ERROR: pbx CDR StartTime 2025-06-23 15:25:06 - End Time 2025-06-23 18:25:06 [2025-06-23 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15347880', 'tblTempUsageDetail_20' ) start [2025-06-23 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15347880', 'tblTempUsageDetail_20' ) end [2025-06-23 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15347880', 'tblTempVendorCDR_20' ) start [2025-06-23 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15347880', 'tblTempVendorCDR_20' ) end [2025-06-23 18:25:21] Production.INFO: ProcessCDR(1,15347880,1,1,2) [2025-06-23 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15347880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15347880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15347880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15347880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15347880', 'tblTempUsageDetail_20' ) start [2025-06-23 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15347880', 'tblTempUsageDetail_20' ) end [2025-06-23 18:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-23 18:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-23 18:25:31] Production.INFO: ==26983== Releasing lock... [2025-06-23 18:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 18:25:31] Production.INFO: 62.5 MB #Memory Used# [2025-06-23 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 16:25:05 [end_date_ymd] => 2025-06-23 19:25:05 [RateCDR] => 1 ) [2025-06-23 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 16:25:05' and `end` < '2025-06-23 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 19:25:18] Production.INFO: count ==3624 [2025-06-23 19:25:20] Production.ERROR: pbx CDR StartTime 2025-06-23 16:25:05 - End Time 2025-06-23 19:25:05 [2025-06-23 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15348124', 'tblTempUsageDetail_20' ) start [2025-06-23 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15348124', 'tblTempUsageDetail_20' ) end [2025-06-23 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15348124', 'tblTempVendorCDR_20' ) start [2025-06-23 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15348124', 'tblTempVendorCDR_20' ) end [2025-06-23 19:25:20] Production.INFO: ProcessCDR(1,15348124,1,1,2) [2025-06-23 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15348124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15348124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15348124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15348124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15348124', 'tblTempUsageDetail_20' ) start [2025-06-23 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15348124', 'tblTempUsageDetail_20' ) end [2025-06-23 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-23 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-23 19:25:27] Production.INFO: ==31291== Releasing lock... [2025-06-23 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 19:25:27] Production.INFO: 55.25 MB #Memory Used# [2025-06-23 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 17:25:05 [end_date_ymd] => 2025-06-23 20:25:05 [RateCDR] => 1 ) [2025-06-23 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 17:25:05' and `end` < '2025-06-23 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 20:25:18] Production.INFO: count ==2956 [2025-06-23 20:25:19] Production.ERROR: pbx CDR StartTime 2025-06-23 17:25:05 - End Time 2025-06-23 20:25:05 [2025-06-23 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15348371', 'tblTempUsageDetail_20' ) start [2025-06-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15348371', 'tblTempUsageDetail_20' ) end [2025-06-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15348371', 'tblTempVendorCDR_20' ) start [2025-06-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15348371', 'tblTempVendorCDR_20' ) end [2025-06-23 20:25:19] Production.INFO: ProcessCDR(1,15348371,1,1,2) [2025-06-23 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15348371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15348371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15348371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15348371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15348371', 'tblTempUsageDetail_20' ) start [2025-06-23 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15348371', 'tblTempUsageDetail_20' ) end [2025-06-23 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-23 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-23 20:25:28] Production.INFO: ==4102== Releasing lock... [2025-06-23 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 20:25:28] Production.INFO: 50 MB #Memory Used# [2025-06-23 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 18:25:05 [end_date_ymd] => 2025-06-23 21:25:05 [RateCDR] => 1 ) [2025-06-23 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 18:25:05' and `end` < '2025-06-23 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 21:25:17] Production.INFO: count ==2446 [2025-06-23 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-23 18:25:05 - End Time 2025-06-23 21:25:05 [2025-06-23 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15348618', 'tblTempUsageDetail_20' ) start [2025-06-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15348618', 'tblTempUsageDetail_20' ) end [2025-06-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15348618', 'tblTempVendorCDR_20' ) start [2025-06-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15348618', 'tblTempVendorCDR_20' ) end [2025-06-23 21:25:18] Production.INFO: ProcessCDR(1,15348618,1,1,2) [2025-06-23 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15348618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15348618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15348618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15348618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15348618', 'tblTempUsageDetail_20' ) start [2025-06-23 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15348618', 'tblTempUsageDetail_20' ) end [2025-06-23 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-23 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-23 21:25:25] Production.INFO: ==8471== Releasing lock... [2025-06-23 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 21:25:25] Production.INFO: 46.75 MB #Memory Used# [2025-06-23 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 19:25:04 [end_date_ymd] => 2025-06-23 22:25:04 [RateCDR] => 1 ) [2025-06-23 22: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-06-23 19:25:04' and `end` < '2025-06-23 22: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-06-23 22:25:17] Production.INFO: count ==1583 [2025-06-23 22:25:17] Production.ERROR: pbx CDR StartTime 2025-06-23 19:25:04 - End Time 2025-06-23 22:25:04 [2025-06-23 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15348865', 'tblTempUsageDetail_20' ) start [2025-06-23 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15348865', 'tblTempUsageDetail_20' ) end [2025-06-23 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15348865', 'tblTempVendorCDR_20' ) start [2025-06-23 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15348865', 'tblTempVendorCDR_20' ) end [2025-06-23 22:25:17] Production.INFO: ProcessCDR(1,15348865,1,1,2) [2025-06-23 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15348865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15348865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15348865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15348865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15348865', 'tblTempUsageDetail_20' ) start [2025-06-23 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15348865', 'tblTempUsageDetail_20' ) end [2025-06-23 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-23 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-23 22:25:24] Production.INFO: ==12744== Releasing lock... [2025-06-23 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 22:25:24] Production.INFO: 40 MB #Memory Used# [2025-06-23 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 20:25:05 [end_date_ymd] => 2025-06-23 23:25:05 [RateCDR] => 1 ) [2025-06-23 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 20:25:05' and `end` < '2025-06-23 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-23 23:25:17] Production.INFO: count ==1052 [2025-06-23 23:25:17] Production.ERROR: pbx CDR StartTime 2025-06-23 20:25:05 - End Time 2025-06-23 23:25:05 [2025-06-23 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-23 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15349112', 'tblTempUsageDetail_20' ) start [2025-06-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15349112', 'tblTempUsageDetail_20' ) end [2025-06-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15349112', 'tblTempVendorCDR_20' ) start [2025-06-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15349112', 'tblTempVendorCDR_20' ) end [2025-06-23 23:25:18] Production.INFO: ProcessCDR(1,15349112,1,1,2) [2025-06-23 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15349112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15349112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-23 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15349112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 23:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15349112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-23 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15349112', 'tblTempUsageDetail_20' ) start [2025-06-23 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15349112', 'tblTempUsageDetail_20' ) end [2025-06-23 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-23 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-23 23:25:24] Production.INFO: ==17022== Releasing lock... [2025-06-23 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-23 23:25:24] Production.INFO: 36.25 MB #Memory Used#