[2025-12-28 00:00:06] Production.INFO: next invoice date [2025-12-28 00:00:06] Production.INFO: 2026-01-28 [2025-12-28 00:00:06] Production.INFO: getdaysdiff [2025-12-28 00:00:06] Production.INFO: +31 [2025-12-28 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (103,10,2,31,31,'RMScheduler',2025-12-28 00:00:06,1,0,,,0) [2025-12-28 00:00:06] Production.INFO: next invoice date [2025-12-28 00:00:06] Production.INFO: 2026-01-28 [2025-12-28 00:00:06] Production.INFO: getdaysdiff [2025-12-28 00:00:06] Production.INFO: +31 [2025-12-28 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (103,16,1,31,31,'RMScheduler',2025-12-28 00:00:06,1,0,,,0) [2025-12-28 00:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 21:00:08 [end_date_ymd] => 2025-12-28 00:00:08 [RateCDR] => 1 ) [2025-12-28 00:00:08] 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-27 21:00:08' and `end` < '2025-12-28 00:00:08' 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-28 00:00:20] Production.INFO: count ==1373 [2025-12-28 00:00:22] Production.ERROR: pbx CDR StartTime 2025-12-27 21:00:08 - End Time 2025-12-28 00:00:08 [2025-12-28 00:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16457949', 'tblTempUsageDetail_20' ) start [2025-12-28 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16457949', 'tblTempUsageDetail_20' ) end [2025-12-28 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16457949', 'tblTempVendorCDR_20' ) start [2025-12-28 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16457949', 'tblTempVendorCDR_20' ) end [2025-12-28 00:00:22] Production.INFO: ProcessCDR(1,16457949,1,1,2) [2025-12-28 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16457949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 00:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16457949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 00:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16457949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 00:07:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16457949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 00:07:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16457949', 'tblTempUsageDetail_20' ) start [2025-12-28 00:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16457949', 'tblTempUsageDetail_20' ) end [2025-12-28 00:07:14] Production.ERROR: pbx prc_insertCDR start [2025-12-28 00:07:14] Production.ERROR: pbx prc_insertCDR end [2025-12-28 00:07:16] Production.INFO: ==12741== Releasing lock... [2025-12-28 00:07:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 00:07:16] Production.INFO: 41.75 MB #Memory Used# [2025-12-28 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 22:00:05 [end_date_ymd] => 2025-12-28 01:00:05 [RateCDR] => 1 ) [2025-12-28 01: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-27 22:00:05' and `end` < '2025-12-28 01: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-28 01:00:39] Production.INFO: count ==704 [2025-12-28 01:00:40] Production.ERROR: pbx CDR StartTime 2025-12-27 22:00:05 - End Time 2025-12-28 01:00:05 [2025-12-28 01:00:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 01:00:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16458196', 'tblTempUsageDetail_20' ) start [2025-12-28 01:00:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16458196', 'tblTempUsageDetail_20' ) end [2025-12-28 01:00:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16458196', 'tblTempVendorCDR_20' ) start [2025-12-28 01:00:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16458196', 'tblTempVendorCDR_20' ) end [2025-12-28 01:00:40] Production.INFO: ProcessCDR(1,16458196,1,1,2) [2025-12-28 01:00:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16458196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 01:03:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16458196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 01:03:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16458196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 01:07:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16458196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 01:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16458196', 'tblTempUsageDetail_20' ) start [2025-12-28 01:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16458196', 'tblTempUsageDetail_20' ) end [2025-12-28 01:07:38] Production.ERROR: pbx prc_insertCDR start [2025-12-28 01:07:39] Production.ERROR: pbx prc_insertCDR end [2025-12-28 01:07:39] Production.INFO: ==17344== Releasing lock... [2025-12-28 01:07:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 01:07:39] Production.INFO: 34 MB #Memory Used# [2025-12-28 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 23:00:06 [end_date_ymd] => 2025-12-28 02:00:06 [RateCDR] => 1 ) [2025-12-28 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-27 23:00:06' and `end` < '2025-12-28 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-28 02:00:18] Production.INFO: count ==622 [2025-12-28 02:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 23:00:06 - End Time 2025-12-28 02:00:06 [2025-12-28 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16458443', 'tblTempUsageDetail_20' ) start [2025-12-28 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16458443', 'tblTempUsageDetail_20' ) end [2025-12-28 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16458443', 'tblTempVendorCDR_20' ) start [2025-12-28 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16458443', 'tblTempVendorCDR_20' ) end [2025-12-28 02:00:18] Production.INFO: ProcessCDR(1,16458443,1,1,2) [2025-12-28 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16458443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 02:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16458443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 02:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16458443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 02:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16458443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 02:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16458443', 'tblTempUsageDetail_20' ) start [2025-12-28 02:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16458443', 'tblTempUsageDetail_20' ) end [2025-12-28 02:07:19] Production.ERROR: pbx prc_insertCDR start [2025-12-28 02:07:19] Production.ERROR: pbx prc_insertCDR end [2025-12-28 02:07:19] Production.INFO: ==22243== Releasing lock... [2025-12-28 02:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 02:07:19] Production.INFO: 32.75 MB #Memory Used# [2025-12-28 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 00:00:06 [end_date_ymd] => 2025-12-28 03:00:06 [RateCDR] => 1 ) [2025-12-28 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-28 00:00:06' and `end` < '2025-12-28 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-28 03:00:18] Production.INFO: count ==828 [2025-12-28 03:00:18] Production.ERROR: pbx CDR StartTime 2025-12-28 00:00:06 - End Time 2025-12-28 03:00:06 [2025-12-28 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16458690', 'tblTempUsageDetail_20' ) start [2025-12-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16458690', 'tblTempUsageDetail_20' ) end [2025-12-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16458690', 'tblTempVendorCDR_20' ) start [2025-12-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16458690', 'tblTempVendorCDR_20' ) end [2025-12-28 03:00:18] Production.INFO: ProcessCDR(1,16458690,1,1,2) [2025-12-28 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16458690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 03:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16458690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 03:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16458690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 03:07:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16458690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 03:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16458690', 'tblTempUsageDetail_20' ) start [2025-12-28 03:07:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16458690', 'tblTempUsageDetail_20' ) end [2025-12-28 03:07:15] Production.ERROR: pbx prc_insertCDR start [2025-12-28 03:07:15] Production.ERROR: pbx prc_insertCDR end [2025-12-28 03:07:15] Production.INFO: ==27464== Releasing lock... [2025-12-28 03:07:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 03:07:15] Production.INFO: 34.25 MB #Memory Used# [2025-12-28 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 01:00:06 [end_date_ymd] => 2025-12-28 04:00:06 [RateCDR] => 1 ) [2025-12-28 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-28 01:00:06' and `end` < '2025-12-28 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-28 04:00:18] Production.INFO: count ==713 [2025-12-28 04:00:19] Production.ERROR: pbx CDR StartTime 2025-12-28 01:00:06 - End Time 2025-12-28 04:00:06 [2025-12-28 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16458938', 'tblTempUsageDetail_20' ) start [2025-12-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16458938', 'tblTempUsageDetail_20' ) end [2025-12-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16458938', 'tblTempVendorCDR_20' ) start [2025-12-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16458938', 'tblTempVendorCDR_20' ) end [2025-12-28 04:00:19] Production.INFO: ProcessCDR(1,16458938,1,1,2) [2025-12-28 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16458938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16458938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16458938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 04:06:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16458938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 04:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16458938', 'tblTempUsageDetail_20' ) start [2025-12-28 04:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16458938', 'tblTempUsageDetail_20' ) end [2025-12-28 04:06:51] Production.ERROR: pbx prc_insertCDR start [2025-12-28 04:06:51] Production.ERROR: pbx prc_insertCDR end [2025-12-28 04:06:51] Production.INFO: ==1262== Releasing lock... [2025-12-28 04:06:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 04:06:51] Production.INFO: 33.25 MB #Memory Used# [2025-12-28 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 02:00:06 [end_date_ymd] => 2025-12-28 05:00:06 [RateCDR] => 1 ) [2025-12-28 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-12-28 02:00:06' and `end` < '2025-12-28 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-28 05:00:18] Production.INFO: count ==962 [2025-12-28 05:00:19] Production.ERROR: pbx CDR StartTime 2025-12-28 02:00:06 - End Time 2025-12-28 05:00:06 [2025-12-28 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16459186', 'tblTempUsageDetail_20' ) start [2025-12-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16459186', 'tblTempUsageDetail_20' ) end [2025-12-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16459186', 'tblTempVendorCDR_20' ) start [2025-12-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16459186', 'tblTempVendorCDR_20' ) end [2025-12-28 05:00:19] Production.INFO: ProcessCDR(1,16459186,1,1,2) [2025-12-28 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16459186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16459186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16459186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 05:06:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16459186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 05:06:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16459186', 'tblTempUsageDetail_20' ) start [2025-12-28 05:06:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16459186', 'tblTempUsageDetail_20' ) end [2025-12-28 05:06:45] Production.ERROR: pbx prc_insertCDR start [2025-12-28 05:06:46] Production.ERROR: pbx prc_insertCDR end [2025-12-28 05:06:46] Production.INFO: ==7701== Releasing lock... [2025-12-28 05:06:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 05:06:46] Production.INFO: 35.5 MB #Memory Used# [2025-12-28 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 03:00:05 [end_date_ymd] => 2025-12-28 06:00:05 [RateCDR] => 1 ) [2025-12-28 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-28 03:00:05' and `end` < '2025-12-28 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-28 06:00:17] Production.INFO: count ==606 [2025-12-28 06:00:17] Production.ERROR: pbx CDR StartTime 2025-12-28 03:00:05 - End Time 2025-12-28 06:00:05 [2025-12-28 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16459433', 'tblTempUsageDetail_20' ) start [2025-12-28 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16459433', 'tblTempUsageDetail_20' ) end [2025-12-28 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16459433', 'tblTempVendorCDR_20' ) start [2025-12-28 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16459433', 'tblTempVendorCDR_20' ) end [2025-12-28 06:00:17] Production.INFO: ProcessCDR(1,16459433,1,1,2) [2025-12-28 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16459433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16459433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16459433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 06:06:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16459433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 06:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16459433', 'tblTempUsageDetail_20' ) start [2025-12-28 06:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16459433', 'tblTempUsageDetail_20' ) end [2025-12-28 06:06:58] Production.ERROR: pbx prc_insertCDR start [2025-12-28 06:06:58] Production.ERROR: pbx prc_insertCDR end [2025-12-28 06:06:58] Production.INFO: ==12271== Releasing lock... [2025-12-28 06:06:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 06:06:58] Production.INFO: 33 MB #Memory Used# [2025-12-28 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 04:00:06 [end_date_ymd] => 2025-12-28 07:00:06 [RateCDR] => 1 ) [2025-12-28 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-12-28 04:00:06' and `end` < '2025-12-28 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-28 07:00:18] Production.INFO: count ==516 [2025-12-28 07:00:18] Production.ERROR: pbx CDR StartTime 2025-12-28 04:00:06 - End Time 2025-12-28 07:00:06 [2025-12-28 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16459680', 'tblTempUsageDetail_20' ) start [2025-12-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16459680', 'tblTempUsageDetail_20' ) end [2025-12-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16459680', 'tblTempVendorCDR_20' ) start [2025-12-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16459680', 'tblTempVendorCDR_20' ) end [2025-12-28 07:00:18] Production.INFO: ProcessCDR(1,16459680,1,1,2) [2025-12-28 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16459680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 07:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16459680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 07:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16459680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 07:07:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16459680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 07:07:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16459680', 'tblTempUsageDetail_20' ) start [2025-12-28 07:07:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16459680', 'tblTempUsageDetail_20' ) end [2025-12-28 07:07:15] Production.ERROR: pbx prc_insertCDR start [2025-12-28 07:07:15] Production.ERROR: pbx prc_insertCDR end [2025-12-28 07:07:15] Production.INFO: ==16985== Releasing lock... [2025-12-28 07:07:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 07:07:15] Production.INFO: 32.25 MB #Memory Used# [2025-12-28 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 05:00:05 [end_date_ymd] => 2025-12-28 08:00:05 [RateCDR] => 1 ) [2025-12-28 08: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-28 05:00:05' and `end` < '2025-12-28 08: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-28 08:00:17] Production.INFO: count ==94 [2025-12-28 08:00:17] Production.ERROR: pbx CDR StartTime 2025-12-28 05:00:05 - End Time 2025-12-28 08:00:05 [2025-12-28 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16459927', 'tblTempUsageDetail_20' ) start [2025-12-28 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16459927', 'tblTempUsageDetail_20' ) end [2025-12-28 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16459927', 'tblTempVendorCDR_20' ) start [2025-12-28 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16459927', 'tblTempVendorCDR_20' ) end [2025-12-28 08:00:17] Production.INFO: ProcessCDR(1,16459927,1,1,2) [2025-12-28 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16459927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 08:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16459927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 08:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16459927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 08:06:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16459927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 08:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16459927', 'tblTempUsageDetail_20' ) start [2025-12-28 08:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16459927', 'tblTempUsageDetail_20' ) end [2025-12-28 08:06:56] Production.ERROR: pbx prc_insertCDR start [2025-12-28 08:06:56] Production.ERROR: pbx prc_insertCDR end [2025-12-28 08:06:56] Production.INFO: ==21721== Releasing lock... [2025-12-28 08:06:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 08:06:56] Production.INFO: 28.5 MB #Memory Used# [2025-12-28 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 06:00:06 [end_date_ymd] => 2025-12-28 09:00:06 [RateCDR] => 1 ) [2025-12-28 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-28 06:00:06' and `end` < '2025-12-28 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-28 09:00:18] Production.INFO: count ==122 [2025-12-28 09:00:18] Production.ERROR: pbx CDR StartTime 2025-12-28 06:00:06 - End Time 2025-12-28 09:00:06 [2025-12-28 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16460174', 'tblTempUsageDetail_20' ) start [2025-12-28 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16460174', 'tblTempUsageDetail_20' ) end [2025-12-28 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16460174', 'tblTempVendorCDR_20' ) start [2025-12-28 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16460174', 'tblTempVendorCDR_20' ) end [2025-12-28 09:00:18] Production.INFO: ProcessCDR(1,16460174,1,1,2) [2025-12-28 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16460174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 09:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16460174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 09:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16460174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 09:06:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16460174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 09:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16460174', 'tblTempUsageDetail_20' ) start [2025-12-28 09:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16460174', 'tblTempUsageDetail_20' ) end [2025-12-28 09:06:57] Production.ERROR: pbx prc_insertCDR start [2025-12-28 09:06:58] Production.ERROR: pbx prc_insertCDR end [2025-12-28 09:06:58] Production.INFO: ==26180== Releasing lock... [2025-12-28 09:06:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 09:06:58] Production.INFO: 28.75 MB #Memory Used# [2025-12-28 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 07:00:05 [end_date_ymd] => 2025-12-28 10:00:05 [RateCDR] => 1 ) [2025-12-28 10: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-28 07:00:05' and `end` < '2025-12-28 10: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-28 10:00:17] Production.INFO: count ==191 [2025-12-28 10:00:17] Production.ERROR: pbx CDR StartTime 2025-12-28 07:00:05 - End Time 2025-12-28 10:00:05 [2025-12-28 10:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16460421', 'tblTempUsageDetail_20' ) start [2025-12-28 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16460421', 'tblTempUsageDetail_20' ) end [2025-12-28 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16460421', 'tblTempVendorCDR_20' ) start [2025-12-28 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16460421', 'tblTempVendorCDR_20' ) end [2025-12-28 10:00:17] Production.INFO: ProcessCDR(1,16460421,1,1,2) [2025-12-28 10:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16460421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 10:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16460421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 10:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16460421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 10:06:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16460421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 10:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16460421', 'tblTempUsageDetail_20' ) start [2025-12-28 10:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16460421', 'tblTempUsageDetail_20' ) end [2025-12-28 10:06:59] Production.ERROR: pbx prc_insertCDR start [2025-12-28 10:07:00] Production.ERROR: pbx prc_insertCDR end [2025-12-28 10:07:00] Production.INFO: ==30918== Releasing lock... [2025-12-28 10:07:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 10:07:00] Production.INFO: 29.75 MB #Memory Used# [2025-12-28 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 08:00:06 [end_date_ymd] => 2025-12-28 11:00:06 [RateCDR] => 1 ) [2025-12-28 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-28 08:00:06' and `end` < '2025-12-28 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-28 11:00:18] Production.INFO: count ==335 [2025-12-28 11:00:18] Production.ERROR: pbx CDR StartTime 2025-12-28 08:00:06 - End Time 2025-12-28 11:00:06 [2025-12-28 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16460668', 'tblTempUsageDetail_20' ) start [2025-12-28 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16460668', 'tblTempUsageDetail_20' ) end [2025-12-28 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16460668', 'tblTempVendorCDR_20' ) start [2025-12-28 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16460668', 'tblTempVendorCDR_20' ) end [2025-12-28 11:00:18] Production.INFO: ProcessCDR(1,16460668,1,1,2) [2025-12-28 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16460668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 11:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16460668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 11:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16460668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 11:07:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16460668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 11:07:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16460668', 'tblTempUsageDetail_20' ) start [2025-12-28 11:07:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16460668', 'tblTempUsageDetail_20' ) end [2025-12-28 11:07:08] Production.ERROR: pbx prc_insertCDR start [2025-12-28 11:07:09] Production.ERROR: pbx prc_insertCDR end [2025-12-28 11:07:09] Production.INFO: ==3343== Releasing lock... [2025-12-28 11:07:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 11:07:09] Production.INFO: 30.5 MB #Memory Used# [2025-12-28 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 09:00:05 [end_date_ymd] => 2025-12-28 12:00:05 [RateCDR] => 1 ) [2025-12-28 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-28 09:00:05' and `end` < '2025-12-28 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-28 12:00:17] Production.INFO: count ==574 [2025-12-28 12:00:18] Production.ERROR: pbx CDR StartTime 2025-12-28 09:00:05 - End Time 2025-12-28 12:00:05 [2025-12-28 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16460915', 'tblTempUsageDetail_20' ) start [2025-12-28 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16460915', 'tblTempUsageDetail_20' ) end [2025-12-28 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16460915', 'tblTempVendorCDR_20' ) start [2025-12-28 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16460915', 'tblTempVendorCDR_20' ) end [2025-12-28 12:00:18] Production.INFO: ProcessCDR(1,16460915,1,1,2) [2025-12-28 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16460915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16460915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16460915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 12:06:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16460915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 12:06:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16460915', 'tblTempUsageDetail_20' ) start [2025-12-28 12:06:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16460915', 'tblTempUsageDetail_20' ) end [2025-12-28 12:06:55] Production.ERROR: pbx prc_insertCDR start [2025-12-28 12:06:56] Production.ERROR: pbx prc_insertCDR end [2025-12-28 12:06:56] Production.INFO: ==8114== Releasing lock... [2025-12-28 12:06:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 12:06:56] Production.INFO: 33 MB #Memory Used# [2025-12-28 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 10:00:06 [end_date_ymd] => 2025-12-28 13:00:06 [RateCDR] => 1 ) [2025-12-28 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-28 10:00:06' and `end` < '2025-12-28 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-28 13:00:18] Production.INFO: count ==880 [2025-12-28 13:00:18] Production.ERROR: pbx CDR StartTime 2025-12-28 10:00:06 - End Time 2025-12-28 13:00:06 [2025-12-28 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16461162', 'tblTempUsageDetail_20' ) start [2025-12-28 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16461162', 'tblTempUsageDetail_20' ) end [2025-12-28 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16461162', 'tblTempVendorCDR_20' ) start [2025-12-28 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16461162', 'tblTempVendorCDR_20' ) end [2025-12-28 13:00:18] Production.INFO: ProcessCDR(1,16461162,1,1,2) [2025-12-28 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16461162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 13:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16461162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 13:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16461162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 13:07:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16461162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 13:07:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16461162', 'tblTempUsageDetail_20' ) start [2025-12-28 13:07:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16461162', 'tblTempUsageDetail_20' ) end [2025-12-28 13:07:05] Production.ERROR: pbx prc_insertCDR start [2025-12-28 13:07:07] Production.ERROR: pbx prc_insertCDR end [2025-12-28 13:07:07] Production.INFO: ==12654== Releasing lock... [2025-12-28 13:07:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 13:07:07] Production.INFO: 35 MB #Memory Used# [2025-12-28 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 11:00:05 [end_date_ymd] => 2025-12-28 14:00:05 [RateCDR] => 1 ) [2025-12-28 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-28 11:00:05' and `end` < '2025-12-28 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-28 14:00:18] Production.INFO: count ==1068 [2025-12-28 14:00:18] Production.ERROR: pbx CDR StartTime 2025-12-28 11:00:05 - End Time 2025-12-28 14:00:05 [2025-12-28 14:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16461409', 'tblTempUsageDetail_20' ) start [2025-12-28 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16461409', 'tblTempUsageDetail_20' ) end [2025-12-28 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16461409', 'tblTempVendorCDR_20' ) start [2025-12-28 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16461409', 'tblTempVendorCDR_20' ) end [2025-12-28 14:00:18] Production.INFO: ProcessCDR(1,16461409,1,1,2) [2025-12-28 14:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16461409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 14:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16461409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 14:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16461409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 14:06:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16461409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 14:06:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16461409', 'tblTempUsageDetail_20' ) start [2025-12-28 14:06:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16461409', 'tblTempUsageDetail_20' ) end [2025-12-28 14:06:40] Production.ERROR: pbx prc_insertCDR start [2025-12-28 14:06:40] Production.ERROR: pbx prc_insertCDR end [2025-12-28 14:06:40] Production.INFO: ==17101== Releasing lock... [2025-12-28 14:06:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 14:06:40] Production.INFO: 36.25 MB #Memory Used# [2025-12-28 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 12:00:05 [end_date_ymd] => 2025-12-28 15:00:05 [RateCDR] => 1 ) [2025-12-28 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-28 12:00:05' and `end` < '2025-12-28 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-28 15:00:19] Production.INFO: count ==1099 [2025-12-28 15:00:19] Production.ERROR: pbx CDR StartTime 2025-12-28 12:00:05 - End Time 2025-12-28 15:00:05 [2025-12-28 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16461656', 'tblTempUsageDetail_20' ) start [2025-12-28 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16461656', 'tblTempUsageDetail_20' ) end [2025-12-28 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16461656', 'tblTempVendorCDR_20' ) start [2025-12-28 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16461656', 'tblTempVendorCDR_20' ) end [2025-12-28 15:00:19] Production.INFO: ProcessCDR(1,16461656,1,1,2) [2025-12-28 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16461656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 15:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16461656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 15:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16461656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 15:06:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16461656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 15:06:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16461656', 'tblTempUsageDetail_20' ) start [2025-12-28 15:06:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16461656', 'tblTempUsageDetail_20' ) end [2025-12-28 15:06:43] Production.ERROR: pbx prc_insertCDR start [2025-12-28 15:06:44] Production.ERROR: pbx prc_insertCDR end [2025-12-28 15:06:44] Production.INFO: ==21610== Releasing lock... [2025-12-28 15:06:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 15:06:44] Production.INFO: 36.75 MB #Memory Used# [2025-12-28 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 13:00:05 [end_date_ymd] => 2025-12-28 16:00:05 [RateCDR] => 1 ) [2025-12-28 16: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-28 13:00:05' and `end` < '2025-12-28 16: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-28 16:00:18] Production.INFO: count ==1157 [2025-12-28 16:00:18] Production.ERROR: pbx CDR StartTime 2025-12-28 13:00:05 - End Time 2025-12-28 16:00:05 [2025-12-28 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16461903', 'tblTempUsageDetail_20' ) start [2025-12-28 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16461903', 'tblTempUsageDetail_20' ) end [2025-12-28 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16461903', 'tblTempVendorCDR_20' ) start [2025-12-28 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16461903', 'tblTempVendorCDR_20' ) end [2025-12-28 16:00:18] Production.INFO: ProcessCDR(1,16461903,1,1,2) [2025-12-28 16:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16461903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 16:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16461903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 16:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16461903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 16:06:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16461903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 16:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16461903', 'tblTempUsageDetail_20' ) start [2025-12-28 16:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16461903', 'tblTempUsageDetail_20' ) end [2025-12-28 16:06:59] Production.ERROR: pbx prc_insertCDR start [2025-12-28 16:07:00] Production.ERROR: pbx prc_insertCDR end [2025-12-28 16:07:00] Production.INFO: ==25972== Releasing lock... [2025-12-28 16:07:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 16:07:00] Production.INFO: 37 MB #Memory Used# [2025-12-28 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 14:00:06 [end_date_ymd] => 2025-12-28 17:00:06 [RateCDR] => 1 ) [2025-12-28 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-28 14:00:06' and `end` < '2025-12-28 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-28 17:00:18] Production.INFO: count ==1319 [2025-12-28 17:00:19] Production.ERROR: pbx CDR StartTime 2025-12-28 14:00:06 - End Time 2025-12-28 17:00:06 [2025-12-28 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16462150', 'tblTempUsageDetail_20' ) start [2025-12-28 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16462150', 'tblTempUsageDetail_20' ) end [2025-12-28 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16462150', 'tblTempVendorCDR_20' ) start [2025-12-28 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16462150', 'tblTempVendorCDR_20' ) end [2025-12-28 17:00:19] Production.INFO: ProcessCDR(1,16462150,1,1,2) [2025-12-28 17:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16462150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 17:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16462150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 17:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16462150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 17:07:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16462150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 17:07:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16462150', 'tblTempUsageDetail_20' ) start [2025-12-28 17:07:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16462150', 'tblTempUsageDetail_20' ) end [2025-12-28 17:07:15] Production.ERROR: pbx prc_insertCDR start [2025-12-28 17:07:15] Production.ERROR: pbx prc_insertCDR end [2025-12-28 17:07:15] Production.INFO: ==30587== Releasing lock... [2025-12-28 17:07:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 17:07:15] Production.INFO: 38.25 MB #Memory Used# [2025-12-28 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 15:00:06 [end_date_ymd] => 2025-12-28 18:00:06 [RateCDR] => 1 ) [2025-12-28 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-28 15:00:06' and `end` < '2025-12-28 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-28 18:00:18] Production.INFO: count ==2600 [2025-12-28 18:00:19] Production.ERROR: pbx CDR StartTime 2025-12-28 15:00:06 - End Time 2025-12-28 18:00:06 [2025-12-28 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16462393', 'tblTempUsageDetail_20' ) start [2025-12-28 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16462393', 'tblTempUsageDetail_20' ) end [2025-12-28 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16462393', 'tblTempVendorCDR_20' ) start [2025-12-28 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16462393', 'tblTempVendorCDR_20' ) end [2025-12-28 18:00:20] Production.INFO: ProcessCDR(1,16462393,1,1,2) [2025-12-28 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16462393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16462393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16462393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 18:06:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16462393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 18:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16462393', 'tblTempUsageDetail_20' ) start [2025-12-28 18:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16462393', 'tblTempUsageDetail_20' ) end [2025-12-28 18:06:59] Production.ERROR: pbx prc_insertCDR start [2025-12-28 18:06:59] Production.ERROR: pbx prc_insertCDR end [2025-12-28 18:06:59] Production.INFO: ==2861== Releasing lock... [2025-12-28 18:06:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 18:06:59] Production.INFO: 48.25 MB #Memory Used# [2025-12-28 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 16:00:05 [end_date_ymd] => 2025-12-28 19:00:05 [RateCDR] => 1 ) [2025-12-28 19: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-28 16:00:05' and `end` < '2025-12-28 19: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-28 19:00:18] Production.INFO: count ==3499 [2025-12-28 19:00:20] Production.ERROR: pbx CDR StartTime 2025-12-28 16:00:05 - End Time 2025-12-28 19:00:05 [2025-12-28 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16462640', 'tblTempUsageDetail_20' ) start [2025-12-28 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16462640', 'tblTempUsageDetail_20' ) end [2025-12-28 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16462640', 'tblTempVendorCDR_20' ) start [2025-12-28 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16462640', 'tblTempVendorCDR_20' ) end [2025-12-28 19:00:20] Production.INFO: ProcessCDR(1,16462640,1,1,2) [2025-12-28 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16462640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 19:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16462640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 19:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16462640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 19:07:03] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16462640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 19:07:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16462640', 'tblTempUsageDetail_20' ) start [2025-12-28 19:07:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16462640', 'tblTempUsageDetail_20' ) end [2025-12-28 19:07:03] Production.ERROR: pbx prc_insertCDR start [2025-12-28 19:07:05] Production.ERROR: pbx prc_insertCDR end [2025-12-28 19:07:05] Production.INFO: ==7509== Releasing lock... [2025-12-28 19:07:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 19:07:05] Production.INFO: 54.25 MB #Memory Used# [2025-12-28 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 17:00:05 [end_date_ymd] => 2025-12-28 20:00:05 [RateCDR] => 1 ) [2025-12-28 20: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-28 17:00:05' and `end` < '2025-12-28 20: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-28 20:00:20] Production.INFO: count ==4017 [2025-12-28 20:00:21] Production.ERROR: pbx CDR StartTime 2025-12-28 17:00:05 - End Time 2025-12-28 20:00:05 [2025-12-28 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16462887', 'tblTempUsageDetail_20' ) start [2025-12-28 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16462887', 'tblTempUsageDetail_20' ) end [2025-12-28 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16462887', 'tblTempVendorCDR_20' ) start [2025-12-28 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16462887', 'tblTempVendorCDR_20' ) end [2025-12-28 20:00:21] Production.INFO: ProcessCDR(1,16462887,1,1,2) [2025-12-28 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16462887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 20:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16462887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 20:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16462887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 20:06:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16462887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 20:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16462887', 'tblTempUsageDetail_20' ) start [2025-12-28 20:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16462887', 'tblTempUsageDetail_20' ) end [2025-12-28 20:06:57] Production.ERROR: pbx prc_insertCDR start [2025-12-28 20:06:59] Production.ERROR: pbx prc_insertCDR end [2025-12-28 20:06:59] Production.INFO: ==12515== Releasing lock... [2025-12-28 20:06:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 20:06:59] Production.INFO: 58 MB #Memory Used# [2025-12-28 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 18:00:05 [end_date_ymd] => 2025-12-28 21:00:05 [RateCDR] => 1 ) [2025-12-28 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-28 18:00:05' and `end` < '2025-12-28 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-28 21:00:18] Production.INFO: count ==3152 [2025-12-28 21:00:19] Production.ERROR: pbx CDR StartTime 2025-12-28 18:00:05 - End Time 2025-12-28 21:00:05 [2025-12-28 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16463134', 'tblTempUsageDetail_20' ) start [2025-12-28 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16463134', 'tblTempUsageDetail_20' ) end [2025-12-28 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16463134', 'tblTempVendorCDR_20' ) start [2025-12-28 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16463134', 'tblTempVendorCDR_20' ) end [2025-12-28 21:00:19] Production.INFO: ProcessCDR(1,16463134,1,1,2) [2025-12-28 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16463134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 21:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16463134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 21:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16463134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 21:06:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16463134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 21:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16463134', 'tblTempUsageDetail_20' ) start [2025-12-28 21:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16463134', 'tblTempUsageDetail_20' ) end [2025-12-28 21:06:58] Production.ERROR: pbx prc_insertCDR start [2025-12-28 21:06:59] Production.ERROR: pbx prc_insertCDR end [2025-12-28 21:06:59] Production.INFO: ==17929== Releasing lock... [2025-12-28 21:06:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 21:06:59] Production.INFO: 51.5 MB #Memory Used# [2025-12-28 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 19:00:06 [end_date_ymd] => 2025-12-28 22:00:06 [RateCDR] => 1 ) [2025-12-28 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-28 19:00:06' and `end` < '2025-12-28 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-28 22:00:18] Production.INFO: count ==2461 [2025-12-28 22:00:19] Production.ERROR: pbx CDR StartTime 2025-12-28 19:00:06 - End Time 2025-12-28 22:00:06 [2025-12-28 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16463381', 'tblTempUsageDetail_20' ) start [2025-12-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16463381', 'tblTempUsageDetail_20' ) end [2025-12-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16463381', 'tblTempVendorCDR_20' ) start [2025-12-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16463381', 'tblTempVendorCDR_20' ) end [2025-12-28 22:00:19] Production.INFO: ProcessCDR(1,16463381,1,1,2) [2025-12-28 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16463381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16463381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16463381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 22:06:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16463381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 22:06:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16463381', 'tblTempUsageDetail_20' ) start [2025-12-28 22:06:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16463381', 'tblTempUsageDetail_20' ) end [2025-12-28 22:06:44] Production.ERROR: pbx prc_insertCDR start [2025-12-28 22:06:44] Production.ERROR: pbx prc_insertCDR end [2025-12-28 22:06:44] Production.INFO: ==22700== Releasing lock... [2025-12-28 22:06:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 22:06:44] Production.INFO: 46.5 MB #Memory Used# [2025-12-28 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 20:00:06 [end_date_ymd] => 2025-12-28 23:00:06 [RateCDR] => 1 ) [2025-12-28 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-28 20:00:06' and `end` < '2025-12-28 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-28 23:00:18] Production.INFO: count ==1903 [2025-12-28 23:00:19] Production.ERROR: pbx CDR StartTime 2025-12-28 20:00:06 - End Time 2025-12-28 23:00:06 [2025-12-28 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-28 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16463628', 'tblTempUsageDetail_20' ) start [2025-12-28 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16463628', 'tblTempUsageDetail_20' ) end [2025-12-28 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16463628', 'tblTempVendorCDR_20' ) start [2025-12-28 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16463628', 'tblTempVendorCDR_20' ) end [2025-12-28 23:00:19] Production.INFO: ProcessCDR(1,16463628,1,1,2) [2025-12-28 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16463628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 23:03:14] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16463628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-28 23:03:14] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16463628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 23:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16463628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-28 23:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16463628', 'tblTempUsageDetail_20' ) start [2025-12-28 23:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16463628', 'tblTempUsageDetail_20' ) end [2025-12-28 23:06:38] Production.ERROR: pbx prc_insertCDR start [2025-12-28 23:06:38] Production.ERROR: pbx prc_insertCDR end [2025-12-28 23:06:38] Production.INFO: ==27133== Releasing lock... [2025-12-28 23:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-28 23:06:38] Production.INFO: 42.75 MB #Memory Used#