[2025-12-31 00:00:05] Production.INFO: next invoice date [2025-12-31 00:00:05] Production.INFO: 2026-01-31 [2025-12-31 00:00:05] Production.INFO: getdaysdiff [2025-12-31 00:00:05] Production.INFO: +31 [2025-12-31 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (208,11,1,31,31,'RMScheduler',2025-12-31 00:00:05,0,0,,,0) [2025-12-31 00:00:05] Production.INFO: next invoice date [2025-12-31 00:00:05] Production.INFO: 2026-01-31 [2025-12-31 00:00:05] Production.INFO: getdaysdiff [2025-12-31 00:00:05] Production.INFO: +31 [2025-12-31 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (208,13,2,31,31,'RMScheduler',2025-12-31 00:00:05,0,0,,,0) [2025-12-31 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 21:00:07 [end_date_ymd] => 2025-12-31 00:00:07 [RateCDR] => 1 ) [2025-12-31 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-30 21:00:07' and `end` < '2025-12-31 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 00:00:21] Production.INFO: count ==1384 [2025-12-31 00:00:21] Production.ERROR: pbx CDR StartTime 2025-12-30 21:00:07 - End Time 2025-12-31 00:00:07 [2025-12-31 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16475731', 'tblTempUsageDetail_20' ) start [2025-12-31 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16475731', 'tblTempUsageDetail_20' ) end [2025-12-31 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16475731', 'tblTempVendorCDR_20' ) start [2025-12-31 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16475731', 'tblTempVendorCDR_20' ) end [2025-12-31 00:00:22] Production.INFO: ProcessCDR(1,16475731,1,1,2) [2025-12-31 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16475731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 00:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16475731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 00:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16475731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 00:07:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16475731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 00:07:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16475731', 'tblTempUsageDetail_20' ) start [2025-12-31 00:07:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16475731', 'tblTempUsageDetail_20' ) end [2025-12-31 00:07:04] Production.ERROR: pbx prc_insertCDR start [2025-12-31 00:07:05] Production.ERROR: pbx prc_insertCDR end [2025-12-31 00:07:09] Production.INFO: ==6999== Releasing lock... [2025-12-31 00:07:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 00:07:09] Production.INFO: 41.75 MB #Memory Used# [2025-12-31 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 22:00:06 [end_date_ymd] => 2025-12-31 01:00:06 [RateCDR] => 1 ) [2025-12-31 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-12-30 22:00:06' and `end` < '2025-12-31 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-12-31 01:00:35] Production.INFO: count ==893 [2025-12-31 01:00:35] Production.ERROR: pbx CDR StartTime 2025-12-30 22:00:06 - End Time 2025-12-31 01:00:06 [2025-12-31 01:00:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 01:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16475978', 'tblTempUsageDetail_20' ) start [2025-12-31 01:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16475978', 'tblTempUsageDetail_20' ) end [2025-12-31 01:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16475978', 'tblTempVendorCDR_20' ) start [2025-12-31 01:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16475978', 'tblTempVendorCDR_20' ) end [2025-12-31 01:00:35] Production.INFO: ProcessCDR(1,16475978,1,1,2) [2025-12-31 01:00:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16475978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 01:03:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16475978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 01:03:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16475978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 01:07:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16475978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 01:07:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16475978', 'tblTempUsageDetail_20' ) start [2025-12-31 01:07:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16475978', 'tblTempUsageDetail_20' ) end [2025-12-31 01:07:45] Production.ERROR: pbx prc_insertCDR start [2025-12-31 01:07:46] Production.ERROR: pbx prc_insertCDR end [2025-12-31 01:07:46] Production.INFO: ==11870== Releasing lock... [2025-12-31 01:07:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 01:07:46] Production.INFO: 35.25 MB #Memory Used# [2025-12-31 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 23:00:05 [end_date_ymd] => 2025-12-31 02:00:05 [RateCDR] => 1 ) [2025-12-31 02:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-30 23:00:05' and `end` < '2025-12-31 02:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 02:00:17] Production.INFO: count ==592 [2025-12-31 02:00:17] Production.ERROR: pbx CDR StartTime 2025-12-30 23:00:05 - End Time 2025-12-31 02:00:05 [2025-12-31 02:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16476225', 'tblTempUsageDetail_20' ) start [2025-12-31 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16476225', 'tblTempUsageDetail_20' ) end [2025-12-31 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16476225', 'tblTempVendorCDR_20' ) start [2025-12-31 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16476225', 'tblTempVendorCDR_20' ) end [2025-12-31 02:00:17] Production.INFO: ProcessCDR(1,16476225,1,1,2) [2025-12-31 02:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16476225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 02:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16476225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 02:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16476225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 02:06:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16476225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 02:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16476225', 'tblTempUsageDetail_20' ) start [2025-12-31 02:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16476225', 'tblTempUsageDetail_20' ) end [2025-12-31 02:06:56] Production.ERROR: pbx prc_insertCDR start [2025-12-31 02:06:57] Production.ERROR: pbx prc_insertCDR end [2025-12-31 02:06:57] Production.INFO: ==16465== Releasing lock... [2025-12-31 02:06:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 02:06:57] Production.INFO: 33 MB #Memory Used# [2025-12-31 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 00:00:05 [end_date_ymd] => 2025-12-31 03:00:05 [RateCDR] => 1 ) [2025-12-31 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 00:00:05' and `end` < '2025-12-31 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 03:00:17] Production.INFO: count ==522 [2025-12-31 03:00:17] Production.ERROR: pbx CDR StartTime 2025-12-31 00:00:05 - End Time 2025-12-31 03:00:05 [2025-12-31 03:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16476472', 'tblTempUsageDetail_20' ) start [2025-12-31 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16476472', 'tblTempUsageDetail_20' ) end [2025-12-31 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16476472', 'tblTempVendorCDR_20' ) start [2025-12-31 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16476472', 'tblTempVendorCDR_20' ) end [2025-12-31 03:00:17] Production.INFO: ProcessCDR(1,16476472,1,1,2) [2025-12-31 03:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16476472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 03:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16476472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 03:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16476472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 03:06:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16476472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 03:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16476472', 'tblTempUsageDetail_20' ) start [2025-12-31 03:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16476472', 'tblTempUsageDetail_20' ) end [2025-12-31 03:06:57] Production.ERROR: pbx prc_insertCDR start [2025-12-31 03:06:57] Production.ERROR: pbx prc_insertCDR end [2025-12-31 03:06:57] Production.INFO: ==21699== Releasing lock... [2025-12-31 03:06:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 03:06:57] Production.INFO: 32.5 MB #Memory Used# [2025-12-31 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 01:00:06 [end_date_ymd] => 2025-12-31 04:00:06 [RateCDR] => 1 ) [2025-12-31 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 01:00:06' and `end` < '2025-12-31 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 04:00:18] Production.INFO: count ==406 [2025-12-31 04:00:18] Production.ERROR: pbx CDR StartTime 2025-12-31 01:00:06 - End Time 2025-12-31 04:00:06 [2025-12-31 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16476720', 'tblTempUsageDetail_20' ) start [2025-12-31 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16476720', 'tblTempUsageDetail_20' ) end [2025-12-31 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16476720', 'tblTempVendorCDR_20' ) start [2025-12-31 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16476720', 'tblTempVendorCDR_20' ) end [2025-12-31 04:00:18] Production.INFO: ProcessCDR(1,16476720,1,1,2) [2025-12-31 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16476720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 04:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16476720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 04:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16476720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 04:07:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16476720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 04:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16476720', 'tblTempUsageDetail_20' ) start [2025-12-31 04:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16476720', 'tblTempUsageDetail_20' ) end [2025-12-31 04:07:09] Production.ERROR: pbx prc_insertCDR start [2025-12-31 04:07:10] Production.ERROR: pbx prc_insertCDR end [2025-12-31 04:07:10] Production.INFO: ==26696== Releasing lock... [2025-12-31 04:07:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 04:07:10] Production.INFO: 31.75 MB #Memory Used# [2025-12-31 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 02:00:05 [end_date_ymd] => 2025-12-31 05:00:05 [RateCDR] => 1 ) [2025-12-31 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 02:00:05' and `end` < '2025-12-31 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 05:00:17] Production.INFO: count ==267 [2025-12-31 05:00:17] Production.ERROR: pbx CDR StartTime 2025-12-31 02:00:05 - End Time 2025-12-31 05:00:05 [2025-12-31 05:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16476968', 'tblTempUsageDetail_20' ) start [2025-12-31 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16476968', 'tblTempUsageDetail_20' ) end [2025-12-31 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16476968', 'tblTempVendorCDR_20' ) start [2025-12-31 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16476968', 'tblTempVendorCDR_20' ) end [2025-12-31 05:00:17] Production.INFO: ProcessCDR(1,16476968,1,1,2) [2025-12-31 05:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16476968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 05:02:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16476968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 05:02:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16476968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 05:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16476968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 05:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16476968', 'tblTempUsageDetail_20' ) start [2025-12-31 05:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16476968', 'tblTempUsageDetail_20' ) end [2025-12-31 05:06:33] Production.ERROR: pbx prc_insertCDR start [2025-12-31 05:06:33] Production.ERROR: pbx prc_insertCDR end [2025-12-31 05:06:33] Production.INFO: ==31244== Releasing lock... [2025-12-31 05:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 05:06:33] Production.INFO: 30.5 MB #Memory Used# [2025-12-31 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 03:00:05 [end_date_ymd] => 2025-12-31 06:00:05 [RateCDR] => 1 ) [2025-12-31 06:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 03:00:05' and `end` < '2025-12-31 06:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 06:00:17] Production.INFO: count ==160 [2025-12-31 06:00:17] Production.ERROR: pbx CDR StartTime 2025-12-31 03:00:05 - End Time 2025-12-31 06:00:05 [2025-12-31 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16477215', 'tblTempUsageDetail_20' ) start [2025-12-31 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16477215', 'tblTempUsageDetail_20' ) end [2025-12-31 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16477215', 'tblTempVendorCDR_20' ) start [2025-12-31 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16477215', 'tblTempVendorCDR_20' ) end [2025-12-31 06:00:17] Production.INFO: ProcessCDR(1,16477215,1,1,2) [2025-12-31 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16477215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 06:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16477215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 06:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16477215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 06:06:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16477215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 06:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16477215', 'tblTempUsageDetail_20' ) start [2025-12-31 06:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16477215', 'tblTempUsageDetail_20' ) end [2025-12-31 06:06:59] Production.ERROR: pbx prc_insertCDR start [2025-12-31 06:06:59] Production.ERROR: pbx prc_insertCDR end [2025-12-31 06:06:59] Production.INFO: ==3890== Releasing lock... [2025-12-31 06:06:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 06:06:59] Production.INFO: 29.25 MB #Memory Used# [2025-12-31 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 04:00:05 [end_date_ymd] => 2025-12-31 07:00:05 [RateCDR] => 1 ) [2025-12-31 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 04:00:05' and `end` < '2025-12-31 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 07:00:17] Production.INFO: count ==94 [2025-12-31 07:00:17] Production.ERROR: pbx CDR StartTime 2025-12-31 04:00:05 - End Time 2025-12-31 07:00:05 [2025-12-31 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16477462', 'tblTempUsageDetail_20' ) start [2025-12-31 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16477462', 'tblTempUsageDetail_20' ) end [2025-12-31 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16477462', 'tblTempVendorCDR_20' ) start [2025-12-31 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16477462', 'tblTempVendorCDR_20' ) end [2025-12-31 07:00:17] Production.INFO: ProcessCDR(1,16477462,1,1,2) [2025-12-31 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16477462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 07:02:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16477462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 07:02:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16477462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 07:06:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16477462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 07:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16477462', 'tblTempUsageDetail_20' ) start [2025-12-31 07:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16477462', 'tblTempUsageDetail_20' ) end [2025-12-31 07:06:36] Production.ERROR: pbx prc_insertCDR start [2025-12-31 07:06:36] Production.ERROR: pbx prc_insertCDR end [2025-12-31 07:06:36] Production.INFO: ==8437== Releasing lock... [2025-12-31 07:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 07:06:36] Production.INFO: 28.5 MB #Memory Used# [2025-12-31 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 05:00:06 [end_date_ymd] => 2025-12-31 08:00:06 [RateCDR] => 1 ) [2025-12-31 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-12-31 05:00:06' and `end` < '2025-12-31 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-12-31 08:00:18] Production.INFO: count ==153 [2025-12-31 08:00:18] Production.ERROR: pbx CDR StartTime 2025-12-31 05:00:06 - End Time 2025-12-31 08:00:06 [2025-12-31 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16477709', 'tblTempUsageDetail_20' ) start [2025-12-31 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16477709', 'tblTempUsageDetail_20' ) end [2025-12-31 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16477709', 'tblTempVendorCDR_20' ) start [2025-12-31 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16477709', 'tblTempVendorCDR_20' ) end [2025-12-31 08:00:18] Production.INFO: ProcessCDR(1,16477709,1,1,2) [2025-12-31 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16477709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 08:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16477709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 08:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16477709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 08:07:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16477709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 08:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16477709', 'tblTempUsageDetail_20' ) start [2025-12-31 08:07:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16477709', 'tblTempUsageDetail_20' ) end [2025-12-31 08:07:15] Production.ERROR: pbx prc_insertCDR start [2025-12-31 08:07:15] Production.ERROR: pbx prc_insertCDR end [2025-12-31 08:07:15] Production.INFO: ==12920== Releasing lock... [2025-12-31 08:07:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 08:07:15] Production.INFO: 29.25 MB #Memory Used# [2025-12-31 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 06:00:06 [end_date_ymd] => 2025-12-31 09:00:06 [RateCDR] => 1 ) [2025-12-31 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-12-31 06:00:06' and `end` < '2025-12-31 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-12-31 09:00:18] Production.INFO: count ==663 [2025-12-31 09:00:18] Production.ERROR: pbx CDR StartTime 2025-12-31 06:00:06 - End Time 2025-12-31 09:00:06 [2025-12-31 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16477956', 'tblTempUsageDetail_20' ) start [2025-12-31 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16477956', 'tblTempUsageDetail_20' ) end [2025-12-31 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16477956', 'tblTempVendorCDR_20' ) start [2025-12-31 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16477956', 'tblTempVendorCDR_20' ) end [2025-12-31 09:00:18] Production.INFO: ProcessCDR(1,16477956,1,1,2) [2025-12-31 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16477956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 09:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16477956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 09:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16477956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 09:06:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16477956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 09:06:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16477956', 'tblTempUsageDetail_20' ) start [2025-12-31 09:06:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16477956', 'tblTempUsageDetail_20' ) end [2025-12-31 09:06:49] Production.ERROR: pbx prc_insertCDR start [2025-12-31 09:06:50] Production.ERROR: pbx prc_insertCDR end [2025-12-31 09:06:50] Production.INFO: ==17801== Releasing lock... [2025-12-31 09:06:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 09:06:50] Production.INFO: 33.25 MB #Memory Used# [2025-12-31 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 07:00:06 [end_date_ymd] => 2025-12-31 10:00:06 [RateCDR] => 1 ) [2025-12-31 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 07:00:06' and `end` < '2025-12-31 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 10:00:19] Production.INFO: count ==1868 [2025-12-31 10:00:20] Production.ERROR: pbx CDR StartTime 2025-12-31 07:00:06 - End Time 2025-12-31 10:00:06 [2025-12-31 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16478203', 'tblTempUsageDetail_20' ) start [2025-12-31 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16478203', 'tblTempUsageDetail_20' ) end [2025-12-31 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16478203', 'tblTempVendorCDR_20' ) start [2025-12-31 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16478203', 'tblTempVendorCDR_20' ) end [2025-12-31 10:00:20] Production.INFO: ProcessCDR(1,16478203,1,1,2) [2025-12-31 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16478203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 10:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16478203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 10:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16478203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 10:07:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16478203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 10:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16478203', 'tblTempUsageDetail_20' ) start [2025-12-31 10:07:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16478203', 'tblTempUsageDetail_20' ) end [2025-12-31 10:07:10] Production.ERROR: pbx prc_insertCDR start [2025-12-31 10:07:12] Production.ERROR: pbx prc_insertCDR end [2025-12-31 10:07:12] Production.INFO: ==23172== Releasing lock... [2025-12-31 10:07:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 10:07:12] Production.INFO: 42.25 MB #Memory Used# [2025-12-31 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 08:00:05 [end_date_ymd] => 2025-12-31 11:00:05 [RateCDR] => 1 ) [2025-12-31 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 08:00:05' and `end` < '2025-12-31 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 11:00:18] Production.INFO: count ==3199 [2025-12-31 11:00:19] Production.ERROR: pbx CDR StartTime 2025-12-31 08:00:05 - End Time 2025-12-31 11:00:05 [2025-12-31 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16478450', 'tblTempUsageDetail_20' ) start [2025-12-31 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16478450', 'tblTempUsageDetail_20' ) end [2025-12-31 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16478450', 'tblTempVendorCDR_20' ) start [2025-12-31 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16478450', 'tblTempVendorCDR_20' ) end [2025-12-31 11:00:19] Production.INFO: ProcessCDR(1,16478450,1,1,2) [2025-12-31 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16478450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 11:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16478450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 11:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16478450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 11:06:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16478450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 11:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16478450', 'tblTempUsageDetail_20' ) start [2025-12-31 11:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16478450', 'tblTempUsageDetail_20' ) end [2025-12-31 11:07:00] Production.ERROR: pbx prc_insertCDR start [2025-12-31 11:07:01] Production.ERROR: pbx prc_insertCDR end [2025-12-31 11:07:02] Production.INFO: ==28934== Releasing lock... [2025-12-31 11:07:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 11:07:02] Production.INFO: 52 MB #Memory Used# [2025-12-31 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 09:00:05 [end_date_ymd] => 2025-12-31 12:00:05 [RateCDR] => 1 ) [2025-12-31 12:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 09:00:05' and `end` < '2025-12-31 12:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 12:00:19] Production.INFO: count ==4322 [2025-12-31 12:00:21] Production.ERROR: pbx CDR StartTime 2025-12-31 09:00:05 - End Time 2025-12-31 12:00:05 [2025-12-31 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16478697', 'tblTempUsageDetail_20' ) start [2025-12-31 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16478697', 'tblTempUsageDetail_20' ) end [2025-12-31 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16478697', 'tblTempVendorCDR_20' ) start [2025-12-31 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16478697', 'tblTempVendorCDR_20' ) end [2025-12-31 12:00:21] Production.INFO: ProcessCDR(1,16478697,1,1,2) [2025-12-31 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16478697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 12:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16478697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 12:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16478697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 12:07:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16478697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 12:07:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16478697', 'tblTempUsageDetail_20' ) start [2025-12-31 12:07:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16478697', 'tblTempUsageDetail_20' ) end [2025-12-31 12:07:08] Production.ERROR: pbx prc_insertCDR start [2025-12-31 12:07:11] Production.ERROR: pbx prc_insertCDR end [2025-12-31 12:07:11] Production.INFO: ==1382== Releasing lock... [2025-12-31 12:07:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 12:07:11] Production.INFO: 60.5 MB #Memory Used# [2025-12-31 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 10:00:06 [end_date_ymd] => 2025-12-31 13:00:06 [RateCDR] => 1 ) [2025-12-31 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-12-31 10:00:06' and `end` < '2025-12-31 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-12-31 13:00:24] Production.INFO: count ==4495 [2025-12-31 13:00:26] Production.ERROR: pbx CDR StartTime 2025-12-31 10:00:06 - End Time 2025-12-31 13:00:06 [2025-12-31 13:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 13:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16478944', 'tblTempUsageDetail_20' ) start [2025-12-31 13:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16478944', 'tblTempUsageDetail_20' ) end [2025-12-31 13:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16478944', 'tblTempVendorCDR_20' ) start [2025-12-31 13:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16478944', 'tblTempVendorCDR_20' ) end [2025-12-31 13:00:26] Production.INFO: ProcessCDR(1,16478944,1,1,2) [2025-12-31 13:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16478944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 13:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16478944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 13:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16478944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 13:06:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16478944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 13:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16478944', 'tblTempUsageDetail_20' ) start [2025-12-31 13:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16478944', 'tblTempUsageDetail_20' ) end [2025-12-31 13:06:59] Production.ERROR: pbx prc_insertCDR start [2025-12-31 13:07:00] Production.ERROR: pbx prc_insertCDR end [2025-12-31 13:07:00] Production.INFO: ==5910== Releasing lock... [2025-12-31 13:07:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 13:07:00] Production.INFO: 61.75 MB #Memory Used# [2025-12-31 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 11:00:05 [end_date_ymd] => 2025-12-31 14:00:05 [RateCDR] => 1 ) [2025-12-31 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 11:00:05' and `end` < '2025-12-31 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 14:00:18] Production.INFO: count ==4321 [2025-12-31 14:00:20] Production.ERROR: pbx CDR StartTime 2025-12-31 11:00:05 - End Time 2025-12-31 14:00:05 [2025-12-31 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16479191', 'tblTempUsageDetail_20' ) start [2025-12-31 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16479191', 'tblTempUsageDetail_20' ) end [2025-12-31 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16479191', 'tblTempVendorCDR_20' ) start [2025-12-31 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16479191', 'tblTempVendorCDR_20' ) end [2025-12-31 14:00:20] Production.INFO: ProcessCDR(1,16479191,1,1,2) [2025-12-31 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16479191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16479191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16479191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 14:06:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16479191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 14:06:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16479191', 'tblTempUsageDetail_20' ) start [2025-12-31 14:06:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16479191', 'tblTempUsageDetail_20' ) end [2025-12-31 14:06:55] Production.ERROR: pbx prc_insertCDR start [2025-12-31 14:06:56] Production.ERROR: pbx prc_insertCDR end [2025-12-31 14:06:56] Production.INFO: ==11107== Releasing lock... [2025-12-31 14:06:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 14:06:56] Production.INFO: 60.5 MB #Memory Used# [2025-12-31 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 12:00:05 [end_date_ymd] => 2025-12-31 15:00:05 [RateCDR] => 1 ) [2025-12-31 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 12:00:05' and `end` < '2025-12-31 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 15:00:18] Production.INFO: count ==4001 [2025-12-31 15:00:20] Production.ERROR: pbx CDR StartTime 2025-12-31 12:00:05 - End Time 2025-12-31 15:00:05 [2025-12-31 15:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16479438', 'tblTempUsageDetail_20' ) start [2025-12-31 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16479438', 'tblTempUsageDetail_20' ) end [2025-12-31 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16479438', 'tblTempVendorCDR_20' ) start [2025-12-31 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16479438', 'tblTempVendorCDR_20' ) end [2025-12-31 15:00:21] Production.INFO: ProcessCDR(1,16479438,1,1,2) [2025-12-31 15:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16479438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 15:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16479438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 15:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16479438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 15:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16479438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 15:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16479438', 'tblTempUsageDetail_20' ) start [2025-12-31 15:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16479438', 'tblTempUsageDetail_20' ) end [2025-12-31 15:07:20] Production.ERROR: pbx prc_insertCDR start [2025-12-31 15:07:21] Production.ERROR: pbx prc_insertCDR end [2025-12-31 15:07:21] Production.INFO: ==16485== Releasing lock... [2025-12-31 15:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 15:07:21] Production.INFO: 58 MB #Memory Used# [2025-12-31 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 13:00:06 [end_date_ymd] => 2025-12-31 16:00:06 [RateCDR] => 1 ) [2025-12-31 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 13:00:06' and `end` < '2025-12-31 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 16:00:19] Production.INFO: count ==3872 [2025-12-31 16:00:21] Production.ERROR: pbx CDR StartTime 2025-12-31 13:00:06 - End Time 2025-12-31 16:00:06 [2025-12-31 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16479685', 'tblTempUsageDetail_20' ) start [2025-12-31 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16479685', 'tblTempUsageDetail_20' ) end [2025-12-31 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16479685', 'tblTempVendorCDR_20' ) start [2025-12-31 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16479685', 'tblTempVendorCDR_20' ) end [2025-12-31 16:00:21] Production.INFO: ProcessCDR(1,16479685,1,1,2) [2025-12-31 16:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16479685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 16:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16479685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 16:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16479685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 16:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16479685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 16:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16479685', 'tblTempUsageDetail_20' ) start [2025-12-31 16:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16479685', 'tblTempUsageDetail_20' ) end [2025-12-31 16:07:20] Production.ERROR: pbx prc_insertCDR start [2025-12-31 16:07:20] Production.ERROR: pbx prc_insertCDR end [2025-12-31 16:07:20] Production.INFO: ==21367== Releasing lock... [2025-12-31 16:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 16:07:20] Production.INFO: 57 MB #Memory Used# [2025-12-31 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 14:00:05 [end_date_ymd] => 2025-12-31 17:00:05 [RateCDR] => 1 ) [2025-12-31 17:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 14:00:05' and `end` < '2025-12-31 17:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 17:00:21] Production.INFO: count ==4110 [2025-12-31 17:00:22] Production.ERROR: pbx CDR StartTime 2025-12-31 14:00:05 - End Time 2025-12-31 17:00:05 [2025-12-31 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16479932', 'tblTempUsageDetail_20' ) start [2025-12-31 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16479932', 'tblTempUsageDetail_20' ) end [2025-12-31 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16479932', 'tblTempVendorCDR_20' ) start [2025-12-31 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16479932', 'tblTempVendorCDR_20' ) end [2025-12-31 17:00:23] Production.INFO: ProcessCDR(1,16479932,1,1,2) [2025-12-31 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16479932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 17:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16479932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 17:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16479932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 17:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16479932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 17:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16479932', 'tblTempUsageDetail_20' ) start [2025-12-31 17:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16479932', 'tblTempUsageDetail_20' ) end [2025-12-31 17:07:34] Production.ERROR: pbx prc_insertCDR start [2025-12-31 17:07:36] Production.ERROR: pbx prc_insertCDR end [2025-12-31 17:07:36] Production.INFO: ==26014== Releasing lock... [2025-12-31 17:07:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 17:07:36] Production.INFO: 59 MB #Memory Used# [2025-12-31 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 15:00:06 [end_date_ymd] => 2025-12-31 18:00:06 [RateCDR] => 1 ) [2025-12-31 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-12-31 15:00:06' and `end` < '2025-12-31 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-12-31 18:00:19] Production.INFO: count ==4281 [2025-12-31 18:00:21] Production.ERROR: pbx CDR StartTime 2025-12-31 15:00:06 - End Time 2025-12-31 18:00:06 [2025-12-31 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16480177', 'tblTempUsageDetail_20' ) start [2025-12-31 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16480177', 'tblTempUsageDetail_20' ) end [2025-12-31 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16480177', 'tblTempVendorCDR_20' ) start [2025-12-31 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16480177', 'tblTempVendorCDR_20' ) end [2025-12-31 18:00:21] Production.INFO: ProcessCDR(1,16480177,1,1,2) [2025-12-31 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16480177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 18:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16480177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 18:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16480177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16480177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16480177', 'tblTempUsageDetail_20' ) start [2025-12-31 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16480177', 'tblTempUsageDetail_20' ) end [2025-12-31 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-12-31 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-12-31 18:07:24] Production.INFO: ==30585== Releasing lock... [2025-12-31 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 18:07:24] Production.INFO: 60.25 MB #Memory Used# [2025-12-31 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 16:00:06 [end_date_ymd] => 2025-12-31 19:00:06 [RateCDR] => 1 ) [2025-12-31 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 16:00:06' and `end` < '2025-12-31 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 19:00:18] Production.INFO: count ==4245 [2025-12-31 19:00:20] Production.ERROR: pbx CDR StartTime 2025-12-31 16:00:06 - End Time 2025-12-31 19:00:06 [2025-12-31 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16480424', 'tblTempUsageDetail_20' ) start [2025-12-31 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16480424', 'tblTempUsageDetail_20' ) end [2025-12-31 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16480424', 'tblTempVendorCDR_20' ) start [2025-12-31 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16480424', 'tblTempVendorCDR_20' ) end [2025-12-31 19:00:20] Production.INFO: ProcessCDR(1,16480424,1,1,2) [2025-12-31 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16480424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16480424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16480424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 19:07:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16480424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 19:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16480424', 'tblTempUsageDetail_20' ) start [2025-12-31 19:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16480424', 'tblTempUsageDetail_20' ) end [2025-12-31 19:07:00] Production.ERROR: pbx prc_insertCDR start [2025-12-31 19:07:02] Production.ERROR: pbx prc_insertCDR end [2025-12-31 19:07:02] Production.INFO: ==4577== Releasing lock... [2025-12-31 19:07:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 19:07:02] Production.INFO: 60 MB #Memory Used# [2025-12-31 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 17:00:06 [end_date_ymd] => 2025-12-31 20:00:06 [RateCDR] => 1 ) [2025-12-31 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 17:00:06' and `end` < '2025-12-31 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 20:00:19] Production.INFO: count ==3863 [2025-12-31 20:00:21] Production.ERROR: pbx CDR StartTime 2025-12-31 17:00:06 - End Time 2025-12-31 20:00:06 [2025-12-31 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16480671', 'tblTempUsageDetail_20' ) start [2025-12-31 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16480671', 'tblTempUsageDetail_20' ) end [2025-12-31 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16480671', 'tblTempVendorCDR_20' ) start [2025-12-31 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16480671', 'tblTempVendorCDR_20' ) end [2025-12-31 20:00:21] Production.INFO: ProcessCDR(1,16480671,1,1,2) [2025-12-31 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16480671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 20:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16480671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 20:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16480671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 20:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16480671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16480671', 'tblTempUsageDetail_20' ) start [2025-12-31 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16480671', 'tblTempUsageDetail_20' ) end [2025-12-31 20:07:20] Production.ERROR: pbx prc_insertCDR start [2025-12-31 20:07:21] Production.ERROR: pbx prc_insertCDR end [2025-12-31 20:07:21] Production.INFO: ==11234== Releasing lock... [2025-12-31 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 20:07:21] Production.INFO: 57 MB #Memory Used# [2025-12-31 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 18:00:05 [end_date_ymd] => 2025-12-31 21:00:05 [RateCDR] => 1 ) [2025-12-31 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 18:00:05' and `end` < '2025-12-31 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 21:00:20] Production.INFO: count ==3112 [2025-12-31 21:00:21] Production.ERROR: pbx CDR StartTime 2025-12-31 18:00:05 - End Time 2025-12-31 21:00:05 [2025-12-31 21:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16480918', 'tblTempUsageDetail_20' ) start [2025-12-31 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16480918', 'tblTempUsageDetail_20' ) end [2025-12-31 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16480918', 'tblTempVendorCDR_20' ) start [2025-12-31 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16480918', 'tblTempVendorCDR_20' ) end [2025-12-31 21:00:22] Production.INFO: ProcessCDR(1,16480918,1,1,2) [2025-12-31 21:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16480918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 21:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16480918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 21:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16480918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 21:07:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16480918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 21:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16480918', 'tblTempUsageDetail_20' ) start [2025-12-31 21:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16480918', 'tblTempUsageDetail_20' ) end [2025-12-31 21:07:01] Production.ERROR: pbx prc_insertCDR start [2025-12-31 21:07:04] Production.ERROR: pbx prc_insertCDR end [2025-12-31 21:07:04] Production.INFO: ==18179== Releasing lock... [2025-12-31 21:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 21:07:04] Production.INFO: 52.25 MB #Memory Used# [2025-12-31 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 19:00:06 [end_date_ymd] => 2025-12-31 22:00:06 [RateCDR] => 1 ) [2025-12-31 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 19:00:06' and `end` < '2025-12-31 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 22:00:18] Production.INFO: count ==2562 [2025-12-31 22:00:19] Production.ERROR: pbx CDR StartTime 2025-12-31 19:00:06 - End Time 2025-12-31 22:00:06 [2025-12-31 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16481165', 'tblTempUsageDetail_20' ) start [2025-12-31 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16481165', 'tblTempUsageDetail_20' ) end [2025-12-31 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16481165', 'tblTempVendorCDR_20' ) start [2025-12-31 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16481165', 'tblTempVendorCDR_20' ) end [2025-12-31 22:00:20] Production.INFO: ProcessCDR(1,16481165,1,1,2) [2025-12-31 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16481165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 22:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16481165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 22:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16481165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 22:07:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16481165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 22:07:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16481165', 'tblTempUsageDetail_20' ) start [2025-12-31 22:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16481165', 'tblTempUsageDetail_20' ) end [2025-12-31 22:07:17] Production.ERROR: pbx prc_insertCDR start [2025-12-31 22:07:17] Production.ERROR: pbx prc_insertCDR end [2025-12-31 22:07:17] Production.INFO: ==23093== Releasing lock... [2025-12-31 22:07:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 22:07:17] Production.INFO: 47.5 MB #Memory Used# [2025-12-31 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-31 20:00:06 [end_date_ymd] => 2025-12-31 23:00:06 [RateCDR] => 1 ) [2025-12-31 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-31 20:00:06' and `end` < '2025-12-31 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-31 23:00:19] Production.INFO: count ==2149 [2025-12-31 23:00:20] Production.ERROR: pbx CDR StartTime 2025-12-31 20:00:06 - End Time 2025-12-31 23:00:06 [2025-12-31 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-31 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16481412', 'tblTempUsageDetail_20' ) start [2025-12-31 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16481412', 'tblTempUsageDetail_20' ) end [2025-12-31 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16481412', 'tblTempVendorCDR_20' ) start [2025-12-31 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16481412', 'tblTempVendorCDR_20' ) end [2025-12-31 23:00:20] Production.INFO: ProcessCDR(1,16481412,1,1,2) [2025-12-31 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16481412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 23:03:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16481412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-31 23:03:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16481412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 23:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16481412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-31 23:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16481412', 'tblTempUsageDetail_20' ) start [2025-12-31 23:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16481412', 'tblTempUsageDetail_20' ) end [2025-12-31 23:07:29] Production.ERROR: pbx prc_insertCDR start [2025-12-31 23:07:29] Production.ERROR: pbx prc_insertCDR end [2025-12-31 23:07:29] Production.INFO: ==28361== Releasing lock... [2025-12-31 23:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-31 23:07:29] Production.INFO: 44.25 MB #Memory Used#