[2025-12-07 00:00:06] Production.INFO: next invoice date [2025-12-07 00:00:06] Production.INFO: 2026-01-07 [2025-12-07 00:00:06] Production.INFO: getdaysdiff [2025-12-07 00:00:06] Production.INFO: +31 [2025-12-07 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (232,16,1,31,31,'RMScheduler',2025-12-07 00:00:06,1,0,,,0) [2025-12-07 00:00:06] Production.INFO: next invoice date [2025-12-07 00:00:06] Production.INFO: 2026-01-07 [2025-12-07 00:00:06] Production.INFO: getdaysdiff [2025-12-07 00:00:06] Production.INFO: +31 [2025-12-07 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,31,31,'RMScheduler',2025-12-07 00:00:06,1,0,,,0) [2025-12-07 00:00:06] Production.INFO: next invoice date [2025-12-07 00:00:06] Production.INFO: 2026-01-07 [2025-12-07 00:00:06] Production.INFO: getdaysdiff [2025-12-07 00:00:06] Production.INFO: +31 [2025-12-07 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (232,11,1,31,31,'RMScheduler',2025-12-07 00:00:06,0,0,,,0) [2025-12-07 00:00:06] Production.INFO: next invoice date [2025-12-07 00:00:06] Production.INFO: 2026-01-07 [2025-12-07 00:00:06] Production.INFO: getdaysdiff [2025-12-07 00:00:06] Production.INFO: +31 [2025-12-07 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,31,31,'RMScheduler',2025-12-07 00:00:06,0,0,,,0) [2025-12-07 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 21:00:07 [end_date_ymd] => 2025-12-07 00:00:07 [RateCDR] => 1 ) [2025-12-07 00:00:07] 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-12-06 21:00:07' and `end` < '2025-12-07 00:00:07' 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-12-07 00:00:31] Production.INFO: count ==1114 [2025-12-07 00:00:32] Production.ERROR: pbx CDR StartTime 2025-12-06 21:00:07 - End Time 2025-12-07 00:00:07 [2025-12-07 00:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 00:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16333482', 'tblTempUsageDetail_20' ) start [2025-12-07 00:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16333482', 'tblTempUsageDetail_20' ) end [2025-12-07 00:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16333482', 'tblTempVendorCDR_20' ) start [2025-12-07 00:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16333482', 'tblTempVendorCDR_20' ) end [2025-12-07 00:00:32] Production.INFO: ProcessCDR(1,16333482,1,1,2) [2025-12-07 00:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16333482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 00:00:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16333482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 00:00:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16333482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 00:00:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16333482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 00:00:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16333482', 'tblTempUsageDetail_20' ) start [2025-12-07 00:00:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16333482', 'tblTempUsageDetail_20' ) end [2025-12-07 00:00:45] Production.ERROR: pbx prc_insertCDR start [2025-12-07 00:00:45] Production.ERROR: pbx prc_insertCDR end [2025-12-07 00:00:51] Production.INFO: ==14799== Releasing lock... [2025-12-07 00:00:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 00:00:51] Production.INFO: 39.5 MB #Memory Used# [2025-12-07 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 22:00:07 [end_date_ymd] => 2025-12-07 01:00:07 [RateCDR] => 1 ) [2025-12-07 01:00:07] 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-12-06 22:00:07' and `end` < '2025-12-07 01:00:07' 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-12-07 01:00:19] Production.INFO: count ==657 [2025-12-07 01:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 22:00:07 - End Time 2025-12-07 01:00:07 [2025-12-07 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16333729', 'tblTempUsageDetail_20' ) start [2025-12-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16333729', 'tblTempUsageDetail_20' ) end [2025-12-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16333729', 'tblTempVendorCDR_20' ) start [2025-12-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16333729', 'tblTempVendorCDR_20' ) end [2025-12-07 01:00:19] Production.INFO: ProcessCDR(1,16333729,1,1,2) [2025-12-07 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16333729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 01:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16333729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 01:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16333729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 01:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16333729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 01:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16333729', 'tblTempUsageDetail_20' ) start [2025-12-07 01:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16333729', 'tblTempUsageDetail_20' ) end [2025-12-07 01:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-07 01:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-07 01:00:30] Production.INFO: ==19789== Releasing lock... [2025-12-07 01:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 01:00:30] Production.INFO: 33.5 MB #Memory Used# [2025-12-07 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 23:00:07 [end_date_ymd] => 2025-12-07 02:00:07 [RateCDR] => 1 ) [2025-12-07 02:00:07] 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-12-06 23:00:07' and `end` < '2025-12-07 02:00:07' 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-12-07 02:00:18] Production.INFO: count ==709 [2025-12-07 02:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 23:00:07 - End Time 2025-12-07 02:00:07 [2025-12-07 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16333976', 'tblTempUsageDetail_20' ) start [2025-12-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16333976', 'tblTempUsageDetail_20' ) end [2025-12-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16333976', 'tblTempVendorCDR_20' ) start [2025-12-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16333976', 'tblTempVendorCDR_20' ) end [2025-12-07 02:00:19] Production.INFO: ProcessCDR(1,16333976,1,1,2) [2025-12-07 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16333976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16333976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16333976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 02:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16333976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16333976', 'tblTempUsageDetail_20' ) start [2025-12-07 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16333976', 'tblTempUsageDetail_20' ) end [2025-12-07 02:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-07 02:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-07 02:00:30] Production.INFO: ==24383== Releasing lock... [2025-12-07 02:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 02:00:30] Production.INFO: 33.5 MB #Memory Used# [2025-12-07 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 00:00:06 [end_date_ymd] => 2025-12-07 03:00:06 [RateCDR] => 1 ) [2025-12-07 03:00: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-12-07 00:00:06' and `end` < '2025-12-07 03:00: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-12-07 03:00:17] Production.INFO: count ==688 [2025-12-07 03:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 00:00:06 - End Time 2025-12-07 03:00:06 [2025-12-07 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16334222', 'tblTempUsageDetail_20' ) start [2025-12-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16334222', 'tblTempUsageDetail_20' ) end [2025-12-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16334222', 'tblTempVendorCDR_20' ) start [2025-12-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16334222', 'tblTempVendorCDR_20' ) end [2025-12-07 03:00:18] Production.INFO: ProcessCDR(1,16334222,1,1,2) [2025-12-07 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16334222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16334222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16334222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 03:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16334222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16334222', 'tblTempUsageDetail_20' ) start [2025-12-07 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16334222', 'tblTempUsageDetail_20' ) end [2025-12-07 03:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-07 03:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-07 03:00:28] Production.INFO: ==29650== Releasing lock... [2025-12-07 03:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 03:00:28] Production.INFO: 33.25 MB #Memory Used# [2025-12-07 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 01:00:06 [end_date_ymd] => 2025-12-07 04:00:06 [RateCDR] => 1 ) [2025-12-07 04:00: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-12-07 01:00:06' and `end` < '2025-12-07 04:00: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-12-07 04:00:18] Production.INFO: count ==574 [2025-12-07 04:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 01:00:06 - End Time 2025-12-07 04:00:06 [2025-12-07 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16334470', 'tblTempUsageDetail_20' ) start [2025-12-07 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16334470', 'tblTempUsageDetail_20' ) end [2025-12-07 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16334470', 'tblTempVendorCDR_20' ) start [2025-12-07 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16334470', 'tblTempVendorCDR_20' ) end [2025-12-07 04:00:18] Production.INFO: ProcessCDR(1,16334470,1,1,2) [2025-12-07 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16334470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 04:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16334470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 04:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16334470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 04:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16334470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16334470', 'tblTempUsageDetail_20' ) start [2025-12-07 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16334470', 'tblTempUsageDetail_20' ) end [2025-12-07 04:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-07 04:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-07 04:00:29] Production.INFO: ==3836== Releasing lock... [2025-12-07 04:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 04:00:29] Production.INFO: 32.5 MB #Memory Used# [2025-12-07 05:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 02:00:06 [end_date_ymd] => 2025-12-07 05:00:06 [RateCDR] => 1 ) [2025-12-07 05:00:07] 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-12-07 02:00:06' and `end` < '2025-12-07 05:00: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-12-07 05:00:18] Production.INFO: count ==395 [2025-12-07 05:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 02:00:06 - End Time 2025-12-07 05:00:06 [2025-12-07 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16334719', 'tblTempUsageDetail_20' ) start [2025-12-07 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16334719', 'tblTempUsageDetail_20' ) end [2025-12-07 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16334719', 'tblTempVendorCDR_20' ) start [2025-12-07 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16334719', 'tblTempVendorCDR_20' ) end [2025-12-07 05:00:18] Production.INFO: ProcessCDR(1,16334719,1,1,2) [2025-12-07 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16334719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 05:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16334719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 05:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16334719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 05:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16334719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16334719', 'tblTempUsageDetail_20' ) start [2025-12-07 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16334719', 'tblTempUsageDetail_20' ) end [2025-12-07 05:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-07 05:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-07 05:00:29] Production.INFO: ==10443== Releasing lock... [2025-12-07 05:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 05:00:29] Production.INFO: 31.25 MB #Memory Used# [2025-12-07 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 03:00:06 [end_date_ymd] => 2025-12-07 06:00:06 [RateCDR] => 1 ) [2025-12-07 06:00: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-12-07 03:00:06' and `end` < '2025-12-07 06:00: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-12-07 06:00:18] Production.INFO: count ==270 [2025-12-07 06:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 03:00:06 - End Time 2025-12-07 06:00:06 [2025-12-07 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16334966', 'tblTempUsageDetail_20' ) start [2025-12-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16334966', 'tblTempUsageDetail_20' ) end [2025-12-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16334966', 'tblTempVendorCDR_20' ) start [2025-12-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16334966', 'tblTempVendorCDR_20' ) end [2025-12-07 06:00:18] Production.INFO: ProcessCDR(1,16334966,1,1,2) [2025-12-07 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16334966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16334966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16334966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 06:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16334966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16334966', 'tblTempUsageDetail_20' ) start [2025-12-07 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16334966', 'tblTempUsageDetail_20' ) end [2025-12-07 06:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-07 06:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-07 06:00:28] Production.INFO: ==15785== Releasing lock... [2025-12-07 06:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 06:00:28] Production.INFO: 30.5 MB #Memory Used# [2025-12-07 07:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 04:00:06 [end_date_ymd] => 2025-12-07 07:00:06 [RateCDR] => 1 ) [2025-12-07 07:00:07] 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-12-07 04:00:06' and `end` < '2025-12-07 07:00: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-12-07 07:00:18] Production.INFO: count ==168 [2025-12-07 07:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 04:00:06 - End Time 2025-12-07 07:00:06 [2025-12-07 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16335213', 'tblTempUsageDetail_20' ) start [2025-12-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16335213', 'tblTempUsageDetail_20' ) end [2025-12-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16335213', 'tblTempVendorCDR_20' ) start [2025-12-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16335213', 'tblTempVendorCDR_20' ) end [2025-12-07 07:00:18] Production.INFO: ProcessCDR(1,16335213,1,1,2) [2025-12-07 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16335213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 07:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16335213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 07:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16335213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 07:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16335213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16335213', 'tblTempUsageDetail_20' ) start [2025-12-07 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16335213', 'tblTempUsageDetail_20' ) end [2025-12-07 07:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-07 07:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-07 07:00:28] Production.INFO: ==20587== Releasing lock... [2025-12-07 07:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 07:00:28] Production.INFO: 29.25 MB #Memory Used# [2025-12-07 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 05:00:07 [end_date_ymd] => 2025-12-07 08:00:07 [RateCDR] => 1 ) [2025-12-07 08:00:07] 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-12-07 05:00:07' and `end` < '2025-12-07 08:00:07' 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-12-07 08:00:18] Production.INFO: count ==124 [2025-12-07 08:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 05:00:07 - End Time 2025-12-07 08:00:07 [2025-12-07 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16335460', 'tblTempUsageDetail_20' ) start [2025-12-07 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16335460', 'tblTempUsageDetail_20' ) end [2025-12-07 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16335460', 'tblTempVendorCDR_20' ) start [2025-12-07 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16335460', 'tblTempVendorCDR_20' ) end [2025-12-07 08:00:18] Production.INFO: ProcessCDR(1,16335460,1,1,2) [2025-12-07 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16335460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 08:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16335460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 08:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16335460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 08:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16335460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 08:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16335460', 'tblTempUsageDetail_20' ) start [2025-12-07 08:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16335460', 'tblTempUsageDetail_20' ) end [2025-12-07 08:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-07 08:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-07 08:00:29] Production.INFO: ==26171== Releasing lock... [2025-12-07 08:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 08:00:29] Production.INFO: 29.25 MB #Memory Used# [2025-12-07 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 06:00:07 [end_date_ymd] => 2025-12-07 09:00:07 [RateCDR] => 1 ) [2025-12-07 09:00:07] 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-12-07 06:00:07' and `end` < '2025-12-07 09:00:07' 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-12-07 09:00:18] Production.INFO: count ==155 [2025-12-07 09:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 06:00:07 - End Time 2025-12-07 09:00:07 [2025-12-07 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16335707', 'tblTempUsageDetail_20' ) start [2025-12-07 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16335707', 'tblTempUsageDetail_20' ) end [2025-12-07 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16335707', 'tblTempVendorCDR_20' ) start [2025-12-07 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16335707', 'tblTempVendorCDR_20' ) end [2025-12-07 09:00:18] Production.INFO: ProcessCDR(1,16335707,1,1,2) [2025-12-07 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16335707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 09:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16335707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 09:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16335707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 09:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16335707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16335707', 'tblTempUsageDetail_20' ) start [2025-12-07 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16335707', 'tblTempUsageDetail_20' ) end [2025-12-07 09:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-07 09:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-07 09:00:30] Production.INFO: ==31188== Releasing lock... [2025-12-07 09:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 09:00:30] Production.INFO: 29.5 MB #Memory Used# [2025-12-07 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 07:00:06 [end_date_ymd] => 2025-12-07 10:00:06 [RateCDR] => 1 ) [2025-12-07 10:00: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-12-07 07:00:06' and `end` < '2025-12-07 10:00: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-12-07 10:00:18] Production.INFO: count ==203 [2025-12-07 10:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 07:00:06 - End Time 2025-12-07 10:00:06 [2025-12-07 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16335954', 'tblTempUsageDetail_20' ) start [2025-12-07 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16335954', 'tblTempUsageDetail_20' ) end [2025-12-07 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16335954', 'tblTempVendorCDR_20' ) start [2025-12-07 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16335954', 'tblTempVendorCDR_20' ) end [2025-12-07 10:00:18] Production.INFO: ProcessCDR(1,16335954,1,1,2) [2025-12-07 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16335954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16335954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16335954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 10:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16335954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 10:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16335954', 'tblTempUsageDetail_20' ) start [2025-12-07 10:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16335954', 'tblTempUsageDetail_20' ) end [2025-12-07 10:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-07 10:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-07 10:00:28] Production.INFO: ==3955== Releasing lock... [2025-12-07 10:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 10:00:28] Production.INFO: 29.75 MB #Memory Used# [2025-12-07 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 08:00:06 [end_date_ymd] => 2025-12-07 11:00:06 [RateCDR] => 1 ) [2025-12-07 11:00: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-12-07 08:00:06' and `end` < '2025-12-07 11:00: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-12-07 11:00:18] Production.INFO: count ==387 [2025-12-07 11:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 08:00:06 - End Time 2025-12-07 11:00:06 [2025-12-07 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16336201', 'tblTempUsageDetail_20' ) start [2025-12-07 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16336201', 'tblTempUsageDetail_20' ) end [2025-12-07 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16336201', 'tblTempVendorCDR_20' ) start [2025-12-07 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16336201', 'tblTempVendorCDR_20' ) end [2025-12-07 11:00:18] Production.INFO: ProcessCDR(1,16336201,1,1,2) [2025-12-07 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16336201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16336201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16336201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 11:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16336201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16336201', 'tblTempUsageDetail_20' ) start [2025-12-07 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16336201', 'tblTempUsageDetail_20' ) end [2025-12-07 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-07 11:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-07 11:00:30] Production.INFO: ==8892== Releasing lock... [2025-12-07 11:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 11:00:30] Production.INFO: 31.75 MB #Memory Used# [2025-12-07 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 09:00:07 [end_date_ymd] => 2025-12-07 12:00:07 [RateCDR] => 1 ) [2025-12-07 12:00:07] 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-12-07 09:00:07' and `end` < '2025-12-07 12:00:07' 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-12-07 12:00:18] Production.INFO: count ==684 [2025-12-07 12:00:19] Production.ERROR: pbx CDR StartTime 2025-12-07 09:00:07 - End Time 2025-12-07 12:00:07 [2025-12-07 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16336448', 'tblTempUsageDetail_20' ) start [2025-12-07 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16336448', 'tblTempUsageDetail_20' ) end [2025-12-07 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16336448', 'tblTempVendorCDR_20' ) start [2025-12-07 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16336448', 'tblTempVendorCDR_20' ) end [2025-12-07 12:00:19] Production.INFO: ProcessCDR(1,16336448,1,1,2) [2025-12-07 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16336448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16336448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16336448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 12:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16336448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16336448', 'tblTempUsageDetail_20' ) start [2025-12-07 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16336448', 'tblTempUsageDetail_20' ) end [2025-12-07 12:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-07 12:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-07 12:00:30] Production.INFO: ==13445== Releasing lock... [2025-12-07 12:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 12:00:30] Production.INFO: 33.25 MB #Memory Used# [2025-12-07 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 10:00:05 [end_date_ymd] => 2025-12-07 13:00:05 [RateCDR] => 1 ) [2025-12-07 13:00: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-12-07 10:00:05' and `end` < '2025-12-07 13:00: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-12-07 13:00:17] Production.INFO: count ==1066 [2025-12-07 13:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 10:00:05 - End Time 2025-12-07 13:00:05 [2025-12-07 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16336694', 'tblTempUsageDetail_20' ) start [2025-12-07 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16336694', 'tblTempUsageDetail_20' ) end [2025-12-07 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16336694', 'tblTempVendorCDR_20' ) start [2025-12-07 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16336694', 'tblTempVendorCDR_20' ) end [2025-12-07 13:00:18] Production.INFO: ProcessCDR(1,16336694,1,1,2) [2025-12-07 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16336694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 13:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16336694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 13:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16336694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16336694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16336694', 'tblTempUsageDetail_20' ) start [2025-12-07 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16336694', 'tblTempUsageDetail_20' ) end [2025-12-07 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-07 13:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-07 13:00:30] Production.INFO: ==18211== Releasing lock... [2025-12-07 13:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 13:00:30] Production.INFO: 37.25 MB #Memory Used# [2025-12-07 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 11:00:06 [end_date_ymd] => 2025-12-07 14:00:06 [RateCDR] => 1 ) [2025-12-07 14:00: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-12-07 11:00:06' and `end` < '2025-12-07 14:00: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-12-07 14:00:18] Production.INFO: count ==1213 [2025-12-07 14:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 11:00:06 - End Time 2025-12-07 14:00:06 [2025-12-07 14:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16336942', 'tblTempUsageDetail_20' ) start [2025-12-07 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16336942', 'tblTempUsageDetail_20' ) end [2025-12-07 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16336942', 'tblTempVendorCDR_20' ) start [2025-12-07 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16336942', 'tblTempVendorCDR_20' ) end [2025-12-07 14:00:18] Production.INFO: ProcessCDR(1,16336942,1,1,2) [2025-12-07 14:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16336942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 14:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16336942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 14:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16336942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16336942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16336942', 'tblTempUsageDetail_20' ) start [2025-12-07 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16336942', 'tblTempUsageDetail_20' ) end [2025-12-07 14:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-07 14:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-07 14:00:30] Production.INFO: ==23085== Releasing lock... [2025-12-07 14:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 14:00:30] Production.INFO: 38.5 MB #Memory Used# [2025-12-07 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 12:00:06 [end_date_ymd] => 2025-12-07 15:00:06 [RateCDR] => 1 ) [2025-12-07 15:00: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-12-07 12:00:06' and `end` < '2025-12-07 15:00: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-12-07 15:00:18] Production.INFO: count ==1318 [2025-12-07 15:00:19] Production.ERROR: pbx CDR StartTime 2025-12-07 12:00:06 - End Time 2025-12-07 15:00:06 [2025-12-07 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16337188', 'tblTempUsageDetail_20' ) start [2025-12-07 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16337188', 'tblTempUsageDetail_20' ) end [2025-12-07 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16337188', 'tblTempVendorCDR_20' ) start [2025-12-07 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16337188', 'tblTempVendorCDR_20' ) end [2025-12-07 15:00:19] Production.INFO: ProcessCDR(1,16337188,1,1,2) [2025-12-07 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16337188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16337188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16337188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 15:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16337188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 15:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16337188', 'tblTempUsageDetail_20' ) start [2025-12-07 15:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16337188', 'tblTempUsageDetail_20' ) end [2025-12-07 15:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-07 15:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-07 15:00:32] Production.INFO: ==28500== Releasing lock... [2025-12-07 15:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 15:00:32] Production.INFO: 38.75 MB #Memory Used# [2025-12-07 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 13:00:06 [end_date_ymd] => 2025-12-07 16:00:06 [RateCDR] => 1 ) [2025-12-07 16:00: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-12-07 13:00:06' and `end` < '2025-12-07 16:00: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-12-07 16:00:18] Production.INFO: count ==1483 [2025-12-07 16:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 13:00:06 - End Time 2025-12-07 16:00:06 [2025-12-07 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16337436', 'tblTempUsageDetail_20' ) start [2025-12-07 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16337436', 'tblTempUsageDetail_20' ) end [2025-12-07 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16337436', 'tblTempVendorCDR_20' ) start [2025-12-07 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16337436', 'tblTempVendorCDR_20' ) end [2025-12-07 16:00:18] Production.INFO: ProcessCDR(1,16337436,1,1,2) [2025-12-07 16:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16337436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 16:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16337436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 16:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16337436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 16:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16337436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16337436', 'tblTempUsageDetail_20' ) start [2025-12-07 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16337436', 'tblTempUsageDetail_20' ) end [2025-12-07 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-07 16:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-07 16:00:30] Production.INFO: ==1071== Releasing lock... [2025-12-07 16:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 16:00:30] Production.INFO: 39.5 MB #Memory Used# [2025-12-07 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 14:00:06 [end_date_ymd] => 2025-12-07 17:00:06 [RateCDR] => 1 ) [2025-12-07 17:00: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-12-07 14:00:06' and `end` < '2025-12-07 17:00: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-12-07 17:00:18] Production.INFO: count ==1677 [2025-12-07 17:00:19] Production.ERROR: pbx CDR StartTime 2025-12-07 14:00:06 - End Time 2025-12-07 17:00:06 [2025-12-07 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16337683', 'tblTempUsageDetail_20' ) start [2025-12-07 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16337683', 'tblTempUsageDetail_20' ) end [2025-12-07 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16337683', 'tblTempVendorCDR_20' ) start [2025-12-07 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16337683', 'tblTempVendorCDR_20' ) end [2025-12-07 17:00:19] Production.INFO: ProcessCDR(1,16337683,1,1,2) [2025-12-07 17:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16337683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16337683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16337683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 17:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16337683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 17:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16337683', 'tblTempUsageDetail_20' ) start [2025-12-07 17:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16337683', 'tblTempUsageDetail_20' ) end [2025-12-07 17:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-07 17:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-07 17:00:32] Production.INFO: ==5766== Releasing lock... [2025-12-07 17:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 17:00:32] Production.INFO: 41 MB #Memory Used# [2025-12-07 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 15:00:07 [end_date_ymd] => 2025-12-07 18:00:07 [RateCDR] => 1 ) [2025-12-07 18:00:07] 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-12-07 15:00:07' and `end` < '2025-12-07 18:00:07' 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-12-07 18:00:19] Production.INFO: count ==1873 [2025-12-07 18:00:20] Production.ERROR: pbx CDR StartTime 2025-12-07 15:00:07 - End Time 2025-12-07 18:00:07 [2025-12-07 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16337926', 'tblTempUsageDetail_20' ) start [2025-12-07 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16337926', 'tblTempUsageDetail_20' ) end [2025-12-07 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16337926', 'tblTempVendorCDR_20' ) start [2025-12-07 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16337926', 'tblTempVendorCDR_20' ) end [2025-12-07 18:00:20] Production.INFO: ProcessCDR(1,16337926,1,1,2) [2025-12-07 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16337926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16337926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16337926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 18:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16337926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 18:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16337926', 'tblTempUsageDetail_20' ) start [2025-12-07 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16337926', 'tblTempUsageDetail_20' ) end [2025-12-07 18:00:32] Production.ERROR: pbx prc_insertCDR start [2025-12-07 18:00:33] Production.ERROR: pbx prc_insertCDR end [2025-12-07 18:00:33] Production.INFO: ==10390== Releasing lock... [2025-12-07 18:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 18:00:33] Production.INFO: 42.5 MB #Memory Used# [2025-12-07 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 16:00:06 [end_date_ymd] => 2025-12-07 19:00:06 [RateCDR] => 1 ) [2025-12-07 19:00: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-12-07 16:00:06' and `end` < '2025-12-07 19:00: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-12-07 19:00:18] Production.INFO: count ==1935 [2025-12-07 19:00:19] Production.ERROR: pbx CDR StartTime 2025-12-07 16:00:06 - End Time 2025-12-07 19:00:06 [2025-12-07 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16338172', 'tblTempUsageDetail_20' ) start [2025-12-07 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16338172', 'tblTempUsageDetail_20' ) end [2025-12-07 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16338172', 'tblTempVendorCDR_20' ) start [2025-12-07 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16338172', 'tblTempVendorCDR_20' ) end [2025-12-07 19:00:19] Production.INFO: ProcessCDR(1,16338172,1,1,2) [2025-12-07 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16338172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16338172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16338172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 19:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16338172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 19:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16338172', 'tblTempUsageDetail_20' ) start [2025-12-07 19:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16338172', 'tblTempUsageDetail_20' ) end [2025-12-07 19:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-07 19:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-07 19:00:31] Production.INFO: ==14947== Releasing lock... [2025-12-07 19:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 19:00:31] Production.INFO: 43 MB #Memory Used# [2025-12-07 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 17:00:07 [end_date_ymd] => 2025-12-07 20:00:07 [RateCDR] => 1 ) [2025-12-07 20:00:07] 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-12-07 17:00:07' and `end` < '2025-12-07 20:00:07' 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-12-07 20:00:19] Production.INFO: count ==1866 [2025-12-07 20:00:20] Production.ERROR: pbx CDR StartTime 2025-12-07 17:00:07 - End Time 2025-12-07 20:00:07 [2025-12-07 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16338420', 'tblTempUsageDetail_20' ) start [2025-12-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16338420', 'tblTempUsageDetail_20' ) end [2025-12-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16338420', 'tblTempVendorCDR_20' ) start [2025-12-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16338420', 'tblTempVendorCDR_20' ) end [2025-12-07 20:00:20] Production.INFO: ProcessCDR(1,16338420,1,1,2) [2025-12-07 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16338420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 20:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16338420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 20:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16338420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 20:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16338420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16338420', 'tblTempUsageDetail_20' ) start [2025-12-07 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16338420', 'tblTempUsageDetail_20' ) end [2025-12-07 20:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-07 20:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-07 20:00:31] Production.INFO: ==19761== Releasing lock... [2025-12-07 20:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 20:00:31] Production.INFO: 42.5 MB #Memory Used# [2025-12-07 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 18:00:06 [end_date_ymd] => 2025-12-07 21:00:06 [RateCDR] => 1 ) [2025-12-07 21:00: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-12-07 18:00:06' and `end` < '2025-12-07 21:00: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-12-07 21:00:18] Production.INFO: count ==1707 [2025-12-07 21:00:19] Production.ERROR: pbx CDR StartTime 2025-12-07 18:00:06 - End Time 2025-12-07 21:00:06 [2025-12-07 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16338667', 'tblTempUsageDetail_20' ) start [2025-12-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16338667', 'tblTempUsageDetail_20' ) end [2025-12-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16338667', 'tblTempVendorCDR_20' ) start [2025-12-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16338667', 'tblTempVendorCDR_20' ) end [2025-12-07 21:00:19] Production.INFO: ProcessCDR(1,16338667,1,1,2) [2025-12-07 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16338667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16338667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16338667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 21:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16338667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16338667', 'tblTempUsageDetail_20' ) start [2025-12-07 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16338667', 'tblTempUsageDetail_20' ) end [2025-12-07 21:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-07 21:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-07 21:00:30] Production.INFO: ==24384== Releasing lock... [2025-12-07 21:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 21:00:30] Production.INFO: 41 MB #Memory Used# [2025-12-07 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 19:00:07 [end_date_ymd] => 2025-12-07 22:00:07 [RateCDR] => 1 ) [2025-12-07 22:00:07] 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-12-07 19:00:07' and `end` < '2025-12-07 22:00:07' 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-12-07 22:00:19] Production.INFO: count ==1341 [2025-12-07 22:00:19] Production.ERROR: pbx CDR StartTime 2025-12-07 19:00:07 - End Time 2025-12-07 22:00:07 [2025-12-07 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16338914', 'tblTempUsageDetail_20' ) start [2025-12-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16338914', 'tblTempUsageDetail_20' ) end [2025-12-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16338914', 'tblTempVendorCDR_20' ) start [2025-12-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16338914', 'tblTempVendorCDR_20' ) end [2025-12-07 22:00:19] Production.INFO: ProcessCDR(1,16338914,1,1,2) [2025-12-07 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16338914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 22:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16338914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 22:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16338914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 22:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16338914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 22:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16338914', 'tblTempUsageDetail_20' ) start [2025-12-07 22:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16338914', 'tblTempUsageDetail_20' ) end [2025-12-07 22:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-07 22:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-07 22:00:31] Production.INFO: ==29007== Releasing lock... [2025-12-07 22:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 22:00:31] Production.INFO: 38.25 MB #Memory Used# [2025-12-07 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 20:00:06 [end_date_ymd] => 2025-12-07 23:00:06 [RateCDR] => 1 ) [2025-12-07 23:00: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-12-07 20:00:06' and `end` < '2025-12-07 23:00: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-12-07 23:00:18] Production.INFO: count ==1042 [2025-12-07 23:00:18] Production.ERROR: pbx CDR StartTime 2025-12-07 20:00:06 - End Time 2025-12-07 23:00:06 [2025-12-07 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-07 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16339161', 'tblTempUsageDetail_20' ) start [2025-12-07 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16339161', 'tblTempUsageDetail_20' ) end [2025-12-07 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16339161', 'tblTempVendorCDR_20' ) start [2025-12-07 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16339161', 'tblTempVendorCDR_20' ) end [2025-12-07 23:00:18] Production.INFO: ProcessCDR(1,16339161,1,1,2) [2025-12-07 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16339161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16339161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-07 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16339161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 23:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16339161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-07 23:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16339161', 'tblTempUsageDetail_20' ) start [2025-12-07 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16339161', 'tblTempUsageDetail_20' ) end [2025-12-07 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-07 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-07 23:00:29] Production.INFO: ==1601== Releasing lock... [2025-12-07 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-07 23:00:29] Production.INFO: 36.25 MB #Memory Used#