[2025-08-01 00:25:04] Production.INFO: next invoice date [2025-08-01 00:25:04] Production.INFO: 2025-09-01 [2025-08-01 00:25:04] Production.INFO: getdaysdiff [2025-08-01 00:25:04] Production.INFO: +31 [2025-08-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (105,11,1,31,31,'RMScheduler',2025-08-01 00:25:04,1,0,,,0) [2025-08-01 00:25:05] Production.INFO: next invoice date [2025-08-01 00:25:05] Production.INFO: 2025-09-01 [2025-08-01 00:25:05] Production.INFO: getdaysdiff [2025-08-01 00:25:05] Production.INFO: +31 [2025-08-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (3,9,2,31,31,'RMScheduler',2025-08-01 00:25:04,1,0,,,0) [2025-08-01 00:25:05] Production.INFO: next invoice date [2025-08-01 00:25:05] Production.INFO: 2025-09-01 [2025-08-01 00:25:05] Production.INFO: getdaysdiff [2025-08-01 00:25:05] Production.INFO: +31 [2025-08-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (113,11,1,31,31,'RMScheduler',2025-08-01 00:25:04,1,0,,,0) [2025-08-01 00:25:05] Production.INFO: next invoice date [2025-08-01 00:25:05] Production.INFO: 2025-09-01 [2025-08-01 00:25:05] Production.INFO: getdaysdiff [2025-08-01 00:25:05] Production.INFO: +31 [2025-08-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (114,11,1,31,31,'RMScheduler',2025-08-01 00:25:04,1,0,,,0) [2025-08-01 00:25:05] Production.INFO: next invoice date [2025-08-01 00:25:05] Production.INFO: 2025-09-01 [2025-08-01 00:25:05] Production.INFO: getdaysdiff [2025-08-01 00:25:05] Production.INFO: +31 [2025-08-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (3,16,1,31,31,'RMScheduler',2025-08-01 00:25:04,1,0,,,0) [2025-08-01 00:25:05] Production.INFO: next invoice date [2025-08-01 00:25:05] Production.INFO: 2025-09-01 [2025-08-01 00:25:05] Production.INFO: getdaysdiff [2025-08-01 00:25:05] Production.INFO: +31 [2025-08-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (66,11,1,31,31,'RMScheduler',2025-08-01 00:25:04,1,0,,,0) [2025-08-01 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 21:25:06 [end_date_ymd] => 2025-08-01 00:25:06 [RateCDR] => 1 ) [2025-08-01 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-07-31 21:25:06' and `end` < '2025-08-01 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-01 00:25:18] Production.INFO: count ==939 [2025-08-01 00:25:19] Production.ERROR: pbx CDR StartTime 2025-07-31 21:25:06 - End Time 2025-08-01 00:25:06 [2025-08-01 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15574588', 'tblTempUsageDetail_20' ) start [2025-08-01 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15574588', 'tblTempUsageDetail_20' ) end [2025-08-01 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15574588', 'tblTempVendorCDR_20' ) start [2025-08-01 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15574588', 'tblTempVendorCDR_20' ) end [2025-08-01 00:25:19] Production.INFO: ProcessCDR(1,15574588,1,1,2) [2025-08-01 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15574588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15574588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15574588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15574588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15574588', 'tblTempUsageDetail_20' ) start [2025-08-01 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15574588', 'tblTempUsageDetail_20' ) end [2025-08-01 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-01 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-01 00:25:27] Production.INFO: ==16311== Releasing lock... [2025-08-01 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 00:25:27] Production.INFO: 40 MB #Memory Used# [2025-08-01 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 22:25:05 [end_date_ymd] => 2025-08-01 01:25:05 [RateCDR] => 1 ) [2025-08-01 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-07-31 22:25:05' and `end` < '2025-08-01 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-01 01:25:17] Production.INFO: count ==685 [2025-08-01 01:25:17] Production.ERROR: pbx CDR StartTime 2025-07-31 22:25:05 - End Time 2025-08-01 01:25:05 [2025-08-01 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15574835', 'tblTempUsageDetail_20' ) start [2025-08-01 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15574835', 'tblTempUsageDetail_20' ) end [2025-08-01 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15574835', 'tblTempVendorCDR_20' ) start [2025-08-01 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15574835', 'tblTempVendorCDR_20' ) end [2025-08-01 01:25:17] Production.INFO: ProcessCDR(1,15574835,1,1,2) [2025-08-01 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15574835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15574835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15574835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15574835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15574835', 'tblTempUsageDetail_20' ) start [2025-08-01 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15574835', 'tblTempUsageDetail_20' ) end [2025-08-01 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-01 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-01 01:25:24] Production.INFO: ==21342== Releasing lock... [2025-08-01 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 01:25:24] Production.INFO: 34.25 MB #Memory Used# [2025-08-01 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 23:25:05 [end_date_ymd] => 2025-08-01 02:25:05 [RateCDR] => 1 ) [2025-08-01 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-07-31 23:25:05' and `end` < '2025-08-01 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-01 02:25:17] Production.INFO: count ==580 [2025-08-01 02:25:17] Production.ERROR: pbx CDR StartTime 2025-07-31 23:25:05 - End Time 2025-08-01 02:25:05 [2025-08-01 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15575082', 'tblTempUsageDetail_20' ) start [2025-08-01 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15575082', 'tblTempUsageDetail_20' ) end [2025-08-01 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15575082', 'tblTempVendorCDR_20' ) start [2025-08-01 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15575082', 'tblTempVendorCDR_20' ) end [2025-08-01 02:25:17] Production.INFO: ProcessCDR(1,15575082,1,1,2) [2025-08-01 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15575082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15575082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15575082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15575082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15575082', 'tblTempUsageDetail_20' ) start [2025-08-01 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15575082', 'tblTempUsageDetail_20' ) end [2025-08-01 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-01 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-01 02:25:24] Production.INFO: ==26009== Releasing lock... [2025-08-01 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 02:25:24] Production.INFO: 33 MB #Memory Used# [2025-08-01 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 00:25:05 [end_date_ymd] => 2025-08-01 03:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 00:25:05' and `end` < '2025-08-01 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-01 03:25:17] Production.INFO: count ==396 [2025-08-01 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-01 00:25:05 - End Time 2025-08-01 03:25:05 [2025-08-01 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15575329', 'tblTempUsageDetail_20' ) start [2025-08-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15575329', 'tblTempUsageDetail_20' ) end [2025-08-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15575329', 'tblTempVendorCDR_20' ) start [2025-08-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15575329', 'tblTempVendorCDR_20' ) end [2025-08-01 03:25:18] Production.INFO: ProcessCDR(1,15575329,1,1,2) [2025-08-01 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15575329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15575329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15575329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15575329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15575329', 'tblTempUsageDetail_20' ) start [2025-08-01 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15575329', 'tblTempUsageDetail_20' ) end [2025-08-01 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-01 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-01 03:25:25] Production.INFO: ==30831== Releasing lock... [2025-08-01 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 03:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-08-01 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 01:25:05 [end_date_ymd] => 2025-08-01 04:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 01:25:05' and `end` < '2025-08-01 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-01 04:25:18] Production.INFO: count ==234 [2025-08-01 04:25:18] Production.ERROR: pbx CDR StartTime 2025-08-01 01:25:05 - End Time 2025-08-01 04:25:05 [2025-08-01 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15575577', 'tblTempUsageDetail_20' ) start [2025-08-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15575577', 'tblTempUsageDetail_20' ) end [2025-08-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15575577', 'tblTempVendorCDR_20' ) start [2025-08-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15575577', 'tblTempVendorCDR_20' ) end [2025-08-01 04:25:18] Production.INFO: ProcessCDR(1,15575577,1,1,2) [2025-08-01 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15575577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15575577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15575577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15575577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15575577', 'tblTempUsageDetail_20' ) start [2025-08-01 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15575577', 'tblTempUsageDetail_20' ) end [2025-08-01 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-01 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-01 04:25:24] Production.INFO: ==2917== Releasing lock... [2025-08-01 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 04:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-08-01 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 02:25:05 [end_date_ymd] => 2025-08-01 05:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 02:25:05' and `end` < '2025-08-01 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-01 05:25:18] Production.INFO: count ==171 [2025-08-01 05:25:18] Production.ERROR: pbx CDR StartTime 2025-08-01 02:25:05 - End Time 2025-08-01 05:25:05 [2025-08-01 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15575825', 'tblTempUsageDetail_20' ) start [2025-08-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15575825', 'tblTempUsageDetail_20' ) end [2025-08-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15575825', 'tblTempVendorCDR_20' ) start [2025-08-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15575825', 'tblTempVendorCDR_20' ) end [2025-08-01 05:25:18] Production.INFO: ProcessCDR(1,15575825,1,1,2) [2025-08-01 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15575825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15575825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15575825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15575825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15575825', 'tblTempUsageDetail_20' ) start [2025-08-01 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15575825', 'tblTempUsageDetail_20' ) end [2025-08-01 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-01 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-01 05:25:25] Production.INFO: ==7690== Releasing lock... [2025-08-01 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 05:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-08-01 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 03:25:06 [end_date_ymd] => 2025-08-01 06:25:06 [RateCDR] => 1 ) [2025-08-01 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-08-01 03:25:06' and `end` < '2025-08-01 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-08-01 06:25:18] Production.INFO: count ==122 [2025-08-01 06:25:18] Production.ERROR: pbx CDR StartTime 2025-08-01 03:25:06 - End Time 2025-08-01 06:25:06 [2025-08-01 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15576072', 'tblTempUsageDetail_20' ) start [2025-08-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15576072', 'tblTempUsageDetail_20' ) end [2025-08-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15576072', 'tblTempVendorCDR_20' ) start [2025-08-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15576072', 'tblTempVendorCDR_20' ) end [2025-08-01 06:25:18] Production.INFO: ProcessCDR(1,15576072,1,1,2) [2025-08-01 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15576072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15576072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15576072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15576072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15576072', 'tblTempUsageDetail_20' ) start [2025-08-01 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15576072', 'tblTempUsageDetail_20' ) end [2025-08-01 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-01 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-01 06:25:25] Production.INFO: ==12072== Releasing lock... [2025-08-01 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 06:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-08-01 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 04:25:05 [end_date_ymd] => 2025-08-01 07:25:05 [RateCDR] => 1 ) [2025-08-01 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-01 04:25:05' and `end` < '2025-08-01 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-01 07:25:17] Production.INFO: count ==111 [2025-08-01 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-01 04:25:05 - End Time 2025-08-01 07:25:05 [2025-08-01 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15576319', 'tblTempUsageDetail_20' ) start [2025-08-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15576319', 'tblTempUsageDetail_20' ) end [2025-08-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15576319', 'tblTempVendorCDR_20' ) start [2025-08-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15576319', 'tblTempVendorCDR_20' ) end [2025-08-01 07:25:17] Production.INFO: ProcessCDR(1,15576319,1,1,2) [2025-08-01 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15576319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15576319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15576319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15576319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15576319', 'tblTempUsageDetail_20' ) start [2025-08-01 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15576319', 'tblTempUsageDetail_20' ) end [2025-08-01 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-01 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-01 07:25:24] Production.INFO: ==16990== Releasing lock... [2025-08-01 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 07:25:24] Production.INFO: 28.75 MB #Memory Used# [2025-08-01 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 05:25:05 [end_date_ymd] => 2025-08-01 08:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 05:25:05' and `end` < '2025-08-01 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-01 08:25:17] Production.INFO: count ==370 [2025-08-01 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-01 05:25:05 - End Time 2025-08-01 08:25:05 [2025-08-01 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15576566', 'tblTempUsageDetail_20' ) start [2025-08-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15576566', 'tblTempUsageDetail_20' ) end [2025-08-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15576566', 'tblTempVendorCDR_20' ) start [2025-08-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15576566', 'tblTempVendorCDR_20' ) end [2025-08-01 08:25:17] Production.INFO: ProcessCDR(1,15576566,1,1,2) [2025-08-01 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15576566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15576566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15576566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15576566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15576566', 'tblTempUsageDetail_20' ) start [2025-08-01 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15576566', 'tblTempUsageDetail_20' ) end [2025-08-01 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-01 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-01 08:25:24] Production.INFO: ==21490== Releasing lock... [2025-08-01 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 08:25:24] Production.INFO: 31 MB #Memory Used# [2025-08-01 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 06:25:05 [end_date_ymd] => 2025-08-01 09:25:05 [RateCDR] => 1 ) [2025-08-01 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-01 06:25:05' and `end` < '2025-08-01 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-01 09:25:18] Production.INFO: count ==1160 [2025-08-01 09:25:18] Production.ERROR: pbx CDR StartTime 2025-08-01 06:25:05 - End Time 2025-08-01 09:25:05 [2025-08-01 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15576813', 'tblTempUsageDetail_20' ) start [2025-08-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15576813', 'tblTempUsageDetail_20' ) end [2025-08-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15576813', 'tblTempVendorCDR_20' ) start [2025-08-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15576813', 'tblTempVendorCDR_20' ) end [2025-08-01 09:25:18] Production.INFO: ProcessCDR(1,15576813,1,1,2) [2025-08-01 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15576813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15576813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15576813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15576813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15576813', 'tblTempUsageDetail_20' ) start [2025-08-01 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15576813', 'tblTempUsageDetail_20' ) end [2025-08-01 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-01 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-01 09:25:27] Production.INFO: ==26005== Releasing lock... [2025-08-01 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 09:25:27] Production.INFO: 37.75 MB #Memory Used# [2025-08-01 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 07:25:05 [end_date_ymd] => 2025-08-01 10:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 07:25:05' and `end` < '2025-08-01 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-01 10:25:21] Production.INFO: count ==2555 [2025-08-01 10:25:22] Production.ERROR: pbx CDR StartTime 2025-08-01 07:25:05 - End Time 2025-08-01 10:25:05 [2025-08-01 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15577060', 'tblTempUsageDetail_20' ) start [2025-08-01 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15577060', 'tblTempUsageDetail_20' ) end [2025-08-01 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15577060', 'tblTempVendorCDR_20' ) start [2025-08-01 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15577060', 'tblTempVendorCDR_20' ) end [2025-08-01 10:25:22] Production.INFO: ProcessCDR(1,15577060,1,1,2) [2025-08-01 10:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15577060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15577060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15577060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15577060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15577060', 'tblTempUsageDetail_20' ) start [2025-08-01 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15577060', 'tblTempUsageDetail_20' ) end [2025-08-01 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-01 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-01 10:25:32] Production.INFO: ==30336== Releasing lock... [2025-08-01 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 10:25:32] Production.INFO: 48 MB #Memory Used# [2025-08-01 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 08:25:06 [end_date_ymd] => 2025-08-01 11:25:06 [RateCDR] => 1 ) [2025-08-01 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-01 08:25:06' and `end` < '2025-08-01 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-01 11:25:20] Production.INFO: count ==3857 [2025-08-01 11:25:22] Production.ERROR: pbx CDR StartTime 2025-08-01 08:25:06 - End Time 2025-08-01 11:25:06 [2025-08-01 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15577307', 'tblTempUsageDetail_20' ) start [2025-08-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15577307', 'tblTempUsageDetail_20' ) end [2025-08-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15577307', 'tblTempVendorCDR_20' ) start [2025-08-01 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15577307', 'tblTempVendorCDR_20' ) end [2025-08-01 11:25:22] Production.INFO: ProcessCDR(1,15577307,1,1,2) [2025-08-01 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15577307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15577307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15577307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15577307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15577307', 'tblTempUsageDetail_20' ) start [2025-08-01 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15577307', 'tblTempUsageDetail_20' ) end [2025-08-01 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-01 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-01 11:25:33] Production.INFO: ==2433== Releasing lock... [2025-08-01 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 11:25:33] Production.INFO: 57 MB #Memory Used# [2025-08-01 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 09:25:06 [end_date_ymd] => 2025-08-01 12:25:06 [RateCDR] => 1 ) [2025-08-01 12: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-01 09:25:06' and `end` < '2025-08-01 12: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-01 12:25:19] Production.INFO: count ==4664 [2025-08-01 12:25:21] Production.ERROR: pbx CDR StartTime 2025-08-01 09:25:06 - End Time 2025-08-01 12:25:06 [2025-08-01 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15577554', 'tblTempUsageDetail_20' ) start [2025-08-01 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15577554', 'tblTempUsageDetail_20' ) end [2025-08-01 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15577554', 'tblTempVendorCDR_20' ) start [2025-08-01 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15577554', 'tblTempVendorCDR_20' ) end [2025-08-01 12:25:22] Production.INFO: ProcessCDR(1,15577554,1,1,2) [2025-08-01 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15577554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15577554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15577554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15577554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15577554', 'tblTempUsageDetail_20' ) start [2025-08-01 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15577554', 'tblTempUsageDetail_20' ) end [2025-08-01 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-01 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-01 12:25:33] Production.INFO: ==6872== Releasing lock... [2025-08-01 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 12:25:33] Production.INFO: 63 MB #Memory Used# [2025-08-01 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 10:25:06 [end_date_ymd] => 2025-08-01 13:25:06 [RateCDR] => 1 ) [2025-08-01 13: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-01 10:25:06' and `end` < '2025-08-01 13: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-01 13:25:20] Production.INFO: count ==4996 [2025-08-01 13:25:22] Production.ERROR: pbx CDR StartTime 2025-08-01 10:25:06 - End Time 2025-08-01 13:25:06 [2025-08-01 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15577801', 'tblTempUsageDetail_20' ) start [2025-08-01 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15577801', 'tblTempUsageDetail_20' ) end [2025-08-01 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15577801', 'tblTempVendorCDR_20' ) start [2025-08-01 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15577801', 'tblTempVendorCDR_20' ) end [2025-08-01 13:25:23] Production.INFO: ProcessCDR(1,15577801,1,1,2) [2025-08-01 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15577801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15577801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15577801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15577801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15577801', 'tblTempUsageDetail_20' ) start [2025-08-01 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15577801', 'tblTempUsageDetail_20' ) end [2025-08-01 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-01 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-01 13:25:34] Production.INFO: ==11201== Releasing lock... [2025-08-01 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 13:25:34] Production.INFO: 65.5 MB #Memory Used# [2025-08-01 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 11:25:05 [end_date_ymd] => 2025-08-01 14:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 11:25:05' and `end` < '2025-08-01 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-01 14:25:18] Production.INFO: count ==5144 [2025-08-01 14:25:21] Production.ERROR: pbx CDR StartTime 2025-08-01 11:25:05 - End Time 2025-08-01 14:25:05 [2025-08-01 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15578048', 'tblTempUsageDetail_20' ) start [2025-08-01 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15578048', 'tblTempUsageDetail_20' ) end [2025-08-01 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15578048', 'tblTempVendorCDR_20' ) start [2025-08-01 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15578048', 'tblTempVendorCDR_20' ) end [2025-08-01 14:25:21] Production.INFO: ProcessCDR(1,15578048,1,1,2) [2025-08-01 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15578048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15578048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15578048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15578048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15578048', 'tblTempUsageDetail_20' ) start [2025-08-01 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15578048', 'tblTempUsageDetail_20' ) end [2025-08-01 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-01 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-01 14:25:32] Production.INFO: ==16098== Releasing lock... [2025-08-01 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 14:25:32] Production.INFO: 66.75 MB #Memory Used# [2025-08-01 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 12:25:05 [end_date_ymd] => 2025-08-01 15:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 12:25:05' and `end` < '2025-08-01 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-01 15:25:19] Production.INFO: count ==5361 [2025-08-01 15:25:22] Production.ERROR: pbx CDR StartTime 2025-08-01 12:25:05 - End Time 2025-08-01 15:25:05 [2025-08-01 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15578295', 'tblTempUsageDetail_20' ) start [2025-08-01 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15578295', 'tblTempUsageDetail_20' ) end [2025-08-01 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15578295', 'tblTempVendorCDR_20' ) start [2025-08-01 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15578295', 'tblTempVendorCDR_20' ) end [2025-08-01 15:25:22] Production.INFO: ProcessCDR(1,15578295,1,1,2) [2025-08-01 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15578295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15578295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15578295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15578295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15578295', 'tblTempUsageDetail_20' ) start [2025-08-01 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15578295', 'tblTempUsageDetail_20' ) end [2025-08-01 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-01 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-01 15:25:34] Production.INFO: ==20433== Releasing lock... [2025-08-01 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 15:25:34] Production.INFO: 68.25 MB #Memory Used# [2025-08-01 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 13:25:05 [end_date_ymd] => 2025-08-01 16:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 13:25:05' and `end` < '2025-08-01 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-01 16:25:21] Production.INFO: count ==5301 [2025-08-01 16:25:23] Production.ERROR: pbx CDR StartTime 2025-08-01 13:25:05 - End Time 2025-08-01 16:25:05 [2025-08-01 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15578542', 'tblTempUsageDetail_20' ) start [2025-08-01 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15578542', 'tblTempUsageDetail_20' ) end [2025-08-01 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15578542', 'tblTempVendorCDR_20' ) start [2025-08-01 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15578542', 'tblTempVendorCDR_20' ) end [2025-08-01 16:25:23] Production.INFO: ProcessCDR(1,15578542,1,1,2) [2025-08-01 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15578542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15578542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15578542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15578542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15578542', 'tblTempUsageDetail_20' ) start [2025-08-01 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15578542', 'tblTempUsageDetail_20' ) end [2025-08-01 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-01 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-01 16:25:35] Production.INFO: ==25256== Releasing lock... [2025-08-01 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 16:25:35] Production.INFO: 68 MB #Memory Used# [2025-08-01 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 14:25:05 [end_date_ymd] => 2025-08-01 17:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 14:25:05' and `end` < '2025-08-01 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-01 17:25:19] Production.INFO: count ==5306 [2025-08-01 17:25:21] Production.ERROR: pbx CDR StartTime 2025-08-01 14:25:05 - End Time 2025-08-01 17:25:05 [2025-08-01 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15578789', 'tblTempUsageDetail_20' ) start [2025-08-01 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15578789', 'tblTempUsageDetail_20' ) end [2025-08-01 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15578789', 'tblTempVendorCDR_20' ) start [2025-08-01 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15578789', 'tblTempVendorCDR_20' ) end [2025-08-01 17:25:21] Production.INFO: ProcessCDR(1,15578789,1,1,2) [2025-08-01 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15578789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15578789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15578789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15578789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15578789', 'tblTempUsageDetail_20' ) start [2025-08-01 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15578789', 'tblTempUsageDetail_20' ) end [2025-08-01 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-01 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-01 17:25:32] Production.INFO: ==29623== Releasing lock... [2025-08-01 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 17:25:32] Production.INFO: 68 MB #Memory Used# [2025-08-01 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 15:25:05 [end_date_ymd] => 2025-08-01 18:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 15:25:05' and `end` < '2025-08-01 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-01 18:25:18] Production.INFO: count ==4590 [2025-08-01 18:25:27] Production.ERROR: pbx CDR StartTime 2025-08-01 15:25:05 - End Time 2025-08-01 18:25:05 [2025-08-01 18:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 18:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15579036', 'tblTempUsageDetail_20' ) start [2025-08-01 18:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15579036', 'tblTempUsageDetail_20' ) end [2025-08-01 18:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15579036', 'tblTempVendorCDR_20' ) start [2025-08-01 18:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15579036', 'tblTempVendorCDR_20' ) end [2025-08-01 18:25:32] Production.INFO: ProcessCDR(1,15579036,1,1,2) [2025-08-01 18:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15579036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 18:25:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15579036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 18:25:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15579036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 18:27:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15579036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 18:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15579036', 'tblTempUsageDetail_20' ) start [2025-08-01 18:27:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15579036', 'tblTempUsageDetail_20' ) end [2025-08-01 18:27:45] Production.ERROR: pbx prc_insertCDR start [2025-08-01 18:27:49] Production.ERROR: pbx prc_insertCDR end [2025-08-01 18:27:54] Production.INFO: ==1979== Releasing lock... [2025-08-01 18:27:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 18:27:54] Production.INFO: 62.5 MB #Memory Used# [2025-08-01 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 16:25:05 [end_date_ymd] => 2025-08-01 19:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 16:25:05' and `end` < '2025-08-01 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-01 19:25:23] Production.INFO: count ==3687 [2025-08-01 19:25:25] Production.ERROR: pbx CDR StartTime 2025-08-01 16:25:05 - End Time 2025-08-01 19:25:05 [2025-08-01 19:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 19:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15579280', 'tblTempUsageDetail_20' ) start [2025-08-01 19:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15579280', 'tblTempUsageDetail_20' ) end [2025-08-01 19:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15579280', 'tblTempVendorCDR_20' ) start [2025-08-01 19:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15579280', 'tblTempVendorCDR_20' ) end [2025-08-01 19:25:25] Production.INFO: ProcessCDR(1,15579280,1,1,2) [2025-08-01 19:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15579280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 19:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15579280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 19:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15579280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 19:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15579280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 19:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15579280', 'tblTempUsageDetail_20' ) start [2025-08-01 19:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15579280', 'tblTempUsageDetail_20' ) end [2025-08-01 19:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-01 19:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-01 19:25:34] Production.INFO: ==6226== Releasing lock... [2025-08-01 19:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 19:25:34] Production.INFO: 55.75 MB #Memory Used# [2025-08-01 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 17:25:06 [end_date_ymd] => 2025-08-01 20:25:06 [RateCDR] => 1 ) [2025-08-01 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-01 17:25:06' and `end` < '2025-08-01 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-01 20:25:19] Production.INFO: count ==3267 [2025-08-01 20:25:20] Production.ERROR: pbx CDR StartTime 2025-08-01 17:25:06 - End Time 2025-08-01 20:25:06 [2025-08-01 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15579527', 'tblTempUsageDetail_20' ) start [2025-08-01 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15579527', 'tblTempUsageDetail_20' ) end [2025-08-01 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15579527', 'tblTempVendorCDR_20' ) start [2025-08-01 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15579527', 'tblTempVendorCDR_20' ) end [2025-08-01 20:25:20] Production.INFO: ProcessCDR(1,15579527,1,1,2) [2025-08-01 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15579527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 20:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15579527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 20:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15579527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15579527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15579527', 'tblTempUsageDetail_20' ) start [2025-08-01 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15579527', 'tblTempUsageDetail_20' ) end [2025-08-01 20:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-01 20:25:30] Production.ERROR: pbx prc_insertCDR end [2025-08-01 20:25:30] Production.INFO: ==10761== Releasing lock... [2025-08-01 20:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 20:25:30] Production.INFO: 52.5 MB #Memory Used# [2025-08-01 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 18:25:06 [end_date_ymd] => 2025-08-01 21:25:06 [RateCDR] => 1 ) [2025-08-01 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-01 18:25:06' and `end` < '2025-08-01 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-01 21:25:18] Production.INFO: count ==2897 [2025-08-01 21:25:19] Production.ERROR: pbx CDR StartTime 2025-08-01 18:25:06 - End Time 2025-08-01 21:25:06 [2025-08-01 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15579774', 'tblTempUsageDetail_20' ) start [2025-08-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15579774', 'tblTempUsageDetail_20' ) end [2025-08-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15579774', 'tblTempVendorCDR_20' ) start [2025-08-01 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15579774', 'tblTempVendorCDR_20' ) end [2025-08-01 21:25:19] Production.INFO: ProcessCDR(1,15579774,1,1,2) [2025-08-01 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15579774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15579774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15579774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15579774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15579774', 'tblTempUsageDetail_20' ) start [2025-08-01 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15579774', 'tblTempUsageDetail_20' ) end [2025-08-01 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-01 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-01 21:25:27] Production.INFO: ==15094== Releasing lock... [2025-08-01 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 21:25:27] Production.INFO: 50 MB #Memory Used# [2025-08-01 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 19:25:05 [end_date_ymd] => 2025-08-01 22:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 19:25:05' and `end` < '2025-08-01 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-01 22:25:18] Production.INFO: count ==2436 [2025-08-01 22:25:19] Production.ERROR: pbx CDR StartTime 2025-08-01 19:25:05 - End Time 2025-08-01 22:25:05 [2025-08-01 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15580021', 'tblTempUsageDetail_20' ) start [2025-08-01 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15580021', 'tblTempUsageDetail_20' ) end [2025-08-01 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15580021', 'tblTempVendorCDR_20' ) start [2025-08-01 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15580021', 'tblTempVendorCDR_20' ) end [2025-08-01 22:25:19] Production.INFO: ProcessCDR(1,15580021,1,1,2) [2025-08-01 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15580021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 22:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15580021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 22:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15580021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15580021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15580021', 'tblTempUsageDetail_20' ) start [2025-08-01 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15580021', 'tblTempUsageDetail_20' ) end [2025-08-01 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-01 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-01 22:25:27] Production.INFO: ==19628== Releasing lock... [2025-08-01 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 22:25:27] Production.INFO: 46.75 MB #Memory Used# [2025-08-01 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 20:25:05 [end_date_ymd] => 2025-08-01 23:25:05 [RateCDR] => 1 ) [2025-08-01 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-01 20:25:05' and `end` < '2025-08-01 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-01 23:25:18] Production.INFO: count ==1456 [2025-08-01 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-01 20:25:05 - End Time 2025-08-01 23:25:05 [2025-08-01 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15580268', 'tblTempUsageDetail_20' ) start [2025-08-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15580268', 'tblTempUsageDetail_20' ) end [2025-08-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15580268', 'tblTempVendorCDR_20' ) start [2025-08-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15580268', 'tblTempVendorCDR_20' ) end [2025-08-01 23:25:18] Production.INFO: ProcessCDR(1,15580268,1,1,2) [2025-08-01 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15580268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15580268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-01 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15580268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15580268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-01 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15580268', 'tblTempUsageDetail_20' ) start [2025-08-01 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15580268', 'tblTempUsageDetail_20' ) end [2025-08-01 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-01 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-01 23:25:26] Production.INFO: ==24145== Releasing lock... [2025-08-01 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-01 23:25:26] Production.INFO: 39.25 MB #Memory Used#