[2025-11-29 00:00:05] Production.INFO: next invoice date [2025-11-29 00:00:05] Production.INFO: 2025-12-29 [2025-11-29 00:00:05] Production.INFO: getdaysdiff [2025-11-29 00:00:05] Production.INFO: +30 [2025-11-29 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (1,11,1,30,30,'RMScheduler',2025-11-29 00:00:05,1,0,,,0) [2025-11-29 00:00:05] Production.INFO: next invoice date [2025-11-29 00:00:05] Production.INFO: 2025-12-29 [2025-11-29 00:00:05] Production.INFO: getdaysdiff [2025-11-29 00:00:05] Production.INFO: +30 [2025-11-29 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (1,13,2,30,30,'RMScheduler',2025-11-29 00:00:05,1,0,,,0) [2025-11-29 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-28 21:00:07 [end_date_ymd] => 2025-11-29 00:00:07 [RateCDR] => 1 ) [2025-11-29 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-28 21:00:07' and `end` < '2025-11-29 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-29 00:00:19] Production.INFO: count ==1882 [2025-11-29 00:00:21] Production.ERROR: pbx CDR StartTime 2025-11-28 21:00:07 - End Time 2025-11-29 00:00:07 [2025-11-29 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16286053', 'tblTempUsageDetail_20' ) start [2025-11-29 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16286053', 'tblTempUsageDetail_20' ) end [2025-11-29 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16286053', 'tblTempVendorCDR_20' ) start [2025-11-29 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16286053', 'tblTempVendorCDR_20' ) end [2025-11-29 00:00:22] Production.INFO: ProcessCDR(1,16286053,1,1,2) [2025-11-29 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16286053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 00:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16286053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 00:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16286053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 00:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16286053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 00:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16286053', 'tblTempUsageDetail_20' ) start [2025-11-29 00:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16286053', 'tblTempUsageDetail_20' ) end [2025-11-29 00:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-29 00:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-29 00:00:39] Production.INFO: ==26982== Releasing lock... [2025-11-29 00:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 00:00:39] Production.INFO: 44.25 MB #Memory Used# [2025-11-29 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-28 22:00:06 [end_date_ymd] => 2025-11-29 01:00:06 [RateCDR] => 1 ) [2025-11-29 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-28 22:00:06' and `end` < '2025-11-29 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-29 01:00:21] Production.INFO: count ==1378 [2025-11-29 01:00:22] Production.ERROR: pbx CDR StartTime 2025-11-28 22:00:06 - End Time 2025-11-29 01:00:06 [2025-11-29 01:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 01:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16286300', 'tblTempUsageDetail_20' ) start [2025-11-29 01:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16286300', 'tblTempUsageDetail_20' ) end [2025-11-29 01:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16286300', 'tblTempVendorCDR_20' ) start [2025-11-29 01:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16286300', 'tblTempVendorCDR_20' ) end [2025-11-29 01:00:22] Production.INFO: ProcessCDR(1,16286300,1,1,2) [2025-11-29 01:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16286300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 01:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16286300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 01:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16286300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 01:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16286300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 01:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16286300', 'tblTempUsageDetail_20' ) start [2025-11-29 01:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16286300', 'tblTempUsageDetail_20' ) end [2025-11-29 01:00:33] Production.ERROR: pbx prc_insertCDR start [2025-11-29 01:00:33] Production.ERROR: pbx prc_insertCDR end [2025-11-29 01:00:33] Production.INFO: ==32725== Releasing lock... [2025-11-29 01:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 01:00:33] Production.INFO: 38.5 MB #Memory Used# [2025-11-29 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-28 23:00:07 [end_date_ymd] => 2025-11-29 02:00:07 [RateCDR] => 1 ) [2025-11-29 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-11-28 23:00:07' and `end` < '2025-11-29 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-11-29 02:00:19] Production.INFO: count ==1507 [2025-11-29 02:00:20] Production.ERROR: pbx CDR StartTime 2025-11-28 23:00:07 - End Time 2025-11-29 02:00:07 [2025-11-29 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16286547', 'tblTempUsageDetail_20' ) start [2025-11-29 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16286547', 'tblTempUsageDetail_20' ) end [2025-11-29 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16286547', 'tblTempVendorCDR_20' ) start [2025-11-29 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16286547', 'tblTempVendorCDR_20' ) end [2025-11-29 02:00:20] Production.INFO: ProcessCDR(1,16286547,1,1,2) [2025-11-29 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16286547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 02:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16286547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 02:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16286547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 02:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16286547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 02:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16286547', 'tblTempUsageDetail_20' ) start [2025-11-29 02:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16286547', 'tblTempUsageDetail_20' ) end [2025-11-29 02:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-29 02:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-29 02:00:31] Production.INFO: ==5203== Releasing lock... [2025-11-29 02:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 02:00:31] Production.INFO: 39.5 MB #Memory Used# [2025-11-29 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 00:00:06 [end_date_ymd] => 2025-11-29 03:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 00:00:06' and `end` < '2025-11-29 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-29 03:00:18] Production.INFO: count ==875 [2025-11-29 03:00:19] Production.ERROR: pbx CDR StartTime 2025-11-29 00:00:06 - End Time 2025-11-29 03:00:06 [2025-11-29 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16286794', 'tblTempUsageDetail_20' ) start [2025-11-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16286794', 'tblTempUsageDetail_20' ) end [2025-11-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16286794', 'tblTempVendorCDR_20' ) start [2025-11-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16286794', 'tblTempVendorCDR_20' ) end [2025-11-29 03:00:19] Production.INFO: ProcessCDR(1,16286794,1,1,2) [2025-11-29 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16286794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 03:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16286794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 03:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16286794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 03:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16286794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16286794', 'tblTempUsageDetail_20' ) start [2025-11-29 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16286794', 'tblTempUsageDetail_20' ) end [2025-11-29 03:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-29 03:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-29 03:00:29] Production.INFO: ==9869== Releasing lock... [2025-11-29 03:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 03:00:29] Production.INFO: 35.25 MB #Memory Used# [2025-11-29 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 01:00:05 [end_date_ymd] => 2025-11-29 04:00:05 [RateCDR] => 1 ) [2025-11-29 04: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-11-29 01:00:05' and `end` < '2025-11-29 04: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-11-29 04:00:17] Production.INFO: count ==711 [2025-11-29 04:00:17] Production.ERROR: pbx CDR StartTime 2025-11-29 01:00:05 - End Time 2025-11-29 04:00:05 [2025-11-29 04:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 04:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16287041', 'tblTempUsageDetail_20' ) start [2025-11-29 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16287041', 'tblTempUsageDetail_20' ) end [2025-11-29 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16287041', 'tblTempVendorCDR_20' ) start [2025-11-29 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16287041', 'tblTempVendorCDR_20' ) end [2025-11-29 04:00:18] Production.INFO: ProcessCDR(1,16287041,1,1,2) [2025-11-29 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16287041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 04:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16287041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 04:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16287041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 04:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16287041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 04:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16287041', 'tblTempUsageDetail_20' ) start [2025-11-29 04:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16287041', 'tblTempUsageDetail_20' ) end [2025-11-29 04:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-29 04:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-29 04:00:28] Production.INFO: ==14355== Releasing lock... [2025-11-29 04:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 04:00:28] Production.INFO: 33.75 MB #Memory Used# [2025-11-29 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 02:00:06 [end_date_ymd] => 2025-11-29 05:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 02:00:06' and `end` < '2025-11-29 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-29 05:00:19] Production.INFO: count ==411 [2025-11-29 05:00:19] Production.ERROR: pbx CDR StartTime 2025-11-29 02:00:06 - End Time 2025-11-29 05:00:06 [2025-11-29 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16287290', 'tblTempUsageDetail_20' ) start [2025-11-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16287290', 'tblTempUsageDetail_20' ) end [2025-11-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16287290', 'tblTempVendorCDR_20' ) start [2025-11-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16287290', 'tblTempVendorCDR_20' ) end [2025-11-29 05:00:19] Production.INFO: ProcessCDR(1,16287290,1,1,2) [2025-11-29 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16287290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16287290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16287290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 05:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16287290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16287290', 'tblTempUsageDetail_20' ) start [2025-11-29 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16287290', 'tblTempUsageDetail_20' ) end [2025-11-29 05:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-29 05:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-29 05:00:29] Production.INFO: ==18958== Releasing lock... [2025-11-29 05:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 05:00:29] Production.INFO: 32 MB #Memory Used# [2025-11-29 06:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 03:00:07 [end_date_ymd] => 2025-11-29 06:00:07 [RateCDR] => 1 ) [2025-11-29 06: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-29 03:00:07' and `end` < '2025-11-29 06: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-29 06:00:18] Production.INFO: count ==268 [2025-11-29 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-29 03:00:07 - End Time 2025-11-29 06:00:07 [2025-11-29 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16287537', 'tblTempUsageDetail_20' ) start [2025-11-29 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16287537', 'tblTempUsageDetail_20' ) end [2025-11-29 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16287537', 'tblTempVendorCDR_20' ) start [2025-11-29 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16287537', 'tblTempVendorCDR_20' ) end [2025-11-29 06:00:18] Production.INFO: ProcessCDR(1,16287537,1,1,2) [2025-11-29 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16287537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 06:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16287537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 06:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16287537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 06:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16287537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16287537', 'tblTempUsageDetail_20' ) start [2025-11-29 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16287537', 'tblTempUsageDetail_20' ) end [2025-11-29 06:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-29 06:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-29 06:00:29] Production.INFO: ==23267== Releasing lock... [2025-11-29 06:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 06:00:29] Production.INFO: 30.75 MB #Memory Used# [2025-11-29 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 04:00:06 [end_date_ymd] => 2025-11-29 07:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 04:00:06' and `end` < '2025-11-29 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-29 07:00:18] Production.INFO: count ==178 [2025-11-29 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-29 04:00:06 - End Time 2025-11-29 07:00:06 [2025-11-29 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16287784', 'tblTempUsageDetail_20' ) start [2025-11-29 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16287784', 'tblTempUsageDetail_20' ) end [2025-11-29 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16287784', 'tblTempVendorCDR_20' ) start [2025-11-29 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16287784', 'tblTempVendorCDR_20' ) end [2025-11-29 07:00:18] Production.INFO: ProcessCDR(1,16287784,1,1,2) [2025-11-29 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16287784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 07:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16287784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 07:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16287784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 07:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16287784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16287784', 'tblTempUsageDetail_20' ) start [2025-11-29 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16287784', 'tblTempUsageDetail_20' ) end [2025-11-29 07:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-29 07:00:27] Production.ERROR: pbx prc_insertCDR end [2025-11-29 07:00:27] Production.INFO: ==27791== Releasing lock... [2025-11-29 07:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 07:00:27] Production.INFO: 29.5 MB #Memory Used# [2025-11-29 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 05:00:06 [end_date_ymd] => 2025-11-29 08:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 05:00:06' and `end` < '2025-11-29 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-29 08:00:17] Production.INFO: count ==183 [2025-11-29 08:00:17] Production.ERROR: pbx CDR StartTime 2025-11-29 05:00:06 - End Time 2025-11-29 08:00:06 [2025-11-29 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16288031', 'tblTempUsageDetail_20' ) start [2025-11-29 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16288031', 'tblTempUsageDetail_20' ) end [2025-11-29 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16288031', 'tblTempVendorCDR_20' ) start [2025-11-29 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16288031', 'tblTempVendorCDR_20' ) end [2025-11-29 08:00:17] Production.INFO: ProcessCDR(1,16288031,1,1,2) [2025-11-29 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16288031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 08:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16288031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 08:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16288031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 08:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16288031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 08:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16288031', 'tblTempUsageDetail_20' ) start [2025-11-29 08:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16288031', 'tblTempUsageDetail_20' ) end [2025-11-29 08:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-29 08:00:27] Production.ERROR: pbx prc_insertCDR end [2025-11-29 08:00:27] Production.INFO: ==508== Releasing lock... [2025-11-29 08:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 08:00:27] Production.INFO: 29.75 MB #Memory Used# [2025-11-29 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 06:00:06 [end_date_ymd] => 2025-11-29 09:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 06:00:06' and `end` < '2025-11-29 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-29 09:00:18] Production.INFO: count ==348 [2025-11-29 09:00:18] Production.ERROR: pbx CDR StartTime 2025-11-29 06:00:06 - End Time 2025-11-29 09:00:06 [2025-11-29 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16288278', 'tblTempUsageDetail_20' ) start [2025-11-29 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16288278', 'tblTempUsageDetail_20' ) end [2025-11-29 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16288278', 'tblTempVendorCDR_20' ) start [2025-11-29 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16288278', 'tblTempVendorCDR_20' ) end [2025-11-29 09:00:18] Production.INFO: ProcessCDR(1,16288278,1,1,2) [2025-11-29 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16288278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16288278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16288278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 09:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16288278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16288278', 'tblTempUsageDetail_20' ) start [2025-11-29 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16288278', 'tblTempUsageDetail_20' ) end [2025-11-29 09:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-29 09:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-29 09:00:28] Production.INFO: ==7305== Releasing lock... [2025-11-29 09:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 09:00:28] Production.INFO: 31.25 MB #Memory Used# [2025-11-29 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 07:00:07 [end_date_ymd] => 2025-11-29 10:00:07 [RateCDR] => 1 ) [2025-11-29 10: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-29 07:00:07' and `end` < '2025-11-29 10: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-29 10:00:18] Production.INFO: count ==883 [2025-11-29 10:00:19] Production.ERROR: pbx CDR StartTime 2025-11-29 07:00:07 - End Time 2025-11-29 10:00:07 [2025-11-29 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16288524', 'tblTempUsageDetail_20' ) start [2025-11-29 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16288524', 'tblTempUsageDetail_20' ) end [2025-11-29 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16288524', 'tblTempVendorCDR_20' ) start [2025-11-29 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16288524', 'tblTempVendorCDR_20' ) end [2025-11-29 10:00:19] Production.INFO: ProcessCDR(1,16288524,1,1,2) [2025-11-29 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16288524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16288524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16288524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 10:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16288524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 10:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16288524', 'tblTempUsageDetail_20' ) start [2025-11-29 10:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16288524', 'tblTempUsageDetail_20' ) end [2025-11-29 10:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-29 10:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-29 10:00:30] Production.INFO: ==12443== Releasing lock... [2025-11-29 10:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 10:00:30] Production.INFO: 35.25 MB #Memory Used# [2025-11-29 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 08:00:06 [end_date_ymd] => 2025-11-29 11:00:06 [RateCDR] => 1 ) [2025-11-29 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-11-29 08:00:06' and `end` < '2025-11-29 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-11-29 11:00:18] Production.INFO: count ==1360 [2025-11-29 11:00:18] Production.ERROR: pbx CDR StartTime 2025-11-29 08:00:06 - End Time 2025-11-29 11:00:06 [2025-11-29 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16288772', 'tblTempUsageDetail_20' ) start [2025-11-29 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16288772', 'tblTempUsageDetail_20' ) end [2025-11-29 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16288772', 'tblTempVendorCDR_20' ) start [2025-11-29 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16288772', 'tblTempVendorCDR_20' ) end [2025-11-29 11:00:18] Production.INFO: ProcessCDR(1,16288772,1,1,2) [2025-11-29 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16288772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16288772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16288772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 11:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16288772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16288772', 'tblTempUsageDetail_20' ) start [2025-11-29 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16288772', 'tblTempUsageDetail_20' ) end [2025-11-29 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-29 11:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-29 11:00:29] Production.INFO: ==17610== Releasing lock... [2025-11-29 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 11:00:29] Production.INFO: 38.25 MB #Memory Used# [2025-11-29 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 09:00:06 [end_date_ymd] => 2025-11-29 12:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 09:00:06' and `end` < '2025-11-29 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-29 12:00:18] Production.INFO: count ==1737 [2025-11-29 12:00:19] Production.ERROR: pbx CDR StartTime 2025-11-29 09:00:06 - End Time 2025-11-29 12:00:06 [2025-11-29 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16289019', 'tblTempUsageDetail_20' ) start [2025-11-29 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16289019', 'tblTempUsageDetail_20' ) end [2025-11-29 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16289019', 'tblTempVendorCDR_20' ) start [2025-11-29 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16289019', 'tblTempVendorCDR_20' ) end [2025-11-29 12:00:19] Production.INFO: ProcessCDR(1,16289019,1,1,2) [2025-11-29 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16289019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16289019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16289019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 12:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16289019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 12:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16289019', 'tblTempUsageDetail_20' ) start [2025-11-29 12:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16289019', 'tblTempUsageDetail_20' ) end [2025-11-29 12:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-29 12:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-29 12:00:31] Production.INFO: ==21967== Releasing lock... [2025-11-29 12:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 12:00:31] Production.INFO: 41.5 MB #Memory Used# [2025-11-29 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 10:00:06 [end_date_ymd] => 2025-11-29 13:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 10:00:06' and `end` < '2025-11-29 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-29 13:00:18] Production.INFO: count ==1899 [2025-11-29 13:00:19] Production.ERROR: pbx CDR StartTime 2025-11-29 10:00:06 - End Time 2025-11-29 13:00:06 [2025-11-29 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16289266', 'tblTempUsageDetail_20' ) start [2025-11-29 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16289266', 'tblTempUsageDetail_20' ) end [2025-11-29 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16289266', 'tblTempVendorCDR_20' ) start [2025-11-29 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16289266', 'tblTempVendorCDR_20' ) end [2025-11-29 13:00:19] Production.INFO: ProcessCDR(1,16289266,1,1,2) [2025-11-29 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16289266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16289266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16289266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 13:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16289266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16289266', 'tblTempUsageDetail_20' ) start [2025-11-29 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16289266', 'tblTempUsageDetail_20' ) end [2025-11-29 13:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-29 13:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-29 13:00:30] Production.INFO: ==26403== Releasing lock... [2025-11-29 13:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 13:00:30] Production.INFO: 42.5 MB #Memory Used# [2025-11-29 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 11:00:06 [end_date_ymd] => 2025-11-29 14:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 11:00:06' and `end` < '2025-11-29 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-29 14:00:19] Production.INFO: count ==1978 [2025-11-29 14:00:19] Production.ERROR: pbx CDR StartTime 2025-11-29 11:00:06 - End Time 2025-11-29 14:00:06 [2025-11-29 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16289513', 'tblTempUsageDetail_20' ) start [2025-11-29 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16289513', 'tblTempUsageDetail_20' ) end [2025-11-29 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16289513', 'tblTempVendorCDR_20' ) start [2025-11-29 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16289513', 'tblTempVendorCDR_20' ) end [2025-11-29 14:00:19] Production.INFO: ProcessCDR(1,16289513,1,1,2) [2025-11-29 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16289513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16289513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16289513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 14:03:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16289513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 14:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16289513', 'tblTempUsageDetail_20' ) start [2025-11-29 14:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16289513', 'tblTempUsageDetail_20' ) end [2025-11-29 14:03:39] Production.ERROR: pbx prc_insertCDR start [2025-11-29 14:03:40] Production.ERROR: pbx prc_insertCDR end [2025-11-29 14:03:40] Production.INFO: ==31149== Releasing lock... [2025-11-29 14:03:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 14:03:40] Production.INFO: 43 MB #Memory Used# [2025-11-29 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 12:00:06 [end_date_ymd] => 2025-11-29 15:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 12:00:06' and `end` < '2025-11-29 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-29 15:00:18] Production.INFO: count ==2213 [2025-11-29 15:00:19] Production.ERROR: pbx CDR StartTime 2025-11-29 12:00:06 - End Time 2025-11-29 15:00:06 [2025-11-29 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16289759', 'tblTempUsageDetail_20' ) start [2025-11-29 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16289759', 'tblTempUsageDetail_20' ) end [2025-11-29 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16289759', 'tblTempVendorCDR_20' ) start [2025-11-29 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16289759', 'tblTempVendorCDR_20' ) end [2025-11-29 15:00:19] Production.INFO: ProcessCDR(1,16289759,1,1,2) [2025-11-29 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16289759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 15:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16289759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 15:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16289759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 15:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16289759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 15:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16289759', 'tblTempUsageDetail_20' ) start [2025-11-29 15:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16289759', 'tblTempUsageDetail_20' ) end [2025-11-29 15:06:30] Production.ERROR: pbx prc_insertCDR start [2025-11-29 15:06:31] Production.ERROR: pbx prc_insertCDR end [2025-11-29 15:06:31] Production.INFO: ==3686== Releasing lock... [2025-11-29 15:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 15:06:31] Production.INFO: 44.75 MB #Memory Used# [2025-11-29 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 13:00:06 [end_date_ymd] => 2025-11-29 16:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 13:00:06' and `end` < '2025-11-29 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-29 16:00:18] Production.INFO: count ==2395 [2025-11-29 16:00:19] Production.ERROR: pbx CDR StartTime 2025-11-29 13:00:06 - End Time 2025-11-29 16:00:06 [2025-11-29 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16290007', 'tblTempUsageDetail_20' ) start [2025-11-29 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16290007', 'tblTempUsageDetail_20' ) end [2025-11-29 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16290007', 'tblTempVendorCDR_20' ) start [2025-11-29 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16290007', 'tblTempVendorCDR_20' ) end [2025-11-29 16:00:19] Production.INFO: ProcessCDR(1,16290007,1,1,2) [2025-11-29 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16290007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 16:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16290007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 16:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16290007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 16:06:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16290007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 16:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16290007', 'tblTempUsageDetail_20' ) start [2025-11-29 16:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16290007', 'tblTempUsageDetail_20' ) end [2025-11-29 16:06:12] Production.ERROR: pbx prc_insertCDR start [2025-11-29 16:06:12] Production.ERROR: pbx prc_insertCDR end [2025-11-29 16:06:13] Production.INFO: ==8715== Releasing lock... [2025-11-29 16:06:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 16:06:13] Production.INFO: 46.25 MB #Memory Used# [2025-11-29 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 14:00:07 [end_date_ymd] => 2025-11-29 17:00:07 [RateCDR] => 1 ) [2025-11-29 17: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-29 14:00:07' and `end` < '2025-11-29 17: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-29 17:00:19] Production.INFO: count ==2531 [2025-11-29 17:00:20] Production.ERROR: pbx CDR StartTime 2025-11-29 14:00:07 - End Time 2025-11-29 17:00:07 [2025-11-29 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16290254', 'tblTempUsageDetail_20' ) start [2025-11-29 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16290254', 'tblTempUsageDetail_20' ) end [2025-11-29 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16290254', 'tblTempVendorCDR_20' ) start [2025-11-29 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16290254', 'tblTempVendorCDR_20' ) end [2025-11-29 17:00:21] Production.INFO: ProcessCDR(1,16290254,1,1,2) [2025-11-29 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16290254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 17:03:12] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16290254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 17:03:12] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16290254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 17:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16290254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 17:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16290254', 'tblTempUsageDetail_20' ) start [2025-11-29 17:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16290254', 'tblTempUsageDetail_20' ) end [2025-11-29 17:06:35] Production.ERROR: pbx prc_insertCDR start [2025-11-29 17:06:36] Production.ERROR: pbx prc_insertCDR end [2025-11-29 17:06:36] Production.INFO: ==13527== Releasing lock... [2025-11-29 17:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 17:06:36] Production.INFO: 47.75 MB #Memory Used# [2025-11-29 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 15:00:06 [end_date_ymd] => 2025-11-29 18:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 15:00:06' and `end` < '2025-11-29 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-29 18:00:19] Production.INFO: count ==2655 [2025-11-29 18:00:20] Production.ERROR: pbx CDR StartTime 2025-11-29 15:00:06 - End Time 2025-11-29 18:00:06 [2025-11-29 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16290500', 'tblTempUsageDetail_20' ) start [2025-11-29 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16290500', 'tblTempUsageDetail_20' ) end [2025-11-29 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16290500', 'tblTempVendorCDR_20' ) start [2025-11-29 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16290500', 'tblTempVendorCDR_20' ) end [2025-11-29 18:00:20] Production.INFO: ProcessCDR(1,16290500,1,1,2) [2025-11-29 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16290500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 18:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16290500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 18:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16290500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 18:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16290500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 18:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16290500', 'tblTempUsageDetail_20' ) start [2025-11-29 18:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16290500', 'tblTempUsageDetail_20' ) end [2025-11-29 18:06:20] Production.ERROR: pbx prc_insertCDR start [2025-11-29 18:06:22] Production.ERROR: pbx prc_insertCDR end [2025-11-29 18:06:22] Production.INFO: ==18868== Releasing lock... [2025-11-29 18:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 18:06:22] Production.INFO: 49.25 MB #Memory Used# [2025-11-29 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 16:00:06 [end_date_ymd] => 2025-11-29 19:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 16:00:06' and `end` < '2025-11-29 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-29 19:00:18] Production.INFO: count ==2640 [2025-11-29 19:00:19] Production.ERROR: pbx CDR StartTime 2025-11-29 16:00:06 - End Time 2025-11-29 19:00:06 [2025-11-29 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16290746', 'tblTempUsageDetail_20' ) start [2025-11-29 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16290746', 'tblTempUsageDetail_20' ) end [2025-11-29 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16290746', 'tblTempVendorCDR_20' ) start [2025-11-29 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16290746', 'tblTempVendorCDR_20' ) end [2025-11-29 19:00:19] Production.INFO: ProcessCDR(1,16290746,1,1,2) [2025-11-29 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16290746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 19:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16290746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 19:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16290746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 19:06:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16290746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 19:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16290746', 'tblTempUsageDetail_20' ) start [2025-11-29 19:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16290746', 'tblTempUsageDetail_20' ) end [2025-11-29 19:06:13] Production.ERROR: pbx prc_insertCDR start [2025-11-29 19:06:15] Production.ERROR: pbx prc_insertCDR end [2025-11-29 19:06:15] Production.INFO: ==25404== Releasing lock... [2025-11-29 19:06:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 19:06:15] Production.INFO: 48 MB #Memory Used# [2025-11-29 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 17:00:07 [end_date_ymd] => 2025-11-29 20:00:07 [RateCDR] => 1 ) [2025-11-29 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-29 17:00:07' and `end` < '2025-11-29 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-29 20:00:19] Production.INFO: count ==2461 [2025-11-29 20:00:20] Production.ERROR: pbx CDR StartTime 2025-11-29 17:00:07 - End Time 2025-11-29 20:00:07 [2025-11-29 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16290994', 'tblTempUsageDetail_20' ) start [2025-11-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16290994', 'tblTempUsageDetail_20' ) end [2025-11-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16290994', 'tblTempVendorCDR_20' ) start [2025-11-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16290994', 'tblTempVendorCDR_20' ) end [2025-11-29 20:00:20] Production.INFO: ProcessCDR(1,16290994,1,1,2) [2025-11-29 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16290994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 20:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16290994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 20:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16290994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 20:06:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16290994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 20:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16290994', 'tblTempUsageDetail_20' ) start [2025-11-29 20:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16290994', 'tblTempUsageDetail_20' ) end [2025-11-29 20:06:36] Production.ERROR: pbx prc_insertCDR start [2025-11-29 20:06:36] Production.ERROR: pbx prc_insertCDR end [2025-11-29 20:06:36] Production.INFO: ==31446== Releasing lock... [2025-11-29 20:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 20:06:36] Production.INFO: 46.75 MB #Memory Used# [2025-11-29 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 18:00:06 [end_date_ymd] => 2025-11-29 21:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 18:00:06' and `end` < '2025-11-29 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-29 21:00:19] Production.INFO: count ==2440 [2025-11-29 21:00:20] Production.ERROR: pbx CDR StartTime 2025-11-29 18:00:06 - End Time 2025-11-29 21:00:06 [2025-11-29 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16291240', 'tblTempUsageDetail_20' ) start [2025-11-29 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16291240', 'tblTempUsageDetail_20' ) end [2025-11-29 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16291240', 'tblTempVendorCDR_20' ) start [2025-11-29 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16291240', 'tblTempVendorCDR_20' ) end [2025-11-29 21:00:20] Production.INFO: ProcessCDR(1,16291240,1,1,2) [2025-11-29 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16291240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 21:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16291240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 21:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16291240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 21:06:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16291240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 21:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16291240', 'tblTempUsageDetail_20' ) start [2025-11-29 21:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16291240', 'tblTempUsageDetail_20' ) end [2025-11-29 21:06:19] Production.ERROR: pbx prc_insertCDR start [2025-11-29 21:06:19] Production.ERROR: pbx prc_insertCDR end [2025-11-29 21:06:19] Production.INFO: ==5682== Releasing lock... [2025-11-29 21:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 21:06:19] Production.INFO: 46.5 MB #Memory Used# [2025-11-29 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 19:00:07 [end_date_ymd] => 2025-11-29 22:00:07 [RateCDR] => 1 ) [2025-11-29 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-29 19:00:07' and `end` < '2025-11-29 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-29 22:00:19] Production.INFO: count ==2027 [2025-11-29 22:00:20] Production.ERROR: pbx CDR StartTime 2025-11-29 19:00:07 - End Time 2025-11-29 22:00:07 [2025-11-29 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16291488', 'tblTempUsageDetail_20' ) start [2025-11-29 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16291488', 'tblTempUsageDetail_20' ) end [2025-11-29 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16291488', 'tblTempVendorCDR_20' ) start [2025-11-29 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16291488', 'tblTempVendorCDR_20' ) end [2025-11-29 22:00:20] Production.INFO: ProcessCDR(1,16291488,1,1,2) [2025-11-29 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16291488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 22:03:09] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16291488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 22:03:09] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16291488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 22:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16291488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 22:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16291488', 'tblTempUsageDetail_20' ) start [2025-11-29 22:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16291488', 'tblTempUsageDetail_20' ) end [2025-11-29 22:06:29] Production.ERROR: pbx prc_insertCDR start [2025-11-29 22:06:30] Production.ERROR: pbx prc_insertCDR end [2025-11-29 22:06:30] Production.INFO: ==11602== Releasing lock... [2025-11-29 22:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 22:06:30] Production.INFO: 43.25 MB #Memory Used# [2025-11-29 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-29 20:00:06 [end_date_ymd] => 2025-11-29 23:00:06 [RateCDR] => 1 ) [2025-11-29 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-29 20:00:06' and `end` < '2025-11-29 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-29 23:00:18] Production.INFO: count ==1704 [2025-11-29 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-29 20:00:06 - End Time 2025-11-29 23:00:06 [2025-11-29 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-29 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16291735', 'tblTempUsageDetail_20' ) start [2025-11-29 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16291735', 'tblTempUsageDetail_20' ) end [2025-11-29 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16291735', 'tblTempVendorCDR_20' ) start [2025-11-29 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16291735', 'tblTempVendorCDR_20' ) end [2025-11-29 23:00:19] Production.INFO: ProcessCDR(1,16291735,1,1,2) [2025-11-29 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16291735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 23:03:04] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16291735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-29 23:03:04] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16291735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 23:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16291735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-29 23:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16291735', 'tblTempUsageDetail_20' ) start [2025-11-29 23:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16291735', 'tblTempUsageDetail_20' ) end [2025-11-29 23:06:25] Production.ERROR: pbx prc_insertCDR start [2025-11-29 23:06:26] Production.ERROR: pbx prc_insertCDR end [2025-11-29 23:06:26] Production.INFO: ==16455== Releasing lock... [2025-11-29 23:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-29 23:06:26] Production.INFO: 41 MB #Memory Used#