[2025-11-06 00:00:05] Production.INFO: next invoice date [2025-11-06 00:00:05] Production.INFO: 2025-12-06 [2025-11-06 00:00:05] Production.INFO: getdaysdiff [2025-11-06 00:00:05] Production.INFO: +30 [2025-11-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (154,11,1,30,30,'RMScheduler',2025-11-06 00:00:05,1,0,,,0) [2025-11-06 00:00:05] Production.INFO: next invoice date [2025-11-06 00:00:05] Production.INFO: 2025-12-06 [2025-11-06 00:00:05] Production.INFO: getdaysdiff [2025-11-06 00:00:05] Production.INFO: +30 [2025-11-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (207,11,1,30,30,'RMScheduler',2025-11-06 00:00:05,0,0,,,0) [2025-11-06 00:00:06] Production.INFO: next invoice date [2025-11-06 00:00:06] Production.INFO: 2025-12-06 [2025-11-06 00:00:06] Production.INFO: getdaysdiff [2025-11-06 00:00:06] Production.INFO: +30 [2025-11-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (207,13,2,30,30,'RMScheduler',2025-11-06 00:00:05,0,0,,,0) [2025-11-06 00:00:06] Production.INFO: next invoice date [2025-11-06 00:00:06] Production.INFO: 2025-12-06 [2025-11-06 00:00:06] Production.INFO: getdaysdiff [2025-11-06 00:00:06] Production.INFO: +30 [2025-11-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (206,11,1,30,30,'RMScheduler',2025-11-06 00:00:05,0,0,,,0) [2025-11-06 00:00:06] Production.INFO: next invoice date [2025-11-06 00:00:06] Production.INFO: 2025-12-06 [2025-11-06 00:00:06] Production.INFO: getdaysdiff [2025-11-06 00:00:06] Production.INFO: +30 [2025-11-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (206,13,2,30,30,'RMScheduler',2025-11-06 00:00:05,0,0,,,0) [2025-11-06 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-05 21:00:07 [end_date_ymd] => 2025-11-06 00:00:07 [RateCDR] => 1 ) [2025-11-06 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-05 21:00:07' and `end` < '2025-11-06 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 00:00:20] Production.INFO: count ==712 [2025-11-06 00:00:20] Production.ERROR: pbx CDR StartTime 2025-11-05 21:00:07 - End Time 2025-11-06 00:00:07 [2025-11-06 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16149723', 'tblTempUsageDetail_20' ) start [2025-11-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16149723', 'tblTempUsageDetail_20' ) end [2025-11-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16149723', 'tblTempVendorCDR_20' ) start [2025-11-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16149723', 'tblTempVendorCDR_20' ) end [2025-11-06 00:00:20] Production.INFO: ProcessCDR(1,16149723,1,1,2) [2025-11-06 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16149723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 00:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16149723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 00:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16149723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 00:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16149723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 00:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16149723', 'tblTempUsageDetail_20' ) start [2025-11-06 00:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16149723', 'tblTempUsageDetail_20' ) end [2025-11-06 00:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-06 00:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-06 00:00:38] Production.INFO: ==25031== Releasing lock... [2025-11-06 00:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 00:00:38] Production.INFO: 37 MB #Memory Used# [2025-11-06 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-05 22:00:06 [end_date_ymd] => 2025-11-06 01:00:06 [RateCDR] => 1 ) [2025-11-06 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-05 22:00:06' and `end` < '2025-11-06 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 01:00:18] Production.INFO: count ==497 [2025-11-06 01:00:18] Production.ERROR: pbx CDR StartTime 2025-11-05 22:00:06 - End Time 2025-11-06 01:00:06 [2025-11-06 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16149969', 'tblTempUsageDetail_20' ) start [2025-11-06 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16149969', 'tblTempUsageDetail_20' ) end [2025-11-06 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16149969', 'tblTempVendorCDR_20' ) start [2025-11-06 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16149969', 'tblTempVendorCDR_20' ) end [2025-11-06 01:00:18] Production.INFO: ProcessCDR(1,16149969,1,1,2) [2025-11-06 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16149969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 01:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16149969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 01:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16149969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 01:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16149969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 01:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16149969', 'tblTempUsageDetail_20' ) start [2025-11-06 01:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16149969', 'tblTempUsageDetail_20' ) end [2025-11-06 01:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-06 01:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-06 01:00:28] Production.INFO: ==30152== Releasing lock... [2025-11-06 01:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 01:00:28] Production.INFO: 32.25 MB #Memory Used# [2025-11-06 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-05 23:00:07 [end_date_ymd] => 2025-11-06 02:00:07 [RateCDR] => 1 ) [2025-11-06 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-05 23:00:07' and `end` < '2025-11-06 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 02:00:19] Production.INFO: count ==465 [2025-11-06 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-05 23:00:07 - End Time 2025-11-06 02:00:07 [2025-11-06 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16150216', 'tblTempUsageDetail_20' ) start [2025-11-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16150216', 'tblTempUsageDetail_20' ) end [2025-11-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16150216', 'tblTempVendorCDR_20' ) start [2025-11-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16150216', 'tblTempVendorCDR_20' ) end [2025-11-06 02:00:19] Production.INFO: ProcessCDR(1,16150216,1,1,2) [2025-11-06 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16150216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 02:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16150216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 02:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16150216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 02:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16150216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 02:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16150216', 'tblTempUsageDetail_20' ) start [2025-11-06 02:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16150216', 'tblTempUsageDetail_20' ) end [2025-11-06 02:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-06 02:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-06 02:00:28] Production.INFO: ==2829== Releasing lock... [2025-11-06 02:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 02:00:28] Production.INFO: 32.25 MB #Memory Used# [2025-11-06 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 00:00:06 [end_date_ymd] => 2025-11-06 03:00:06 [RateCDR] => 1 ) [2025-11-06 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 00:00:06' and `end` < '2025-11-06 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 03:00:18] Production.INFO: count ==458 [2025-11-06 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-06 00:00:06 - End Time 2025-11-06 03:00:06 [2025-11-06 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16150464', 'tblTempUsageDetail_20' ) start [2025-11-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16150464', 'tblTempUsageDetail_20' ) end [2025-11-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16150464', 'tblTempVendorCDR_20' ) start [2025-11-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16150464', 'tblTempVendorCDR_20' ) end [2025-11-06 03:00:18] Production.INFO: ProcessCDR(1,16150464,1,1,2) [2025-11-06 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16150464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 03:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16150464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 03:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16150464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 03:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16150464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 03:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16150464', 'tblTempUsageDetail_20' ) start [2025-11-06 03:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16150464', 'tblTempUsageDetail_20' ) end [2025-11-06 03:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-06 03:00:27] Production.ERROR: pbx prc_insertCDR end [2025-11-06 03:00:27] Production.INFO: ==7338== Releasing lock... [2025-11-06 03:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 03:00:27] Production.INFO: 32.25 MB #Memory Used# [2025-11-06 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 01:00:07 [end_date_ymd] => 2025-11-06 04:00:07 [RateCDR] => 1 ) [2025-11-06 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 01:00:07' and `end` < '2025-11-06 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 04:00:19] Production.INFO: count ==289 [2025-11-06 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-06 01:00:07 - End Time 2025-11-06 04:00:07 [2025-11-06 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16150711', 'tblTempUsageDetail_20' ) start [2025-11-06 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16150711', 'tblTempUsageDetail_20' ) end [2025-11-06 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16150711', 'tblTempVendorCDR_20' ) start [2025-11-06 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16150711', 'tblTempVendorCDR_20' ) end [2025-11-06 04:00:19] Production.INFO: ProcessCDR(1,16150711,1,1,2) [2025-11-06 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16150711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16150711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16150711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 04:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16150711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 04:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16150711', 'tblTempUsageDetail_20' ) start [2025-11-06 04:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16150711', 'tblTempUsageDetail_20' ) end [2025-11-06 04:00:26] Production.ERROR: pbx prc_insertCDR start [2025-11-06 04:00:26] Production.ERROR: pbx prc_insertCDR end [2025-11-06 04:00:26] Production.INFO: ==11823== Releasing lock... [2025-11-06 04:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 04:00:26] Production.INFO: 31 MB #Memory Used# [2025-11-06 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 02:00:06 [end_date_ymd] => 2025-11-06 05:00:06 [RateCDR] => 1 ) [2025-11-06 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 02:00:06' and `end` < '2025-11-06 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 05:00:20] Production.INFO: count ==192 [2025-11-06 05:00:20] Production.ERROR: pbx CDR StartTime 2025-11-06 02:00:06 - End Time 2025-11-06 05:00:06 [2025-11-06 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16150960', 'tblTempUsageDetail_20' ) start [2025-11-06 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16150960', 'tblTempUsageDetail_20' ) end [2025-11-06 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16150960', 'tblTempVendorCDR_20' ) start [2025-11-06 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16150960', 'tblTempVendorCDR_20' ) end [2025-11-06 05:00:20] Production.INFO: ProcessCDR(1,16150960,1,1,2) [2025-11-06 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16150960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16150960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16150960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 05:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16150960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16150960', 'tblTempUsageDetail_20' ) start [2025-11-06 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16150960', 'tblTempUsageDetail_20' ) end [2025-11-06 05:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-06 05:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-06 05:00:29] Production.INFO: ==17021== Releasing lock... [2025-11-06 05:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 05:00:29] Production.INFO: 30 MB #Memory Used# [2025-11-06 06:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 03:00:07 [end_date_ymd] => 2025-11-06 06:00:07 [RateCDR] => 1 ) [2025-11-06 06:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 03:00:07' and `end` < '2025-11-06 06:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 06:00:19] Production.INFO: count ==115 [2025-11-06 06:00:19] Production.ERROR: pbx CDR StartTime 2025-11-06 03:00:07 - End Time 2025-11-06 06:00:07 [2025-11-06 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16151207', 'tblTempUsageDetail_20' ) start [2025-11-06 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16151207', 'tblTempUsageDetail_20' ) end [2025-11-06 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16151207', 'tblTempVendorCDR_20' ) start [2025-11-06 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16151207', 'tblTempVendorCDR_20' ) end [2025-11-06 06:00:19] Production.INFO: ProcessCDR(1,16151207,1,1,2) [2025-11-06 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16151207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 06:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16151207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 06:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16151207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 06:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16151207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16151207', 'tblTempUsageDetail_20' ) start [2025-11-06 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16151207', 'tblTempUsageDetail_20' ) end [2025-11-06 06:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-06 06:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-06 06:00:28] Production.INFO: ==21444== Releasing lock... [2025-11-06 06:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 06:00:28] Production.INFO: 28.75 MB #Memory Used# [2025-11-06 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 04:00:06 [end_date_ymd] => 2025-11-06 07:00:06 [RateCDR] => 1 ) [2025-11-06 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 04:00:06' and `end` < '2025-11-06 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 07:00:18] Production.INFO: count ==131 [2025-11-06 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-06 04:00:06 - End Time 2025-11-06 07:00:06 [2025-11-06 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16151453', 'tblTempUsageDetail_20' ) start [2025-11-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16151453', 'tblTempUsageDetail_20' ) end [2025-11-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16151453', 'tblTempVendorCDR_20' ) start [2025-11-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16151453', 'tblTempVendorCDR_20' ) end [2025-11-06 07:00:18] Production.INFO: ProcessCDR(1,16151453,1,1,2) [2025-11-06 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16151453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 07:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16151453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 07:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16151453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 07:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16151453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16151453', 'tblTempUsageDetail_20' ) start [2025-11-06 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16151453', 'tblTempUsageDetail_20' ) end [2025-11-06 07:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-06 07:00:27] Production.ERROR: pbx prc_insertCDR end [2025-11-06 07:00:27] Production.INFO: ==26147== Releasing lock... [2025-11-06 07:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 07:00:27] Production.INFO: 28.75 MB #Memory Used# [2025-11-06 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 05:00:06 [end_date_ymd] => 2025-11-06 08:00:06 [RateCDR] => 1 ) [2025-11-06 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 05:00:06' and `end` < '2025-11-06 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 08:00:18] Production.INFO: count ==222 [2025-11-06 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-06 05:00:06 - End Time 2025-11-06 08:00:06 [2025-11-06 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16151701', 'tblTempUsageDetail_20' ) start [2025-11-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16151701', 'tblTempUsageDetail_20' ) end [2025-11-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16151701', 'tblTempVendorCDR_20' ) start [2025-11-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16151701', 'tblTempVendorCDR_20' ) end [2025-11-06 08:00:18] Production.INFO: ProcessCDR(1,16151701,1,1,2) [2025-11-06 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16151701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16151701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16151701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16151701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16151701', 'tblTempUsageDetail_20' ) start [2025-11-06 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16151701', 'tblTempUsageDetail_20' ) end [2025-11-06 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-06 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-06 08:00:28] Production.INFO: ==30613== Releasing lock... [2025-11-06 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 08:00:28] Production.INFO: 30.25 MB #Memory Used# [2025-11-06 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 06:00:06 [end_date_ymd] => 2025-11-06 09:00:06 [RateCDR] => 1 ) [2025-11-06 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 06:00:06' and `end` < '2025-11-06 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 09:00:18] Production.INFO: count ==941 [2025-11-06 09:00:19] Production.ERROR: pbx CDR StartTime 2025-11-06 06:00:06 - End Time 2025-11-06 09:00:06 [2025-11-06 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16151947', 'tblTempUsageDetail_20' ) start [2025-11-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16151947', 'tblTempUsageDetail_20' ) end [2025-11-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16151947', 'tblTempVendorCDR_20' ) start [2025-11-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16151947', 'tblTempVendorCDR_20' ) end [2025-11-06 09:00:19] Production.INFO: ProcessCDR(1,16151947,1,1,2) [2025-11-06 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16151947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16151947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16151947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 09:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16151947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16151947', 'tblTempUsageDetail_20' ) start [2025-11-06 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16151947', 'tblTempUsageDetail_20' ) end [2025-11-06 09:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-06 09:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-06 09:00:29] Production.INFO: ==2673== Releasing lock... [2025-11-06 09:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 09:00:29] Production.INFO: 36 MB #Memory Used# [2025-11-06 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 07:00:07 [end_date_ymd] => 2025-11-06 10:00:07 [RateCDR] => 1 ) [2025-11-06 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 07:00:07' and `end` < '2025-11-06 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 10:00:25] Production.INFO: count ==2471 [2025-11-06 10:00:26] Production.ERROR: pbx CDR StartTime 2025-11-06 07:00:07 - End Time 2025-11-06 10:00:07 [2025-11-06 10:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 10:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16152194', 'tblTempUsageDetail_20' ) start [2025-11-06 10:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16152194', 'tblTempUsageDetail_20' ) end [2025-11-06 10:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16152194', 'tblTempVendorCDR_20' ) start [2025-11-06 10:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16152194', 'tblTempVendorCDR_20' ) end [2025-11-06 10:00:26] Production.INFO: ProcessCDR(1,16152194,1,1,2) [2025-11-06 10:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16152194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 10:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16152194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 10:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16152194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 10:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16152194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 10:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16152194', 'tblTempUsageDetail_20' ) start [2025-11-06 10:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16152194', 'tblTempUsageDetail_20' ) end [2025-11-06 10:00:38] Production.ERROR: pbx prc_insertCDR start [2025-11-06 10:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-06 10:00:39] Production.INFO: ==8101== Releasing lock... [2025-11-06 10:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 10:00:39] Production.INFO: 47.25 MB #Memory Used# [2025-11-06 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 08:00:06 [end_date_ymd] => 2025-11-06 11:00:06 [RateCDR] => 1 ) [2025-11-06 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 08:00:06' and `end` < '2025-11-06 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 11:00:20] Production.INFO: count ==4154 [2025-11-06 11:00:22] Production.ERROR: pbx CDR StartTime 2025-11-06 08:00:06 - End Time 2025-11-06 11:00:06 [2025-11-06 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16152442', 'tblTempUsageDetail_20' ) start [2025-11-06 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16152442', 'tblTempUsageDetail_20' ) end [2025-11-06 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16152442', 'tblTempVendorCDR_20' ) start [2025-11-06 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16152442', 'tblTempVendorCDR_20' ) end [2025-11-06 11:00:23] Production.INFO: ProcessCDR(1,16152442,1,1,2) [2025-11-06 11:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16152442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 11:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16152442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 11:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16152442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16152442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16152442', 'tblTempUsageDetail_20' ) start [2025-11-06 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16152442', 'tblTempUsageDetail_20' ) end [2025-11-06 11:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-06 11:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-06 11:00:38] Production.INFO: ==13125== Releasing lock... [2025-11-06 11:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 11:00:38] Production.INFO: 59.25 MB #Memory Used# [2025-11-06 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 09:00:06 [end_date_ymd] => 2025-11-06 12:00:06 [RateCDR] => 1 ) [2025-11-06 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 09:00:06' and `end` < '2025-11-06 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 12:00:20] Production.INFO: count ==5098 [2025-11-06 12:00:23] Production.ERROR: pbx CDR StartTime 2025-11-06 09:00:06 - End Time 2025-11-06 12:00:06 [2025-11-06 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16152689', 'tblTempUsageDetail_20' ) start [2025-11-06 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16152689', 'tblTempUsageDetail_20' ) end [2025-11-06 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16152689', 'tblTempVendorCDR_20' ) start [2025-11-06 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16152689', 'tblTempVendorCDR_20' ) end [2025-11-06 12:00:23] Production.INFO: ProcessCDR(1,16152689,1,1,2) [2025-11-06 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16152689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 12:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16152689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 12:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16152689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 12:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16152689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 12:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16152689', 'tblTempUsageDetail_20' ) start [2025-11-06 12:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16152689', 'tblTempUsageDetail_20' ) end [2025-11-06 12:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-06 12:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-06 12:00:38] Production.INFO: ==21502== Releasing lock... [2025-11-06 12:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 12:00:38] Production.INFO: 66.5 MB #Memory Used# [2025-11-06 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 10:00:07 [end_date_ymd] => 2025-11-06 13:00:07 [RateCDR] => 1 ) [2025-11-06 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-11-06 10:00:07' and `end` < '2025-11-06 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-11-06 13:00:20] Production.INFO: count ==5325 [2025-11-06 13:00:23] Production.ERROR: pbx CDR StartTime 2025-11-06 10:00:07 - End Time 2025-11-06 13:00:07 [2025-11-06 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16152936', 'tblTempUsageDetail_20' ) start [2025-11-06 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16152936', 'tblTempUsageDetail_20' ) end [2025-11-06 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16152936', 'tblTempVendorCDR_20' ) start [2025-11-06 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16152936', 'tblTempVendorCDR_20' ) end [2025-11-06 13:00:24] Production.INFO: ProcessCDR(1,16152936,1,1,2) [2025-11-06 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16152936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 13:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16152936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 13:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16152936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 13:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16152936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 13:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16152936', 'tblTempUsageDetail_20' ) start [2025-11-06 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16152936', 'tblTempUsageDetail_20' ) end [2025-11-06 13:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-06 13:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-06 13:00:39] Production.INFO: ==27272== Releasing lock... [2025-11-06 13:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 13:00:39] Production.INFO: 68 MB #Memory Used# [2025-11-06 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 11:00:06 [end_date_ymd] => 2025-11-06 14:00:06 [RateCDR] => 1 ) [2025-11-06 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 11:00:06' and `end` < '2025-11-06 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 14:00:29] Production.INFO: count ==5363 [2025-11-06 14:00:31] Production.ERROR: pbx CDR StartTime 2025-11-06 11:00:06 - End Time 2025-11-06 14:00:06 [2025-11-06 14:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 14:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16153182', 'tblTempUsageDetail_20' ) start [2025-11-06 14:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16153182', 'tblTempUsageDetail_20' ) end [2025-11-06 14:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16153182', 'tblTempVendorCDR_20' ) start [2025-11-06 14:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16153182', 'tblTempVendorCDR_20' ) end [2025-11-06 14:00:32] Production.INFO: ProcessCDR(1,16153182,1,1,2) [2025-11-06 14:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16153182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 14:00:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16153182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 14:00:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16153182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 14:00:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16153182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 14:00:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16153182', 'tblTempUsageDetail_20' ) start [2025-11-06 14:00:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16153182', 'tblTempUsageDetail_20' ) end [2025-11-06 14:00:44] Production.ERROR: pbx prc_insertCDR start [2025-11-06 14:00:46] Production.ERROR: pbx prc_insertCDR end [2025-11-06 14:00:46] Production.INFO: ==31798== Releasing lock... [2025-11-06 14:00:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 14:00:46] Production.INFO: 68.5 MB #Memory Used# [2025-11-06 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 12:00:06 [end_date_ymd] => 2025-11-06 15:00:06 [RateCDR] => 1 ) [2025-11-06 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 12:00:06' and `end` < '2025-11-06 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 15:00:20] Production.INFO: count ==5531 [2025-11-06 15:00:23] Production.ERROR: pbx CDR StartTime 2025-11-06 12:00:06 - End Time 2025-11-06 15:00:06 [2025-11-06 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16153430', 'tblTempUsageDetail_20' ) start [2025-11-06 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16153430', 'tblTempUsageDetail_20' ) end [2025-11-06 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16153430', 'tblTempVendorCDR_20' ) start [2025-11-06 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16153430', 'tblTempVendorCDR_20' ) end [2025-11-06 15:00:23] Production.INFO: ProcessCDR(1,16153430,1,1,2) [2025-11-06 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16153430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 15:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16153430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 15:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16153430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 15:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16153430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16153430', 'tblTempUsageDetail_20' ) start [2025-11-06 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16153430', 'tblTempUsageDetail_20' ) end [2025-11-06 15:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-06 15:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-06 15:00:38] Production.INFO: ==4494== Releasing lock... [2025-11-06 15:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 15:00:38] Production.INFO: 69.75 MB #Memory Used# [2025-11-06 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 13:00:07 [end_date_ymd] => 2025-11-06 16:00:07 [RateCDR] => 1 ) [2025-11-06 16:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 13:00:07' and `end` < '2025-11-06 16:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 16:00:23] Production.INFO: count ==5503 [2025-11-06 16:00:26] Production.ERROR: pbx CDR StartTime 2025-11-06 13:00:07 - End Time 2025-11-06 16:00:07 [2025-11-06 16:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16153677', 'tblTempUsageDetail_20' ) start [2025-11-06 16:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16153677', 'tblTempUsageDetail_20' ) end [2025-11-06 16:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16153677', 'tblTempVendorCDR_20' ) start [2025-11-06 16:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16153677', 'tblTempVendorCDR_20' ) end [2025-11-06 16:00:27] Production.INFO: ProcessCDR(1,16153677,1,1,2) [2025-11-06 16:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16153677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 16:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16153677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 16:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16153677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 16:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16153677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 16:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16153677', 'tblTempUsageDetail_20' ) start [2025-11-06 16:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16153677', 'tblTempUsageDetail_20' ) end [2025-11-06 16:00:39] Production.ERROR: pbx prc_insertCDR start [2025-11-06 16:00:42] Production.ERROR: pbx prc_insertCDR end [2025-11-06 16:00:42] Production.INFO: ==8848== Releasing lock... [2025-11-06 16:00:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 16:00:42] Production.INFO: 69.5 MB #Memory Used# [2025-11-06 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 14:00:07 [end_date_ymd] => 2025-11-06 17:00:07 [RateCDR] => 1 ) [2025-11-06 17:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 14:00:07' and `end` < '2025-11-06 17:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 17:00:21] Production.INFO: count ==5332 [2025-11-06 17:00:24] Production.ERROR: pbx CDR StartTime 2025-11-06 14:00:07 - End Time 2025-11-06 17:00:07 [2025-11-06 17:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16153924', 'tblTempUsageDetail_20' ) start [2025-11-06 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16153924', 'tblTempUsageDetail_20' ) end [2025-11-06 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16153924', 'tblTempVendorCDR_20' ) start [2025-11-06 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16153924', 'tblTempVendorCDR_20' ) end [2025-11-06 17:00:25] Production.INFO: ProcessCDR(1,16153924,1,1,2) [2025-11-06 17:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16153924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16153924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16153924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 17:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16153924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16153924', 'tblTempUsageDetail_20' ) start [2025-11-06 17:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16153924', 'tblTempUsageDetail_20' ) end [2025-11-06 17:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-06 17:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-06 17:00:39] Production.INFO: ==13287== Releasing lock... [2025-11-06 17:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 17:00:39] Production.INFO: 68.25 MB #Memory Used# [2025-11-06 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 15:00:06 [end_date_ymd] => 2025-11-06 18:00:06 [RateCDR] => 1 ) [2025-11-06 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 15:00:06' and `end` < '2025-11-06 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 18:00:19] Production.INFO: count ==4414 [2025-11-06 18:00:21] Production.ERROR: pbx CDR StartTime 2025-11-06 15:00:06 - End Time 2025-11-06 18:00:06 [2025-11-06 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16154167', 'tblTempUsageDetail_20' ) start [2025-11-06 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16154167', 'tblTempUsageDetail_20' ) end [2025-11-06 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16154167', 'tblTempVendorCDR_20' ) start [2025-11-06 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16154167', 'tblTempVendorCDR_20' ) end [2025-11-06 18:00:21] Production.INFO: ProcessCDR(1,16154167,1,1,2) [2025-11-06 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16154167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 18:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16154167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 18:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16154167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 18:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16154167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16154167', 'tblTempUsageDetail_20' ) start [2025-11-06 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16154167', 'tblTempUsageDetail_20' ) end [2025-11-06 18:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-06 18:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-06 18:00:34] Production.INFO: ==17633== Releasing lock... [2025-11-06 18:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 18:00:34] Production.INFO: 61.25 MB #Memory Used# [2025-11-06 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 16:00:07 [end_date_ymd] => 2025-11-06 19:00:07 [RateCDR] => 1 ) [2025-11-06 19:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 16:00:07' and `end` < '2025-11-06 19:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 19:00:22] Production.INFO: count ==3397 [2025-11-06 19:00:23] Production.ERROR: pbx CDR StartTime 2025-11-06 16:00:07 - End Time 2025-11-06 19:00:07 [2025-11-06 19:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16154415', 'tblTempUsageDetail_20' ) start [2025-11-06 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16154415', 'tblTempUsageDetail_20' ) end [2025-11-06 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16154415', 'tblTempVendorCDR_20' ) start [2025-11-06 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16154415', 'tblTempVendorCDR_20' ) end [2025-11-06 19:00:24] Production.INFO: ProcessCDR(1,16154415,1,1,2) [2025-11-06 19:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16154415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 19:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16154415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 19:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16154415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 19:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16154415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 19:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16154415', 'tblTempUsageDetail_20' ) start [2025-11-06 19:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16154415', 'tblTempUsageDetail_20' ) end [2025-11-06 19:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-06 19:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-06 19:00:36] Production.INFO: ==22060== Releasing lock... [2025-11-06 19:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 19:00:36] Production.INFO: 53.5 MB #Memory Used# [2025-11-06 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 17:00:06 [end_date_ymd] => 2025-11-06 20:00:06 [RateCDR] => 1 ) [2025-11-06 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-11-06 17:00:06' and `end` < '2025-11-06 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-11-06 20:00:18] Production.INFO: count ==2372 [2025-11-06 20:00:19] Production.ERROR: pbx CDR StartTime 2025-11-06 17:00:06 - End Time 2025-11-06 20:00:06 [2025-11-06 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16154662', 'tblTempUsageDetail_20' ) start [2025-11-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16154662', 'tblTempUsageDetail_20' ) end [2025-11-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16154662', 'tblTempVendorCDR_20' ) start [2025-11-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16154662', 'tblTempVendorCDR_20' ) end [2025-11-06 20:00:19] Production.INFO: ProcessCDR(1,16154662,1,1,2) [2025-11-06 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16154662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 20:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16154662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 20:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16154662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 20:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16154662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 20:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16154662', 'tblTempUsageDetail_20' ) start [2025-11-06 20:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16154662', 'tblTempUsageDetail_20' ) end [2025-11-06 20:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-06 20:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-06 20:00:30] Production.INFO: ==26376== Releasing lock... [2025-11-06 20:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 20:00:30] Production.INFO: 46 MB #Memory Used# [2025-11-06 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 18:00:06 [end_date_ymd] => 2025-11-06 21:00:06 [RateCDR] => 1 ) [2025-11-06 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 18:00:06' and `end` < '2025-11-06 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 21:00:19] Production.INFO: count ==1806 [2025-11-06 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-06 18:00:06 - End Time 2025-11-06 21:00:06 [2025-11-06 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16154909', 'tblTempUsageDetail_20' ) start [2025-11-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16154909', 'tblTempUsageDetail_20' ) end [2025-11-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16154909', 'tblTempVendorCDR_20' ) start [2025-11-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16154909', 'tblTempVendorCDR_20' ) end [2025-11-06 21:00:19] Production.INFO: ProcessCDR(1,16154909,1,1,2) [2025-11-06 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16154909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16154909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16154909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 21:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16154909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16154909', 'tblTempUsageDetail_20' ) start [2025-11-06 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16154909', 'tblTempUsageDetail_20' ) end [2025-11-06 21:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-06 21:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-06 21:00:29] Production.INFO: ==30981== Releasing lock... [2025-11-06 21:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 21:00:29] Production.INFO: 42 MB #Memory Used# [2025-11-06 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 19:00:06 [end_date_ymd] => 2025-11-06 22:00:06 [RateCDR] => 1 ) [2025-11-06 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-11-06 19:00:06' and `end` < '2025-11-06 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-11-06 22:00:18] Production.INFO: count ==1372 [2025-11-06 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-06 19:00:06 - End Time 2025-11-06 22:00:06 [2025-11-06 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16155156', 'tblTempUsageDetail_20' ) start [2025-11-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16155156', 'tblTempUsageDetail_20' ) end [2025-11-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16155156', 'tblTempVendorCDR_20' ) start [2025-11-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16155156', 'tblTempVendorCDR_20' ) end [2025-11-06 22:00:19] Production.INFO: ProcessCDR(1,16155156,1,1,2) [2025-11-06 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16155156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 22:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16155156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 22:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16155156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 22:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16155156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16155156', 'tblTempUsageDetail_20' ) start [2025-11-06 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16155156', 'tblTempUsageDetail_20' ) end [2025-11-06 22:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-06 22:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-06 22:00:29] Production.INFO: ==3946== Releasing lock... [2025-11-06 22:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 22:00:29] Production.INFO: 38.5 MB #Memory Used# [2025-11-06 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 20:00:06 [end_date_ymd] => 2025-11-06 23:00:06 [RateCDR] => 1 ) [2025-11-06 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-06 20:00:06' and `end` < '2025-11-06 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-06 23:00:18] Production.INFO: count ==1003 [2025-11-06 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-06 20:00:06 - End Time 2025-11-06 23:00:06 [2025-11-06 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16155402', 'tblTempUsageDetail_20' ) start [2025-11-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16155402', 'tblTempUsageDetail_20' ) end [2025-11-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16155402', 'tblTempVendorCDR_20' ) start [2025-11-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16155402', 'tblTempVendorCDR_20' ) end [2025-11-06 23:00:19] Production.INFO: ProcessCDR(1,16155402,1,1,2) [2025-11-06 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16155402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16155402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-06 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16155402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 23:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16155402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-06 23:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16155402', 'tblTempUsageDetail_20' ) start [2025-11-06 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16155402', 'tblTempUsageDetail_20' ) end [2025-11-06 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-06 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-06 23:00:29] Production.INFO: ==8257== Releasing lock... [2025-11-06 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-06 23:00:29] Production.INFO: 36 MB #Memory Used#