[2025-12-29 00:00:05] Production.INFO: next invoice date [2025-12-29 00:00:05] Production.INFO: 2026-01-29 [2025-12-29 00:00:05] Production.INFO: getdaysdiff [2025-12-29 00:00:05] Production.INFO: +31 [2025-12-29 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (1,11,1,31,31,'RMScheduler',2025-12-29 00:00:05,1,0,,,0) [2025-12-29 00:00:05] Production.INFO: next invoice date [2025-12-29 00:00:05] Production.INFO: 2026-01-29 [2025-12-29 00:00:05] Production.INFO: getdaysdiff [2025-12-29 00:00:05] Production.INFO: +31 [2025-12-29 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (1,13,2,31,31,'RMScheduler',2025-12-29 00:00:05,1,0,,,0) [2025-12-29 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 21:00:06 [end_date_ymd] => 2025-12-29 00:00:06 [RateCDR] => 1 ) [2025-12-29 00: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 21:00:06' and `end` < '2025-12-29 00: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-29 00:00:22] Production.INFO: count ==1501 [2025-12-29 00:00:23] Production.ERROR: pbx CDR StartTime 2025-12-28 21:00:06 - End Time 2025-12-29 00:00:06 [2025-12-29 00:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16463875', 'tblTempUsageDetail_20' ) start [2025-12-29 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16463875', 'tblTempUsageDetail_20' ) end [2025-12-29 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16463875', 'tblTempVendorCDR_20' ) start [2025-12-29 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16463875', 'tblTempVendorCDR_20' ) end [2025-12-29 00:00:23] Production.INFO: ProcessCDR(1,16463875,1,1,2) [2025-12-29 00:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16463875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 00:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16463875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 00:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16463875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 00:06:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16463875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 00:06:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16463875', 'tblTempUsageDetail_20' ) start [2025-12-29 00:06:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16463875', 'tblTempUsageDetail_20' ) end [2025-12-29 00:06:54] Production.ERROR: pbx prc_insertCDR start [2025-12-29 00:06:54] Production.ERROR: pbx prc_insertCDR end [2025-12-29 00:06:55] Production.INFO: ==31614== Releasing lock... [2025-12-29 00:06:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 00:06:55] Production.INFO: 40.75 MB #Memory Used# [2025-12-29 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 22:00:05 [end_date_ymd] => 2025-12-29 01:00:05 [RateCDR] => 1 ) [2025-12-29 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-28 22:00:05' and `end` < '2025-12-29 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-29 01:00:19] Production.INFO: count ==881 [2025-12-29 01:00:19] Production.ERROR: pbx CDR StartTime 2025-12-28 22:00:05 - End Time 2025-12-29 01:00:05 [2025-12-29 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16464122', 'tblTempUsageDetail_20' ) start [2025-12-29 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16464122', 'tblTempUsageDetail_20' ) end [2025-12-29 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16464122', 'tblTempVendorCDR_20' ) start [2025-12-29 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16464122', 'tblTempVendorCDR_20' ) end [2025-12-29 01:00:19] Production.INFO: ProcessCDR(1,16464122,1,1,2) [2025-12-29 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16464122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 01:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16464122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 01:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16464122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 01:07:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16464122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 01:07:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16464122', 'tblTempUsageDetail_20' ) start [2025-12-29 01:07:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16464122', 'tblTempUsageDetail_20' ) end [2025-12-29 01:07:11] Production.ERROR: pbx prc_insertCDR start [2025-12-29 01:07:11] Production.ERROR: pbx prc_insertCDR end [2025-12-29 01:07:11] Production.INFO: ==3822== Releasing lock... [2025-12-29 01:07:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 01:07:11] Production.INFO: 35.5 MB #Memory Used# [2025-12-29 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-28 23:00:05 [end_date_ymd] => 2025-12-29 02:00:05 [RateCDR] => 1 ) [2025-12-29 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-28 23:00:05' and `end` < '2025-12-29 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-29 02:00:17] Production.INFO: count ==803 [2025-12-29 02:00:18] Production.ERROR: pbx CDR StartTime 2025-12-28 23:00:05 - End Time 2025-12-29 02:00:05 [2025-12-29 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16464369', 'tblTempUsageDetail_20' ) start [2025-12-29 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16464369', 'tblTempUsageDetail_20' ) end [2025-12-29 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16464369', 'tblTempVendorCDR_20' ) start [2025-12-29 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16464369', 'tblTempVendorCDR_20' ) end [2025-12-29 02:00:18] Production.INFO: ProcessCDR(1,16464369,1,1,2) [2025-12-29 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16464369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 02:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16464369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 02:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16464369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 02:06:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16464369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 02:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16464369', 'tblTempUsageDetail_20' ) start [2025-12-29 02:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16464369', 'tblTempUsageDetail_20' ) end [2025-12-29 02:06:56] Production.ERROR: pbx prc_insertCDR start [2025-12-29 02:06:56] Production.ERROR: pbx prc_insertCDR end [2025-12-29 02:06:56] Production.INFO: ==8864== Releasing lock... [2025-12-29 02:06:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 02:06:56] Production.INFO: 34.25 MB #Memory Used# [2025-12-29 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 00:00:06 [end_date_ymd] => 2025-12-29 03:00:06 [RateCDR] => 1 ) [2025-12-29 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-29 00:00:06' and `end` < '2025-12-29 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-29 03:00:19] Production.INFO: count ==704 [2025-12-29 03:00:19] Production.ERROR: pbx CDR StartTime 2025-12-29 00:00:06 - End Time 2025-12-29 03:00:06 [2025-12-29 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16464616', 'tblTempUsageDetail_20' ) start [2025-12-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16464616', 'tblTempUsageDetail_20' ) end [2025-12-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16464616', 'tblTempVendorCDR_20' ) start [2025-12-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16464616', 'tblTempVendorCDR_20' ) end [2025-12-29 03:00:19] Production.INFO: ProcessCDR(1,16464616,1,1,2) [2025-12-29 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16464616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 03:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16464616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 03:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16464616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 03:06:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16464616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 03:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16464616', 'tblTempUsageDetail_20' ) start [2025-12-29 03:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16464616', 'tblTempUsageDetail_20' ) end [2025-12-29 03:06:50] Production.ERROR: pbx prc_insertCDR start [2025-12-29 03:06:50] Production.ERROR: pbx prc_insertCDR end [2025-12-29 03:06:50] Production.INFO: ==14527== Releasing lock... [2025-12-29 03:06:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 03:06:50] Production.INFO: 33.75 MB #Memory Used# [2025-12-29 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 01:00:06 [end_date_ymd] => 2025-12-29 04:00:06 [RateCDR] => 1 ) [2025-12-29 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-29 01:00:06' and `end` < '2025-12-29 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-29 04:00:18] Production.INFO: count ==479 [2025-12-29 04:00:18] Production.ERROR: pbx CDR StartTime 2025-12-29 01:00:06 - End Time 2025-12-29 04:00:06 [2025-12-29 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16464864', 'tblTempUsageDetail_20' ) start [2025-12-29 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16464864', 'tblTempUsageDetail_20' ) end [2025-12-29 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16464864', 'tblTempVendorCDR_20' ) start [2025-12-29 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16464864', 'tblTempVendorCDR_20' ) end [2025-12-29 04:00:18] Production.INFO: ProcessCDR(1,16464864,1,1,2) [2025-12-29 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16464864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16464864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16464864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 04:06:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16464864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 04:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16464864', 'tblTempUsageDetail_20' ) start [2025-12-29 04:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16464864', 'tblTempUsageDetail_20' ) end [2025-12-29 04:06:46] Production.ERROR: pbx prc_insertCDR start [2025-12-29 04:06:46] Production.ERROR: pbx prc_insertCDR end [2025-12-29 04:06:46] Production.INFO: ==19850== Releasing lock... [2025-12-29 04:06:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 04:06:46] Production.INFO: 32.5 MB #Memory Used# [2025-12-29 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 02:00:05 [end_date_ymd] => 2025-12-29 05:00:05 [RateCDR] => 1 ) [2025-12-29 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-29 02:00:05' and `end` < '2025-12-29 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-29 05:00:19] Production.INFO: count ==250 [2025-12-29 05:00:19] Production.ERROR: pbx CDR StartTime 2025-12-29 02:00:05 - End Time 2025-12-29 05:00:05 [2025-12-29 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16465112', 'tblTempUsageDetail_20' ) start [2025-12-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16465112', 'tblTempUsageDetail_20' ) end [2025-12-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16465112', 'tblTempVendorCDR_20' ) start [2025-12-29 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16465112', 'tblTempVendorCDR_20' ) end [2025-12-29 05:00:19] Production.INFO: ProcessCDR(1,16465112,1,1,2) [2025-12-29 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16465112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 05:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16465112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 05:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16465112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 05:07:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16465112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 05:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16465112', 'tblTempUsageDetail_20' ) start [2025-12-29 05:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16465112', 'tblTempUsageDetail_20' ) end [2025-12-29 05:07:01] Production.ERROR: pbx prc_insertCDR start [2025-12-29 05:07:01] Production.ERROR: pbx prc_insertCDR end [2025-12-29 05:07:01] Production.INFO: ==25420== Releasing lock... [2025-12-29 05:07:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 05:07:01] Production.INFO: 30.5 MB #Memory Used# [2025-12-29 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 03:00:06 [end_date_ymd] => 2025-12-29 06:00:06 [RateCDR] => 1 ) [2025-12-29 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-29 03:00:06' and `end` < '2025-12-29 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-29 06:00:18] Production.INFO: count ==118 [2025-12-29 06:00:18] Production.ERROR: pbx CDR StartTime 2025-12-29 03:00:06 - End Time 2025-12-29 06:00:06 [2025-12-29 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16465359', 'tblTempUsageDetail_20' ) start [2025-12-29 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16465359', 'tblTempUsageDetail_20' ) end [2025-12-29 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16465359', 'tblTempVendorCDR_20' ) start [2025-12-29 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16465359', 'tblTempVendorCDR_20' ) end [2025-12-29 06:00:18] Production.INFO: ProcessCDR(1,16465359,1,1,2) [2025-12-29 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16465359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 06:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16465359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 06:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16465359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 06:06:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16465359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 06:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16465359', 'tblTempUsageDetail_20' ) start [2025-12-29 06:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16465359', 'tblTempUsageDetail_20' ) end [2025-12-29 06:06:57] Production.ERROR: pbx prc_insertCDR start [2025-12-29 06:06:57] Production.ERROR: pbx prc_insertCDR end [2025-12-29 06:06:57] Production.INFO: ==30366== Releasing lock... [2025-12-29 06:06:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 06:06:57] Production.INFO: 29 MB #Memory Used# [2025-12-29 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 04:00:05 [end_date_ymd] => 2025-12-29 07:00:05 [RateCDR] => 1 ) [2025-12-29 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-29 04:00:05' and `end` < '2025-12-29 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-29 07:00:17] Production.INFO: count ==111 [2025-12-29 07:00:17] Production.ERROR: pbx CDR StartTime 2025-12-29 04:00:05 - End Time 2025-12-29 07:00:05 [2025-12-29 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16465606', 'tblTempUsageDetail_20' ) start [2025-12-29 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16465606', 'tblTempUsageDetail_20' ) end [2025-12-29 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16465606', 'tblTempVendorCDR_20' ) start [2025-12-29 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16465606', 'tblTempVendorCDR_20' ) end [2025-12-29 07:00:17] Production.INFO: ProcessCDR(1,16465606,1,1,2) [2025-12-29 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16465606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 07:03:16] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16465606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 07:03:16] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16465606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 07:06:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16465606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 07:06:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16465606', 'tblTempUsageDetail_20' ) start [2025-12-29 07:06:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16465606', 'tblTempUsageDetail_20' ) end [2025-12-29 07:06:44] Production.ERROR: pbx prc_insertCDR start [2025-12-29 07:06:45] Production.ERROR: pbx prc_insertCDR end [2025-12-29 07:06:45] Production.INFO: ==2826== Releasing lock... [2025-12-29 07:06:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 07:06:45] Production.INFO: 28.75 MB #Memory Used# [2025-12-29 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 05:00:05 [end_date_ymd] => 2025-12-29 08:00:05 [RateCDR] => 1 ) [2025-12-29 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-29 05:00:05' and `end` < '2025-12-29 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-29 08:00:18] Production.INFO: count ==184 [2025-12-29 08:00:18] Production.ERROR: pbx CDR StartTime 2025-12-29 05:00:05 - End Time 2025-12-29 08:00:05 [2025-12-29 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16465853', 'tblTempUsageDetail_20' ) start [2025-12-29 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16465853', 'tblTempUsageDetail_20' ) end [2025-12-29 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16465853', 'tblTempVendorCDR_20' ) start [2025-12-29 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16465853', 'tblTempVendorCDR_20' ) end [2025-12-29 08:00:18] Production.INFO: ProcessCDR(1,16465853,1,1,2) [2025-12-29 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16465853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 08:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16465853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 08:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16465853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 08:07:03] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16465853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 08:07:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16465853', 'tblTempUsageDetail_20' ) start [2025-12-29 08:07:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16465853', 'tblTempUsageDetail_20' ) end [2025-12-29 08:07:05] Production.ERROR: pbx prc_insertCDR start [2025-12-29 08:07:05] Production.ERROR: pbx prc_insertCDR end [2025-12-29 08:07:05] Production.INFO: ==7507== Releasing lock... [2025-12-29 08:07:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 08:07:05] Production.INFO: 29.5 MB #Memory Used# [2025-12-29 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 06:00:06 [end_date_ymd] => 2025-12-29 09:00:06 [RateCDR] => 1 ) [2025-12-29 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-29 06:00:06' and `end` < '2025-12-29 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-29 09:00:18] Production.INFO: count ==832 [2025-12-29 09:00:19] Production.ERROR: pbx CDR StartTime 2025-12-29 06:00:06 - End Time 2025-12-29 09:00:06 [2025-12-29 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16466100', 'tblTempUsageDetail_20' ) start [2025-12-29 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16466100', 'tblTempUsageDetail_20' ) end [2025-12-29 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16466100', 'tblTempVendorCDR_20' ) start [2025-12-29 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16466100', 'tblTempVendorCDR_20' ) end [2025-12-29 09:00:19] Production.INFO: ProcessCDR(1,16466100,1,1,2) [2025-12-29 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16466100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 09:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16466100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 09:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16466100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 09:07:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16466100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 09:07:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16466100', 'tblTempUsageDetail_20' ) start [2025-12-29 09:07:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16466100', 'tblTempUsageDetail_20' ) end [2025-12-29 09:07:15] Production.ERROR: pbx prc_insertCDR start [2025-12-29 09:07:15] Production.ERROR: pbx prc_insertCDR end [2025-12-29 09:07:16] Production.INFO: ==12233== Releasing lock... [2025-12-29 09:07:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 09:07:16] Production.INFO: 34.75 MB #Memory Used# [2025-12-29 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 07:00:06 [end_date_ymd] => 2025-12-29 10:00:06 [RateCDR] => 1 ) [2025-12-29 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-29 07:00:06' and `end` < '2025-12-29 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-29 10:00:19] Production.INFO: count ==2987 [2025-12-29 10:00:21] Production.ERROR: pbx CDR StartTime 2025-12-29 07:00:06 - End Time 2025-12-29 10:00:06 [2025-12-29 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16466347', 'tblTempUsageDetail_20' ) start [2025-12-29 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16466347', 'tblTempUsageDetail_20' ) end [2025-12-29 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16466347', 'tblTempVendorCDR_20' ) start [2025-12-29 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16466347', 'tblTempVendorCDR_20' ) end [2025-12-29 10:00:21] Production.INFO: ProcessCDR(1,16466347,1,1,2) [2025-12-29 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16466347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 10:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16466347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 10:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16466347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 10:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16466347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 10:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16466347', 'tblTempUsageDetail_20' ) start [2025-12-29 10:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16466347', 'tblTempUsageDetail_20' ) end [2025-12-29 10:07:28] Production.ERROR: pbx prc_insertCDR start [2025-12-29 10:07:29] Production.ERROR: pbx prc_insertCDR end [2025-12-29 10:07:29] Production.INFO: ==16920== Releasing lock... [2025-12-29 10:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 10:07:29] Production.INFO: 51 MB #Memory Used# [2025-12-29 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 08:00:06 [end_date_ymd] => 2025-12-29 11:00:06 [RateCDR] => 1 ) [2025-12-29 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-29 08:00:06' and `end` < '2025-12-29 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-29 11:00:20] Production.INFO: count ==5413 [2025-12-29 11:00:23] Production.ERROR: pbx CDR StartTime 2025-12-29 08:00:06 - End Time 2025-12-29 11:00:06 [2025-12-29 11:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16466594', 'tblTempUsageDetail_20' ) start [2025-12-29 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16466594', 'tblTempUsageDetail_20' ) end [2025-12-29 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16466594', 'tblTempVendorCDR_20' ) start [2025-12-29 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16466594', 'tblTempVendorCDR_20' ) end [2025-12-29 11:00:23] Production.INFO: ProcessCDR(1,16466594,1,1,2) [2025-12-29 11:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16466594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16466594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16466594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 11:06:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16466594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 11:06:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16466594', 'tblTempUsageDetail_20' ) start [2025-12-29 11:06:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16466594', 'tblTempUsageDetail_20' ) end [2025-12-29 11:06:53] Production.ERROR: pbx prc_insertCDR start [2025-12-29 11:06:56] Production.ERROR: pbx prc_insertCDR end [2025-12-29 11:06:56] Production.INFO: ==21447== Releasing lock... [2025-12-29 11:06:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 11:06:56] Production.INFO: 68.75 MB #Memory Used# [2025-12-29 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 09:00:06 [end_date_ymd] => 2025-12-29 12:00:06 [RateCDR] => 1 ) [2025-12-29 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-29 09:00:06' and `end` < '2025-12-29 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-29 12:00:21] Production.INFO: count ==7394 [2025-12-29 12:00:25] Production.ERROR: pbx CDR StartTime 2025-12-29 09:00:06 - End Time 2025-12-29 12:00:06 [2025-12-29 12:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16466841', 'tblTempUsageDetail_20' ) start [2025-12-29 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16466841', 'tblTempUsageDetail_20' ) end [2025-12-29 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16466841', 'tblTempVendorCDR_20' ) start [2025-12-29 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16466841', 'tblTempVendorCDR_20' ) end [2025-12-29 12:00:26] Production.INFO: ProcessCDR(1,16466841,1,1,2) [2025-12-29 12:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16466841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 12:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16466841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 12:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16466841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 12:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16466841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 12:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16466841', 'tblTempUsageDetail_20' ) start [2025-12-29 12:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16466841', 'tblTempUsageDetail_20' ) end [2025-12-29 12:07:21] Production.ERROR: pbx prc_insertCDR start [2025-12-29 12:07:24] Production.ERROR: pbx prc_insertCDR end [2025-12-29 12:07:24] Production.INFO: ==25924== Releasing lock... [2025-12-29 12:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 12:07:24] Production.INFO: 84.25 MB #Memory Used# [2025-12-29 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 10:00:06 [end_date_ymd] => 2025-12-29 13:00:06 [RateCDR] => 1 ) [2025-12-29 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-29 10:00:06' and `end` < '2025-12-29 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-29 13:00:21] Production.INFO: count ==7484 [2025-12-29 13:00:25] Production.ERROR: pbx CDR StartTime 2025-12-29 10:00:06 - End Time 2025-12-29 13:00:06 [2025-12-29 13:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16467088', 'tblTempUsageDetail_20' ) start [2025-12-29 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16467088', 'tblTempUsageDetail_20' ) end [2025-12-29 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16467088', 'tblTempVendorCDR_20' ) start [2025-12-29 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16467088', 'tblTempVendorCDR_20' ) end [2025-12-29 13:00:25] Production.INFO: ProcessCDR(1,16467088,1,1,2) [2025-12-29 13:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16467088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 13:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16467088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 13:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16467088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 13:07:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16467088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 13:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16467088', 'tblTempUsageDetail_20' ) start [2025-12-29 13:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16467088', 'tblTempUsageDetail_20' ) end [2025-12-29 13:07:18] Production.ERROR: pbx prc_insertCDR start [2025-12-29 13:07:21] Production.ERROR: pbx prc_insertCDR end [2025-12-29 13:07:21] Production.INFO: ==30940== Releasing lock... [2025-12-29 13:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 13:07:21] Production.INFO: 84.75 MB #Memory Used# [2025-12-29 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 11:00:06 [end_date_ymd] => 2025-12-29 14:00:06 [RateCDR] => 1 ) [2025-12-29 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-29 11:00:06' and `end` < '2025-12-29 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-29 14:00:20] Production.INFO: count ==7138 [2025-12-29 14:00:24] Production.ERROR: pbx CDR StartTime 2025-12-29 11:00:06 - End Time 2025-12-29 14:00:06 [2025-12-29 14:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16467335', 'tblTempUsageDetail_20' ) start [2025-12-29 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16467335', 'tblTempUsageDetail_20' ) end [2025-12-29 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16467335', 'tblTempVendorCDR_20' ) start [2025-12-29 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16467335', 'tblTempVendorCDR_20' ) end [2025-12-29 14:00:24] Production.INFO: ProcessCDR(1,16467335,1,1,2) [2025-12-29 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16467335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 14:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16467335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 14:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16467335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 14:07:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16467335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 14:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16467335', 'tblTempUsageDetail_20' ) start [2025-12-29 14:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16467335', 'tblTempUsageDetail_20' ) end [2025-12-29 14:07:01] Production.ERROR: pbx prc_insertCDR start [2025-12-29 14:07:07] Production.ERROR: pbx prc_insertCDR end [2025-12-29 14:07:08] Production.INFO: ==3075== Releasing lock... [2025-12-29 14:07:08] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 14:07:08] Production.INFO: 82.25 MB #Memory Used# [2025-12-29 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 12:00:06 [end_date_ymd] => 2025-12-29 15:00:06 [RateCDR] => 1 ) [2025-12-29 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-29 12:00:06' and `end` < '2025-12-29 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-29 15:00:19] Production.INFO: count ==7059 [2025-12-29 15:00:23] Production.ERROR: pbx CDR StartTime 2025-12-29 12:00:06 - End Time 2025-12-29 15:00:06 [2025-12-29 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16467582', 'tblTempUsageDetail_20' ) start [2025-12-29 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16467582', 'tblTempUsageDetail_20' ) end [2025-12-29 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16467582', 'tblTempVendorCDR_20' ) start [2025-12-29 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16467582', 'tblTempVendorCDR_20' ) end [2025-12-29 15:00:23] Production.INFO: ProcessCDR(1,16467582,1,1,2) [2025-12-29 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16467582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 15:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16467582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 15:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16467582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 15:06:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16467582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 15:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16467582', 'tblTempUsageDetail_20' ) start [2025-12-29 15:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16467582', 'tblTempUsageDetail_20' ) end [2025-12-29 15:07:00] Production.ERROR: pbx prc_insertCDR start [2025-12-29 15:07:02] Production.ERROR: pbx prc_insertCDR end [2025-12-29 15:07:02] Production.INFO: ==7676== Releasing lock... [2025-12-29 15:07:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 15:07:02] Production.INFO: 81 MB #Memory Used# [2025-12-29 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 13:00:06 [end_date_ymd] => 2025-12-29 16:00:06 [RateCDR] => 1 ) [2025-12-29 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-29 13:00:06' and `end` < '2025-12-29 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-29 16:00:19] Production.INFO: count ==6996 [2025-12-29 16:00:22] Production.ERROR: pbx CDR StartTime 2025-12-29 13:00:06 - End Time 2025-12-29 16:00:06 [2025-12-29 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16467829', 'tblTempUsageDetail_20' ) start [2025-12-29 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16467829', 'tblTempUsageDetail_20' ) end [2025-12-29 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16467829', 'tblTempVendorCDR_20' ) start [2025-12-29 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16467829', 'tblTempVendorCDR_20' ) end [2025-12-29 16:00:23] Production.INFO: ProcessCDR(1,16467829,1,1,2) [2025-12-29 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16467829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 16:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16467829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 16:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16467829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 16:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16467829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 16:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16467829', 'tblTempUsageDetail_20' ) start [2025-12-29 16:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16467829', 'tblTempUsageDetail_20' ) end [2025-12-29 16:07:21] Production.ERROR: pbx prc_insertCDR start [2025-12-29 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-12-29 16:07:23] Production.INFO: ==13066== Releasing lock... [2025-12-29 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 16:07:23] Production.INFO: 80.75 MB #Memory Used# [2025-12-29 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 14:00:06 [end_date_ymd] => 2025-12-29 17:00:06 [RateCDR] => 1 ) [2025-12-29 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-29 14:00:06' and `end` < '2025-12-29 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-29 17:00:20] Production.INFO: count ==6446 [2025-12-29 17:00:23] Production.ERROR: pbx CDR StartTime 2025-12-29 14:00:06 - End Time 2025-12-29 17:00:06 [2025-12-29 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16468076', 'tblTempUsageDetail_20' ) start [2025-12-29 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16468076', 'tblTempUsageDetail_20' ) end [2025-12-29 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16468076', 'tblTempVendorCDR_20' ) start [2025-12-29 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16468076', 'tblTempVendorCDR_20' ) end [2025-12-29 17:00:24] Production.INFO: ProcessCDR(1,16468076,1,1,2) [2025-12-29 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16468076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 17:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16468076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 17:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16468076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16468076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16468076', 'tblTempUsageDetail_20' ) start [2025-12-29 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16468076', 'tblTempUsageDetail_20' ) end [2025-12-29 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-12-29 17:07:29] Production.ERROR: pbx prc_insertCDR end [2025-12-29 17:07:29] Production.INFO: ==17625== Releasing lock... [2025-12-29 17:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 17:07:29] Production.INFO: 76.5 MB #Memory Used# [2025-12-29 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 15:00:05 [end_date_ymd] => 2025-12-29 18:00:05 [RateCDR] => 1 ) [2025-12-29 18: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-29 15:00:05' and `end` < '2025-12-29 18: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-29 18:00:18] Production.INFO: count ==5519 [2025-12-29 18:00:21] Production.ERROR: pbx CDR StartTime 2025-12-29 15:00:05 - End Time 2025-12-29 18:00:05 [2025-12-29 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16468320', 'tblTempUsageDetail_20' ) start [2025-12-29 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16468320', 'tblTempUsageDetail_20' ) end [2025-12-29 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16468320', 'tblTempVendorCDR_20' ) start [2025-12-29 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16468320', 'tblTempVendorCDR_20' ) end [2025-12-29 18:00:21] Production.INFO: ProcessCDR(1,16468320,1,1,2) [2025-12-29 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16468320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 18:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16468320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 18:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16468320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 18:07:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16468320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 18:07:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16468320', 'tblTempUsageDetail_20' ) start [2025-12-29 18:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16468320', 'tblTempUsageDetail_20' ) end [2025-12-29 18:07:14] Production.ERROR: pbx prc_insertCDR start [2025-12-29 18:07:16] Production.ERROR: pbx prc_insertCDR end [2025-12-29 18:07:16] Production.INFO: ==22099== Releasing lock... [2025-12-29 18:07:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 18:07:16] Production.INFO: 69.5 MB #Memory Used# [2025-12-29 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 16:00:05 [end_date_ymd] => 2025-12-29 19:00:05 [RateCDR] => 1 ) [2025-12-29 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-29 16:00:05' and `end` < '2025-12-29 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-29 19:00:18] Production.INFO: count ==4268 [2025-12-29 19:00:20] Production.ERROR: pbx CDR StartTime 2025-12-29 16:00:05 - End Time 2025-12-29 19:00:05 [2025-12-29 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16468567', 'tblTempUsageDetail_20' ) start [2025-12-29 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16468567', 'tblTempUsageDetail_20' ) end [2025-12-29 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16468567', 'tblTempVendorCDR_20' ) start [2025-12-29 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16468567', 'tblTempVendorCDR_20' ) end [2025-12-29 19:00:20] Production.INFO: ProcessCDR(1,16468567,1,1,2) [2025-12-29 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16468567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 19:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16468567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 19:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16468567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 19:06:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16468567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 19:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16468567', 'tblTempUsageDetail_20' ) start [2025-12-29 19:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16468567', 'tblTempUsageDetail_20' ) end [2025-12-29 19:06:58] Production.ERROR: pbx prc_insertCDR start [2025-12-29 19:06:59] Production.ERROR: pbx prc_insertCDR end [2025-12-29 19:06:59] Production.INFO: ==26672== Releasing lock... [2025-12-29 19:06:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 19:06:59] Production.INFO: 60 MB #Memory Used# [2025-12-29 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 17:00:05 [end_date_ymd] => 2025-12-29 20:00:05 [RateCDR] => 1 ) [2025-12-29 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-29 17:00:05' and `end` < '2025-12-29 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-29 20:00:17] Production.INFO: count ==3004 [2025-12-29 20:00:18] Production.ERROR: pbx CDR StartTime 2025-12-29 17:00:05 - End Time 2025-12-29 20:00:05 [2025-12-29 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16468814', 'tblTempUsageDetail_20' ) start [2025-12-29 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16468814', 'tblTempUsageDetail_20' ) end [2025-12-29 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16468814', 'tblTempVendorCDR_20' ) start [2025-12-29 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16468814', 'tblTempVendorCDR_20' ) end [2025-12-29 20:00:19] Production.INFO: ProcessCDR(1,16468814,1,1,2) [2025-12-29 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16468814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 20:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16468814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 20:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16468814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 20:06:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16468814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 20:06:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16468814', 'tblTempUsageDetail_20' ) start [2025-12-29 20:06:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16468814', 'tblTempUsageDetail_20' ) end [2025-12-29 20:06:52] Production.ERROR: pbx prc_insertCDR start [2025-12-29 20:06:52] Production.ERROR: pbx prc_insertCDR end [2025-12-29 20:06:52] Production.INFO: ==32258== Releasing lock... [2025-12-29 20:06:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 20:06:52] Production.INFO: 50.5 MB #Memory Used# [2025-12-29 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 18:00:06 [end_date_ymd] => 2025-12-29 21:00:06 [RateCDR] => 1 ) [2025-12-29 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-29 18:00:06' and `end` < '2025-12-29 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-29 21:00:18] Production.INFO: count ==2186 [2025-12-29 21:00:19] Production.ERROR: pbx CDR StartTime 2025-12-29 18:00:06 - End Time 2025-12-29 21:00:06 [2025-12-29 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16469061', 'tblTempUsageDetail_20' ) start [2025-12-29 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16469061', 'tblTempUsageDetail_20' ) end [2025-12-29 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16469061', 'tblTempVendorCDR_20' ) start [2025-12-29 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16469061', 'tblTempVendorCDR_20' ) end [2025-12-29 21:00:19] Production.INFO: ProcessCDR(1,16469061,1,1,2) [2025-12-29 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16469061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 21:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16469061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 21:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16469061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 21:06:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16469061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 21:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16469061', 'tblTempUsageDetail_20' ) start [2025-12-29 21:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16469061', 'tblTempUsageDetail_20' ) end [2025-12-29 21:06:58] Production.ERROR: pbx prc_insertCDR start [2025-12-29 21:06:58] Production.ERROR: pbx prc_insertCDR end [2025-12-29 21:06:58] Production.INFO: ==4378== Releasing lock... [2025-12-29 21:06:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 21:06:58] Production.INFO: 44.5 MB #Memory Used# [2025-12-29 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 19:00:05 [end_date_ymd] => 2025-12-29 22:00:05 [RateCDR] => 1 ) [2025-12-29 22: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-29 19:00:05' and `end` < '2025-12-29 22: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-29 22:00:18] Production.INFO: count ==1575 [2025-12-29 22:00:18] Production.ERROR: pbx CDR StartTime 2025-12-29 19:00:05 - End Time 2025-12-29 22:00:05 [2025-12-29 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16469308', 'tblTempUsageDetail_20' ) start [2025-12-29 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16469308', 'tblTempUsageDetail_20' ) end [2025-12-29 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16469308', 'tblTempVendorCDR_20' ) start [2025-12-29 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16469308', 'tblTempVendorCDR_20' ) end [2025-12-29 22:00:18] Production.INFO: ProcessCDR(1,16469308,1,1,2) [2025-12-29 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16469308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 22:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16469308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 22:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16469308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 22:07:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16469308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 22:07:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16469308', 'tblTempUsageDetail_20' ) start [2025-12-29 22:07:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16469308', 'tblTempUsageDetail_20' ) end [2025-12-29 22:07:11] Production.ERROR: pbx prc_insertCDR start [2025-12-29 22:07:12] Production.ERROR: pbx prc_insertCDR end [2025-12-29 22:07:12] Production.INFO: ==8998== Releasing lock... [2025-12-29 22:07:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 22:07:12] Production.INFO: 40 MB #Memory Used# [2025-12-29 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 20:00:05 [end_date_ymd] => 2025-12-29 23:00:05 [RateCDR] => 1 ) [2025-12-29 23: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-29 20:00:05' and `end` < '2025-12-29 23: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-29 23:00:17] Production.INFO: count ==1220 [2025-12-29 23:00:18] Production.ERROR: pbx CDR StartTime 2025-12-29 20:00:05 - End Time 2025-12-29 23:00:05 [2025-12-29 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-29 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16469555', 'tblTempUsageDetail_20' ) start [2025-12-29 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16469555', 'tblTempUsageDetail_20' ) end [2025-12-29 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16469555', 'tblTempVendorCDR_20' ) start [2025-12-29 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16469555', 'tblTempVendorCDR_20' ) end [2025-12-29 23:00:18] Production.INFO: ProcessCDR(1,16469555,1,1,2) [2025-12-29 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16469555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 23:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16469555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-29 23:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16469555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 23:07:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16469555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-29 23:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16469555', 'tblTempUsageDetail_20' ) start [2025-12-29 23:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16469555', 'tblTempUsageDetail_20' ) end [2025-12-29 23:07:01] Production.ERROR: pbx prc_insertCDR start [2025-12-29 23:07:02] Production.ERROR: pbx prc_insertCDR end [2025-12-29 23:07:03] Production.INFO: ==13464== Releasing lock... [2025-12-29 23:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-29 23:07:03] Production.INFO: 38 MB #Memory Used#