[2025-12-04 00:00:05] Production.INFO: next invoice date [2025-12-04 00:00:05] Production.INFO: 2026-01-04 [2025-12-04 00:00:05] Production.INFO: getdaysdiff [2025-12-04 00:00:05] Production.INFO: +31 [2025-12-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (209,16,1,31,31,'RMScheduler',2025-12-04 00:00:05,0,0,,,0) [2025-12-04 00:00:05] Production.INFO: next invoice date [2025-12-04 00:00:05] Production.INFO: 2026-01-04 [2025-12-04 00:00:05] Production.INFO: getdaysdiff [2025-12-04 00:00:05] Production.INFO: +31 [2025-12-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (209,13,2,31,31,'RMScheduler',2025-12-04 00:00:05,0,0,,,0) [2025-12-04 00:00:05] Production.INFO: next invoice date [2025-12-04 00:00:05] Production.INFO: 2026-01-04 [2025-12-04 00:00:05] Production.INFO: getdaysdiff [2025-12-04 00:00:05] Production.INFO: +31 [2025-12-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,11,1,31,31,'RMScheduler',2025-12-04 00:00:05,0,0,,,0) [2025-12-04 00:00:05] Production.INFO: next invoice date [2025-12-04 00:00:05] Production.INFO: 2026-01-04 [2025-12-04 00:00:05] Production.INFO: getdaysdiff [2025-12-04 00:00:05] Production.INFO: +31 [2025-12-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,13,2,31,31,'RMScheduler',2025-12-04 00:00:05,0,0,,,0) [2025-12-04 00:00:05] Production.INFO: next invoice date [2025-12-04 00:00:05] Production.INFO: 2026-01-04 [2025-12-04 00:00:05] Production.INFO: getdaysdiff [2025-12-04 00:00:05] Production.INFO: +31 [2025-12-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,16,1,31,31,'RMScheduler',2025-12-04 00:00:05,1,0,,,0) [2025-12-04 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 21:00:07 [end_date_ymd] => 2025-12-04 00:00:07 [RateCDR] => 1 ) [2025-12-04 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-03 21:00:07' and `end` < '2025-12-04 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-04 00:00:19] Production.INFO: count ==864 [2025-12-04 00:00:20] Production.ERROR: pbx CDR StartTime 2025-12-03 21:00:07 - End Time 2025-12-04 00:00:07 [2025-12-04 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16315695', 'tblTempUsageDetail_20' ) start [2025-12-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16315695', 'tblTempUsageDetail_20' ) end [2025-12-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16315695', 'tblTempVendorCDR_20' ) start [2025-12-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16315695', 'tblTempVendorCDR_20' ) end [2025-12-04 00:00:20] Production.INFO: ProcessCDR(1,16315695,1,1,2) [2025-12-04 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16315695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 00:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16315695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 00:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16315695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 00:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16315695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 00:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16315695', 'tblTempUsageDetail_20' ) start [2025-12-04 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16315695', 'tblTempUsageDetail_20' ) end [2025-12-04 00:00:35] Production.ERROR: pbx prc_insertCDR start [2025-12-04 00:00:35] Production.ERROR: pbx prc_insertCDR end [2025-12-04 00:00:38] Production.INFO: ==21241== Releasing lock... [2025-12-04 00:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 00:00:38] Production.INFO: 38.25 MB #Memory Used# [2025-12-04 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 22:00:06 [end_date_ymd] => 2025-12-04 01:00:06 [RateCDR] => 1 ) [2025-12-04 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-03 22:00:06' and `end` < '2025-12-04 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-04 01:00:18] Production.INFO: count ==596 [2025-12-04 01:00:18] Production.ERROR: pbx CDR StartTime 2025-12-03 22:00:06 - End Time 2025-12-04 01:00:06 [2025-12-04 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16315942', 'tblTempUsageDetail_20' ) start [2025-12-04 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16315942', 'tblTempUsageDetail_20' ) end [2025-12-04 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16315942', 'tblTempVendorCDR_20' ) start [2025-12-04 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16315942', 'tblTempVendorCDR_20' ) end [2025-12-04 01:00:18] Production.INFO: ProcessCDR(1,16315942,1,1,2) [2025-12-04 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16315942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 01:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16315942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 01:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16315942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 01:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16315942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 01:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16315942', 'tblTempUsageDetail_20' ) start [2025-12-04 01:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16315942', 'tblTempUsageDetail_20' ) end [2025-12-04 01:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-04 01:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-04 01:00:30] Production.INFO: ==25742== Releasing lock... [2025-12-04 01:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 01:00:30] Production.INFO: 33 MB #Memory Used# [2025-12-04 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-03 23:00:07 [end_date_ymd] => 2025-12-04 02:00:07 [RateCDR] => 1 ) [2025-12-04 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-03 23:00:07' and `end` < '2025-12-04 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-04 02:00:19] Production.INFO: count ==538 [2025-12-04 02:00:19] Production.ERROR: pbx CDR StartTime 2025-12-03 23:00:07 - End Time 2025-12-04 02:00:07 [2025-12-04 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16316189', 'tblTempUsageDetail_20' ) start [2025-12-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16316189', 'tblTempUsageDetail_20' ) end [2025-12-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16316189', 'tblTempVendorCDR_20' ) start [2025-12-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16316189', 'tblTempVendorCDR_20' ) end [2025-12-04 02:00:19] Production.INFO: ProcessCDR(1,16316189,1,1,2) [2025-12-04 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16316189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 02:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16316189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 02:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16316189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 02:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16316189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16316189', 'tblTempUsageDetail_20' ) start [2025-12-04 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16316189', 'tblTempUsageDetail_20' ) end [2025-12-04 02:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-04 02:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-04 02:00:30] Production.INFO: ==30147== Releasing lock... [2025-12-04 02:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 02:00:30] Production.INFO: 32.75 MB #Memory Used# [2025-12-04 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 00:00:06 [end_date_ymd] => 2025-12-04 03:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 00:00:06' and `end` < '2025-12-04 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-04 03:00:19] Production.INFO: count ==426 [2025-12-04 03:00:19] Production.ERROR: pbx CDR StartTime 2025-12-04 00:00:06 - End Time 2025-12-04 03:00:06 [2025-12-04 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16316436', 'tblTempUsageDetail_20' ) start [2025-12-04 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16316436', 'tblTempUsageDetail_20' ) end [2025-12-04 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16316436', 'tblTempVendorCDR_20' ) start [2025-12-04 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16316436', 'tblTempVendorCDR_20' ) end [2025-12-04 03:00:19] Production.INFO: ProcessCDR(1,16316436,1,1,2) [2025-12-04 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16316436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 03:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16316436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 03:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16316436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 03:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16316436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16316436', 'tblTempUsageDetail_20' ) start [2025-12-04 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16316436', 'tblTempUsageDetail_20' ) end [2025-12-04 03:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-04 03:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-04 03:00:29] Production.INFO: ==3236== Releasing lock... [2025-12-04 03:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 03:00:29] Production.INFO: 31.75 MB #Memory Used# [2025-12-04 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 01:00:06 [end_date_ymd] => 2025-12-04 04:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 01:00:06' and `end` < '2025-12-04 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-04 04:00:18] Production.INFO: count ==231 [2025-12-04 04:00:18] Production.ERROR: pbx CDR StartTime 2025-12-04 01:00:06 - End Time 2025-12-04 04:00:06 [2025-12-04 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16316683', 'tblTempUsageDetail_20' ) start [2025-12-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16316683', 'tblTempUsageDetail_20' ) end [2025-12-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16316683', 'tblTempVendorCDR_20' ) start [2025-12-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16316683', 'tblTempVendorCDR_20' ) end [2025-12-04 04:00:18] Production.INFO: ProcessCDR(1,16316683,1,1,2) [2025-12-04 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16316683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16316683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16316683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 04:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16316683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16316683', 'tblTempUsageDetail_20' ) start [2025-12-04 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16316683', 'tblTempUsageDetail_20' ) end [2025-12-04 04:00:25] Production.ERROR: pbx prc_insertCDR start [2025-12-04 04:00:25] Production.ERROR: pbx prc_insertCDR end [2025-12-04 04:00:25] Production.INFO: ==9529== Releasing lock... [2025-12-04 04:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 04:00:25] Production.INFO: 30 MB #Memory Used# [2025-12-04 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 02:00:06 [end_date_ymd] => 2025-12-04 05:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 02:00:06' and `end` < '2025-12-04 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-04 05:00:18] Production.INFO: count ==131 [2025-12-04 05:00:18] Production.ERROR: pbx CDR StartTime 2025-12-04 02:00:06 - End Time 2025-12-04 05:00:06 [2025-12-04 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16316932', 'tblTempUsageDetail_20' ) start [2025-12-04 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16316932', 'tblTempUsageDetail_20' ) end [2025-12-04 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16316932', 'tblTempVendorCDR_20' ) start [2025-12-04 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16316932', 'tblTempVendorCDR_20' ) end [2025-12-04 05:00:18] Production.INFO: ProcessCDR(1,16316932,1,1,2) [2025-12-04 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16316932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 05:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16316932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 05:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16316932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 05:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16316932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16316932', 'tblTempUsageDetail_20' ) start [2025-12-04 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16316932', 'tblTempUsageDetail_20' ) end [2025-12-04 05:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-04 05:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-04 05:00:28] Production.INFO: ==14377== Releasing lock... [2025-12-04 05:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 05:00:28] Production.INFO: 29.25 MB #Memory Used# [2025-12-04 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 03:00:06 [end_date_ymd] => 2025-12-04 06:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 03:00:06' and `end` < '2025-12-04 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-04 06:00:19] Production.INFO: count ==103 [2025-12-04 06:00:19] Production.ERROR: pbx CDR StartTime 2025-12-04 03:00:06 - End Time 2025-12-04 06:00:06 [2025-12-04 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16317179', 'tblTempUsageDetail_20' ) start [2025-12-04 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16317179', 'tblTempUsageDetail_20' ) end [2025-12-04 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16317179', 'tblTempVendorCDR_20' ) start [2025-12-04 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16317179', 'tblTempVendorCDR_20' ) end [2025-12-04 06:00:19] Production.INFO: ProcessCDR(1,16317179,1,1,2) [2025-12-04 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16317179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 06:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16317179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 06:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16317179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 06:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16317179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16317179', 'tblTempUsageDetail_20' ) start [2025-12-04 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16317179', 'tblTempUsageDetail_20' ) end [2025-12-04 06:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-04 06:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-04 06:00:29] Production.INFO: ==19286== Releasing lock... [2025-12-04 06:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 06:00:29] Production.INFO: 28.75 MB #Memory Used# [2025-12-04 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 04:00:06 [end_date_ymd] => 2025-12-04 07:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 04:00:06' and `end` < '2025-12-04 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-04 07:00:17] Production.INFO: count ==112 [2025-12-04 07:00:17] Production.ERROR: pbx CDR StartTime 2025-12-04 04:00:06 - End Time 2025-12-04 07:00:06 [2025-12-04 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16317426', 'tblTempUsageDetail_20' ) start [2025-12-04 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16317426', 'tblTempUsageDetail_20' ) end [2025-12-04 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16317426', 'tblTempVendorCDR_20' ) start [2025-12-04 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16317426', 'tblTempVendorCDR_20' ) end [2025-12-04 07:00:17] Production.INFO: ProcessCDR(1,16317426,1,1,2) [2025-12-04 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16317426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 07:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16317426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 07:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16317426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 07:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16317426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16317426', 'tblTempUsageDetail_20' ) start [2025-12-04 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16317426', 'tblTempUsageDetail_20' ) end [2025-12-04 07:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-04 07:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-04 07:00:28] Production.INFO: ==24460== Releasing lock... [2025-12-04 07:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 07:00:28] Production.INFO: 28.75 MB #Memory Used# [2025-12-04 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 05:00:06 [end_date_ymd] => 2025-12-04 08:00:06 [RateCDR] => 1 ) [2025-12-04 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-04 05:00:06' and `end` < '2025-12-04 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-04 08:00:18] Production.INFO: count ==180 [2025-12-04 08:00:18] Production.ERROR: pbx CDR StartTime 2025-12-04 05:00:06 - End Time 2025-12-04 08:00:06 [2025-12-04 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16317673', 'tblTempUsageDetail_20' ) start [2025-12-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16317673', 'tblTempUsageDetail_20' ) end [2025-12-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16317673', 'tblTempVendorCDR_20' ) start [2025-12-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16317673', 'tblTempVendorCDR_20' ) end [2025-12-04 08:00:18] Production.INFO: ProcessCDR(1,16317673,1,1,2) [2025-12-04 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16317673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16317673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16317673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16317673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16317673', 'tblTempUsageDetail_20' ) start [2025-12-04 08:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16317673', 'tblTempUsageDetail_20' ) end [2025-12-04 08:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-04 08:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-04 08:00:29] Production.INFO: ==29223== Releasing lock... [2025-12-04 08:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 08:00:29] Production.INFO: 29.5 MB #Memory Used# [2025-12-04 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 06:00:06 [end_date_ymd] => 2025-12-04 09:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 06:00:06' and `end` < '2025-12-04 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-04 09:00:18] Production.INFO: count ==806 [2025-12-04 09:00:19] Production.ERROR: pbx CDR StartTime 2025-12-04 06:00:06 - End Time 2025-12-04 09:00:06 [2025-12-04 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16317920', 'tblTempUsageDetail_20' ) start [2025-12-04 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16317920', 'tblTempUsageDetail_20' ) end [2025-12-04 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16317920', 'tblTempVendorCDR_20' ) start [2025-12-04 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16317920', 'tblTempVendorCDR_20' ) end [2025-12-04 09:00:19] Production.INFO: ProcessCDR(1,16317920,1,1,2) [2025-12-04 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16317920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 09:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16317920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 09:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16317920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 09:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16317920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 09:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16317920', 'tblTempUsageDetail_20' ) start [2025-12-04 09:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16317920', 'tblTempUsageDetail_20' ) end [2025-12-04 09:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-04 09:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-04 09:00:30] Production.INFO: ==1901== Releasing lock... [2025-12-04 09:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 09:00:30] Production.INFO: 34 MB #Memory Used# [2025-12-04 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 07:00:06 [end_date_ymd] => 2025-12-04 10:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 07:00:06' and `end` < '2025-12-04 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-04 10:00:26] Production.INFO: count ==2311 [2025-12-04 10:00:27] Production.ERROR: pbx CDR StartTime 2025-12-04 07:00:06 - End Time 2025-12-04 10:00:06 [2025-12-04 10:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16318166', 'tblTempUsageDetail_20' ) start [2025-12-04 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16318166', 'tblTempUsageDetail_20' ) end [2025-12-04 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16318166', 'tblTempVendorCDR_20' ) start [2025-12-04 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16318166', 'tblTempVendorCDR_20' ) end [2025-12-04 10:00:27] Production.INFO: ProcessCDR(1,16318166,1,1,2) [2025-12-04 10:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16318166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 10:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16318166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 10:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16318166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 10:00:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16318166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 10:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16318166', 'tblTempUsageDetail_20' ) start [2025-12-04 10:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16318166', 'tblTempUsageDetail_20' ) end [2025-12-04 10:00:40] Production.ERROR: pbx prc_insertCDR start [2025-12-04 10:00:42] Production.ERROR: pbx prc_insertCDR end [2025-12-04 10:00:42] Production.INFO: ==6519== Releasing lock... [2025-12-04 10:00:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 10:00:42] Production.INFO: 46 MB #Memory Used# [2025-12-04 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 08:00:06 [end_date_ymd] => 2025-12-04 11:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 08:00:06' and `end` < '2025-12-04 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-04 11:00:20] Production.INFO: count ==3902 [2025-12-04 11:00:21] Production.ERROR: pbx CDR StartTime 2025-12-04 08:00:06 - End Time 2025-12-04 11:00:06 [2025-12-04 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16318414', 'tblTempUsageDetail_20' ) start [2025-12-04 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16318414', 'tblTempUsageDetail_20' ) end [2025-12-04 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16318414', 'tblTempVendorCDR_20' ) start [2025-12-04 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16318414', 'tblTempVendorCDR_20' ) end [2025-12-04 11:00:22] Production.INFO: ProcessCDR(1,16318414,1,1,2) [2025-12-04 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16318414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 11:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16318414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 11:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16318414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16318414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16318414', 'tblTempUsageDetail_20' ) start [2025-12-04 11:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16318414', 'tblTempUsageDetail_20' ) end [2025-12-04 11:00:35] Production.ERROR: pbx prc_insertCDR start [2025-12-04 11:00:37] Production.ERROR: pbx prc_insertCDR end [2025-12-04 11:00:37] Production.INFO: ==10896== Releasing lock... [2025-12-04 11:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 11:00:37] Production.INFO: 57.25 MB #Memory Used# [2025-12-04 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 09:00:06 [end_date_ymd] => 2025-12-04 12:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 09:00:06' and `end` < '2025-12-04 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-04 12:00:21] Production.INFO: count ==4997 [2025-12-04 12:00:23] Production.ERROR: pbx CDR StartTime 2025-12-04 09:00:06 - End Time 2025-12-04 12:00:06 [2025-12-04 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16318661', 'tblTempUsageDetail_20' ) start [2025-12-04 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16318661', 'tblTempUsageDetail_20' ) end [2025-12-04 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16318661', 'tblTempVendorCDR_20' ) start [2025-12-04 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16318661', 'tblTempVendorCDR_20' ) end [2025-12-04 12:00:24] Production.INFO: ProcessCDR(1,16318661,1,1,2) [2025-12-04 12:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16318661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 12:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16318661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 12:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16318661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 12:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16318661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 12:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16318661', 'tblTempUsageDetail_20' ) start [2025-12-04 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16318661', 'tblTempUsageDetail_20' ) end [2025-12-04 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-12-04 12:00:39] Production.ERROR: pbx prc_insertCDR end [2025-12-04 12:00:39] Production.INFO: ==15235== Releasing lock... [2025-12-04 12:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 12:00:39] Production.INFO: 65.5 MB #Memory Used# [2025-12-04 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 10:00:07 [end_date_ymd] => 2025-12-04 13:00:07 [RateCDR] => 1 ) [2025-12-04 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-04 10:00:07' and `end` < '2025-12-04 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-04 13:00:20] Production.INFO: count ==5539 [2025-12-04 13:00:23] Production.ERROR: pbx CDR StartTime 2025-12-04 10:00:07 - End Time 2025-12-04 13:00:07 [2025-12-04 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16318908', 'tblTempUsageDetail_20' ) start [2025-12-04 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16318908', 'tblTempUsageDetail_20' ) end [2025-12-04 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16318908', 'tblTempVendorCDR_20' ) start [2025-12-04 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16318908', 'tblTempVendorCDR_20' ) end [2025-12-04 13:00:24] Production.INFO: ProcessCDR(1,16318908,1,1,2) [2025-12-04 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16318908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 13:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16318908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 13:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16318908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 13:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16318908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 13:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16318908', 'tblTempUsageDetail_20' ) start [2025-12-04 13:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16318908', 'tblTempUsageDetail_20' ) end [2025-12-04 13:00:38] Production.ERROR: pbx prc_insertCDR start [2025-12-04 13:00:41] Production.ERROR: pbx prc_insertCDR end [2025-12-04 13:00:41] Production.INFO: ==20773== Releasing lock... [2025-12-04 13:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 13:00:41] Production.INFO: 69.75 MB #Memory Used# [2025-12-04 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 11:00:06 [end_date_ymd] => 2025-12-04 14:00:06 [RateCDR] => 1 ) [2025-12-04 14:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-04 11:00:06' and `end` < '2025-12-04 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-04 14:00:22] Production.INFO: count ==5511 [2025-12-04 14:00:25] Production.ERROR: pbx CDR StartTime 2025-12-04 11:00:06 - End Time 2025-12-04 14:00:06 [2025-12-04 14:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16319155', 'tblTempUsageDetail_20' ) start [2025-12-04 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16319155', 'tblTempUsageDetail_20' ) end [2025-12-04 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16319155', 'tblTempVendorCDR_20' ) start [2025-12-04 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16319155', 'tblTempVendorCDR_20' ) end [2025-12-04 14:00:25] Production.INFO: ProcessCDR(1,16319155,1,1,2) [2025-12-04 14:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16319155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 14:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16319155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 14:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16319155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 14:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16319155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 14:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16319155', 'tblTempUsageDetail_20' ) start [2025-12-04 14:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16319155', 'tblTempUsageDetail_20' ) end [2025-12-04 14:00:38] Production.ERROR: pbx prc_insertCDR start [2025-12-04 14:00:40] Production.ERROR: pbx prc_insertCDR end [2025-12-04 14:00:41] Production.INFO: ==25570== Releasing lock... [2025-12-04 14:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 14:00:41] Production.INFO: 69.5 MB #Memory Used# [2025-12-04 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 12:00:06 [end_date_ymd] => 2025-12-04 15:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 12:00:06' and `end` < '2025-12-04 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-04 15:00:20] Production.INFO: count ==5534 [2025-12-04 15:00:22] Production.ERROR: pbx CDR StartTime 2025-12-04 12:00:06 - End Time 2025-12-04 15:00:06 [2025-12-04 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16319402', 'tblTempUsageDetail_20' ) start [2025-12-04 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16319402', 'tblTempUsageDetail_20' ) end [2025-12-04 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16319402', 'tblTempVendorCDR_20' ) start [2025-12-04 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16319402', 'tblTempVendorCDR_20' ) end [2025-12-04 15:00:23] Production.INFO: ProcessCDR(1,16319402,1,1,2) [2025-12-04 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16319402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 15:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16319402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 15:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16319402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 15:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16319402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16319402', 'tblTempUsageDetail_20' ) start [2025-12-04 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16319402', 'tblTempUsageDetail_20' ) end [2025-12-04 15:00:35] Production.ERROR: pbx prc_insertCDR start [2025-12-04 15:00:37] Production.ERROR: pbx prc_insertCDR end [2025-12-04 15:00:37] Production.INFO: ==30561== Releasing lock... [2025-12-04 15:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 15:00:37] Production.INFO: 69.75 MB #Memory Used# [2025-12-04 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 13:00:06 [end_date_ymd] => 2025-12-04 16:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 13:00:06' and `end` < '2025-12-04 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-04 16:00:21] Production.INFO: count ==5443 [2025-12-04 16:00:23] Production.ERROR: pbx CDR StartTime 2025-12-04 13:00:06 - End Time 2025-12-04 16:00:06 [2025-12-04 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16319649', 'tblTempUsageDetail_20' ) start [2025-12-04 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16319649', 'tblTempUsageDetail_20' ) end [2025-12-04 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16319649', 'tblTempVendorCDR_20' ) start [2025-12-04 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16319649', 'tblTempVendorCDR_20' ) end [2025-12-04 16:00:24] Production.INFO: ProcessCDR(1,16319649,1,1,2) [2025-12-04 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16319649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 16:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16319649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 16:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16319649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 16:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16319649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16319649', 'tblTempUsageDetail_20' ) start [2025-12-04 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16319649', 'tblTempUsageDetail_20' ) end [2025-12-04 16:00:37] Production.ERROR: pbx prc_insertCDR start [2025-12-04 16:00:40] Production.ERROR: pbx prc_insertCDR end [2025-12-04 16:00:40] Production.INFO: ==3084== Releasing lock... [2025-12-04 16:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 16:00:40] Production.INFO: 69 MB #Memory Used# [2025-12-04 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 14:00:06 [end_date_ymd] => 2025-12-04 17:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 14:00:06' and `end` < '2025-12-04 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-04 17:00:21] Production.INFO: count ==5864 [2025-12-04 17:00:24] Production.ERROR: pbx CDR StartTime 2025-12-04 14:00:06 - End Time 2025-12-04 17:00:06 [2025-12-04 17:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16319896', 'tblTempUsageDetail_20' ) start [2025-12-04 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16319896', 'tblTempUsageDetail_20' ) end [2025-12-04 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16319896', 'tblTempVendorCDR_20' ) start [2025-12-04 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16319896', 'tblTempVendorCDR_20' ) end [2025-12-04 17:00:24] Production.INFO: ProcessCDR(1,16319896,1,1,2) [2025-12-04 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16319896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16319896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16319896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 17:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16319896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 17:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16319896', 'tblTempUsageDetail_20' ) start [2025-12-04 17:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16319896', 'tblTempUsageDetail_20' ) end [2025-12-04 17:00:38] Production.ERROR: pbx prc_insertCDR start [2025-12-04 17:00:40] Production.ERROR: pbx prc_insertCDR end [2025-12-04 17:00:40] Production.INFO: ==7541== Releasing lock... [2025-12-04 17:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 17:00:40] Production.INFO: 72.5 MB #Memory Used# [2025-12-04 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 15:00:05 [end_date_ymd] => 2025-12-04 18:00:05 [RateCDR] => 1 ) [2025-12-04 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-04 15:00:05' and `end` < '2025-12-04 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-04 18:00:18] Production.INFO: count ==5099 [2025-12-04 18:00:21] Production.ERROR: pbx CDR StartTime 2025-12-04 15:00:05 - End Time 2025-12-04 18:00:05 [2025-12-04 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16320141', 'tblTempUsageDetail_20' ) start [2025-12-04 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16320141', 'tblTempUsageDetail_20' ) end [2025-12-04 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16320141', 'tblTempVendorCDR_20' ) start [2025-12-04 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16320141', 'tblTempVendorCDR_20' ) end [2025-12-04 18:00:21] Production.INFO: ProcessCDR(1,16320141,1,1,2) [2025-12-04 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16320141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 18:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16320141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 18:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16320141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 18:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16320141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16320141', 'tblTempUsageDetail_20' ) start [2025-12-04 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16320141', 'tblTempUsageDetail_20' ) end [2025-12-04 18:00:32] Production.ERROR: pbx prc_insertCDR start [2025-12-04 18:00:33] Production.ERROR: pbx prc_insertCDR end [2025-12-04 18:00:33] Production.INFO: ==11978== Releasing lock... [2025-12-04 18:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 18:00:33] Production.INFO: 66.5 MB #Memory Used# [2025-12-04 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 16:00:06 [end_date_ymd] => 2025-12-04 19:00:06 [RateCDR] => 1 ) [2025-12-04 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-04 16:00:06' and `end` < '2025-12-04 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-04 19:00:19] Production.INFO: count ==3936 [2025-12-04 19:00:21] Production.ERROR: pbx CDR StartTime 2025-12-04 16:00:06 - End Time 2025-12-04 19:00:06 [2025-12-04 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16320388', 'tblTempUsageDetail_20' ) start [2025-12-04 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16320388', 'tblTempUsageDetail_20' ) end [2025-12-04 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16320388', 'tblTempVendorCDR_20' ) start [2025-12-04 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16320388', 'tblTempVendorCDR_20' ) end [2025-12-04 19:00:21] Production.INFO: ProcessCDR(1,16320388,1,1,2) [2025-12-04 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16320388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 19:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16320388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 19:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16320388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 19:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16320388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16320388', 'tblTempUsageDetail_20' ) start [2025-12-04 19:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16320388', 'tblTempUsageDetail_20' ) end [2025-12-04 19:00:33] Production.ERROR: pbx prc_insertCDR start [2025-12-04 19:00:34] Production.ERROR: pbx prc_insertCDR end [2025-12-04 19:00:34] Production.INFO: ==16508== Releasing lock... [2025-12-04 19:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 19:00:34] Production.INFO: 57.5 MB #Memory Used# [2025-12-04 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 17:00:06 [end_date_ymd] => 2025-12-04 20:00:06 [RateCDR] => 1 ) [2025-12-04 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-04 17:00:06' and `end` < '2025-12-04 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-04 20:00:18] Production.INFO: count ==2795 [2025-12-04 20:00:20] Production.ERROR: pbx CDR StartTime 2025-12-04 17:00:06 - End Time 2025-12-04 20:00:06 [2025-12-04 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16320636', 'tblTempUsageDetail_20' ) start [2025-12-04 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16320636', 'tblTempUsageDetail_20' ) end [2025-12-04 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16320636', 'tblTempVendorCDR_20' ) start [2025-12-04 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16320636', 'tblTempVendorCDR_20' ) end [2025-12-04 20:00:20] Production.INFO: ProcessCDR(1,16320636,1,1,2) [2025-12-04 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16320636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 20:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16320636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 20:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16320636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 20:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16320636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16320636', 'tblTempUsageDetail_20' ) start [2025-12-04 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16320636', 'tblTempUsageDetail_20' ) end [2025-12-04 20:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-04 20:00:33] Production.ERROR: pbx prc_insertCDR end [2025-12-04 20:00:33] Production.INFO: ==21723== Releasing lock... [2025-12-04 20:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 20:00:33] Production.INFO: 49 MB #Memory Used# [2025-12-04 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 18:00:06 [end_date_ymd] => 2025-12-04 21:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 18:00:06' and `end` < '2025-12-04 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-04 21:00:18] Production.INFO: count ==2357 [2025-12-04 21:00:19] Production.ERROR: pbx CDR StartTime 2025-12-04 18:00:06 - End Time 2025-12-04 21:00:06 [2025-12-04 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16320882', 'tblTempUsageDetail_20' ) start [2025-12-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16320882', 'tblTempUsageDetail_20' ) end [2025-12-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16320882', 'tblTempVendorCDR_20' ) start [2025-12-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16320882', 'tblTempVendorCDR_20' ) end [2025-12-04 21:00:19] Production.INFO: ProcessCDR(1,16320882,1,1,2) [2025-12-04 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16320882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16320882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16320882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 21:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16320882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16320882', 'tblTempUsageDetail_20' ) start [2025-12-04 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16320882', 'tblTempUsageDetail_20' ) end [2025-12-04 21:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-04 21:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-04 21:00:30] Production.INFO: ==26412== Releasing lock... [2025-12-04 21:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 21:00:30] Production.INFO: 45.75 MB #Memory Used# [2025-12-04 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 19:00:06 [end_date_ymd] => 2025-12-04 22:00:06 [RateCDR] => 1 ) [2025-12-04 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-04 19:00:06' and `end` < '2025-12-04 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-04 22:00:18] Production.INFO: count ==1955 [2025-12-04 22:00:19] Production.ERROR: pbx CDR StartTime 2025-12-04 19:00:06 - End Time 2025-12-04 22:00:06 [2025-12-04 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16321129', 'tblTempUsageDetail_20' ) start [2025-12-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16321129', 'tblTempUsageDetail_20' ) end [2025-12-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16321129', 'tblTempVendorCDR_20' ) start [2025-12-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16321129', 'tblTempVendorCDR_20' ) end [2025-12-04 22:00:19] Production.INFO: ProcessCDR(1,16321129,1,1,2) [2025-12-04 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16321129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 22:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16321129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 22:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16321129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 22:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16321129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16321129', 'tblTempUsageDetail_20' ) start [2025-12-04 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16321129', 'tblTempUsageDetail_20' ) end [2025-12-04 22:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-04 22:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-04 22:00:30] Production.INFO: ==31676== Releasing lock... [2025-12-04 22:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 22:00:30] Production.INFO: 42.75 MB #Memory Used# [2025-12-04 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 20:00:07 [end_date_ymd] => 2025-12-04 23:00:07 [RateCDR] => 1 ) [2025-12-04 23:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-04 20:00:07' and `end` < '2025-12-04 23:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-04 23:00:19] Production.INFO: count ==1322 [2025-12-04 23:00:19] Production.ERROR: pbx CDR StartTime 2025-12-04 20:00:07 - End Time 2025-12-04 23:00:07 [2025-12-04 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-04 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16321377', 'tblTempUsageDetail_20' ) start [2025-12-04 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16321377', 'tblTempUsageDetail_20' ) end [2025-12-04 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16321377', 'tblTempVendorCDR_20' ) start [2025-12-04 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16321377', 'tblTempVendorCDR_20' ) end [2025-12-04 23:00:19] Production.INFO: ProcessCDR(1,16321377,1,1,2) [2025-12-04 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16321377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 23:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16321377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-04 23:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16321377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 23:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16321377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-04 23:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16321377', 'tblTempUsageDetail_20' ) start [2025-12-04 23:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16321377', 'tblTempUsageDetail_20' ) end [2025-12-04 23:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-04 23:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-04 23:00:31] Production.INFO: ==5106== Releasing lock... [2025-12-04 23:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-04 23:00:31] Production.INFO: 38 MB #Memory Used#