[2025-07-25 00:25:04] Production.INFO: next invoice date [2025-07-25 00:25:04] Production.INFO: 2025-08-25 [2025-07-25 00:25:04] Production.INFO: getdaysdiff [2025-07-25 00:25:04] Production.INFO: +31 [2025-07-25 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (111,11,1,31,31,'RMScheduler',2025-07-25 00:25:04,1,0,,,0) [2025-07-25 00:25:04] Production.INFO: next invoice date [2025-07-25 00:25:04] Production.INFO: 2025-08-25 [2025-07-25 00:25:04] Production.INFO: getdaysdiff [2025-07-25 00:25:04] Production.INFO: +31 [2025-07-25 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (110,11,1,31,31,'RMScheduler',2025-07-25 00:25:04,1,0,,,0) [2025-07-25 00:25:04] Production.INFO: next invoice date [2025-07-25 00:25:04] Production.INFO: 2025-08-08 [2025-07-25 00:25:04] Production.INFO: getdaysdiff [2025-07-25 00:25:04] Production.INFO: +14 [2025-07-25 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,31,14,'RMScheduler',2025-07-25 00:25:04,1,0,,,0) [2025-07-25 00:25:04] Production.INFO: next invoice date [2025-07-25 00:25:04] Production.INFO: 2025-08-08 [2025-07-25 00:25:04] Production.INFO: getdaysdiff [2025-07-25 00:25:04] Production.INFO: +14 [2025-07-25 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,31,14,'RMScheduler',2025-07-25 00:25:04,1,0,,,0) [2025-07-25 00:25:04] Production.INFO: next invoice date [2025-07-25 00:25:04] Production.INFO: 2025-08-08 [2025-07-25 00:25:04] Production.INFO: getdaysdiff [2025-07-25 00:25:04] Production.INFO: +14 [2025-07-25 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,31,14,'RMScheduler',2025-07-25 00:25:04,0,0,,,0) [2025-07-25 00:25:04] Production.INFO: next invoice date [2025-07-25 00:25:04] Production.INFO: 2025-08-08 [2025-07-25 00:25:04] Production.INFO: getdaysdiff [2025-07-25 00:25:04] Production.INFO: +14 [2025-07-25 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,31,14,'RMScheduler',2025-07-25 00:25:04,0,0,,,0) [2025-07-25 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-24 21:25:05 [end_date_ymd] => 2025-07-25 00:25:05 [RateCDR] => 1 ) [2025-07-25 00: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-24 21:25:05' and `end` < '2025-07-25 00: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-07-25 00:25:18] Production.INFO: count ==1147 [2025-07-25 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-24 21:25:05 - End Time 2025-07-25 00:25:05 [2025-07-25 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15533097', 'tblTempUsageDetail_20' ) start [2025-07-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15533097', 'tblTempUsageDetail_20' ) end [2025-07-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15533097', 'tblTempVendorCDR_20' ) start [2025-07-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15533097', 'tblTempVendorCDR_20' ) end [2025-07-25 00:25:18] Production.INFO: ProcessCDR(1,15533097,1,1,2) [2025-07-25 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15533097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15533097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15533097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15533097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15533097', 'tblTempUsageDetail_20' ) start [2025-07-25 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15533097', 'tblTempUsageDetail_20' ) end [2025-07-25 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-25 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-25 00:25:27] Production.INFO: ==2674== Releasing lock... [2025-07-25 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 00:25:27] Production.INFO: 39 MB #Memory Used# [2025-07-25 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-24 22:25:05 [end_date_ymd] => 2025-07-25 01:25:05 [RateCDR] => 1 ) [2025-07-25 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-24 22:25:05' and `end` < '2025-07-25 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-07-25 01:25:17] Production.INFO: count ==715 [2025-07-25 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-24 22:25:05 - End Time 2025-07-25 01:25:05 [2025-07-25 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15533344', 'tblTempUsageDetail_20' ) start [2025-07-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15533344', 'tblTempUsageDetail_20' ) end [2025-07-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15533344', 'tblTempVendorCDR_20' ) start [2025-07-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15533344', 'tblTempVendorCDR_20' ) end [2025-07-25 01:25:18] Production.INFO: ProcessCDR(1,15533344,1,1,2) [2025-07-25 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15533344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15533344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15533344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15533344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15533344', 'tblTempUsageDetail_20' ) start [2025-07-25 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15533344', 'tblTempUsageDetail_20' ) end [2025-07-25 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-25 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-25 01:25:25] Production.INFO: ==7135== Releasing lock... [2025-07-25 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 01:25:25] Production.INFO: 34 MB #Memory Used# [2025-07-25 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-24 23:25:05 [end_date_ymd] => 2025-07-25 02:25:05 [RateCDR] => 1 ) [2025-07-25 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-24 23:25:05' and `end` < '2025-07-25 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-07-25 02:25:18] Production.INFO: count ==391 [2025-07-25 02:25:18] Production.ERROR: pbx CDR StartTime 2025-07-24 23:25:05 - End Time 2025-07-25 02:25:05 [2025-07-25 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15533591', 'tblTempUsageDetail_20' ) start [2025-07-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15533591', 'tblTempUsageDetail_20' ) end [2025-07-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15533591', 'tblTempVendorCDR_20' ) start [2025-07-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15533591', 'tblTempVendorCDR_20' ) end [2025-07-25 02:25:18] Production.INFO: ProcessCDR(1,15533591,1,1,2) [2025-07-25 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15533591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15533591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15533591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15533591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15533591', 'tblTempUsageDetail_20' ) start [2025-07-25 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15533591', 'tblTempUsageDetail_20' ) end [2025-07-25 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-25 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-25 02:25:25] Production.INFO: ==11800== Releasing lock... [2025-07-25 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 02:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-07-25 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 00:25:05 [end_date_ymd] => 2025-07-25 03:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 00:25:05' and `end` < '2025-07-25 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-07-25 03:25:17] Production.INFO: count ==1276 [2025-07-25 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-25 00:25:05 - End Time 2025-07-25 03:25:05 [2025-07-25 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15533838', 'tblTempUsageDetail_20' ) start [2025-07-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15533838', 'tblTempUsageDetail_20' ) end [2025-07-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15533838', 'tblTempVendorCDR_20' ) start [2025-07-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15533838', 'tblTempVendorCDR_20' ) end [2025-07-25 03:25:17] Production.INFO: ProcessCDR(1,15533838,1,1,2) [2025-07-25 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15533838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15533838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15533838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15533838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15533838', 'tblTempUsageDetail_20' ) start [2025-07-25 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15533838', 'tblTempUsageDetail_20' ) end [2025-07-25 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-25 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-25 03:25:25] Production.INFO: ==19514== Releasing lock... [2025-07-25 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 03:25:25] Production.INFO: 37.75 MB #Memory Used# [2025-07-25 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 01:25:05 [end_date_ymd] => 2025-07-25 04:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 01:25:05' and `end` < '2025-07-25 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-07-25 04:25:17] Production.INFO: count ==1181 [2025-07-25 04:25:18] Production.ERROR: pbx CDR StartTime 2025-07-25 01:25:05 - End Time 2025-07-25 04:25:05 [2025-07-25 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15534086', 'tblTempUsageDetail_20' ) start [2025-07-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15534086', 'tblTempUsageDetail_20' ) end [2025-07-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15534086', 'tblTempVendorCDR_20' ) start [2025-07-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15534086', 'tblTempVendorCDR_20' ) end [2025-07-25 04:25:18] Production.INFO: ProcessCDR(1,15534086,1,1,2) [2025-07-25 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15534086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15534086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15534086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15534086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15534086', 'tblTempUsageDetail_20' ) start [2025-07-25 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15534086', 'tblTempUsageDetail_20' ) end [2025-07-25 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-07-25 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-07-25 04:25:22] Production.INFO: ==26971== Releasing lock... [2025-07-25 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 04:25:22] Production.INFO: 37 MB #Memory Used# [2025-07-25 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 02:25:05 [end_date_ymd] => 2025-07-25 05:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 02:25:05' and `end` < '2025-07-25 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-07-25 05:25:18] Production.INFO: count ==1114 [2025-07-25 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-25 02:25:05 - End Time 2025-07-25 05:25:05 [2025-07-25 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15534334', 'tblTempUsageDetail_20' ) start [2025-07-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15534334', 'tblTempUsageDetail_20' ) end [2025-07-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15534334', 'tblTempVendorCDR_20' ) start [2025-07-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15534334', 'tblTempVendorCDR_20' ) end [2025-07-25 05:25:18] Production.INFO: ProcessCDR(1,15534334,1,1,2) [2025-07-25 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15534334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15534334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15534334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15534334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15534334', 'tblTempUsageDetail_20' ) start [2025-07-25 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15534334', 'tblTempUsageDetail_20' ) end [2025-07-25 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-25 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-25 05:25:23] Production.INFO: ==2095== Releasing lock... [2025-07-25 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 05:25:23] Production.INFO: 37.25 MB #Memory Used# [2025-07-25 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 03:25:05 [end_date_ymd] => 2025-07-25 06:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 03:25:05' and `end` < '2025-07-25 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-07-25 06:25:17] Production.INFO: count ==116 [2025-07-25 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-25 03:25:05 - End Time 2025-07-25 06:25:05 [2025-07-25 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15534581', 'tblTempUsageDetail_20' ) start [2025-07-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15534581', 'tblTempUsageDetail_20' ) end [2025-07-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15534581', 'tblTempVendorCDR_20' ) start [2025-07-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15534581', 'tblTempVendorCDR_20' ) end [2025-07-25 06:25:17] Production.INFO: ProcessCDR(1,15534581,1,1,2) [2025-07-25 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15534581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15534581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15534581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15534581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15534581', 'tblTempUsageDetail_20' ) start [2025-07-25 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15534581', 'tblTempUsageDetail_20' ) end [2025-07-25 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-25 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-25 06:25:23] Production.INFO: ==9647== Releasing lock... [2025-07-25 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 06:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-07-25 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 04:25:06 [end_date_ymd] => 2025-07-25 07:25:06 [RateCDR] => 1 ) [2025-07-25 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-25 04:25:06' and `end` < '2025-07-25 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-25 07:25:18] Production.INFO: count ==140 [2025-07-25 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-25 04:25:06 - End Time 2025-07-25 07:25:06 [2025-07-25 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15534828', 'tblTempUsageDetail_20' ) start [2025-07-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15534828', 'tblTempUsageDetail_20' ) end [2025-07-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15534828', 'tblTempVendorCDR_20' ) start [2025-07-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15534828', 'tblTempVendorCDR_20' ) end [2025-07-25 07:25:18] Production.INFO: ProcessCDR(1,15534828,1,1,2) [2025-07-25 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15534828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15534828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15534828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15534828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15534828', 'tblTempUsageDetail_20' ) start [2025-07-25 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15534828', 'tblTempUsageDetail_20' ) end [2025-07-25 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-25 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-25 07:25:25] Production.INFO: ==17084== Releasing lock... [2025-07-25 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 07:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-07-25 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 05:25:05 [end_date_ymd] => 2025-07-25 08:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 05:25:05' and `end` < '2025-07-25 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-07-25 08:25:17] Production.INFO: count ==288 [2025-07-25 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-25 05:25:05 - End Time 2025-07-25 08:25:05 [2025-07-25 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15535075', 'tblTempUsageDetail_20' ) start [2025-07-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15535075', 'tblTempUsageDetail_20' ) end [2025-07-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15535075', 'tblTempVendorCDR_20' ) start [2025-07-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15535075', 'tblTempVendorCDR_20' ) end [2025-07-25 08:25:17] Production.INFO: ProcessCDR(1,15535075,1,1,2) [2025-07-25 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15535075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15535075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15535075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15535075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15535075', 'tblTempUsageDetail_20' ) start [2025-07-25 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15535075', 'tblTempUsageDetail_20' ) end [2025-07-25 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-25 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-25 08:25:24] Production.INFO: ==24722== Releasing lock... [2025-07-25 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 08:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-07-25 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 06:25:06 [end_date_ymd] => 2025-07-25 09:25:06 [RateCDR] => 1 ) [2025-07-25 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-25 06:25:06' and `end` < '2025-07-25 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-25 09:25:19] Production.INFO: count ==1204 [2025-07-25 09:25:20] Production.ERROR: pbx CDR StartTime 2025-07-25 06:25:06 - End Time 2025-07-25 09:25:06 [2025-07-25 09:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15535322', 'tblTempUsageDetail_20' ) start [2025-07-25 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15535322', 'tblTempUsageDetail_20' ) end [2025-07-25 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15535322', 'tblTempVendorCDR_20' ) start [2025-07-25 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15535322', 'tblTempVendorCDR_20' ) end [2025-07-25 09:25:20] Production.INFO: ProcessCDR(1,15535322,1,1,2) [2025-07-25 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15535322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15535322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15535322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15535322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15535322', 'tblTempUsageDetail_20' ) start [2025-07-25 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15535322', 'tblTempUsageDetail_20' ) end [2025-07-25 09:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-25 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-25 09:25:28] Production.INFO: ==32188== Releasing lock... [2025-07-25 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 09:25:28] Production.INFO: 37.75 MB #Memory Used# [2025-07-25 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 07:25:05 [end_date_ymd] => 2025-07-25 10:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 07:25:05' and `end` < '2025-07-25 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-07-25 10:25:18] Production.INFO: count ==2632 [2025-07-25 10:25:19] Production.ERROR: pbx CDR StartTime 2025-07-25 07:25:05 - End Time 2025-07-25 10:25:05 [2025-07-25 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15535569', 'tblTempUsageDetail_20' ) start [2025-07-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15535569', 'tblTempUsageDetail_20' ) end [2025-07-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15535569', 'tblTempVendorCDR_20' ) start [2025-07-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15535569', 'tblTempVendorCDR_20' ) end [2025-07-25 10:25:20] Production.INFO: ProcessCDR(1,15535569,1,1,2) [2025-07-25 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15535569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15535569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15535569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15535569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15535569', 'tblTempUsageDetail_20' ) start [2025-07-25 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15535569', 'tblTempUsageDetail_20' ) end [2025-07-25 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-25 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-25 10:25:29] Production.INFO: ==5021== Releasing lock... [2025-07-25 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 10:25:29] Production.INFO: 49 MB #Memory Used# [2025-07-25 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 08:25:05 [end_date_ymd] => 2025-07-25 11:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 08:25:05' and `end` < '2025-07-25 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-07-25 11:25:19] Production.INFO: count ==4118 [2025-07-25 11:25:21] Production.ERROR: pbx CDR StartTime 2025-07-25 08:25:05 - End Time 2025-07-25 11:25:05 [2025-07-25 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15535816', 'tblTempUsageDetail_20' ) start [2025-07-25 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15535816', 'tblTempUsageDetail_20' ) end [2025-07-25 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15535816', 'tblTempVendorCDR_20' ) start [2025-07-25 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15535816', 'tblTempVendorCDR_20' ) end [2025-07-25 11:25:21] Production.INFO: ProcessCDR(1,15535816,1,1,2) [2025-07-25 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15535816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15535816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15535816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15535816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15535816', 'tblTempUsageDetail_20' ) start [2025-07-25 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15535816', 'tblTempUsageDetail_20' ) end [2025-07-25 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-25 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-25 11:25:32] Production.INFO: ==10004== Releasing lock... [2025-07-25 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 11:25:32] Production.INFO: 59.25 MB #Memory Used# [2025-07-25 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 09:25:05 [end_date_ymd] => 2025-07-25 12:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 09:25:05' and `end` < '2025-07-25 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-07-25 12:25:18] Production.INFO: count ==4720 [2025-07-25 12:25:21] Production.ERROR: pbx CDR StartTime 2025-07-25 09:25:05 - End Time 2025-07-25 12:25:05 [2025-07-25 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15536063', 'tblTempUsageDetail_20' ) start [2025-07-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15536063', 'tblTempUsageDetail_20' ) end [2025-07-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15536063', 'tblTempVendorCDR_20' ) start [2025-07-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15536063', 'tblTempVendorCDR_20' ) end [2025-07-25 12:25:21] Production.INFO: ProcessCDR(1,15536063,1,1,2) [2025-07-25 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15536063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15536063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15536063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 12:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15536063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15536063', 'tblTempUsageDetail_20' ) start [2025-07-25 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15536063', 'tblTempUsageDetail_20' ) end [2025-07-25 12:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-25 12:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-25 12:25:31] Production.INFO: ==14917== Releasing lock... [2025-07-25 12:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 12:25:31] Production.INFO: 63.5 MB #Memory Used# [2025-07-25 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 10:25:06 [end_date_ymd] => 2025-07-25 13:25:06 [RateCDR] => 1 ) [2025-07-25 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-07-25 10:25:06' and `end` < '2025-07-25 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-07-25 13:25:19] Production.INFO: count ==4746 [2025-07-25 13:25:22] Production.ERROR: pbx CDR StartTime 2025-07-25 10:25:06 - End Time 2025-07-25 13:25:06 [2025-07-25 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15536310', 'tblTempUsageDetail_20' ) start [2025-07-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15536310', 'tblTempUsageDetail_20' ) end [2025-07-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15536310', 'tblTempVendorCDR_20' ) start [2025-07-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15536310', 'tblTempVendorCDR_20' ) end [2025-07-25 13:25:22] Production.INFO: ProcessCDR(1,15536310,1,1,2) [2025-07-25 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15536310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15536310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15536310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15536310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15536310', 'tblTempUsageDetail_20' ) start [2025-07-25 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15536310', 'tblTempUsageDetail_20' ) end [2025-07-25 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-25 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-25 13:25:32] Production.INFO: ==20012== Releasing lock... [2025-07-25 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 13:25:32] Production.INFO: 63.75 MB #Memory Used# [2025-07-25 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 11:25:05 [end_date_ymd] => 2025-07-25 14:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 11:25:05' and `end` < '2025-07-25 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-07-25 14:25:19] Production.INFO: count ==4720 [2025-07-25 14:25:21] Production.ERROR: pbx CDR StartTime 2025-07-25 11:25:05 - End Time 2025-07-25 14:25:05 [2025-07-25 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15536557', 'tblTempUsageDetail_20' ) start [2025-07-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15536557', 'tblTempUsageDetail_20' ) end [2025-07-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15536557', 'tblTempVendorCDR_20' ) start [2025-07-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15536557', 'tblTempVendorCDR_20' ) end [2025-07-25 14:25:21] Production.INFO: ProcessCDR(1,15536557,1,1,2) [2025-07-25 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15536557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15536557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15536557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15536557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15536557', 'tblTempUsageDetail_20' ) start [2025-07-25 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15536557', 'tblTempUsageDetail_20' ) end [2025-07-25 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-25 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-25 14:25:32] Production.INFO: ==24526== Releasing lock... [2025-07-25 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 14:25:32] Production.INFO: 63.5 MB #Memory Used# [2025-07-25 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 12:25:05 [end_date_ymd] => 2025-07-25 15:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 12:25:05' and `end` < '2025-07-25 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-07-25 15:25:21] Production.INFO: count ==5100 [2025-07-25 15:25:23] Production.ERROR: pbx CDR StartTime 2025-07-25 12:25:05 - End Time 2025-07-25 15:25:05 [2025-07-25 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15536804', 'tblTempUsageDetail_20' ) start [2025-07-25 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15536804', 'tblTempUsageDetail_20' ) end [2025-07-25 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15536804', 'tblTempVendorCDR_20' ) start [2025-07-25 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15536804', 'tblTempVendorCDR_20' ) end [2025-07-25 15:25:24] Production.INFO: ProcessCDR(1,15536804,1,1,2) [2025-07-25 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15536804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15536804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15536804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15536804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15536804', 'tblTempUsageDetail_20' ) start [2025-07-25 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15536804', 'tblTempUsageDetail_20' ) end [2025-07-25 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-25 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-25 15:25:35] Production.INFO: ==29081== Releasing lock... [2025-07-25 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 15:25:35] Production.INFO: 66.75 MB #Memory Used# [2025-07-25 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 13:25:05 [end_date_ymd] => 2025-07-25 16:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 13:25:05' and `end` < '2025-07-25 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-07-25 16:25:19] Production.INFO: count ==5123 [2025-07-25 16:25:21] Production.ERROR: pbx CDR StartTime 2025-07-25 13:25:05 - End Time 2025-07-25 16:25:05 [2025-07-25 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15537051', 'tblTempUsageDetail_20' ) start [2025-07-25 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15537051', 'tblTempUsageDetail_20' ) end [2025-07-25 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15537051', 'tblTempVendorCDR_20' ) start [2025-07-25 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15537051', 'tblTempVendorCDR_20' ) end [2025-07-25 16:25:22] Production.INFO: ProcessCDR(1,15537051,1,1,2) [2025-07-25 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15537051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15537051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15537051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15537051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15537051', 'tblTempUsageDetail_20' ) start [2025-07-25 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15537051', 'tblTempUsageDetail_20' ) end [2025-07-25 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-25 16:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-25 16:25:32] Production.INFO: ==1323== Releasing lock... [2025-07-25 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 16:25:32] Production.INFO: 66.5 MB #Memory Used# [2025-07-25 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 14:25:05 [end_date_ymd] => 2025-07-25 17:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 14:25:05' and `end` < '2025-07-25 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-07-25 17:25:20] Production.INFO: count ==5076 [2025-07-25 17:25:22] Production.ERROR: pbx CDR StartTime 2025-07-25 14:25:05 - End Time 2025-07-25 17:25:05 [2025-07-25 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15537298', 'tblTempUsageDetail_20' ) start [2025-07-25 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15537298', 'tblTempUsageDetail_20' ) end [2025-07-25 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15537298', 'tblTempVendorCDR_20' ) start [2025-07-25 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15537298', 'tblTempVendorCDR_20' ) end [2025-07-25 17:25:23] Production.INFO: ProcessCDR(1,15537298,1,1,2) [2025-07-25 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15537298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15537298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15537298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15537298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15537298', 'tblTempUsageDetail_20' ) start [2025-07-25 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15537298', 'tblTempUsageDetail_20' ) end [2025-07-25 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-25 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-25 17:25:32] Production.INFO: ==5835== Releasing lock... [2025-07-25 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 17:25:32] Production.INFO: 66.25 MB #Memory Used# [2025-07-25 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 15:25:05 [end_date_ymd] => 2025-07-25 18:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 15:25:05' and `end` < '2025-07-25 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-07-25 18:25:19] Production.INFO: count ==4056 [2025-07-25 18:25:20] Production.ERROR: pbx CDR StartTime 2025-07-25 15:25:05 - End Time 2025-07-25 18:25:05 [2025-07-25 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15537545', 'tblTempUsageDetail_20' ) start [2025-07-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15537545', 'tblTempUsageDetail_20' ) end [2025-07-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15537545', 'tblTempVendorCDR_20' ) start [2025-07-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15537545', 'tblTempVendorCDR_20' ) end [2025-07-25 18:25:21] Production.INFO: ProcessCDR(1,15537545,1,1,2) [2025-07-25 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15537545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15537545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15537545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15537545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15537545', 'tblTempUsageDetail_20' ) start [2025-07-25 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15537545', 'tblTempUsageDetail_20' ) end [2025-07-25 18:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-25 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-25 18:25:29] Production.INFO: ==10942== Releasing lock... [2025-07-25 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 18:25:29] Production.INFO: 58.5 MB #Memory Used# [2025-07-25 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 16:25:06 [end_date_ymd] => 2025-07-25 19:25:06 [RateCDR] => 1 ) [2025-07-25 19: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-25 16:25:06' and `end` < '2025-07-25 19: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-07-25 19:25:18] Production.INFO: count ==3343 [2025-07-25 19:25:20] Production.ERROR: pbx CDR StartTime 2025-07-25 16:25:06 - End Time 2025-07-25 19:25:06 [2025-07-25 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15537789', 'tblTempUsageDetail_20' ) start [2025-07-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15537789', 'tblTempUsageDetail_20' ) end [2025-07-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15537789', 'tblTempVendorCDR_20' ) start [2025-07-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15537789', 'tblTempVendorCDR_20' ) end [2025-07-25 19:25:20] Production.INFO: ProcessCDR(1,15537789,1,1,2) [2025-07-25 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15537789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15537789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15537789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15537789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15537789', 'tblTempUsageDetail_20' ) start [2025-07-25 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15537789', 'tblTempUsageDetail_20' ) end [2025-07-25 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-25 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-25 19:25:29] Production.INFO: ==15563== Releasing lock... [2025-07-25 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 19:25:29] Production.INFO: 53.5 MB #Memory Used# [2025-07-25 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 17:25:05 [end_date_ymd] => 2025-07-25 20:25:05 [RateCDR] => 1 ) [2025-07-25 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-25 17:25:05' and `end` < '2025-07-25 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-25 20:25:18] Production.INFO: count ==2363 [2025-07-25 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-25 17:25:05 - End Time 2025-07-25 20:25:05 [2025-07-25 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15538036', 'tblTempUsageDetail_20' ) start [2025-07-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15538036', 'tblTempUsageDetail_20' ) end [2025-07-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15538036', 'tblTempVendorCDR_20' ) start [2025-07-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15538036', 'tblTempVendorCDR_20' ) end [2025-07-25 20:25:19] Production.INFO: ProcessCDR(1,15538036,1,1,2) [2025-07-25 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15538036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15538036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15538036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15538036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15538036', 'tblTempUsageDetail_20' ) start [2025-07-25 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15538036', 'tblTempUsageDetail_20' ) end [2025-07-25 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-25 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-25 20:25:27] Production.INFO: ==20236== Releasing lock... [2025-07-25 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 20:25:27] Production.INFO: 46 MB #Memory Used# [2025-07-25 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 18:25:05 [end_date_ymd] => 2025-07-25 21:25:05 [RateCDR] => 1 ) [2025-07-25 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-25 18:25:05' and `end` < '2025-07-25 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-25 21:25:17] Production.INFO: count ==1965 [2025-07-25 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-25 18:25:05 - End Time 2025-07-25 21:25:05 [2025-07-25 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15538283', 'tblTempUsageDetail_20' ) start [2025-07-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15538283', 'tblTempUsageDetail_20' ) end [2025-07-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15538283', 'tblTempVendorCDR_20' ) start [2025-07-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15538283', 'tblTempVendorCDR_20' ) end [2025-07-25 21:25:18] Production.INFO: ProcessCDR(1,15538283,1,1,2) [2025-07-25 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15538283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15538283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15538283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15538283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15538283', 'tblTempUsageDetail_20' ) start [2025-07-25 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15538283', 'tblTempUsageDetail_20' ) end [2025-07-25 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-25 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-25 21:25:25] Production.INFO: ==24839== Releasing lock... [2025-07-25 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 21:25:25] Production.INFO: 43 MB #Memory Used# [2025-07-25 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 19:25:05 [end_date_ymd] => 2025-07-25 22:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 19:25:05' and `end` < '2025-07-25 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-07-25 22:25:19] Production.INFO: count ==1495 [2025-07-25 22:25:20] Production.ERROR: pbx CDR StartTime 2025-07-25 19:25:05 - End Time 2025-07-25 22:25:05 [2025-07-25 22:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15538530', 'tblTempUsageDetail_20' ) start [2025-07-25 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15538530', 'tblTempUsageDetail_20' ) end [2025-07-25 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15538530', 'tblTempVendorCDR_20' ) start [2025-07-25 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15538530', 'tblTempVendorCDR_20' ) end [2025-07-25 22:25:20] Production.INFO: ProcessCDR(1,15538530,1,1,2) [2025-07-25 22:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15538530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 22:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15538530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 22:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15538530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15538530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15538530', 'tblTempUsageDetail_20' ) start [2025-07-25 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15538530', 'tblTempUsageDetail_20' ) end [2025-07-25 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-25 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-25 22:25:27] Production.INFO: ==29500== Releasing lock... [2025-07-25 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 22:25:27] Production.INFO: 39.5 MB #Memory Used# [2025-07-25 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 20:25:05 [end_date_ymd] => 2025-07-25 23:25:05 [RateCDR] => 1 ) [2025-07-25 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-07-25 20:25:05' and `end` < '2025-07-25 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-07-25 23:25:18] Production.INFO: count ==1181 [2025-07-25 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-25 20:25:05 - End Time 2025-07-25 23:25:05 [2025-07-25 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15538777', 'tblTempUsageDetail_20' ) start [2025-07-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15538777', 'tblTempUsageDetail_20' ) end [2025-07-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15538777', 'tblTempVendorCDR_20' ) start [2025-07-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15538777', 'tblTempVendorCDR_20' ) end [2025-07-25 23:25:18] Production.INFO: ProcessCDR(1,15538777,1,1,2) [2025-07-25 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15538777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15538777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-25 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15538777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15538777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-25 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15538777', 'tblTempUsageDetail_20' ) start [2025-07-25 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15538777', 'tblTempUsageDetail_20' ) end [2025-07-25 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-25 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-25 23:25:25] Production.INFO: ==1686== Releasing lock... [2025-07-25 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-25 23:25:25] Production.INFO: 37.25 MB #Memory Used#