[2025-11-25 00:00:06] Production.INFO: next invoice date [2025-11-25 00:00:06] Production.INFO: 2025-12-25 [2025-11-25 00:00:06] Production.INFO: getdaysdiff [2025-11-25 00:00:06] Production.INFO: +30 [2025-11-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (111,11,1,30,30,'RMScheduler',2025-11-25 00:00:06,1,0,,,0) [2025-11-25 00:00:06] Production.INFO: next invoice date [2025-11-25 00:00:06] Production.INFO: 2025-12-25 [2025-11-25 00:00:06] Production.INFO: getdaysdiff [2025-11-25 00:00:06] Production.INFO: +30 [2025-11-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (110,11,1,30,30,'RMScheduler',2025-11-25 00:00:06,1,0,,,0) [2025-11-25 00:00:06] Production.INFO: next invoice date [2025-11-25 00:00:06] Production.INFO: 2025-12-08 [2025-11-25 00:00:06] Production.INFO: getdaysdiff [2025-11-25 00:00:06] Production.INFO: +13 [2025-11-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,30,13,'RMScheduler',2025-11-25 00:00:06,1,0,,,0) [2025-11-25 00:00:06] Production.INFO: next invoice date [2025-11-25 00:00:06] Production.INFO: 2025-12-08 [2025-11-25 00:00:06] Production.INFO: getdaysdiff [2025-11-25 00:00:06] Production.INFO: +13 [2025-11-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,30,13,'RMScheduler',2025-11-25 00:00:06,1,0,,,0) [2025-11-25 00:00:06] Production.INFO: next invoice date [2025-11-25 00:00:06] Production.INFO: 2025-12-08 [2025-11-25 00:00:06] Production.INFO: getdaysdiff [2025-11-25 00:00:06] Production.INFO: +13 [2025-11-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,30,13,'RMScheduler',2025-11-25 00:00:06,0,0,,,0) [2025-11-25 00:00:06] Production.INFO: next invoice date [2025-11-25 00:00:06] Production.INFO: 2025-12-08 [2025-11-25 00:00:06] Production.INFO: getdaysdiff [2025-11-25 00:00:06] Production.INFO: +13 [2025-11-25 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,30,13,'RMScheduler',2025-11-25 00:00:06,0,0,,,0) [2025-11-25 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 21:00:07 [end_date_ymd] => 2025-11-25 00:00:07 [RateCDR] => 1 ) [2025-11-25 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-11-24 21:00:07' and `end` < '2025-11-25 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-11-25 00:00:20] Production.INFO: count ==728 [2025-11-25 00:00:20] Production.ERROR: pbx CDR StartTime 2025-11-24 21:00:07 - End Time 2025-11-25 00:00:07 [2025-11-25 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16262344', 'tblTempUsageDetail_20' ) start [2025-11-25 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16262344', 'tblTempUsageDetail_20' ) end [2025-11-25 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16262344', 'tblTempVendorCDR_20' ) start [2025-11-25 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16262344', 'tblTempVendorCDR_20' ) end [2025-11-25 00:00:20] Production.INFO: ProcessCDR(1,16262344,1,1,2) [2025-11-25 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16262344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 00:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16262344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 00:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16262344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 00:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16262344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 00:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16262344', 'tblTempUsageDetail_20' ) start [2025-11-25 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16262344', 'tblTempUsageDetail_20' ) end [2025-11-25 00:06:31] Production.ERROR: pbx prc_insertCDR start [2025-11-25 00:06:31] Production.ERROR: pbx prc_insertCDR end [2025-11-25 00:06:34] Production.INFO: ==11412== Releasing lock... [2025-11-25 00:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 00:06:34] Production.INFO: 37.25 MB #Memory Used# [2025-11-25 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 22:00:06 [end_date_ymd] => 2025-11-25 01:00:06 [RateCDR] => 1 ) [2025-11-25 01: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-11-24 22:00:06' and `end` < '2025-11-25 01: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-11-25 01:00:18] Production.INFO: count ==452 [2025-11-25 01:00:18] Production.ERROR: pbx CDR StartTime 2025-11-24 22:00:06 - End Time 2025-11-25 01:00:06 [2025-11-25 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16262591', 'tblTempUsageDetail_20' ) start [2025-11-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16262591', 'tblTempUsageDetail_20' ) end [2025-11-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16262591', 'tblTempVendorCDR_20' ) start [2025-11-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16262591', 'tblTempVendorCDR_20' ) end [2025-11-25 01:00:18] Production.INFO: ProcessCDR(1,16262591,1,1,2) [2025-11-25 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16262591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 01:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16262591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 01:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16262591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 01:06:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16262591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 01:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16262591', 'tblTempUsageDetail_20' ) start [2025-11-25 01:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16262591', 'tblTempUsageDetail_20' ) end [2025-11-25 01:06:11] Production.ERROR: pbx prc_insertCDR start [2025-11-25 01:06:11] Production.ERROR: pbx prc_insertCDR end [2025-11-25 01:06:11] Production.INFO: ==18586== Releasing lock... [2025-11-25 01:06:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 01:06:11] Production.INFO: 32 MB #Memory Used# [2025-11-25 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-24 23:00:06 [end_date_ymd] => 2025-11-25 02:00:06 [RateCDR] => 1 ) [2025-11-25 02: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-11-24 23:00:06' and `end` < '2025-11-25 02: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-11-25 02:00:18] Production.INFO: count ==456 [2025-11-25 02:00:18] Production.ERROR: pbx CDR StartTime 2025-11-24 23:00:06 - End Time 2025-11-25 02:00:06 [2025-11-25 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16262838', 'tblTempUsageDetail_20' ) start [2025-11-25 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16262838', 'tblTempUsageDetail_20' ) end [2025-11-25 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16262838', 'tblTempVendorCDR_20' ) start [2025-11-25 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16262838', 'tblTempVendorCDR_20' ) end [2025-11-25 02:00:18] Production.INFO: ProcessCDR(1,16262838,1,1,2) [2025-11-25 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16262838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 02:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16262838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 02:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16262838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 02:06:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16262838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 02:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16262838', 'tblTempUsageDetail_20' ) start [2025-11-25 02:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16262838', 'tblTempUsageDetail_20' ) end [2025-11-25 02:06:13] Production.ERROR: pbx prc_insertCDR start [2025-11-25 02:06:13] Production.ERROR: pbx prc_insertCDR end [2025-11-25 02:06:13] Production.INFO: ==25180== Releasing lock... [2025-11-25 02:06:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 02:06:13] Production.INFO: 31.75 MB #Memory Used# [2025-11-25 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 00:00:06 [end_date_ymd] => 2025-11-25 03:00:06 [RateCDR] => 1 ) [2025-11-25 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-11-25 00:00:06' and `end` < '2025-11-25 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-11-25 03:00:19] Production.INFO: count ==404 [2025-11-25 03:00:19] Production.ERROR: pbx CDR StartTime 2025-11-25 00:00:06 - End Time 2025-11-25 03:00:06 [2025-11-25 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16263085', 'tblTempUsageDetail_20' ) start [2025-11-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16263085', 'tblTempUsageDetail_20' ) end [2025-11-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16263085', 'tblTempVendorCDR_20' ) start [2025-11-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16263085', 'tblTempVendorCDR_20' ) end [2025-11-25 03:00:19] Production.INFO: ProcessCDR(1,16263085,1,1,2) [2025-11-25 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16263085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 03:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16263085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 03:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16263085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 03:06:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16263085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 03:06:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16263085', 'tblTempUsageDetail_20' ) start [2025-11-25 03:06:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16263085', 'tblTempUsageDetail_20' ) end [2025-11-25 03:06:01] Production.ERROR: pbx prc_insertCDR start [2025-11-25 03:06:01] Production.ERROR: pbx prc_insertCDR end [2025-11-25 03:06:01] Production.INFO: ==29904== Releasing lock... [2025-11-25 03:06:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 03:06:01] Production.INFO: 31.5 MB #Memory Used# [2025-11-25 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 01:00:06 [end_date_ymd] => 2025-11-25 04:00:06 [RateCDR] => 1 ) [2025-11-25 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-11-25 01:00:06' and `end` < '2025-11-25 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-11-25 04:00:18] Production.INFO: count ==261 [2025-11-25 04:00:18] Production.ERROR: pbx CDR StartTime 2025-11-25 01:00:06 - End Time 2025-11-25 04:00:06 [2025-11-25 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16263333', 'tblTempUsageDetail_20' ) start [2025-11-25 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16263333', 'tblTempUsageDetail_20' ) end [2025-11-25 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16263333', 'tblTempVendorCDR_20' ) start [2025-11-25 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16263333', 'tblTempVendorCDR_20' ) end [2025-11-25 04:00:18] Production.INFO: ProcessCDR(1,16263333,1,1,2) [2025-11-25 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16263333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 04:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16263333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 04:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16263333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16263333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16263333', 'tblTempUsageDetail_20' ) start [2025-11-25 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16263333', 'tblTempUsageDetail_20' ) end [2025-11-25 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-11-25 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-11-25 04:06:21] Production.INFO: ==2343== Releasing lock... [2025-11-25 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 04:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-11-25 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 02:00:06 [end_date_ymd] => 2025-11-25 05:00:06 [RateCDR] => 1 ) [2025-11-25 05: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-11-25 02:00:06' and `end` < '2025-11-25 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-11-25 05:00:20] Production.INFO: count ==133 [2025-11-25 05:00:20] Production.ERROR: pbx CDR StartTime 2025-11-25 02:00:06 - End Time 2025-11-25 05:00:06 [2025-11-25 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16263581', 'tblTempUsageDetail_20' ) start [2025-11-25 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16263581', 'tblTempUsageDetail_20' ) end [2025-11-25 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16263581', 'tblTempVendorCDR_20' ) start [2025-11-25 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16263581', 'tblTempVendorCDR_20' ) end [2025-11-25 05:00:20] Production.INFO: ProcessCDR(1,16263581,1,1,2) [2025-11-25 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16263581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 05:03:04] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16263581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 05:03:04] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16263581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 05:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16263581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 05:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16263581', 'tblTempUsageDetail_20' ) start [2025-11-25 05:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16263581', 'tblTempUsageDetail_20' ) end [2025-11-25 05:06:25] Production.ERROR: pbx prc_insertCDR start [2025-11-25 05:06:25] Production.ERROR: pbx prc_insertCDR end [2025-11-25 05:06:25] Production.INFO: ==6818== Releasing lock... [2025-11-25 05:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 05:06:25] Production.INFO: 29.25 MB #Memory Used# [2025-11-25 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 03:00:06 [end_date_ymd] => 2025-11-25 06:00:06 [RateCDR] => 1 ) [2025-11-25 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-11-25 03:00:06' and `end` < '2025-11-25 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-11-25 06:00:17] Production.INFO: count ==97 [2025-11-25 06:00:17] Production.ERROR: pbx CDR StartTime 2025-11-25 03:00:06 - End Time 2025-11-25 06:00:06 [2025-11-25 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16263828', 'tblTempUsageDetail_20' ) start [2025-11-25 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16263828', 'tblTempUsageDetail_20' ) end [2025-11-25 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16263828', 'tblTempVendorCDR_20' ) start [2025-11-25 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16263828', 'tblTempVendorCDR_20' ) end [2025-11-25 06:00:17] Production.INFO: ProcessCDR(1,16263828,1,1,2) [2025-11-25 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16263828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 06:02:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16263828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 06:02:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16263828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 06:06:02] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16263828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 06:06:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16263828', 'tblTempUsageDetail_20' ) start [2025-11-25 06:06:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16263828', 'tblTempUsageDetail_20' ) end [2025-11-25 06:06:02] Production.ERROR: pbx prc_insertCDR start [2025-11-25 06:06:02] Production.ERROR: pbx prc_insertCDR end [2025-11-25 06:06:02] Production.INFO: ==12237== Releasing lock... [2025-11-25 06:06:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 06:06:02] Production.INFO: 28.5 MB #Memory Used# [2025-11-25 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 04:00:06 [end_date_ymd] => 2025-11-25 07:00:06 [RateCDR] => 1 ) [2025-11-25 07: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-11-25 04:00:06' and `end` < '2025-11-25 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-11-25 07:00:18] Production.INFO: count ==185 [2025-11-25 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-25 04:00:06 - End Time 2025-11-25 07:00:06 [2025-11-25 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16264075', 'tblTempUsageDetail_20' ) start [2025-11-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16264075', 'tblTempUsageDetail_20' ) end [2025-11-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16264075', 'tblTempVendorCDR_20' ) start [2025-11-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16264075', 'tblTempVendorCDR_20' ) end [2025-11-25 07:00:18] Production.INFO: ProcessCDR(1,16264075,1,1,2) [2025-11-25 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16264075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 07:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16264075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 07:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16264075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 07:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16264075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 07:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16264075', 'tblTempUsageDetail_20' ) start [2025-11-25 07:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16264075', 'tblTempUsageDetail_20' ) end [2025-11-25 07:06:19] Production.ERROR: pbx prc_insertCDR start [2025-11-25 07:06:19] Production.ERROR: pbx prc_insertCDR end [2025-11-25 07:06:19] Production.INFO: ==17670== Releasing lock... [2025-11-25 07:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 07:06:19] Production.INFO: 30 MB #Memory Used# [2025-11-25 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 05:00:06 [end_date_ymd] => 2025-11-25 08:00:06 [RateCDR] => 1 ) [2025-11-25 08: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-11-25 05:00:06' and `end` < '2025-11-25 08: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-11-25 08:00:18] Production.INFO: count ==439 [2025-11-25 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-25 05:00:06 - End Time 2025-11-25 08:00:06 [2025-11-25 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16264321', 'tblTempUsageDetail_20' ) start [2025-11-25 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16264321', 'tblTempUsageDetail_20' ) end [2025-11-25 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16264321', 'tblTempVendorCDR_20' ) start [2025-11-25 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16264321', 'tblTempVendorCDR_20' ) end [2025-11-25 08:00:18] Production.INFO: ProcessCDR(1,16264321,1,1,2) [2025-11-25 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16264321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 08:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16264321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 08:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16264321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 08:06:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16264321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 08:06:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16264321', 'tblTempUsageDetail_20' ) start [2025-11-25 08:06:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16264321', 'tblTempUsageDetail_20' ) end [2025-11-25 08:06:15] Production.ERROR: pbx prc_insertCDR start [2025-11-25 08:06:15] Production.ERROR: pbx prc_insertCDR end [2025-11-25 08:06:15] Production.INFO: ==22862== Releasing lock... [2025-11-25 08:06:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 08:06:15] Production.INFO: 31.5 MB #Memory Used# [2025-11-25 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 06:00:06 [end_date_ymd] => 2025-11-25 09:00:06 [RateCDR] => 1 ) [2025-11-25 09: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-11-25 06:00:06' and `end` < '2025-11-25 09: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-11-25 09:00:18] Production.INFO: count ==1113 [2025-11-25 09:00:18] Production.ERROR: pbx CDR StartTime 2025-11-25 06:00:06 - End Time 2025-11-25 09:00:06 [2025-11-25 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16264569', 'tblTempUsageDetail_20' ) start [2025-11-25 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16264569', 'tblTempUsageDetail_20' ) end [2025-11-25 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16264569', 'tblTempVendorCDR_20' ) start [2025-11-25 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16264569', 'tblTempVendorCDR_20' ) end [2025-11-25 09:00:19] Production.INFO: ProcessCDR(1,16264569,1,1,2) [2025-11-25 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16264569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 09:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16264569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 09:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16264569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 09:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16264569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 09:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16264569', 'tblTempUsageDetail_20' ) start [2025-11-25 09:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16264569', 'tblTempUsageDetail_20' ) end [2025-11-25 09:06:38] Production.ERROR: pbx prc_insertCDR start [2025-11-25 09:06:39] Production.ERROR: pbx prc_insertCDR end [2025-11-25 09:06:39] Production.INFO: ==27701== Releasing lock... [2025-11-25 09:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 09:06:39] Production.INFO: 37.25 MB #Memory Used# [2025-11-25 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 07:00:06 [end_date_ymd] => 2025-11-25 10:00:06 [RateCDR] => 1 ) [2025-11-25 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-11-25 07:00:06' and `end` < '2025-11-25 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-11-25 10:00:21] Production.INFO: count ==2596 [2025-11-25 10:00:22] Production.ERROR: pbx CDR StartTime 2025-11-25 07:00:06 - End Time 2025-11-25 10:00:06 [2025-11-25 10:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16264815', 'tblTempUsageDetail_20' ) start [2025-11-25 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16264815', 'tblTempUsageDetail_20' ) end [2025-11-25 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16264815', 'tblTempVendorCDR_20' ) start [2025-11-25 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16264815', 'tblTempVendorCDR_20' ) end [2025-11-25 10:00:22] Production.INFO: ProcessCDR(1,16264815,1,1,2) [2025-11-25 10:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16264815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 10:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16264815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 10:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16264815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 10:06:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16264815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 10:06:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16264815', 'tblTempUsageDetail_20' ) start [2025-11-25 10:06:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16264815', 'tblTempUsageDetail_20' ) end [2025-11-25 10:06:00] Production.ERROR: pbx prc_insertCDR start [2025-11-25 10:06:03] Production.ERROR: pbx prc_insertCDR end [2025-11-25 10:06:03] Production.INFO: ==32225== Releasing lock... [2025-11-25 10:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 10:06:03] Production.INFO: 48 MB #Memory Used# [2025-11-25 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 08:00:07 [end_date_ymd] => 2025-11-25 11:00:07 [RateCDR] => 1 ) [2025-11-25 11: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-11-25 08:00:07' and `end` < '2025-11-25 11: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-11-25 11:00:20] Production.INFO: count ==4151 [2025-11-25 11:00:22] Production.ERROR: pbx CDR StartTime 2025-11-25 08:00:07 - End Time 2025-11-25 11:00:07 [2025-11-25 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16265063', 'tblTempUsageDetail_20' ) start [2025-11-25 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16265063', 'tblTempUsageDetail_20' ) end [2025-11-25 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16265063', 'tblTempVendorCDR_20' ) start [2025-11-25 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16265063', 'tblTempVendorCDR_20' ) end [2025-11-25 11:00:22] Production.INFO: ProcessCDR(1,16265063,1,1,2) [2025-11-25 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16265063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 11:03:02] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16265063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 11:03:02] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16265063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16265063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16265063', 'tblTempUsageDetail_20' ) start [2025-11-25 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16265063', 'tblTempUsageDetail_20' ) end [2025-11-25 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-11-25 11:06:27] Production.ERROR: pbx prc_insertCDR end [2025-11-25 11:06:27] Production.INFO: ==4470== Releasing lock... [2025-11-25 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 11:06:27] Production.INFO: 59.5 MB #Memory Used# [2025-11-25 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 09:00:06 [end_date_ymd] => 2025-11-25 12:00:06 [RateCDR] => 1 ) [2025-11-25 12: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-11-25 09:00:06' and `end` < '2025-11-25 12: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-11-25 12:00:20] Production.INFO: count ==5373 [2025-11-25 12:00:23] Production.ERROR: pbx CDR StartTime 2025-11-25 09:00:06 - End Time 2025-11-25 12:00:06 [2025-11-25 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16265310', 'tblTempUsageDetail_20' ) start [2025-11-25 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16265310', 'tblTempUsageDetail_20' ) end [2025-11-25 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16265310', 'tblTempVendorCDR_20' ) start [2025-11-25 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16265310', 'tblTempVendorCDR_20' ) end [2025-11-25 12:00:23] Production.INFO: ProcessCDR(1,16265310,1,1,2) [2025-11-25 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16265310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 12:03:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16265310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 12:03:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16265310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 12:06:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16265310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 12:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16265310', 'tblTempUsageDetail_20' ) start [2025-11-25 12:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16265310', 'tblTempUsageDetail_20' ) end [2025-11-25 12:06:50] Production.ERROR: pbx prc_insertCDR start [2025-11-25 12:06:52] Production.ERROR: pbx prc_insertCDR end [2025-11-25 12:06:52] Production.INFO: ==9182== Releasing lock... [2025-11-25 12:06:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 12:06:52] Production.INFO: 68.5 MB #Memory Used# [2025-11-25 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 10:00:06 [end_date_ymd] => 2025-11-25 13:00:06 [RateCDR] => 1 ) [2025-11-25 13: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-11-25 10:00:06' and `end` < '2025-11-25 13: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-11-25 13:00:20] Production.INFO: count ==5280 [2025-11-25 13:00:23] Production.ERROR: pbx CDR StartTime 2025-11-25 10:00:06 - End Time 2025-11-25 13:00:06 [2025-11-25 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16265557', 'tblTempUsageDetail_20' ) start [2025-11-25 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16265557', 'tblTempUsageDetail_20' ) end [2025-11-25 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16265557', 'tblTempVendorCDR_20' ) start [2025-11-25 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16265557', 'tblTempVendorCDR_20' ) end [2025-11-25 13:00:23] Production.INFO: ProcessCDR(1,16265557,1,1,2) [2025-11-25 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16265557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 13:03:09] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16265557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 13:03:09] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16265557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 13:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16265557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16265557', 'tblTempUsageDetail_20' ) start [2025-11-25 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16265557', 'tblTempUsageDetail_20' ) end [2025-11-25 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-11-25 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-11-25 13:06:28] Production.INFO: ==14101== Releasing lock... [2025-11-25 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 13:06:28] Production.INFO: 67.75 MB #Memory Used# [2025-11-25 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 11:00:06 [end_date_ymd] => 2025-11-25 14:00:06 [RateCDR] => 1 ) [2025-11-25 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-11-25 11:00:06' and `end` < '2025-11-25 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-11-25 14:00:21] Production.INFO: count ==5438 [2025-11-25 14:00:24] Production.ERROR: pbx CDR StartTime 2025-11-25 11:00:06 - End Time 2025-11-25 14:00:06 [2025-11-25 14:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16265803', 'tblTempUsageDetail_20' ) start [2025-11-25 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16265803', 'tblTempUsageDetail_20' ) end [2025-11-25 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16265803', 'tblTempVendorCDR_20' ) start [2025-11-25 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16265803', 'tblTempVendorCDR_20' ) end [2025-11-25 14:00:24] Production.INFO: ProcessCDR(1,16265803,1,1,2) [2025-11-25 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16265803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 14:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16265803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 14:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16265803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 14:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16265803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 14:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16265803', 'tblTempUsageDetail_20' ) start [2025-11-25 14:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16265803', 'tblTempUsageDetail_20' ) end [2025-11-25 14:06:21] Production.ERROR: pbx prc_insertCDR start [2025-11-25 14:06:23] Production.ERROR: pbx prc_insertCDR end [2025-11-25 14:06:23] Production.INFO: ==18557== Releasing lock... [2025-11-25 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 14:06:23] Production.INFO: 69 MB #Memory Used# [2025-11-25 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 12:00:06 [end_date_ymd] => 2025-11-25 15:00:06 [RateCDR] => 1 ) [2025-11-25 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-11-25 12:00:06' and `end` < '2025-11-25 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-11-25 15:00:20] Production.INFO: count ==5376 [2025-11-25 15:00:23] Production.ERROR: pbx CDR StartTime 2025-11-25 12:00:06 - End Time 2025-11-25 15:00:06 [2025-11-25 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16266051', 'tblTempUsageDetail_20' ) start [2025-11-25 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16266051', 'tblTempUsageDetail_20' ) end [2025-11-25 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16266051', 'tblTempVendorCDR_20' ) start [2025-11-25 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16266051', 'tblTempVendorCDR_20' ) end [2025-11-25 15:00:23] Production.INFO: ProcessCDR(1,16266051,1,1,2) [2025-11-25 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16266051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 15:03:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16266051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 15:03:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16266051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 15:06:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16266051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 15:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16266051', 'tblTempUsageDetail_20' ) start [2025-11-25 15:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16266051', 'tblTempUsageDetail_20' ) end [2025-11-25 15:06:16] Production.ERROR: pbx prc_insertCDR start [2025-11-25 15:06:19] Production.ERROR: pbx prc_insertCDR end [2025-11-25 15:06:19] Production.INFO: ==23352== Releasing lock... [2025-11-25 15:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 15:06:19] Production.INFO: 68.5 MB #Memory Used# [2025-11-25 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 13:00:06 [end_date_ymd] => 2025-11-25 16:00:06 [RateCDR] => 1 ) [2025-11-25 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-11-25 13:00:06' and `end` < '2025-11-25 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-11-25 16:00:20] Production.INFO: count ==5811 [2025-11-25 16:00:23] Production.ERROR: pbx CDR StartTime 2025-11-25 13:00:06 - End Time 2025-11-25 16:00:06 [2025-11-25 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16266298', 'tblTempUsageDetail_20' ) start [2025-11-25 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16266298', 'tblTempUsageDetail_20' ) end [2025-11-25 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16266298', 'tblTempVendorCDR_20' ) start [2025-11-25 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16266298', 'tblTempVendorCDR_20' ) end [2025-11-25 16:00:24] Production.INFO: ProcessCDR(1,16266298,1,1,2) [2025-11-25 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16266298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 16:03:02] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16266298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 16:03:02] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16266298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 16:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16266298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16266298', 'tblTempUsageDetail_20' ) start [2025-11-25 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16266298', 'tblTempUsageDetail_20' ) end [2025-11-25 16:06:21] Production.ERROR: pbx prc_insertCDR start [2025-11-25 16:06:25] Production.ERROR: pbx prc_insertCDR end [2025-11-25 16:06:25] Production.INFO: ==27951== Releasing lock... [2025-11-25 16:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 16:06:25] Production.INFO: 71.75 MB #Memory Used# [2025-11-25 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 14:00:06 [end_date_ymd] => 2025-11-25 17:00:06 [RateCDR] => 1 ) [2025-11-25 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-11-25 14:00:06' and `end` < '2025-11-25 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-11-25 17:00:21] Production.INFO: count ==5657 [2025-11-25 17:00:23] Production.ERROR: pbx CDR StartTime 2025-11-25 14:00:06 - End Time 2025-11-25 17:00:06 [2025-11-25 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16266544', 'tblTempUsageDetail_20' ) start [2025-11-25 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16266544', 'tblTempUsageDetail_20' ) end [2025-11-25 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16266544', 'tblTempVendorCDR_20' ) start [2025-11-25 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16266544', 'tblTempVendorCDR_20' ) end [2025-11-25 17:00:24] Production.INFO: ProcessCDR(1,16266544,1,1,2) [2025-11-25 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16266544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 17:03:14] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16266544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 17:03:14] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16266544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 17:06:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16266544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 17:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16266544', 'tblTempUsageDetail_20' ) start [2025-11-25 17:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16266544', 'tblTempUsageDetail_20' ) end [2025-11-25 17:06:37] Production.ERROR: pbx prc_insertCDR start [2025-11-25 17:06:39] Production.ERROR: pbx prc_insertCDR end [2025-11-25 17:06:39] Production.INFO: ==32646== Releasing lock... [2025-11-25 17:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 17:06:39] Production.INFO: 70.5 MB #Memory Used# [2025-11-25 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 15:00:06 [end_date_ymd] => 2025-11-25 18:00:06 [RateCDR] => 1 ) [2025-11-25 18: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-11-25 15:00:06' and `end` < '2025-11-25 18: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-11-25 18:00:19] Production.INFO: count ==5097 [2025-11-25 18:00:22] Production.ERROR: pbx CDR StartTime 2025-11-25 15:00:06 - End Time 2025-11-25 18:00:06 [2025-11-25 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16266789', 'tblTempUsageDetail_20' ) start [2025-11-25 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16266789', 'tblTempUsageDetail_20' ) end [2025-11-25 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16266789', 'tblTempVendorCDR_20' ) start [2025-11-25 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16266789', 'tblTempVendorCDR_20' ) end [2025-11-25 18:00:22] Production.INFO: ProcessCDR(1,16266789,1,1,2) [2025-11-25 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16266789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 18:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16266789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 18:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16266789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 18:06:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16266789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 18:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16266789', 'tblTempUsageDetail_20' ) start [2025-11-25 18:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16266789', 'tblTempUsageDetail_20' ) end [2025-11-25 18:06:18] Production.ERROR: pbx prc_insertCDR start [2025-11-25 18:06:20] Production.ERROR: pbx prc_insertCDR end [2025-11-25 18:06:20] Production.INFO: ==5185== Releasing lock... [2025-11-25 18:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 18:06:20] Production.INFO: 66.5 MB #Memory Used# [2025-11-25 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 16:00:06 [end_date_ymd] => 2025-11-25 19:00:06 [RateCDR] => 1 ) [2025-11-25 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-11-25 16:00:06' and `end` < '2025-11-25 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-11-25 19:00:19] Production.INFO: count ==3836 [2025-11-25 19:00:20] Production.ERROR: pbx CDR StartTime 2025-11-25 16:00:06 - End Time 2025-11-25 19:00:06 [2025-11-25 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16267036', 'tblTempUsageDetail_20' ) start [2025-11-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16267036', 'tblTempUsageDetail_20' ) end [2025-11-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16267036', 'tblTempVendorCDR_20' ) start [2025-11-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16267036', 'tblTempVendorCDR_20' ) end [2025-11-25 19:00:21] Production.INFO: ProcessCDR(1,16267036,1,1,2) [2025-11-25 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16267036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 19:03:04] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16267036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 19:03:04] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16267036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16267036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16267036', 'tblTempUsageDetail_20' ) start [2025-11-25 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16267036', 'tblTempUsageDetail_20' ) end [2025-11-25 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-11-25 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-11-25 19:06:25] Production.INFO: ==9628== Releasing lock... [2025-11-25 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 19:06:25] Production.INFO: 57 MB #Memory Used# [2025-11-25 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 17:00:07 [end_date_ymd] => 2025-11-25 20:00:07 [RateCDR] => 1 ) [2025-11-25 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-11-25 17:00:07' and `end` < '2025-11-25 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-11-25 20:00:19] Production.INFO: count ==2507 [2025-11-25 20:00:20] Production.ERROR: pbx CDR StartTime 2025-11-25 17:00:07 - End Time 2025-11-25 20:00:07 [2025-11-25 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16267283', 'tblTempUsageDetail_20' ) start [2025-11-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16267283', 'tblTempUsageDetail_20' ) end [2025-11-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16267283', 'tblTempVendorCDR_20' ) start [2025-11-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16267283', 'tblTempVendorCDR_20' ) end [2025-11-25 20:00:20] Production.INFO: ProcessCDR(1,16267283,1,1,2) [2025-11-25 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16267283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 20:03:05] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16267283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 20:03:05] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16267283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 20:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16267283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 20:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16267283', 'tblTempUsageDetail_20' ) start [2025-11-25 20:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16267283', 'tblTempUsageDetail_20' ) end [2025-11-25 20:06:27] Production.ERROR: pbx prc_insertCDR start [2025-11-25 20:06:27] Production.ERROR: pbx prc_insertCDR end [2025-11-25 20:06:27] Production.INFO: ==14285== Releasing lock... [2025-11-25 20:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 20:06:27] Production.INFO: 47 MB #Memory Used# [2025-11-25 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 18:00:06 [end_date_ymd] => 2025-11-25 21:00:06 [RateCDR] => 1 ) [2025-11-25 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-11-25 18:00:06' and `end` < '2025-11-25 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-11-25 21:00:18] Production.INFO: count ==1664 [2025-11-25 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-25 18:00:06 - End Time 2025-11-25 21:00:06 [2025-11-25 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16267530', 'tblTempUsageDetail_20' ) start [2025-11-25 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16267530', 'tblTempUsageDetail_20' ) end [2025-11-25 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16267530', 'tblTempVendorCDR_20' ) start [2025-11-25 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16267530', 'tblTempVendorCDR_20' ) end [2025-11-25 21:00:19] Production.INFO: ProcessCDR(1,16267530,1,1,2) [2025-11-25 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16267530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 21:02:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16267530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 21:02:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16267530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 21:06:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16267530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 21:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16267530', 'tblTempUsageDetail_20' ) start [2025-11-25 21:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16267530', 'tblTempUsageDetail_20' ) end [2025-11-25 21:06:11] Production.ERROR: pbx prc_insertCDR start [2025-11-25 21:06:12] Production.ERROR: pbx prc_insertCDR end [2025-11-25 21:06:12] Production.INFO: ==18870== Releasing lock... [2025-11-25 21:06:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 21:06:12] Production.INFO: 40.5 MB #Memory Used# [2025-11-25 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 19:00:07 [end_date_ymd] => 2025-11-25 22:00:07 [RateCDR] => 1 ) [2025-11-25 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-11-25 19:00:07' and `end` < '2025-11-25 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-11-25 22:00:19] Production.INFO: count ==1252 [2025-11-25 22:00:20] Production.ERROR: pbx CDR StartTime 2025-11-25 19:00:07 - End Time 2025-11-25 22:00:07 [2025-11-25 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16267777', 'tblTempUsageDetail_20' ) start [2025-11-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16267777', 'tblTempUsageDetail_20' ) end [2025-11-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16267777', 'tblTempVendorCDR_20' ) start [2025-11-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16267777', 'tblTempVendorCDR_20' ) end [2025-11-25 22:00:20] Production.INFO: ProcessCDR(1,16267777,1,1,2) [2025-11-25 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16267777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 22:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16267777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 22:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16267777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 22:06:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16267777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 22:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16267777', 'tblTempUsageDetail_20' ) start [2025-11-25 22:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16267777', 'tblTempUsageDetail_20' ) end [2025-11-25 22:06:13] Production.ERROR: pbx prc_insertCDR start [2025-11-25 22:06:14] Production.ERROR: pbx prc_insertCDR end [2025-11-25 22:06:14] Production.INFO: ==23553== Releasing lock... [2025-11-25 22:06:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 22:06:14] Production.INFO: 38 MB #Memory Used# [2025-11-25 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-25 20:00:06 [end_date_ymd] => 2025-11-25 23:00:06 [RateCDR] => 1 ) [2025-11-25 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-11-25 20:00:06' and `end` < '2025-11-25 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-11-25 23:00:18] Production.INFO: count ==985 [2025-11-25 23:00:18] Production.ERROR: pbx CDR StartTime 2025-11-25 20:00:06 - End Time 2025-11-25 23:00:06 [2025-11-25 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-25 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16268024', 'tblTempUsageDetail_20' ) start [2025-11-25 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16268024', 'tblTempUsageDetail_20' ) end [2025-11-25 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16268024', 'tblTempVendorCDR_20' ) start [2025-11-25 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16268024', 'tblTempVendorCDR_20' ) end [2025-11-25 23:00:18] Production.INFO: ProcessCDR(1,16268024,1,1,2) [2025-11-25 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16268024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 23:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16268024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-25 23:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16268024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 23:06:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16268024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-25 23:06:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16268024', 'tblTempUsageDetail_20' ) start [2025-11-25 23:06:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16268024', 'tblTempUsageDetail_20' ) end [2025-11-25 23:06:14] Production.ERROR: pbx prc_insertCDR start [2025-11-25 23:06:14] Production.ERROR: pbx prc_insertCDR end [2025-11-25 23:06:15] Production.INFO: ==28377== Releasing lock... [2025-11-25 23:06:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-25 23:06:15] Production.INFO: 36 MB #Memory Used#