[2025-11-21 00:00:05] Production.INFO: next invoice date [2025-11-21 00:00:05] Production.INFO: 2025-12-21 [2025-11-21 00:00:05] Production.INFO: getdaysdiff [2025-11-21 00:00:05] Production.INFO: +30 [2025-11-21 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (18,19,1,30,30,'RMScheduler',2025-11-21 00:00:05,1,0,,,0) [2025-11-21 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 21:00:07 [end_date_ymd] => 2025-11-21 00:00:07 [RateCDR] => 1 ) [2025-11-21 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-20 21:00:07' and `end` < '2025-11-21 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-21 00:00:20] Production.INFO: count ==1047 [2025-11-21 00:00:20] Production.ERROR: pbx CDR StartTime 2025-11-20 21:00:07 - End Time 2025-11-21 00:00:07 [2025-11-21 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16238635', 'tblTempUsageDetail_20' ) start [2025-11-21 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16238635', 'tblTempUsageDetail_20' ) end [2025-11-21 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16238635', 'tblTempVendorCDR_20' ) start [2025-11-21 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16238635', 'tblTempVendorCDR_20' ) end [2025-11-21 00:00:21] Production.INFO: ProcessCDR(1,16238635,1,1,2) [2025-11-21 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16238635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 00:03:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16238635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 00:03:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16238635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 00:06:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16238635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 00:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16238635', 'tblTempUsageDetail_20' ) start [2025-11-21 00:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16238635', 'tblTempUsageDetail_20' ) end [2025-11-21 00:06:10] Production.ERROR: pbx prc_insertCDR start [2025-11-21 00:06:10] Production.ERROR: pbx prc_insertCDR end [2025-11-21 00:06:13] Production.INFO: ==22522== Releasing lock... [2025-11-21 00:06:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 00:06:13] Production.INFO: 39.5 MB #Memory Used# [2025-11-21 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 22:00:06 [end_date_ymd] => 2025-11-21 01:00:06 [RateCDR] => 1 ) [2025-11-21 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-20 22:00:06' and `end` < '2025-11-21 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-21 01:00:18] Production.INFO: count ==645 [2025-11-21 01:00:19] Production.ERROR: pbx CDR StartTime 2025-11-20 22:00:06 - End Time 2025-11-21 01:00:06 [2025-11-21 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16238882', 'tblTempUsageDetail_20' ) start [2025-11-21 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16238882', 'tblTempUsageDetail_20' ) end [2025-11-21 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16238882', 'tblTempVendorCDR_20' ) start [2025-11-21 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16238882', 'tblTempVendorCDR_20' ) end [2025-11-21 01:00:19] Production.INFO: ProcessCDR(1,16238882,1,1,2) [2025-11-21 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16238882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 01:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16238882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 01:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16238882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 01:06:05] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16238882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 01:06:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16238882', 'tblTempUsageDetail_20' ) start [2025-11-21 01:06:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16238882', 'tblTempUsageDetail_20' ) end [2025-11-21 01:06:05] Production.ERROR: pbx prc_insertCDR start [2025-11-21 01:06:06] Production.ERROR: pbx prc_insertCDR end [2025-11-21 01:06:06] Production.INFO: ==27240== Releasing lock... [2025-11-21 01:06:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 01:06:06] Production.INFO: 33.75 MB #Memory Used# [2025-11-21 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 23:00:07 [end_date_ymd] => 2025-11-21 02:00:07 [RateCDR] => 1 ) [2025-11-21 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-20 23:00:07' and `end` < '2025-11-21 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-21 02:00:19] Production.INFO: count ==543 [2025-11-21 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-20 23:00:07 - End Time 2025-11-21 02:00:07 [2025-11-21 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16239129', 'tblTempUsageDetail_20' ) start [2025-11-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16239129', 'tblTempUsageDetail_20' ) end [2025-11-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16239129', 'tblTempVendorCDR_20' ) start [2025-11-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16239129', 'tblTempVendorCDR_20' ) end [2025-11-21 02:00:19] Production.INFO: ProcessCDR(1,16239129,1,1,2) [2025-11-21 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16239129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 02:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16239129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 02:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16239129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 02:06:05] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16239129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 02:06:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16239129', 'tblTempUsageDetail_20' ) start [2025-11-21 02:06:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16239129', 'tblTempUsageDetail_20' ) end [2025-11-21 02:06:05] Production.ERROR: pbx prc_insertCDR start [2025-11-21 02:06:05] Production.ERROR: pbx prc_insertCDR end [2025-11-21 02:06:05] Production.INFO: ==32270== Releasing lock... [2025-11-21 02:06:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 02:06:05] Production.INFO: 33 MB #Memory Used# [2025-11-21 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 00:00:07 [end_date_ymd] => 2025-11-21 03:00:07 [RateCDR] => 1 ) [2025-11-21 03: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-21 00:00:07' and `end` < '2025-11-21 03: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-21 03:00:20] Production.INFO: count ==493 [2025-11-21 03:00:20] Production.ERROR: pbx CDR StartTime 2025-11-21 00:00:07 - End Time 2025-11-21 03:00:07 [2025-11-21 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16239376', 'tblTempUsageDetail_20' ) start [2025-11-21 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16239376', 'tblTempUsageDetail_20' ) end [2025-11-21 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16239376', 'tblTempVendorCDR_20' ) start [2025-11-21 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16239376', 'tblTempVendorCDR_20' ) end [2025-11-21 03:00:20] Production.INFO: ProcessCDR(1,16239376,1,1,2) [2025-11-21 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16239376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 03:03:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16239376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 03:03:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16239376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 03:06:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16239376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 03:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16239376', 'tblTempUsageDetail_20' ) start [2025-11-21 03:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16239376', 'tblTempUsageDetail_20' ) end [2025-11-21 03:06:13] Production.ERROR: pbx prc_insertCDR start [2025-11-21 03:06:13] Production.ERROR: pbx prc_insertCDR end [2025-11-21 03:06:14] Production.INFO: ==5384== Releasing lock... [2025-11-21 03:06:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 03:06:14] Production.INFO: 32.25 MB #Memory Used# [2025-11-21 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 01:00:07 [end_date_ymd] => 2025-11-21 04:00:07 [RateCDR] => 1 ) [2025-11-21 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-21 01:00:07' and `end` < '2025-11-21 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-21 04:00:19] Production.INFO: count ==316 [2025-11-21 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-21 01:00:07 - End Time 2025-11-21 04:00:07 [2025-11-21 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16239624', 'tblTempUsageDetail_20' ) start [2025-11-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16239624', 'tblTempUsageDetail_20' ) end [2025-11-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16239624', 'tblTempVendorCDR_20' ) start [2025-11-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16239624', 'tblTempVendorCDR_20' ) end [2025-11-21 04:00:19] Production.INFO: ProcessCDR(1,16239624,1,1,2) [2025-11-21 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16239624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 04:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16239624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 04:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16239624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 04:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16239624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 04:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16239624', 'tblTempUsageDetail_20' ) start [2025-11-21 04:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16239624', 'tblTempUsageDetail_20' ) end [2025-11-21 04:05:28] Production.ERROR: pbx prc_insertCDR start [2025-11-21 04:05:28] Production.ERROR: pbx prc_insertCDR end [2025-11-21 04:05:28] Production.INFO: ==12310== Releasing lock... [2025-11-21 04:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 04:05:28] Production.INFO: 31.25 MB #Memory Used# [2025-11-21 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 02:00:06 [end_date_ymd] => 2025-11-21 05:00:06 [RateCDR] => 1 ) [2025-11-21 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-21 02:00:06' and `end` < '2025-11-21 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-21 05:00:06] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-11-21 05:00:06] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-11-21 05:00:06] Production.INFO: ==18834== Releasing lock... [2025-11-21 05:00:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 05:00:06] Production.INFO: 27.25 MB #Memory Used# [2025-11-21 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 03:00:06 [end_date_ymd] => 2025-11-21 06:00:06 [RateCDR] => 1 ) [2025-11-21 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-11-21 03:00:06' and `end` < '2025-11-21 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-11-21 06:00:55] Production.INFO: count ==276 [2025-11-21 06:00:55] Production.ERROR: pbx CDR StartTime 2025-11-21 03:00:06 - End Time 2025-11-21 06:00:06 [2025-11-21 06:00:55] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 06:00:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16240119', 'tblTempUsageDetail_20' ) start [2025-11-21 06:00:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16240119', 'tblTempUsageDetail_20' ) end [2025-11-21 06:00:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16240119', 'tblTempVendorCDR_20' ) start [2025-11-21 06:00:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16240119', 'tblTempVendorCDR_20' ) end [2025-11-21 06:00:55] Production.INFO: ProcessCDR(1,16240119,1,1,2) [2025-11-21 06:00:55] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16240119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 06:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16240119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 06:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16240119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 06:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16240119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 06:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16240119', 'tblTempUsageDetail_20' ) start [2025-11-21 06:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16240119', 'tblTempUsageDetail_20' ) end [2025-11-21 06:06:32] Production.ERROR: pbx prc_insertCDR start [2025-11-21 06:06:32] Production.ERROR: pbx prc_insertCDR end [2025-11-21 06:06:32] Production.INFO: ==23974== Releasing lock... [2025-11-21 06:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 06:06:32] Production.INFO: 30.25 MB #Memory Used# [2025-11-21 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 04:00:06 [end_date_ymd] => 2025-11-21 07:00:06 [RateCDR] => 1 ) [2025-11-21 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-21 04:00:06' and `end` < '2025-11-21 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-21 07:00:17] Production.INFO: count ==244 [2025-11-21 07:00:17] Production.ERROR: pbx CDR StartTime 2025-11-21 04:00:06 - End Time 2025-11-21 07:00:06 [2025-11-21 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16240366', 'tblTempUsageDetail_20' ) start [2025-11-21 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16240366', 'tblTempUsageDetail_20' ) end [2025-11-21 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16240366', 'tblTempVendorCDR_20' ) start [2025-11-21 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16240366', 'tblTempVendorCDR_20' ) end [2025-11-21 07:00:17] Production.INFO: ProcessCDR(1,16240366,1,1,2) [2025-11-21 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16240366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 07:02:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16240366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 07:02:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16240366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 07:05:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16240366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 07:05:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16240366', 'tblTempUsageDetail_20' ) start [2025-11-21 07:05:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16240366', 'tblTempUsageDetail_20' ) end [2025-11-21 07:05:56] Production.ERROR: pbx prc_insertCDR start [2025-11-21 07:05:56] Production.ERROR: pbx prc_insertCDR end [2025-11-21 07:05:56] Production.INFO: ==28580== Releasing lock... [2025-11-21 07:05:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 07:05:56] Production.INFO: 30.75 MB #Memory Used# [2025-11-21 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 05:00:06 [end_date_ymd] => 2025-11-21 08:00:06 [RateCDR] => 1 ) [2025-11-21 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-21 05:00:06' and `end` < '2025-11-21 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-21 08:00:18] Production.INFO: count ==313 [2025-11-21 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-21 05:00:06 - End Time 2025-11-21 08:00:06 [2025-11-21 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16240613', 'tblTempUsageDetail_20' ) start [2025-11-21 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16240613', 'tblTempUsageDetail_20' ) end [2025-11-21 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16240613', 'tblTempVendorCDR_20' ) start [2025-11-21 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16240613', 'tblTempVendorCDR_20' ) end [2025-11-21 08:00:18] Production.INFO: ProcessCDR(1,16240613,1,1,2) [2025-11-21 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16240613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 08:02:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16240613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 08:02:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16240613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 08:06:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16240613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 08:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16240613', 'tblTempUsageDetail_20' ) start [2025-11-21 08:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16240613', 'tblTempUsageDetail_20' ) end [2025-11-21 08:06:10] Production.ERROR: pbx prc_insertCDR start [2025-11-21 08:06:10] Production.ERROR: pbx prc_insertCDR end [2025-11-21 08:06:10] Production.INFO: ==825== Releasing lock... [2025-11-21 08:06:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 08:06:10] Production.INFO: 31.25 MB #Memory Used# [2025-11-21 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 06:00:06 [end_date_ymd] => 2025-11-21 09:00:06 [RateCDR] => 1 ) [2025-11-21 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-21 06:00:06' and `end` < '2025-11-21 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-21 09:00:18] Production.INFO: count ==792 [2025-11-21 09:00:18] Production.ERROR: pbx CDR StartTime 2025-11-21 06:00:06 - End Time 2025-11-21 09:00:06 [2025-11-21 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16240860', 'tblTempUsageDetail_20' ) start [2025-11-21 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16240860', 'tblTempUsageDetail_20' ) end [2025-11-21 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16240860', 'tblTempVendorCDR_20' ) start [2025-11-21 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16240860', 'tblTempVendorCDR_20' ) end [2025-11-21 09:00:18] Production.INFO: ProcessCDR(1,16240860,1,1,2) [2025-11-21 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16240860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 09:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16240860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 09:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16240860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 09:05:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16240860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 09:05:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16240860', 'tblTempUsageDetail_20' ) start [2025-11-21 09:05:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16240860', 'tblTempUsageDetail_20' ) end [2025-11-21 09:05:59] Production.ERROR: pbx prc_insertCDR start [2025-11-21 09:05:59] Production.ERROR: pbx prc_insertCDR end [2025-11-21 09:05:59] Production.INFO: ==5688== Releasing lock... [2025-11-21 09:05:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 09:05:59] Production.INFO: 34.75 MB #Memory Used# [2025-11-21 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 07:00:07 [end_date_ymd] => 2025-11-21 10:00:07 [RateCDR] => 1 ) [2025-11-21 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-21 07:00:07' and `end` < '2025-11-21 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-21 10:00:19] Production.INFO: count ==2199 [2025-11-21 10:00:20] Production.ERROR: pbx CDR StartTime 2025-11-21 07:00:07 - End Time 2025-11-21 10:00:07 [2025-11-21 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16241106', 'tblTempUsageDetail_20' ) start [2025-11-21 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16241106', 'tblTempUsageDetail_20' ) end [2025-11-21 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16241106', 'tblTempVendorCDR_20' ) start [2025-11-21 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16241106', 'tblTempVendorCDR_20' ) end [2025-11-21 10:00:20] Production.INFO: ProcessCDR(1,16241106,1,1,2) [2025-11-21 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16241106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 10:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16241106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 10:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16241106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 10:06:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16241106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 10:06:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16241106', 'tblTempUsageDetail_20' ) start [2025-11-21 10:06:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16241106', 'tblTempUsageDetail_20' ) end [2025-11-21 10:06:09] Production.ERROR: pbx prc_insertCDR start [2025-11-21 10:06:11] Production.ERROR: pbx prc_insertCDR end [2025-11-21 10:06:12] Production.INFO: ==12104== Releasing lock... [2025-11-21 10:06:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 10:06:12] Production.INFO: 45.25 MB #Memory Used# [2025-11-21 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 08:00:06 [end_date_ymd] => 2025-11-21 11:00:06 [RateCDR] => 1 ) [2025-11-21 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-21 08:00:06' and `end` < '2025-11-21 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-21 11:00:19] Production.INFO: count ==3645 [2025-11-21 11:00:21] Production.ERROR: pbx CDR StartTime 2025-11-21 08:00:06 - End Time 2025-11-21 11:00:06 [2025-11-21 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16241354', 'tblTempUsageDetail_20' ) start [2025-11-21 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16241354', 'tblTempUsageDetail_20' ) end [2025-11-21 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16241354', 'tblTempVendorCDR_20' ) start [2025-11-21 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16241354', 'tblTempVendorCDR_20' ) end [2025-11-21 11:00:21] Production.INFO: ProcessCDR(1,16241354,1,1,2) [2025-11-21 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16241354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 11:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16241354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 11:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16241354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16241354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16241354', 'tblTempUsageDetail_20' ) start [2025-11-21 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16241354', 'tblTempUsageDetail_20' ) end [2025-11-21 11:06:21] Production.ERROR: pbx prc_insertCDR start [2025-11-21 11:06:24] Production.ERROR: pbx prc_insertCDR end [2025-11-21 11:06:24] Production.INFO: ==18377== Releasing lock... [2025-11-21 11:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 11:06:24] Production.INFO: 55.25 MB #Memory Used# [2025-11-21 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 09:00:07 [end_date_ymd] => 2025-11-21 12:00:07 [RateCDR] => 1 ) [2025-11-21 12: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-21 09:00:07' and `end` < '2025-11-21 12: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-21 12:00:20] Production.INFO: count ==4685 [2025-11-21 12:00:22] Production.ERROR: pbx CDR StartTime 2025-11-21 09:00:07 - End Time 2025-11-21 12:00:07 [2025-11-21 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16241601', 'tblTempUsageDetail_20' ) start [2025-11-21 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16241601', 'tblTempUsageDetail_20' ) end [2025-11-21 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16241601', 'tblTempVendorCDR_20' ) start [2025-11-21 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16241601', 'tblTempVendorCDR_20' ) end [2025-11-21 12:00:22] Production.INFO: ProcessCDR(1,16241601,1,1,2) [2025-11-21 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16241601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 12:02:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16241601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 12:02:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16241601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 12:05:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16241601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 12:05:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16241601', 'tblTempUsageDetail_20' ) start [2025-11-21 12:05:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16241601', 'tblTempUsageDetail_20' ) end [2025-11-21 12:05:59] Production.ERROR: pbx prc_insertCDR start [2025-11-21 12:06:01] Production.ERROR: pbx prc_insertCDR end [2025-11-21 12:06:01] Production.INFO: ==23060== Releasing lock... [2025-11-21 12:06:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 12:06:01] Production.INFO: 63.25 MB #Memory Used# [2025-11-21 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 10:00:07 [end_date_ymd] => 2025-11-21 13:00:07 [RateCDR] => 1 ) [2025-11-21 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-21 10:00:07' and `end` < '2025-11-21 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-21 13:00:20] Production.INFO: count ==5127 [2025-11-21 13:00:22] Production.ERROR: pbx CDR StartTime 2025-11-21 10:00:07 - End Time 2025-11-21 13:00:07 [2025-11-21 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16241848', 'tblTempUsageDetail_20' ) start [2025-11-21 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16241848', 'tblTempUsageDetail_20' ) end [2025-11-21 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16241848', 'tblTempVendorCDR_20' ) start [2025-11-21 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16241848', 'tblTempVendorCDR_20' ) end [2025-11-21 13:00:23] Production.INFO: ProcessCDR(1,16241848,1,1,2) [2025-11-21 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16241848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 13:03:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16241848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 13:03:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16241848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 13:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16241848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 13:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16241848', 'tblTempUsageDetail_20' ) start [2025-11-21 13:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16241848', 'tblTempUsageDetail_20' ) end [2025-11-21 13:06:19] Production.ERROR: pbx prc_insertCDR start [2025-11-21 13:06:22] Production.ERROR: pbx prc_insertCDR end [2025-11-21 13:06:22] Production.INFO: ==27626== Releasing lock... [2025-11-21 13:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 13:06:22] Production.INFO: 66.5 MB #Memory Used# [2025-11-21 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 11:00:07 [end_date_ymd] => 2025-11-21 14:00:07 [RateCDR] => 1 ) [2025-11-21 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-11-21 11:00:07' and `end` < '2025-11-21 14: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-21 14:00:20] Production.INFO: count ==5986 [2025-11-21 14:00:23] Production.ERROR: pbx CDR StartTime 2025-11-21 11:00:07 - End Time 2025-11-21 14:00:07 [2025-11-21 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16242095', 'tblTempUsageDetail_20' ) start [2025-11-21 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16242095', 'tblTempUsageDetail_20' ) end [2025-11-21 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16242095', 'tblTempVendorCDR_20' ) start [2025-11-21 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16242095', 'tblTempVendorCDR_20' ) end [2025-11-21 14:00:23] Production.INFO: ProcessCDR(1,16242095,1,1,2) [2025-11-21 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16242095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 14:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16242095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 14:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16242095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 14:06:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16242095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 14:06:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16242095', 'tblTempUsageDetail_20' ) start [2025-11-21 14:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16242095', 'tblTempUsageDetail_20' ) end [2025-11-21 14:06:46] Production.ERROR: pbx prc_insertCDR start [2025-11-21 14:06:48] Production.ERROR: pbx prc_insertCDR end [2025-11-21 14:06:48] Production.INFO: ==32128== Releasing lock... [2025-11-21 14:06:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 14:06:48] Production.INFO: 73 MB #Memory Used# [2025-11-21 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 12:00:06 [end_date_ymd] => 2025-11-21 15:00:06 [RateCDR] => 1 ) [2025-11-21 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-21 12:00:06' and `end` < '2025-11-21 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-21 15:00:19] Production.INFO: count ==6002 [2025-11-21 15:00:23] Production.ERROR: pbx CDR StartTime 2025-11-21 12:00:06 - End Time 2025-11-21 15:00:06 [2025-11-21 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16242341', 'tblTempUsageDetail_20' ) start [2025-11-21 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16242341', 'tblTempUsageDetail_20' ) end [2025-11-21 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16242341', 'tblTempVendorCDR_20' ) start [2025-11-21 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16242341', 'tblTempVendorCDR_20' ) end [2025-11-21 15:00:23] Production.INFO: ProcessCDR(1,16242341,1,1,2) [2025-11-21 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16242341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 15:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16242341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 15:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16242341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 15:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16242341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 15:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16242341', 'tblTempUsageDetail_20' ) start [2025-11-21 15:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16242341', 'tblTempUsageDetail_20' ) end [2025-11-21 15:06:19] Production.ERROR: pbx prc_insertCDR start [2025-11-21 15:06:21] Production.ERROR: pbx prc_insertCDR end [2025-11-21 15:06:21] Production.INFO: ==4244== Releasing lock... [2025-11-21 15:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 15:06:21] Production.INFO: 73.25 MB #Memory Used# [2025-11-21 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 13:00:06 [end_date_ymd] => 2025-11-21 16:00:06 [RateCDR] => 1 ) [2025-11-21 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-11-21 13:00:06' and `end` < '2025-11-21 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-11-21 16:00:23] Production.INFO: count ==5955 [2025-11-21 16:00:26] Production.ERROR: pbx CDR StartTime 2025-11-21 13:00:06 - End Time 2025-11-21 16:00:06 [2025-11-21 16:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16242589', 'tblTempUsageDetail_20' ) start [2025-11-21 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16242589', 'tblTempUsageDetail_20' ) end [2025-11-21 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16242589', 'tblTempVendorCDR_20' ) start [2025-11-21 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16242589', 'tblTempVendorCDR_20' ) end [2025-11-21 16:00:26] Production.INFO: ProcessCDR(1,16242589,1,1,2) [2025-11-21 16:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16242589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 16:03:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16242589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 16:03:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16242589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 16:06:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16242589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 16:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16242589', 'tblTempUsageDetail_20' ) start [2025-11-21 16:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16242589', 'tblTempUsageDetail_20' ) end [2025-11-21 16:06:51] Production.ERROR: pbx prc_insertCDR start [2025-11-21 16:06:53] Production.ERROR: pbx prc_insertCDR end [2025-11-21 16:06:53] Production.INFO: ==8980== Releasing lock... [2025-11-21 16:06:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 16:06:53] Production.INFO: 72.75 MB #Memory Used# [2025-11-21 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 14:00:06 [end_date_ymd] => 2025-11-21 17:00:06 [RateCDR] => 1 ) [2025-11-21 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-11-21 14:00:06' and `end` < '2025-11-21 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-11-21 17:00:24] Production.INFO: count ==5426 [2025-11-21 17:00:27] Production.ERROR: pbx CDR StartTime 2025-11-21 14:00:06 - End Time 2025-11-21 17:00:06 [2025-11-21 17:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16242835', 'tblTempUsageDetail_20' ) start [2025-11-21 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16242835', 'tblTempUsageDetail_20' ) end [2025-11-21 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16242835', 'tblTempVendorCDR_20' ) start [2025-11-21 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16242835', 'tblTempVendorCDR_20' ) end [2025-11-21 17:00:27] Production.INFO: ProcessCDR(1,16242835,1,1,2) [2025-11-21 17:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16242835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16242835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16242835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 17:06:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16242835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 17:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16242835', 'tblTempUsageDetail_20' ) start [2025-11-21 17:06:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16242835', 'tblTempUsageDetail_20' ) end [2025-11-21 17:06:42] Production.ERROR: pbx prc_insertCDR start [2025-11-21 17:06:46] Production.ERROR: pbx prc_insertCDR end [2025-11-21 17:06:46] Production.INFO: ==13297== Releasing lock... [2025-11-21 17:06:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 17:06:46] Production.INFO: 68.75 MB #Memory Used# [2025-11-21 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 15:00:05 [end_date_ymd] => 2025-11-21 18:00:05 [RateCDR] => 1 ) [2025-11-21 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-11-21 15:00:05' and `end` < '2025-11-21 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-11-21 18:00:21] Production.INFO: count ==6143 [2025-11-21 18:00:24] Production.ERROR: pbx CDR StartTime 2025-11-21 15:00:05 - End Time 2025-11-21 18:00:05 [2025-11-21 18:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16243079', 'tblTempUsageDetail_20' ) start [2025-11-21 18:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16243079', 'tblTempUsageDetail_20' ) end [2025-11-21 18:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16243079', 'tblTempVendorCDR_20' ) start [2025-11-21 18:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16243079', 'tblTempVendorCDR_20' ) end [2025-11-21 18:00:25] Production.INFO: ProcessCDR(1,16243079,1,1,2) [2025-11-21 18:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16243079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 18:03:07] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16243079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 18:03:07] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16243079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16243079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16243079', 'tblTempUsageDetail_20' ) start [2025-11-21 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16243079', 'tblTempUsageDetail_20' ) end [2025-11-21 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-11-21 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-11-21 18:06:26] Production.INFO: ==17685== Releasing lock... [2025-11-21 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 18:06:26] Production.INFO: 74.25 MB #Memory Used# [2025-11-21 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 16:00:06 [end_date_ymd] => 2025-11-21 19:00:06 [RateCDR] => 1 ) [2025-11-21 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-11-21 16:00:06' and `end` < '2025-11-21 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-11-21 19:00:20] Production.INFO: count ==6543 [2025-11-21 19:00:24] Production.ERROR: pbx CDR StartTime 2025-11-21 16:00:06 - End Time 2025-11-21 19:00:06 [2025-11-21 19:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16243327', 'tblTempUsageDetail_20' ) start [2025-11-21 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16243327', 'tblTempUsageDetail_20' ) end [2025-11-21 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16243327', 'tblTempVendorCDR_20' ) start [2025-11-21 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16243327', 'tblTempVendorCDR_20' ) end [2025-11-21 19:00:24] Production.INFO: ProcessCDR(1,16243327,1,1,2) [2025-11-21 19:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16243327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 19:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16243327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 19:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16243327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 19:06:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16243327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 19:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16243327', 'tblTempUsageDetail_20' ) start [2025-11-21 19:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16243327', 'tblTempUsageDetail_20' ) end [2025-11-21 19:06:18] Production.ERROR: pbx prc_insertCDR start [2025-11-21 19:06:19] Production.ERROR: pbx prc_insertCDR end [2025-11-21 19:06:19] Production.INFO: ==22572== Releasing lock... [2025-11-21 19:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 19:06:19] Production.INFO: 77.25 MB #Memory Used# [2025-11-21 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 17:00:06 [end_date_ymd] => 2025-11-21 20:00:06 [RateCDR] => 1 ) [2025-11-21 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-21 17:00:06' and `end` < '2025-11-21 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-21 20:00:19] Production.INFO: count ==6460 [2025-11-21 20:00:22] Production.ERROR: pbx CDR StartTime 2025-11-21 17:00:06 - End Time 2025-11-21 20:00:06 [2025-11-21 20:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 20:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16243574', 'tblTempUsageDetail_20' ) start [2025-11-21 20:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16243574', 'tblTempUsageDetail_20' ) end [2025-11-21 20:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16243574', 'tblTempVendorCDR_20' ) start [2025-11-21 20:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16243574', 'tblTempVendorCDR_20' ) end [2025-11-21 20:00:22] Production.INFO: ProcessCDR(1,16243574,1,1,2) [2025-11-21 20:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16243574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 20:02:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16243574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 20:02:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16243574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 20:06:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16243574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 20:06:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16243574', 'tblTempUsageDetail_20' ) start [2025-11-21 20:06:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16243574', 'tblTempUsageDetail_20' ) end [2025-11-21 20:06:07] Production.ERROR: pbx prc_insertCDR start [2025-11-21 20:06:09] Production.ERROR: pbx prc_insertCDR end [2025-11-21 20:06:09] Production.INFO: ==27269== Releasing lock... [2025-11-21 20:06:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 20:06:09] Production.INFO: 76.5 MB #Memory Used# [2025-11-21 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 18:00:05 [end_date_ymd] => 2025-11-21 21:00:05 [RateCDR] => 1 ) [2025-11-21 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-21 18:00:05' and `end` < '2025-11-21 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-21 21:00:18] Production.INFO: count ==4726 [2025-11-21 21:00:20] Production.ERROR: pbx CDR StartTime 2025-11-21 18:00:05 - End Time 2025-11-21 21:00:05 [2025-11-21 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16243820', 'tblTempUsageDetail_20' ) start [2025-11-21 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16243820', 'tblTempUsageDetail_20' ) end [2025-11-21 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16243820', 'tblTempVendorCDR_20' ) start [2025-11-21 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16243820', 'tblTempVendorCDR_20' ) end [2025-11-21 21:00:20] Production.INFO: ProcessCDR(1,16243820,1,1,2) [2025-11-21 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16243820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 21:02:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16243820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 21:02:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16243820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 21:05:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16243820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 21:05:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16243820', 'tblTempUsageDetail_20' ) start [2025-11-21 21:05:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16243820', 'tblTempUsageDetail_20' ) end [2025-11-21 21:05:55] Production.ERROR: pbx prc_insertCDR start [2025-11-21 21:05:55] Production.ERROR: pbx prc_insertCDR end [2025-11-21 21:05:55] Production.INFO: ==32502== Releasing lock... [2025-11-21 21:05:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 21:05:55] Production.INFO: 63.5 MB #Memory Used# [2025-11-21 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 19:00:06 [end_date_ymd] => 2025-11-21 22:00:06 [RateCDR] => 1 ) [2025-11-21 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-21 19:00:06' and `end` < '2025-11-21 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-21 22:00:18] Production.INFO: count ==2745 [2025-11-21 22:00:20] Production.ERROR: pbx CDR StartTime 2025-11-21 19:00:06 - End Time 2025-11-21 22:00:06 [2025-11-21 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16244068', 'tblTempUsageDetail_20' ) start [2025-11-21 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16244068', 'tblTempUsageDetail_20' ) end [2025-11-21 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16244068', 'tblTempVendorCDR_20' ) start [2025-11-21 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16244068', 'tblTempVendorCDR_20' ) end [2025-11-21 22:00:20] Production.INFO: ProcessCDR(1,16244068,1,1,2) [2025-11-21 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16244068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 22:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16244068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 22:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16244068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 22:06:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16244068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 22:06:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16244068', 'tblTempUsageDetail_20' ) start [2025-11-21 22:06:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16244068', 'tblTempUsageDetail_20' ) end [2025-11-21 22:06:14] Production.ERROR: pbx prc_insertCDR start [2025-11-21 22:06:14] Production.ERROR: pbx prc_insertCDR end [2025-11-21 22:06:14] Production.INFO: ==4859== Releasing lock... [2025-11-21 22:06:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 22:06:14] Production.INFO: 49 MB #Memory Used# [2025-11-21 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-21 20:00:06 [end_date_ymd] => 2025-11-21 23:00:06 [RateCDR] => 1 ) [2025-11-21 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-21 20:00:06' and `end` < '2025-11-21 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-21 23:00:18] Production.INFO: count ==2045 [2025-11-21 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-21 20:00:06 - End Time 2025-11-21 23:00:06 [2025-11-21 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-21 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16244315', 'tblTempUsageDetail_20' ) start [2025-11-21 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16244315', 'tblTempUsageDetail_20' ) end [2025-11-21 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16244315', 'tblTempVendorCDR_20' ) start [2025-11-21 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16244315', 'tblTempVendorCDR_20' ) end [2025-11-21 23:00:19] Production.INFO: ProcessCDR(1,16244315,1,1,2) [2025-11-21 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16244315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 23:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16244315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-21 23:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16244315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16244315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-21 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16244315', 'tblTempUsageDetail_20' ) start [2025-11-21 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16244315', 'tblTempUsageDetail_20' ) end [2025-11-21 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-11-21 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-11-21 23:06:21] Production.INFO: ==10362== Releasing lock... [2025-11-21 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-21 23:06:21] Production.INFO: 43.5 MB #Memory Used#