[2025-09-14 00:25:04] Production.INFO: next invoice date [2025-09-14 00:25:04] Production.INFO: 2025-10-14 [2025-09-14 00:25:04] Production.INFO: getdaysdiff [2025-09-14 00:25:04] Production.INFO: +30 [2025-09-14 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (43,10,2,30,30,'RMScheduler',2025-09-14 00:25:04,1,0,,,0) [2025-09-14 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 21:25:06 [end_date_ymd] => 2025-09-14 00:25:06 [RateCDR] => 1 ) [2025-09-14 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-09-13 21:25:06' and `end` < '2025-09-14 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-09-14 00:25:18] Production.INFO: count ==736 [2025-09-14 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 21:25:06 - End Time 2025-09-14 00:25:06 [2025-09-14 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15835386', 'tblTempUsageDetail_20' ) start [2025-09-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15835386', 'tblTempUsageDetail_20' ) end [2025-09-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15835386', 'tblTempVendorCDR_20' ) start [2025-09-14 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15835386', 'tblTempVendorCDR_20' ) end [2025-09-14 00:25:18] Production.INFO: ProcessCDR(1,15835386,1,1,2) [2025-09-14 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15835386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15835386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15835386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15835386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15835386', 'tblTempUsageDetail_20' ) start [2025-09-14 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15835386', 'tblTempUsageDetail_20' ) end [2025-09-14 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 00:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-14 00:25:29] Production.INFO: ==11730== Releasing lock... [2025-09-14 00:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 00:25:29] Production.INFO: 37.75 MB #Memory Used# [2025-09-14 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 22:25:05 [end_date_ymd] => 2025-09-14 01:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-13 22:25:05' and `end` < '2025-09-14 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-09-14 01:25:17] Production.INFO: count ==708 [2025-09-14 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-13 22:25:05 - End Time 2025-09-14 01:25:05 [2025-09-14 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15835633', 'tblTempUsageDetail_20' ) start [2025-09-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15835633', 'tblTempUsageDetail_20' ) end [2025-09-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15835633', 'tblTempVendorCDR_20' ) start [2025-09-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15835633', 'tblTempVendorCDR_20' ) end [2025-09-14 01:25:17] Production.INFO: ProcessCDR(1,15835633,1,1,2) [2025-09-14 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15835633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15835633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15835633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15835633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15835633', 'tblTempUsageDetail_20' ) start [2025-09-14 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15835633', 'tblTempUsageDetail_20' ) end [2025-09-14 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-14 01:25:26] Production.INFO: ==17643== Releasing lock... [2025-09-14 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 01:25:26] Production.INFO: 34 MB #Memory Used# [2025-09-14 02:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 23:25:04 [end_date_ymd] => 2025-09-14 02:25:04 [RateCDR] => 1 ) [2025-09-14 02: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-09-13 23:25:04' and `end` < '2025-09-14 02: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-09-14 02:25:17] Production.INFO: count ==662 [2025-09-14 02:25:17] Production.ERROR: pbx CDR StartTime 2025-09-13 23:25:04 - End Time 2025-09-14 02:25:04 [2025-09-14 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15835880', 'tblTempUsageDetail_20' ) start [2025-09-14 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15835880', 'tblTempUsageDetail_20' ) end [2025-09-14 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15835880', 'tblTempVendorCDR_20' ) start [2025-09-14 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15835880', 'tblTempVendorCDR_20' ) end [2025-09-14 02:25:17] Production.INFO: ProcessCDR(1,15835880,1,1,2) [2025-09-14 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15835880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15835880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15835880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15835880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15835880', 'tblTempUsageDetail_20' ) start [2025-09-14 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15835880', 'tblTempUsageDetail_20' ) end [2025-09-14 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-14 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-14 02:25:25] Production.INFO: ==24042== Releasing lock... [2025-09-14 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 02:25:25] Production.INFO: 33.75 MB #Memory Used# [2025-09-14 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 00:25:05 [end_date_ymd] => 2025-09-14 03:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 00:25:05' and `end` < '2025-09-14 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-09-14 03:25:17] Production.INFO: count ==536 [2025-09-14 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-14 00:25:05 - End Time 2025-09-14 03:25:05 [2025-09-14 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15836127', 'tblTempUsageDetail_20' ) start [2025-09-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15836127', 'tblTempUsageDetail_20' ) end [2025-09-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15836127', 'tblTempVendorCDR_20' ) start [2025-09-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15836127', 'tblTempVendorCDR_20' ) end [2025-09-14 03:25:17] Production.INFO: ProcessCDR(1,15836127,1,1,2) [2025-09-14 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15836127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15836127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15836127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15836127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15836127', 'tblTempUsageDetail_20' ) start [2025-09-14 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15836127', 'tblTempUsageDetail_20' ) end [2025-09-14 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-14 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-14 03:25:24] Production.INFO: ==30036== Releasing lock... [2025-09-14 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 03:25:24] Production.INFO: 33 MB #Memory Used# [2025-09-14 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 01:25:05 [end_date_ymd] => 2025-09-14 04:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 01:25:05' and `end` < '2025-09-14 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-09-14 04:25:17] Production.INFO: count ==391 [2025-09-14 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-14 01:25:05 - End Time 2025-09-14 04:25:05 [2025-09-14 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15836375', 'tblTempUsageDetail_20' ) start [2025-09-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15836375', 'tblTempUsageDetail_20' ) end [2025-09-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15836375', 'tblTempVendorCDR_20' ) start [2025-09-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15836375', 'tblTempVendorCDR_20' ) end [2025-09-14 04:25:17] Production.INFO: ProcessCDR(1,15836375,1,1,2) [2025-09-14 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15836375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15836375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15836375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15836375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15836375', 'tblTempUsageDetail_20' ) start [2025-09-14 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15836375', 'tblTempUsageDetail_20' ) end [2025-09-14 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-14 04:25:26] Production.INFO: ==3595== Releasing lock... [2025-09-14 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 04:25:26] Production.INFO: 31.5 MB #Memory Used# [2025-09-14 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 02:25:05 [end_date_ymd] => 2025-09-14 05:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 02:25:05' and `end` < '2025-09-14 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-09-14 05:25:17] Production.INFO: count ==302 [2025-09-14 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-14 02:25:05 - End Time 2025-09-14 05:25:05 [2025-09-14 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15836623', 'tblTempUsageDetail_20' ) start [2025-09-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15836623', 'tblTempUsageDetail_20' ) end [2025-09-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15836623', 'tblTempVendorCDR_20' ) start [2025-09-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15836623', 'tblTempVendorCDR_20' ) end [2025-09-14 05:25:17] Production.INFO: ProcessCDR(1,15836623,1,1,2) [2025-09-14 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15836623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15836623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15836623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15836623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15836623', 'tblTempUsageDetail_20' ) start [2025-09-14 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15836623', 'tblTempUsageDetail_20' ) end [2025-09-14 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-14 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-14 05:25:25] Production.INFO: ==9702== Releasing lock... [2025-09-14 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 05:25:25] Production.INFO: 30.5 MB #Memory Used# [2025-09-14 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 03:25:05 [end_date_ymd] => 2025-09-14 06:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 03:25:05' and `end` < '2025-09-14 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-09-14 06:25:17] Production.INFO: count ==229 [2025-09-14 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-14 03:25:05 - End Time 2025-09-14 06:25:05 [2025-09-14 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15836870', 'tblTempUsageDetail_20' ) start [2025-09-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15836870', 'tblTempUsageDetail_20' ) end [2025-09-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15836870', 'tblTempVendorCDR_20' ) start [2025-09-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15836870', 'tblTempVendorCDR_20' ) end [2025-09-14 06:25:17] Production.INFO: ProcessCDR(1,15836870,1,1,2) [2025-09-14 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15836870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15836870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15836870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15836870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15836870', 'tblTempUsageDetail_20' ) start [2025-09-14 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15836870', 'tblTempUsageDetail_20' ) end [2025-09-14 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-14 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-14 06:25:25] Production.INFO: ==15791== Releasing lock... [2025-09-14 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 06:25:25] Production.INFO: 30.25 MB #Memory Used# [2025-09-14 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 04:25:05 [end_date_ymd] => 2025-09-14 07:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 04:25:05' and `end` < '2025-09-14 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-09-14 07:25:18] Production.INFO: count ==181 [2025-09-14 07:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 04:25:05 - End Time 2025-09-14 07:25:05 [2025-09-14 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15837117', 'tblTempUsageDetail_20' ) start [2025-09-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15837117', 'tblTempUsageDetail_20' ) end [2025-09-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15837117', 'tblTempVendorCDR_20' ) start [2025-09-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15837117', 'tblTempVendorCDR_20' ) end [2025-09-14 07:25:18] Production.INFO: ProcessCDR(1,15837117,1,1,2) [2025-09-14 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15837117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15837117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15837117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15837117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15837117', 'tblTempUsageDetail_20' ) start [2025-09-14 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15837117', 'tblTempUsageDetail_20' ) end [2025-09-14 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-14 07:25:26] Production.INFO: ==21968== Releasing lock... [2025-09-14 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 07:25:26] Production.INFO: 29.75 MB #Memory Used# [2025-09-14 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 05:25:05 [end_date_ymd] => 2025-09-14 08:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 05:25:05' and `end` < '2025-09-14 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-09-14 08:25:17] Production.INFO: count ==137 [2025-09-14 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-14 05:25:05 - End Time 2025-09-14 08:25:05 [2025-09-14 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15837364', 'tblTempUsageDetail_20' ) start [2025-09-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15837364', 'tblTempUsageDetail_20' ) end [2025-09-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15837364', 'tblTempVendorCDR_20' ) start [2025-09-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15837364', 'tblTempVendorCDR_20' ) end [2025-09-14 08:25:17] Production.INFO: ProcessCDR(1,15837364,1,1,2) [2025-09-14 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15837364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15837364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15837364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15837364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15837364', 'tblTempUsageDetail_20' ) start [2025-09-14 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15837364', 'tblTempUsageDetail_20' ) end [2025-09-14 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-14 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-14 08:25:25] Production.INFO: ==28033== Releasing lock... [2025-09-14 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 08:25:25] Production.INFO: 29 MB #Memory Used# [2025-09-14 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 06:25:05 [end_date_ymd] => 2025-09-14 09:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 06:25:05' and `end` < '2025-09-14 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-09-14 09:25:17] Production.INFO: count ==159 [2025-09-14 09:25:17] Production.ERROR: pbx CDR StartTime 2025-09-14 06:25:05 - End Time 2025-09-14 09:25:05 [2025-09-14 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15837611', 'tblTempUsageDetail_20' ) start [2025-09-14 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15837611', 'tblTempUsageDetail_20' ) end [2025-09-14 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15837611', 'tblTempVendorCDR_20' ) start [2025-09-14 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15837611', 'tblTempVendorCDR_20' ) end [2025-09-14 09:25:17] Production.INFO: ProcessCDR(1,15837611,1,1,2) [2025-09-14 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15837611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15837611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15837611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15837611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15837611', 'tblTempUsageDetail_20' ) start [2025-09-14 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15837611', 'tblTempUsageDetail_20' ) end [2025-09-14 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-14 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-14 09:25:25] Production.INFO: ==1572== Releasing lock... [2025-09-14 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 09:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-09-14 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 07:25:05 [end_date_ymd] => 2025-09-14 10:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 07:25:05' and `end` < '2025-09-14 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-09-14 10:25:17] Production.INFO: count ==328 [2025-09-14 10:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 07:25:05 - End Time 2025-09-14 10:25:05 [2025-09-14 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15837858', 'tblTempUsageDetail_20' ) start [2025-09-14 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15837858', 'tblTempUsageDetail_20' ) end [2025-09-14 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15837858', 'tblTempVendorCDR_20' ) start [2025-09-14 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15837858', 'tblTempVendorCDR_20' ) end [2025-09-14 10:25:18] Production.INFO: ProcessCDR(1,15837858,1,1,2) [2025-09-14 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15837858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15837858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15837858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15837858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15837858', 'tblTempUsageDetail_20' ) start [2025-09-14 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15837858', 'tblTempUsageDetail_20' ) end [2025-09-14 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-14 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-14 10:25:25] Production.INFO: ==7709== Releasing lock... [2025-09-14 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 10:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-09-14 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 08:25:05 [end_date_ymd] => 2025-09-14 11:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 08:25:05' and `end` < '2025-09-14 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-09-14 11:25:17] Production.INFO: count ==572 [2025-09-14 11:25:17] Production.ERROR: pbx CDR StartTime 2025-09-14 08:25:05 - End Time 2025-09-14 11:25:05 [2025-09-14 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15838105', 'tblTempUsageDetail_20' ) start [2025-09-14 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15838105', 'tblTempUsageDetail_20' ) end [2025-09-14 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15838105', 'tblTempVendorCDR_20' ) start [2025-09-14 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15838105', 'tblTempVendorCDR_20' ) end [2025-09-14 11:25:17] Production.INFO: ProcessCDR(1,15838105,1,1,2) [2025-09-14 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15838105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15838105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15838105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15838105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15838105', 'tblTempUsageDetail_20' ) start [2025-09-14 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15838105', 'tblTempUsageDetail_20' ) end [2025-09-14 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-14 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-14 11:25:25] Production.INFO: ==14033== Releasing lock... [2025-09-14 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 11:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-09-14 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 09:25:05 [end_date_ymd] => 2025-09-14 12:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 09:25:05' and `end` < '2025-09-14 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-09-14 12:25:17] Production.INFO: count ==757 [2025-09-14 12:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 09:25:05 - End Time 2025-09-14 12:25:05 [2025-09-14 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15838352', 'tblTempUsageDetail_20' ) start [2025-09-14 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15838352', 'tblTempUsageDetail_20' ) end [2025-09-14 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15838352', 'tblTempVendorCDR_20' ) start [2025-09-14 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15838352', 'tblTempVendorCDR_20' ) end [2025-09-14 12:25:18] Production.INFO: ProcessCDR(1,15838352,1,1,2) [2025-09-14 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15838352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15838352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15838352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15838352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15838352', 'tblTempUsageDetail_20' ) start [2025-09-14 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15838352', 'tblTempUsageDetail_20' ) end [2025-09-14 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-14 12:25:26] Production.INFO: ==20152== Releasing lock... [2025-09-14 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 12:25:26] Production.INFO: 34 MB #Memory Used# [2025-09-14 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 10:25:04 [end_date_ymd] => 2025-09-14 13:25:04 [RateCDR] => 1 ) [2025-09-14 13:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-14 10:25:04' and `end` < '2025-09-14 13:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-14 13:25:18] Production.INFO: count ==873 [2025-09-14 13:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 10:25:04 - End Time 2025-09-14 13:25:04 [2025-09-14 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15838599', 'tblTempUsageDetail_20' ) start [2025-09-14 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15838599', 'tblTempUsageDetail_20' ) end [2025-09-14 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15838599', 'tblTempVendorCDR_20' ) start [2025-09-14 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15838599', 'tblTempVendorCDR_20' ) end [2025-09-14 13:25:18] Production.INFO: ProcessCDR(1,15838599,1,1,2) [2025-09-14 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15838599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15838599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15838599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15838599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15838599', 'tblTempUsageDetail_20' ) start [2025-09-14 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15838599', 'tblTempUsageDetail_20' ) end [2025-09-14 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-14 13:25:26] Production.INFO: ==26298== Releasing lock... [2025-09-14 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 13:25:26] Production.INFO: 34.75 MB #Memory Used# [2025-09-14 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 11:25:06 [end_date_ymd] => 2025-09-14 14:25:06 [RateCDR] => 1 ) [2025-09-14 14: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-09-14 11:25:06' and `end` < '2025-09-14 14: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-09-14 14:25:18] Production.INFO: count ==895 [2025-09-14 14:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 11:25:06 - End Time 2025-09-14 14:25:06 [2025-09-14 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15838846', 'tblTempUsageDetail_20' ) start [2025-09-14 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15838846', 'tblTempUsageDetail_20' ) end [2025-09-14 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15838846', 'tblTempVendorCDR_20' ) start [2025-09-14 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15838846', 'tblTempVendorCDR_20' ) end [2025-09-14 14:25:18] Production.INFO: ProcessCDR(1,15838846,1,1,2) [2025-09-14 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15838846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15838846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15838846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15838846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15838846', 'tblTempUsageDetail_20' ) start [2025-09-14 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15838846', 'tblTempUsageDetail_20' ) end [2025-09-14 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-14 14:25:27] Production.INFO: ==930== Releasing lock... [2025-09-14 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 14:25:27] Production.INFO: 35 MB #Memory Used# [2025-09-14 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 12:25:05 [end_date_ymd] => 2025-09-14 15:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 12:25:05' and `end` < '2025-09-14 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-09-14 15:25:18] Production.INFO: count ==1061 [2025-09-14 15:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 12:25:05 - End Time 2025-09-14 15:25:05 [2025-09-14 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15839093', 'tblTempUsageDetail_20' ) start [2025-09-14 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15839093', 'tblTempUsageDetail_20' ) end [2025-09-14 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15839093', 'tblTempVendorCDR_20' ) start [2025-09-14 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15839093', 'tblTempVendorCDR_20' ) end [2025-09-14 15:25:18] Production.INFO: ProcessCDR(1,15839093,1,1,2) [2025-09-14 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15839093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15839093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15839093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15839093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15839093', 'tblTempUsageDetail_20' ) start [2025-09-14 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15839093', 'tblTempUsageDetail_20' ) end [2025-09-14 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-14 15:25:27] Production.INFO: ==7449== Releasing lock... [2025-09-14 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 15:25:27] Production.INFO: 36.25 MB #Memory Used# [2025-09-14 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 13:25:05 [end_date_ymd] => 2025-09-14 16:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 13:25:05' and `end` < '2025-09-14 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-09-14 16:25:17] Production.INFO: count ==1180 [2025-09-14 16:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 13:25:05 - End Time 2025-09-14 16:25:05 [2025-09-14 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15839340', 'tblTempUsageDetail_20' ) start [2025-09-14 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15839340', 'tblTempUsageDetail_20' ) end [2025-09-14 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15839340', 'tblTempVendorCDR_20' ) start [2025-09-14 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15839340', 'tblTempVendorCDR_20' ) end [2025-09-14 16:25:18] Production.INFO: ProcessCDR(1,15839340,1,1,2) [2025-09-14 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15839340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15839340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15839340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15839340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15839340', 'tblTempUsageDetail_20' ) start [2025-09-14 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15839340', 'tblTempUsageDetail_20' ) end [2025-09-14 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-14 16:25:27] Production.INFO: ==13410== Releasing lock... [2025-09-14 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 16:25:27] Production.INFO: 37.25 MB #Memory Used# [2025-09-14 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 14:25:05 [end_date_ymd] => 2025-09-14 17:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 14:25:05' and `end` < '2025-09-14 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-09-14 17:25:17] Production.INFO: count ==1509 [2025-09-14 17:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 14:25:05 - End Time 2025-09-14 17:25:05 [2025-09-14 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15839587', 'tblTempUsageDetail_20' ) start [2025-09-14 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15839587', 'tblTempUsageDetail_20' ) end [2025-09-14 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15839587', 'tblTempVendorCDR_20' ) start [2025-09-14 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15839587', 'tblTempVendorCDR_20' ) end [2025-09-14 17:25:18] Production.INFO: ProcessCDR(1,15839587,1,1,2) [2025-09-14 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15839587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15839587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15839587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15839587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15839587', 'tblTempUsageDetail_20' ) start [2025-09-14 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15839587', 'tblTempUsageDetail_20' ) end [2025-09-14 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-14 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-14 17:25:28] Production.INFO: ==19430== Releasing lock... [2025-09-14 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 17:25:28] Production.INFO: 39.5 MB #Memory Used# [2025-09-14 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 15:25:05 [end_date_ymd] => 2025-09-14 18:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 15:25:05' and `end` < '2025-09-14 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-09-14 18:25:17] Production.INFO: count ==1690 [2025-09-14 18:25:17] Production.ERROR: pbx CDR StartTime 2025-09-14 15:25:05 - End Time 2025-09-14 18:25:05 [2025-09-14 18:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15839834', 'tblTempUsageDetail_20' ) start [2025-09-14 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15839834', 'tblTempUsageDetail_20' ) end [2025-09-14 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15839834', 'tblTempVendorCDR_20' ) start [2025-09-14 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15839834', 'tblTempVendorCDR_20' ) end [2025-09-14 18:25:18] Production.INFO: ProcessCDR(1,15839834,1,1,2) [2025-09-14 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15839834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15839834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15839834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15839834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15839834', 'tblTempUsageDetail_20' ) start [2025-09-14 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15839834', 'tblTempUsageDetail_20' ) end [2025-09-14 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 18:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-14 18:25:27] Production.INFO: ==25453== Releasing lock... [2025-09-14 18:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 18:25:27] Production.INFO: 40.75 MB #Memory Used# [2025-09-14 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 16:25:04 [end_date_ymd] => 2025-09-14 19:25:04 [RateCDR] => 1 ) [2025-09-14 19: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-09-14 16:25:04' and `end` < '2025-09-14 19: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-09-14 19:25:17] Production.INFO: count ==1792 [2025-09-14 19:25:17] Production.ERROR: pbx CDR StartTime 2025-09-14 16:25:04 - End Time 2025-09-14 19:25:04 [2025-09-14 19:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15840079', 'tblTempUsageDetail_20' ) start [2025-09-14 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15840079', 'tblTempUsageDetail_20' ) end [2025-09-14 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15840079', 'tblTempVendorCDR_20' ) start [2025-09-14 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15840079', 'tblTempVendorCDR_20' ) end [2025-09-14 19:25:17] Production.INFO: ProcessCDR(1,15840079,1,1,2) [2025-09-14 19:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15840079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15840079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15840079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15840079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15840079', 'tblTempUsageDetail_20' ) start [2025-09-14 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15840079', 'tblTempUsageDetail_20' ) end [2025-09-14 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-14 19:25:26] Production.INFO: ==31980== Releasing lock... [2025-09-14 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 19:25:26] Production.INFO: 41.75 MB #Memory Used# [2025-09-14 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 17:25:05 [end_date_ymd] => 2025-09-14 20:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 17:25:05' and `end` < '2025-09-14 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-09-14 20:25:17] Production.INFO: count ==1666 [2025-09-14 20:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 17:25:05 - End Time 2025-09-14 20:25:05 [2025-09-14 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15840326', 'tblTempUsageDetail_20' ) start [2025-09-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15840326', 'tblTempUsageDetail_20' ) end [2025-09-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15840326', 'tblTempVendorCDR_20' ) start [2025-09-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15840326', 'tblTempVendorCDR_20' ) end [2025-09-14 20:25:18] Production.INFO: ProcessCDR(1,15840326,1,1,2) [2025-09-14 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15840326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15840326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15840326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15840326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15840326', 'tblTempUsageDetail_20' ) start [2025-09-14 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15840326', 'tblTempUsageDetail_20' ) end [2025-09-14 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-14 20:25:26] Production.INFO: ==5550== Releasing lock... [2025-09-14 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 20:25:26] Production.INFO: 40.75 MB #Memory Used# [2025-09-14 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 18:25:05 [end_date_ymd] => 2025-09-14 21:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 18:25:05' and `end` < '2025-09-14 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-09-14 21:25:17] Production.INFO: count ==1473 [2025-09-14 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 18:25:05 - End Time 2025-09-14 21:25:05 [2025-09-14 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15840573', 'tblTempUsageDetail_20' ) start [2025-09-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15840573', 'tblTempUsageDetail_20' ) end [2025-09-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15840573', 'tblTempVendorCDR_20' ) start [2025-09-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15840573', 'tblTempVendorCDR_20' ) end [2025-09-14 21:25:18] Production.INFO: ProcessCDR(1,15840573,1,1,2) [2025-09-14 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15840573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15840573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15840573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15840573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15840573', 'tblTempUsageDetail_20' ) start [2025-09-14 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15840573', 'tblTempUsageDetail_20' ) end [2025-09-14 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-14 21:25:26] Production.INFO: ==11380== Releasing lock... [2025-09-14 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 21:25:26] Production.INFO: 39.25 MB #Memory Used# [2025-09-14 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 19:25:05 [end_date_ymd] => 2025-09-14 22:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 19:25:05' and `end` < '2025-09-14 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-09-14 22:25:17] Production.INFO: count ==1251 [2025-09-14 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 19:25:05 - End Time 2025-09-14 22:25:05 [2025-09-14 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15840820', 'tblTempUsageDetail_20' ) start [2025-09-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15840820', 'tblTempUsageDetail_20' ) end [2025-09-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15840820', 'tblTempVendorCDR_20' ) start [2025-09-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15840820', 'tblTempVendorCDR_20' ) end [2025-09-14 22:25:18] Production.INFO: ProcessCDR(1,15840820,1,1,2) [2025-09-14 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15840820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15840820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15840820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15840820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15840820', 'tblTempUsageDetail_20' ) start [2025-09-14 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15840820', 'tblTempUsageDetail_20' ) end [2025-09-14 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-14 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-14 22:25:27] Production.INFO: ==16994== Releasing lock... [2025-09-14 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 22:25:27] Production.INFO: 37.75 MB #Memory Used# [2025-09-14 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 20:25:05 [end_date_ymd] => 2025-09-14 23:25:05 [RateCDR] => 1 ) [2025-09-14 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-09-14 20:25:05' and `end` < '2025-09-14 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-09-14 23:25:17] Production.INFO: count ==952 [2025-09-14 23:25:17] Production.ERROR: pbx CDR StartTime 2025-09-14 20:25:05 - End Time 2025-09-14 23:25:05 [2025-09-14 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-14 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15841067', 'tblTempUsageDetail_20' ) start [2025-09-14 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15841067', 'tblTempUsageDetail_20' ) end [2025-09-14 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15841067', 'tblTempVendorCDR_20' ) start [2025-09-14 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15841067', 'tblTempVendorCDR_20' ) end [2025-09-14 23:25:17] Production.INFO: ProcessCDR(1,15841067,1,1,2) [2025-09-14 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15841067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15841067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-14 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15841067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15841067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-14 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15841067', 'tblTempUsageDetail_20' ) start [2025-09-14 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15841067', 'tblTempUsageDetail_20' ) end [2025-09-14 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-14 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-14 23:25:25] Production.INFO: ==21299== Releasing lock... [2025-09-14 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-14 23:25:25] Production.INFO: 35.75 MB #Memory Used#