[2025-08-05 00:25:05] Production.INFO: next invoice date [2025-08-05 00:25:05] Production.INFO: 2025-09-05 [2025-08-05 00:25:05] Production.INFO: getdaysdiff [2025-08-05 00:25:05] Production.INFO: +31 [2025-08-05 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (182,11,1,31,31,'RMScheduler',2025-08-05 00:25:05,0,0,,,0) [2025-08-05 00:25:05] Production.INFO: next invoice date [2025-08-05 00:25:05] Production.INFO: 2025-09-05 [2025-08-05 00:25:05] Production.INFO: getdaysdiff [2025-08-05 00:25:05] Production.INFO: +31 [2025-08-05 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (182,13,2,31,31,'RMScheduler',2025-08-05 00:25:05,0,0,,,0) [2025-08-05 00:25:05] Production.INFO: next invoice date [2025-08-05 00:25:05] Production.INFO: 2025-09-05 [2025-08-05 00:25:05] Production.INFO: getdaysdiff [2025-08-05 00:25:05] Production.INFO: +31 [2025-08-05 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (188,16,1,31,31,'RMScheduler',2025-08-05 00:25:05,0,0,,,0) [2025-08-05 00:25:05] Production.INFO: next invoice date [2025-08-05 00:25:05] Production.INFO: 2025-09-05 [2025-08-05 00:25:05] Production.INFO: getdaysdiff [2025-08-05 00:25:05] Production.INFO: +31 [2025-08-05 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (188,13,2,31,31,'RMScheduler',2025-08-05 00:25:05,0,0,,,0) [2025-08-05 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-04 21:25:06 [end_date_ymd] => 2025-08-05 00:25:06 [RateCDR] => 1 ) [2025-08-05 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-04 21:25:06' and `end` < '2025-08-05 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-05 00:25:18] Production.INFO: count ==508 [2025-08-05 00:25:19] Production.ERROR: pbx CDR StartTime 2025-08-04 21:25:06 - End Time 2025-08-05 00:25:06 [2025-08-05 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15598297', 'tblTempUsageDetail_20' ) start [2025-08-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15598297', 'tblTempUsageDetail_20' ) end [2025-08-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15598297', 'tblTempVendorCDR_20' ) start [2025-08-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15598297', 'tblTempVendorCDR_20' ) end [2025-08-05 00:25:19] Production.INFO: ProcessCDR(1,15598297,1,1,2) [2025-08-05 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15598297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15598297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15598297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15598297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15598297', 'tblTempUsageDetail_20' ) start [2025-08-05 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15598297', 'tblTempUsageDetail_20' ) end [2025-08-05 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-05 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-05 00:25:32] Production.INFO: ==15927== Releasing lock... [2025-08-05 00:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 00:25:32] Production.INFO: 35.5 MB #Memory Used# [2025-08-05 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-04 22:25:06 [end_date_ymd] => 2025-08-05 01:25:06 [RateCDR] => 1 ) [2025-08-05 01: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-04 22:25:06' and `end` < '2025-08-05 01: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-05 01:25:18] Production.INFO: count ==473 [2025-08-05 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-04 22:25:06 - End Time 2025-08-05 01:25:06 [2025-08-05 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15598544', 'tblTempUsageDetail_20' ) start [2025-08-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15598544', 'tblTempUsageDetail_20' ) end [2025-08-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15598544', 'tblTempVendorCDR_20' ) start [2025-08-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15598544', 'tblTempVendorCDR_20' ) end [2025-08-05 01:25:18] Production.INFO: ProcessCDR(1,15598544,1,1,2) [2025-08-05 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15598544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15598544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15598544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15598544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15598544', 'tblTempUsageDetail_20' ) start [2025-08-05 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15598544', 'tblTempUsageDetail_20' ) end [2025-08-05 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-05 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-05 01:25:25] Production.INFO: ==22235== Releasing lock... [2025-08-05 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 01:25:25] Production.INFO: 32.75 MB #Memory Used# [2025-08-05 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-04 23:25:05 [end_date_ymd] => 2025-08-05 02:25:05 [RateCDR] => 1 ) [2025-08-05 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-04 23:25:05' and `end` < '2025-08-05 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-05 02:25:18] Production.INFO: count ==506 [2025-08-05 02:25:18] Production.ERROR: pbx CDR StartTime 2025-08-04 23:25:05 - End Time 2025-08-05 02:25:05 [2025-08-05 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15598791', 'tblTempUsageDetail_20' ) start [2025-08-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15598791', 'tblTempUsageDetail_20' ) end [2025-08-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15598791', 'tblTempVendorCDR_20' ) start [2025-08-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15598791', 'tblTempVendorCDR_20' ) end [2025-08-05 02:25:18] Production.INFO: ProcessCDR(1,15598791,1,1,2) [2025-08-05 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15598791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15598791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15598791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15598791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15598791', 'tblTempUsageDetail_20' ) start [2025-08-05 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15598791', 'tblTempUsageDetail_20' ) end [2025-08-05 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-05 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-05 02:25:25] Production.INFO: ==28617== Releasing lock... [2025-08-05 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 02:25:25] Production.INFO: 32.75 MB #Memory Used# [2025-08-05 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 00:25:05 [end_date_ymd] => 2025-08-05 03:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 00:25:05' and `end` < '2025-08-05 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-05 03:25:18] Production.INFO: count ==411 [2025-08-05 03:25:18] Production.ERROR: pbx CDR StartTime 2025-08-05 00:25:05 - End Time 2025-08-05 03:25:05 [2025-08-05 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15599038', 'tblTempUsageDetail_20' ) start [2025-08-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15599038', 'tblTempUsageDetail_20' ) end [2025-08-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15599038', 'tblTempVendorCDR_20' ) start [2025-08-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15599038', 'tblTempVendorCDR_20' ) end [2025-08-05 03:25:18] Production.INFO: ProcessCDR(1,15599038,1,1,2) [2025-08-05 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15599038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15599038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15599038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15599038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15599038', 'tblTempUsageDetail_20' ) start [2025-08-05 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15599038', 'tblTempUsageDetail_20' ) end [2025-08-05 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-05 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-05 03:25:25] Production.INFO: ==1584== Releasing lock... [2025-08-05 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 03:25:25] Production.INFO: 31.75 MB #Memory Used# [2025-08-05 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 01:25:05 [end_date_ymd] => 2025-08-05 04:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 01:25:05' and `end` < '2025-08-05 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-05 04:25:17] Production.INFO: count ==289 [2025-08-05 04:25:17] Production.ERROR: pbx CDR StartTime 2025-08-05 01:25:05 - End Time 2025-08-05 04:25:05 [2025-08-05 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15599286', 'tblTempUsageDetail_20' ) start [2025-08-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15599286', 'tblTempUsageDetail_20' ) end [2025-08-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15599286', 'tblTempVendorCDR_20' ) start [2025-08-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15599286', 'tblTempVendorCDR_20' ) end [2025-08-05 04:25:17] Production.INFO: ProcessCDR(1,15599286,1,1,2) [2025-08-05 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15599286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15599286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15599286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15599286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15599286', 'tblTempUsageDetail_20' ) start [2025-08-05 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15599286', 'tblTempUsageDetail_20' ) end [2025-08-05 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-08-05 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-08-05 04:25:22] Production.INFO: ==5957== Releasing lock... [2025-08-05 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 04:25:22] Production.INFO: 30.5 MB #Memory Used# [2025-08-05 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 02:25:04 [end_date_ymd] => 2025-08-05 05:25:04 [RateCDR] => 1 ) [2025-08-05 05:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-05 02:25:04' and `end` < '2025-08-05 05:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-05 05:25:17] Production.INFO: count ==188 [2025-08-05 05:25:17] Production.ERROR: pbx CDR StartTime 2025-08-05 02:25:04 - End Time 2025-08-05 05:25:04 [2025-08-05 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15599534', 'tblTempUsageDetail_20' ) start [2025-08-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15599534', 'tblTempUsageDetail_20' ) end [2025-08-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15599534', 'tblTempVendorCDR_20' ) start [2025-08-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15599534', 'tblTempVendorCDR_20' ) end [2025-08-05 05:25:17] Production.INFO: ProcessCDR(1,15599534,1,1,2) [2025-08-05 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15599534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15599534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15599534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15599534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15599534', 'tblTempUsageDetail_20' ) start [2025-08-05 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15599534', 'tblTempUsageDetail_20' ) end [2025-08-05 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-08-05 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-08-05 05:25:21] Production.INFO: ==10366== Releasing lock... [2025-08-05 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 05:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-08-05 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 03:25:05 [end_date_ymd] => 2025-08-05 06:25:05 [RateCDR] => 1 ) [2025-08-05 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-05 03:25:05' and `end` < '2025-08-05 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-05 06:25:18] Production.INFO: count ==153 [2025-08-05 06:25:18] Production.ERROR: pbx CDR StartTime 2025-08-05 03:25:05 - End Time 2025-08-05 06:25:05 [2025-08-05 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15599781', 'tblTempUsageDetail_20' ) start [2025-08-05 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15599781', 'tblTempUsageDetail_20' ) end [2025-08-05 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15599781', 'tblTempVendorCDR_20' ) start [2025-08-05 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15599781', 'tblTempVendorCDR_20' ) end [2025-08-05 06:25:18] Production.INFO: ProcessCDR(1,15599781,1,1,2) [2025-08-05 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15599781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15599781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15599781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15599781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15599781', 'tblTempUsageDetail_20' ) start [2025-08-05 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15599781', 'tblTempUsageDetail_20' ) end [2025-08-05 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-05 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-05 06:25:24] Production.INFO: ==14659== Releasing lock... [2025-08-05 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-08-05 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 04:25:05 [end_date_ymd] => 2025-08-05 07:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 04:25:05' and `end` < '2025-08-05 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-05 07:25:17] Production.INFO: count ==195 [2025-08-05 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-05 04:25:05 - End Time 2025-08-05 07:25:05 [2025-08-05 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15600028', 'tblTempUsageDetail_20' ) start [2025-08-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15600028', 'tblTempUsageDetail_20' ) end [2025-08-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15600028', 'tblTempVendorCDR_20' ) start [2025-08-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15600028', 'tblTempVendorCDR_20' ) end [2025-08-05 07:25:17] Production.INFO: ProcessCDR(1,15600028,1,1,2) [2025-08-05 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15600028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15600028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15600028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15600028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15600028', 'tblTempUsageDetail_20' ) start [2025-08-05 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15600028', 'tblTempUsageDetail_20' ) end [2025-08-05 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-05 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-05 07:25:24] Production.INFO: ==19138== Releasing lock... [2025-08-05 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 07:25:24] Production.INFO: 30.25 MB #Memory Used# [2025-08-05 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 05:25:05 [end_date_ymd] => 2025-08-05 08:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 05:25:05' and `end` < '2025-08-05 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-05 08:25:17] Production.INFO: count ==440 [2025-08-05 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-05 05:25:05 - End Time 2025-08-05 08:25:05 [2025-08-05 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15600275', 'tblTempUsageDetail_20' ) start [2025-08-05 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15600275', 'tblTempUsageDetail_20' ) end [2025-08-05 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15600275', 'tblTempVendorCDR_20' ) start [2025-08-05 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15600275', 'tblTempVendorCDR_20' ) end [2025-08-05 08:25:17] Production.INFO: ProcessCDR(1,15600275,1,1,2) [2025-08-05 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15600275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15600275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15600275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15600275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15600275', 'tblTempUsageDetail_20' ) start [2025-08-05 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15600275', 'tblTempUsageDetail_20' ) end [2025-08-05 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-05 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-05 08:25:25] Production.INFO: ==23525== Releasing lock... [2025-08-05 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 08:25:25] Production.INFO: 31.75 MB #Memory Used# [2025-08-05 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 06:25:05 [end_date_ymd] => 2025-08-05 09:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 06:25:05' and `end` < '2025-08-05 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-05 09:25:18] Production.INFO: count ==1815 [2025-08-05 09:25:19] Production.ERROR: pbx CDR StartTime 2025-08-05 06:25:05 - End Time 2025-08-05 09:25:05 [2025-08-05 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15600522', 'tblTempUsageDetail_20' ) start [2025-08-05 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15600522', 'tblTempUsageDetail_20' ) end [2025-08-05 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15600522', 'tblTempVendorCDR_20' ) start [2025-08-05 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15600522', 'tblTempVendorCDR_20' ) end [2025-08-05 09:25:19] Production.INFO: ProcessCDR(1,15600522,1,1,2) [2025-08-05 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15600522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15600522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15600522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15600522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15600522', 'tblTempUsageDetail_20' ) start [2025-08-05 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15600522', 'tblTempUsageDetail_20' ) end [2025-08-05 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-05 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-05 09:25:28] Production.INFO: ==28144== Releasing lock... [2025-08-05 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 09:25:28] Production.INFO: 41.75 MB #Memory Used# [2025-08-05 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 07:25:06 [end_date_ymd] => 2025-08-05 10:25:06 [RateCDR] => 1 ) [2025-08-05 10: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-05 07:25:06' and `end` < '2025-08-05 10: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-05 10:25:22] Production.INFO: count ==3991 [2025-08-05 10:25:24] Production.ERROR: pbx CDR StartTime 2025-08-05 07:25:06 - End Time 2025-08-05 10:25:06 [2025-08-05 10:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15600769', 'tblTempUsageDetail_20' ) start [2025-08-05 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15600769', 'tblTempUsageDetail_20' ) end [2025-08-05 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15600769', 'tblTempVendorCDR_20' ) start [2025-08-05 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15600769', 'tblTempVendorCDR_20' ) end [2025-08-05 10:25:24] Production.INFO: ProcessCDR(1,15600769,1,1,2) [2025-08-05 10:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15600769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15600769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15600769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 10:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15600769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 10:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15600769', 'tblTempUsageDetail_20' ) start [2025-08-05 10:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15600769', 'tblTempUsageDetail_20' ) end [2025-08-05 10:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-05 10:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-05 10:25:35] Production.INFO: ==32415== Releasing lock... [2025-08-05 10:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 10:25:35] Production.INFO: 58 MB #Memory Used# [2025-08-05 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 08:25:05 [end_date_ymd] => 2025-08-05 11:25:05 [RateCDR] => 1 ) [2025-08-05 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-05 08:25:05' and `end` < '2025-08-05 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-05 11:25:19] Production.INFO: count ==5968 [2025-08-05 11:25:21] Production.ERROR: pbx CDR StartTime 2025-08-05 08:25:05 - End Time 2025-08-05 11:25:05 [2025-08-05 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15601016', 'tblTempUsageDetail_20' ) start [2025-08-05 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15601016', 'tblTempUsageDetail_20' ) end [2025-08-05 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15601016', 'tblTempVendorCDR_20' ) start [2025-08-05 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15601016', 'tblTempVendorCDR_20' ) end [2025-08-05 11:25:22] Production.INFO: ProcessCDR(1,15601016,1,1,2) [2025-08-05 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15601016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15601016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15601016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15601016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15601016', 'tblTempUsageDetail_20' ) start [2025-08-05 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15601016', 'tblTempUsageDetail_20' ) end [2025-08-05 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-05 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-05 11:25:34] Production.INFO: ==4625== Releasing lock... [2025-08-05 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 11:25:34] Production.INFO: 73.25 MB #Memory Used# [2025-08-05 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 09:25:05 [end_date_ymd] => 2025-08-05 12:25:05 [RateCDR] => 1 ) [2025-08-05 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-05 09:25:05' and `end` < '2025-08-05 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-05 12:25:28] Production.INFO: count ==6496 [2025-08-05 12:25:31] Production.ERROR: pbx CDR StartTime 2025-08-05 09:25:05 - End Time 2025-08-05 12:25:05 [2025-08-05 12:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15601263', 'tblTempUsageDetail_20' ) start [2025-08-05 12:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15601263', 'tblTempUsageDetail_20' ) end [2025-08-05 12:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15601263', 'tblTempVendorCDR_20' ) start [2025-08-05 12:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15601263', 'tblTempVendorCDR_20' ) end [2025-08-05 12:25:32] Production.INFO: ProcessCDR(1,15601263,1,1,2) [2025-08-05 12:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15601263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 12:25:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15601263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 12:25:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15601263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 12:25:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15601263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 12:25:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15601263', 'tblTempUsageDetail_20' ) start [2025-08-05 12:25:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15601263', 'tblTempUsageDetail_20' ) end [2025-08-05 12:25:41] Production.ERROR: pbx prc_insertCDR start [2025-08-05 12:25:45] Production.ERROR: pbx prc_insertCDR end [2025-08-05 12:25:45] Production.INFO: ==9454== Releasing lock... [2025-08-05 12:25:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 12:25:45] Production.INFO: 77 MB #Memory Used# [2025-08-05 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 10:25:05 [end_date_ymd] => 2025-08-05 13:25:05 [RateCDR] => 1 ) [2025-08-05 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-05 10:25:05' and `end` < '2025-08-05 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-05 13:25:20] Production.INFO: count ==6207 [2025-08-05 13:25:23] Production.ERROR: pbx CDR StartTime 2025-08-05 10:25:05 - End Time 2025-08-05 13:25:05 [2025-08-05 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15601510', 'tblTempUsageDetail_20' ) start [2025-08-05 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15601510', 'tblTempUsageDetail_20' ) end [2025-08-05 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15601510', 'tblTempVendorCDR_20' ) start [2025-08-05 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15601510', 'tblTempVendorCDR_20' ) end [2025-08-05 13:25:24] Production.INFO: ProcessCDR(1,15601510,1,1,2) [2025-08-05 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15601510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15601510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15601510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15601510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15601510', 'tblTempUsageDetail_20' ) start [2025-08-05 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15601510', 'tblTempUsageDetail_20' ) end [2025-08-05 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-05 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-05 13:25:35] Production.INFO: ==14803== Releasing lock... [2025-08-05 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 13:25:35] Production.INFO: 74.75 MB #Memory Used# [2025-08-05 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 11:25:05 [end_date_ymd] => 2025-08-05 14:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 11:25:05' and `end` < '2025-08-05 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-05 14:25:19] Production.INFO: count ==6044 [2025-08-05 14:25:22] Production.ERROR: pbx CDR StartTime 2025-08-05 11:25:05 - End Time 2025-08-05 14:25:05 [2025-08-05 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15601757', 'tblTempUsageDetail_20' ) start [2025-08-05 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15601757', 'tblTempUsageDetail_20' ) end [2025-08-05 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15601757', 'tblTempVendorCDR_20' ) start [2025-08-05 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15601757', 'tblTempVendorCDR_20' ) end [2025-08-05 14:25:23] Production.INFO: ProcessCDR(1,15601757,1,1,2) [2025-08-05 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15601757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15601757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15601757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15601757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15601757', 'tblTempUsageDetail_20' ) start [2025-08-05 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15601757', 'tblTempUsageDetail_20' ) end [2025-08-05 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-05 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-05 14:25:34] Production.INFO: ==19357== Releasing lock... [2025-08-05 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 14:25:34] Production.INFO: 73.5 MB #Memory Used# [2025-08-05 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 12:25:05 [end_date_ymd] => 2025-08-05 15:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 12:25:05' and `end` < '2025-08-05 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-05 15:25:19] Production.INFO: count ==6038 [2025-08-05 15:25:22] Production.ERROR: pbx CDR StartTime 2025-08-05 12:25:05 - End Time 2025-08-05 15:25:05 [2025-08-05 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15602004', 'tblTempUsageDetail_20' ) start [2025-08-05 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15602004', 'tblTempUsageDetail_20' ) end [2025-08-05 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15602004', 'tblTempVendorCDR_20' ) start [2025-08-05 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15602004', 'tblTempVendorCDR_20' ) end [2025-08-05 15:25:23] Production.INFO: ProcessCDR(1,15602004,1,1,2) [2025-08-05 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15602004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15602004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15602004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15602004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15602004', 'tblTempUsageDetail_20' ) start [2025-08-05 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15602004', 'tblTempUsageDetail_20' ) end [2025-08-05 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-05 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-05 15:25:35] Production.INFO: ==24209== Releasing lock... [2025-08-05 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 15:25:35] Production.INFO: 73.5 MB #Memory Used# [2025-08-05 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 13:25:05 [end_date_ymd] => 2025-08-05 16:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 13:25:05' and `end` < '2025-08-05 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-05 16:25:20] Production.INFO: count ==5905 [2025-08-05 16:25:23] Production.ERROR: pbx CDR StartTime 2025-08-05 13:25:05 - End Time 2025-08-05 16:25:05 [2025-08-05 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15602251', 'tblTempUsageDetail_20' ) start [2025-08-05 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15602251', 'tblTempUsageDetail_20' ) end [2025-08-05 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15602251', 'tblTempVendorCDR_20' ) start [2025-08-05 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15602251', 'tblTempVendorCDR_20' ) end [2025-08-05 16:25:24] Production.INFO: ProcessCDR(1,15602251,1,1,2) [2025-08-05 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15602251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15602251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15602251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15602251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15602251', 'tblTempUsageDetail_20' ) start [2025-08-05 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15602251', 'tblTempUsageDetail_20' ) end [2025-08-05 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-05 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-05 16:25:35] Production.INFO: ==28461== Releasing lock... [2025-08-05 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 16:25:35] Production.INFO: 72.5 MB #Memory Used# [2025-08-05 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 14:25:05 [end_date_ymd] => 2025-08-05 17:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 14:25:05' and `end` < '2025-08-05 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-05 17:25:20] Production.INFO: count ==5394 [2025-08-05 17:25:22] Production.ERROR: pbx CDR StartTime 2025-08-05 14:25:05 - End Time 2025-08-05 17:25:05 [2025-08-05 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15602498', 'tblTempUsageDetail_20' ) start [2025-08-05 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15602498', 'tblTempUsageDetail_20' ) end [2025-08-05 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15602498', 'tblTempVendorCDR_20' ) start [2025-08-05 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15602498', 'tblTempVendorCDR_20' ) end [2025-08-05 17:25:23] Production.INFO: ProcessCDR(1,15602498,1,1,2) [2025-08-05 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15602498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 17:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15602498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 17:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15602498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 17:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15602498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15602498', 'tblTempUsageDetail_20' ) start [2025-08-05 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15602498', 'tblTempUsageDetail_20' ) end [2025-08-05 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-05 17:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-05 17:25:35] Production.INFO: ==612== Releasing lock... [2025-08-05 17:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 17:25:35] Production.INFO: 68.5 MB #Memory Used# [2025-08-05 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 15:25:05 [end_date_ymd] => 2025-08-05 18:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 15:25:05' and `end` < '2025-08-05 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-05 18:25:18] Production.INFO: count ==4259 [2025-08-05 18:25:20] Production.ERROR: pbx CDR StartTime 2025-08-05 15:25:05 - End Time 2025-08-05 18:25:05 [2025-08-05 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15602745', 'tblTempUsageDetail_20' ) start [2025-08-05 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15602745', 'tblTempUsageDetail_20' ) end [2025-08-05 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15602745', 'tblTempVendorCDR_20' ) start [2025-08-05 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15602745', 'tblTempVendorCDR_20' ) end [2025-08-05 18:25:21] Production.INFO: ProcessCDR(1,15602745,1,1,2) [2025-08-05 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15602745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15602745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15602745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15602745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15602745', 'tblTempUsageDetail_20' ) start [2025-08-05 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15602745', 'tblTempUsageDetail_20' ) end [2025-08-05 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-05 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-08-05 18:25:30] Production.INFO: ==6731== Releasing lock... [2025-08-05 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 18:25:30] Production.INFO: 60 MB #Memory Used# [2025-08-05 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 16:25:05 [end_date_ymd] => 2025-08-05 19:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 16:25:05' and `end` < '2025-08-05 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-05 19:25:18] Production.INFO: count ==3194 [2025-08-05 19:25:19] Production.ERROR: pbx CDR StartTime 2025-08-05 16:25:05 - End Time 2025-08-05 19:25:05 [2025-08-05 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15602989', 'tblTempUsageDetail_20' ) start [2025-08-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15602989', 'tblTempUsageDetail_20' ) end [2025-08-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15602989', 'tblTempVendorCDR_20' ) start [2025-08-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15602989', 'tblTempVendorCDR_20' ) end [2025-08-05 19:25:19] Production.INFO: ProcessCDR(1,15602989,1,1,2) [2025-08-05 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15602989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15602989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15602989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15602989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15602989', 'tblTempUsageDetail_20' ) start [2025-08-05 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15602989', 'tblTempUsageDetail_20' ) end [2025-08-05 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-05 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-05 19:25:27] Production.INFO: ==13258== Releasing lock... [2025-08-05 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 19:25:27] Production.INFO: 52.5 MB #Memory Used# [2025-08-05 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 17:25:06 [end_date_ymd] => 2025-08-05 20:25:06 [RateCDR] => 1 ) [2025-08-05 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-05 17:25:06' and `end` < '2025-08-05 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-05 20:25:18] Production.INFO: count ==2218 [2025-08-05 20:25:19] Production.ERROR: pbx CDR StartTime 2025-08-05 17:25:06 - End Time 2025-08-05 20:25:06 [2025-08-05 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15603236', 'tblTempUsageDetail_20' ) start [2025-08-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15603236', 'tblTempUsageDetail_20' ) end [2025-08-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15603236', 'tblTempVendorCDR_20' ) start [2025-08-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15603236', 'tblTempVendorCDR_20' ) end [2025-08-05 20:25:19] Production.INFO: ProcessCDR(1,15603236,1,1,2) [2025-08-05 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15603236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15603236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15603236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15603236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15603236', 'tblTempUsageDetail_20' ) start [2025-08-05 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15603236', 'tblTempUsageDetail_20' ) end [2025-08-05 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-05 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-05 20:25:27] Production.INFO: ==19468== Releasing lock... [2025-08-05 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 20:25:27] Production.INFO: 44.5 MB #Memory Used# [2025-08-05 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 18:25:06 [end_date_ymd] => 2025-08-05 21:25:06 [RateCDR] => 1 ) [2025-08-05 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-05 18:25:06' and `end` < '2025-08-05 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-05 21:25:18] Production.INFO: count ==1712 [2025-08-05 21:25:19] Production.ERROR: pbx CDR StartTime 2025-08-05 18:25:06 - End Time 2025-08-05 21:25:06 [2025-08-05 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15603483', 'tblTempUsageDetail_20' ) start [2025-08-05 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15603483', 'tblTempUsageDetail_20' ) end [2025-08-05 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15603483', 'tblTempVendorCDR_20' ) start [2025-08-05 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15603483', 'tblTempVendorCDR_20' ) end [2025-08-05 21:25:19] Production.INFO: ProcessCDR(1,15603483,1,1,2) [2025-08-05 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15603483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15603483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15603483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15603483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15603483', 'tblTempUsageDetail_20' ) start [2025-08-05 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15603483', 'tblTempUsageDetail_20' ) end [2025-08-05 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-05 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-05 21:25:26] Production.INFO: ==25107== Releasing lock... [2025-08-05 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 21:25:26] Production.INFO: 41 MB #Memory Used# [2025-08-05 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 19:25:05 [end_date_ymd] => 2025-08-05 22:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 19:25:05' and `end` < '2025-08-05 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-05 22:25:18] Production.INFO: count ==1182 [2025-08-05 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-05 19:25:05 - End Time 2025-08-05 22:25:05 [2025-08-05 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15603730', 'tblTempUsageDetail_20' ) start [2025-08-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15603730', 'tblTempUsageDetail_20' ) end [2025-08-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15603730', 'tblTempVendorCDR_20' ) start [2025-08-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15603730', 'tblTempVendorCDR_20' ) end [2025-08-05 22:25:18] Production.INFO: ProcessCDR(1,15603730,1,1,2) [2025-08-05 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15603730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15603730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15603730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15603730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15603730', 'tblTempUsageDetail_20' ) start [2025-08-05 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15603730', 'tblTempUsageDetail_20' ) end [2025-08-05 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-05 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-05 22:25:25] Production.INFO: ==30598== Releasing lock... [2025-08-05 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 22:25:25] Production.INFO: 37.25 MB #Memory Used# [2025-08-05 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 20:25:05 [end_date_ymd] => 2025-08-05 23:25:05 [RateCDR] => 1 ) [2025-08-05 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-05 20:25:05' and `end` < '2025-08-05 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-05 23:25:17] Production.INFO: count ==752 [2025-08-05 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-05 20:25:05 - End Time 2025-08-05 23:25:05 [2025-08-05 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15603977', 'tblTempUsageDetail_20' ) start [2025-08-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15603977', 'tblTempUsageDetail_20' ) end [2025-08-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15603977', 'tblTempVendorCDR_20' ) start [2025-08-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15603977', 'tblTempVendorCDR_20' ) end [2025-08-05 23:25:18] Production.INFO: ProcessCDR(1,15603977,1,1,2) [2025-08-05 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15603977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15603977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-05 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15603977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15603977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-05 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15603977', 'tblTempUsageDetail_20' ) start [2025-08-05 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15603977', 'tblTempUsageDetail_20' ) end [2025-08-05 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-05 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-05 23:25:25] Production.INFO: ==3703== Releasing lock... [2025-08-05 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-05 23:25:25] Production.INFO: 33.75 MB #Memory Used#