[2025-10-19 00:25:04] Production.INFO: next invoice date [2025-10-19 00:25:04] Production.INFO: 2025-11-19 [2025-10-19 00:25:04] Production.INFO: getdaysdiff [2025-10-19 00:25:04] Production.INFO: +31 [2025-10-19 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (108,15,1,31,31,'RMScheduler',2025-10-19 00:25:04,1,0,,,0) [2025-10-19 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 21:25:05 [end_date_ymd] => 2025-10-19 00:25:05 [RateCDR] => 1 ) [2025-10-19 00:25: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-10-18 21:25:05' and `end` < '2025-10-19 00:25: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-10-19 00:25:23] Production.INFO: count ==937 [2025-10-19 00:25:23] Production.ERROR: pbx CDR StartTime 2025-10-18 21:25:05 - End Time 2025-10-19 00:25:05 [2025-10-19 00:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 00:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16042843', 'tblTempUsageDetail_20' ) start [2025-10-19 00:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16042843', 'tblTempUsageDetail_20' ) end [2025-10-19 00:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16042843', 'tblTempVendorCDR_20' ) start [2025-10-19 00:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16042843', 'tblTempVendorCDR_20' ) end [2025-10-19 00:25:23] Production.INFO: ProcessCDR(1,16042843,1,1,2) [2025-10-19 00:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16042843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 00:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16042843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 00:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16042843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 00:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16042843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 00:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16042843', 'tblTempUsageDetail_20' ) start [2025-10-19 00:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16042843', 'tblTempUsageDetail_20' ) end [2025-10-19 00:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-19 00:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-19 00:25:34] Production.INFO: ==10171== Releasing lock... [2025-10-19 00:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 00:25:34] Production.INFO: 39.75 MB #Memory Used# [2025-10-19 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 22:25:06 [end_date_ymd] => 2025-10-19 01:25:06 [RateCDR] => 1 ) [2025-10-19 01:25: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-10-18 22:25:06' and `end` < '2025-10-19 01:25: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-10-19 01:25:18] Production.INFO: count ==1037 [2025-10-19 01:25:19] Production.ERROR: pbx CDR StartTime 2025-10-18 22:25:06 - End Time 2025-10-19 01:25:06 [2025-10-19 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16043090', 'tblTempUsageDetail_20' ) start [2025-10-19 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16043090', 'tblTempUsageDetail_20' ) end [2025-10-19 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16043090', 'tblTempVendorCDR_20' ) start [2025-10-19 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16043090', 'tblTempVendorCDR_20' ) end [2025-10-19 01:25:19] Production.INFO: ProcessCDR(1,16043090,1,1,2) [2025-10-19 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16043090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 01:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16043090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 01:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16043090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 01:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16043090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 01:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16043090', 'tblTempUsageDetail_20' ) start [2025-10-19 01:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16043090', 'tblTempUsageDetail_20' ) end [2025-10-19 01:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-19 01:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-19 01:25:28] Production.INFO: ==16971== Releasing lock... [2025-10-19 01:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 01:25:28] Production.INFO: 37 MB #Memory Used# [2025-10-19 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-18 23:25:06 [end_date_ymd] => 2025-10-19 02:25:06 [RateCDR] => 1 ) [2025-10-19 02:25: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-10-18 23:25:06' and `end` < '2025-10-19 02:25: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-10-19 02:25:18] Production.INFO: count ==1133 [2025-10-19 02:25:18] Production.ERROR: pbx CDR StartTime 2025-10-18 23:25:06 - End Time 2025-10-19 02:25:06 [2025-10-19 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16043337', 'tblTempUsageDetail_20' ) start [2025-10-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16043337', 'tblTempUsageDetail_20' ) end [2025-10-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16043337', 'tblTempVendorCDR_20' ) start [2025-10-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16043337', 'tblTempVendorCDR_20' ) end [2025-10-19 02:25:18] Production.INFO: ProcessCDR(1,16043337,1,1,2) [2025-10-19 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16043337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16043337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16043337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 02:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16043337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 02:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16043337', 'tblTempUsageDetail_20' ) start [2025-10-19 02:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16043337', 'tblTempUsageDetail_20' ) end [2025-10-19 02:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-19 02:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-19 02:25:28] Production.INFO: ==23091== Releasing lock... [2025-10-19 02:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 02:25:28] Production.INFO: 37.5 MB #Memory Used# [2025-10-19 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 00:25:05 [end_date_ymd] => 2025-10-19 03:25:05 [RateCDR] => 1 ) [2025-10-19 03:25: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-10-19 00:25:05' and `end` < '2025-10-19 03:25: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-10-19 03:25:17] Production.INFO: count ==928 [2025-10-19 03:25:17] Production.ERROR: pbx CDR StartTime 2025-10-19 00:25:05 - End Time 2025-10-19 03:25:05 [2025-10-19 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16043584', 'tblTempUsageDetail_20' ) start [2025-10-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16043584', 'tblTempUsageDetail_20' ) end [2025-10-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16043584', 'tblTempVendorCDR_20' ) start [2025-10-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16043584', 'tblTempVendorCDR_20' ) end [2025-10-19 03:25:17] Production.INFO: ProcessCDR(1,16043584,1,1,2) [2025-10-19 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16043584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16043584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16043584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16043584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16043584', 'tblTempUsageDetail_20' ) start [2025-10-19 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16043584', 'tblTempUsageDetail_20' ) end [2025-10-19 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-19 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-19 03:25:26] Production.INFO: ==29398== Releasing lock... [2025-10-19 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 03:25:26] Production.INFO: 35 MB #Memory Used# [2025-10-19 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 01:25:05 [end_date_ymd] => 2025-10-19 04:25:05 [RateCDR] => 1 ) [2025-10-19 04:25: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-10-19 01:25:05' and `end` < '2025-10-19 04:25: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-10-19 04:25:17] Production.INFO: count ==562 [2025-10-19 04:25:18] Production.ERROR: pbx CDR StartTime 2025-10-19 01:25:05 - End Time 2025-10-19 04:25:05 [2025-10-19 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16043832', 'tblTempUsageDetail_20' ) start [2025-10-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16043832', 'tblTempUsageDetail_20' ) end [2025-10-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16043832', 'tblTempVendorCDR_20' ) start [2025-10-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16043832', 'tblTempVendorCDR_20' ) end [2025-10-19 04:25:18] Production.INFO: ProcessCDR(1,16043832,1,1,2) [2025-10-19 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16043832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16043832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16043832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 04:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16043832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 04:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16043832', 'tblTempUsageDetail_20' ) start [2025-10-19 04:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16043832', 'tblTempUsageDetail_20' ) end [2025-10-19 04:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-19 04:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-19 04:25:27] Production.INFO: ==3428== Releasing lock... [2025-10-19 04:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 04:25:27] Production.INFO: 33 MB #Memory Used# [2025-10-19 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 02:25:05 [end_date_ymd] => 2025-10-19 05:25:05 [RateCDR] => 1 ) [2025-10-19 05:25: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-10-19 02:25:05' and `end` < '2025-10-19 05:25: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-10-19 05:25:17] Production.INFO: count ==275 [2025-10-19 05:25:17] Production.ERROR: pbx CDR StartTime 2025-10-19 02:25:05 - End Time 2025-10-19 05:25:05 [2025-10-19 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16044080', 'tblTempUsageDetail_20' ) start [2025-10-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16044080', 'tblTempUsageDetail_20' ) end [2025-10-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16044080', 'tblTempVendorCDR_20' ) start [2025-10-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16044080', 'tblTempVendorCDR_20' ) end [2025-10-19 05:25:17] Production.INFO: ProcessCDR(1,16044080,1,1,2) [2025-10-19 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16044080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16044080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16044080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 05:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16044080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16044080', 'tblTempUsageDetail_20' ) start [2025-10-19 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16044080', 'tblTempUsageDetail_20' ) end [2025-10-19 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-19 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-19 05:25:26] Production.INFO: ==9339== Releasing lock... [2025-10-19 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 05:25:26] Production.INFO: 31 MB #Memory Used# [2025-10-19 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 03:25:05 [end_date_ymd] => 2025-10-19 06:25:05 [RateCDR] => 1 ) [2025-10-19 06:25: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-10-19 03:25:05' and `end` < '2025-10-19 06:25: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-10-19 06:25:17] Production.INFO: count ==182 [2025-10-19 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-19 03:25:05 - End Time 2025-10-19 06:25:05 [2025-10-19 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16044327', 'tblTempUsageDetail_20' ) start [2025-10-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16044327', 'tblTempUsageDetail_20' ) end [2025-10-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16044327', 'tblTempVendorCDR_20' ) start [2025-10-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16044327', 'tblTempVendorCDR_20' ) end [2025-10-19 06:25:17] Production.INFO: ProcessCDR(1,16044327,1,1,2) [2025-10-19 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16044327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16044327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16044327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16044327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16044327', 'tblTempUsageDetail_20' ) start [2025-10-19 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16044327', 'tblTempUsageDetail_20' ) end [2025-10-19 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-19 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-19 06:25:26] Production.INFO: ==14360== Releasing lock... [2025-10-19 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 06:25:26] Production.INFO: 29.75 MB #Memory Used# [2025-10-19 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 04:25:06 [end_date_ymd] => 2025-10-19 07:25:06 [RateCDR] => 1 ) [2025-10-19 07:25: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-10-19 04:25:06' and `end` < '2025-10-19 07:25: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-10-19 07:25:18] Production.INFO: count ==132 [2025-10-19 07:25:18] Production.ERROR: pbx CDR StartTime 2025-10-19 04:25:06 - End Time 2025-10-19 07:25:06 [2025-10-19 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16044574', 'tblTempUsageDetail_20' ) start [2025-10-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16044574', 'tblTempUsageDetail_20' ) end [2025-10-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16044574', 'tblTempVendorCDR_20' ) start [2025-10-19 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16044574', 'tblTempVendorCDR_20' ) end [2025-10-19 07:25:18] Production.INFO: ProcessCDR(1,16044574,1,1,2) [2025-10-19 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16044574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16044574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16044574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16044574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16044574', 'tblTempUsageDetail_20' ) start [2025-10-19 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16044574', 'tblTempUsageDetail_20' ) end [2025-10-19 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-19 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-19 07:25:26] Production.INFO: ==18774== Releasing lock... [2025-10-19 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 07:25:26] Production.INFO: 29.25 MB #Memory Used# [2025-10-19 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 05:25:05 [end_date_ymd] => 2025-10-19 08:25:05 [RateCDR] => 1 ) [2025-10-19 08:25: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-10-19 05:25:05' and `end` < '2025-10-19 08:25: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-10-19 08:25:17] Production.INFO: count ==109 [2025-10-19 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-19 05:25:05 - End Time 2025-10-19 08:25:05 [2025-10-19 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16044821', 'tblTempUsageDetail_20' ) start [2025-10-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16044821', 'tblTempUsageDetail_20' ) end [2025-10-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16044821', 'tblTempVendorCDR_20' ) start [2025-10-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16044821', 'tblTempVendorCDR_20' ) end [2025-10-19 08:25:17] Production.INFO: ProcessCDR(1,16044821,1,1,2) [2025-10-19 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16044821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16044821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16044821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16044821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16044821', 'tblTempUsageDetail_20' ) start [2025-10-19 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16044821', 'tblTempUsageDetail_20' ) end [2025-10-19 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-19 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-19 08:25:26] Production.INFO: ==23077== Releasing lock... [2025-10-19 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 08:25:26] Production.INFO: 28.75 MB #Memory Used# [2025-10-19 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 06:25:05 [end_date_ymd] => 2025-10-19 09:25:05 [RateCDR] => 1 ) [2025-10-19 09:25: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-10-19 06:25:05' and `end` < '2025-10-19 09:25: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-10-19 09:25:18] Production.INFO: count ==176 [2025-10-19 09:25:18] Production.ERROR: pbx CDR StartTime 2025-10-19 06:25:05 - End Time 2025-10-19 09:25:05 [2025-10-19 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16045068', 'tblTempUsageDetail_20' ) start [2025-10-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16045068', 'tblTempUsageDetail_20' ) end [2025-10-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16045068', 'tblTempVendorCDR_20' ) start [2025-10-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16045068', 'tblTempVendorCDR_20' ) end [2025-10-19 09:25:18] Production.INFO: ProcessCDR(1,16045068,1,1,2) [2025-10-19 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16045068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16045068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16045068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16045068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16045068', 'tblTempUsageDetail_20' ) start [2025-10-19 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16045068', 'tblTempUsageDetail_20' ) end [2025-10-19 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-19 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-19 09:25:27] Production.INFO: ==27573== Releasing lock... [2025-10-19 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 09:25:27] Production.INFO: 29.75 MB #Memory Used# [2025-10-19 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 07:25:05 [end_date_ymd] => 2025-10-19 10:25:05 [RateCDR] => 1 ) [2025-10-19 10:25: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-10-19 07:25:05' and `end` < '2025-10-19 10:25: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-10-19 10:25:17] Production.INFO: count ==263 [2025-10-19 10:25:17] Production.ERROR: pbx CDR StartTime 2025-10-19 07:25:05 - End Time 2025-10-19 10:25:05 [2025-10-19 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16045315', 'tblTempUsageDetail_20' ) start [2025-10-19 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16045315', 'tblTempUsageDetail_20' ) end [2025-10-19 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16045315', 'tblTempVendorCDR_20' ) start [2025-10-19 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16045315', 'tblTempVendorCDR_20' ) end [2025-10-19 10:25:17] Production.INFO: ProcessCDR(1,16045315,1,1,2) [2025-10-19 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16045315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16045315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16045315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16045315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16045315', 'tblTempUsageDetail_20' ) start [2025-10-19 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16045315', 'tblTempUsageDetail_20' ) end [2025-10-19 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-19 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-19 10:25:26] Production.INFO: ==32255== Releasing lock... [2025-10-19 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 10:25:26] Production.INFO: 30.25 MB #Memory Used# [2025-10-19 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 08:25:05 [end_date_ymd] => 2025-10-19 11:25:05 [RateCDR] => 1 ) [2025-10-19 11:25: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-10-19 08:25:05' and `end` < '2025-10-19 11:25: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-10-19 11:25:17] Production.INFO: count ==845 [2025-10-19 11:25:18] Production.ERROR: pbx CDR StartTime 2025-10-19 08:25:05 - End Time 2025-10-19 11:25:05 [2025-10-19 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16045562', 'tblTempUsageDetail_20' ) start [2025-10-19 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16045562', 'tblTempUsageDetail_20' ) end [2025-10-19 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16045562', 'tblTempVendorCDR_20' ) start [2025-10-19 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16045562', 'tblTempVendorCDR_20' ) end [2025-10-19 11:25:18] Production.INFO: ProcessCDR(1,16045562,1,1,2) [2025-10-19 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16045562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16045562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16045562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16045562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16045562', 'tblTempUsageDetail_20' ) start [2025-10-19 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16045562', 'tblTempUsageDetail_20' ) end [2025-10-19 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-19 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-19 11:25:27] Production.INFO: ==4326== Releasing lock... [2025-10-19 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 11:25:27] Production.INFO: 35.25 MB #Memory Used# [2025-10-19 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 09:25:05 [end_date_ymd] => 2025-10-19 12:25:05 [RateCDR] => 1 ) [2025-10-19 12:25: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-10-19 09:25:05' and `end` < '2025-10-19 12:25: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-10-19 12:25:17] Production.INFO: count ==1245 [2025-10-19 12:25:18] Production.ERROR: pbx CDR StartTime 2025-10-19 09:25:05 - End Time 2025-10-19 12:25:05 [2025-10-19 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16045809', 'tblTempUsageDetail_20' ) start [2025-10-19 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16045809', 'tblTempUsageDetail_20' ) end [2025-10-19 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16045809', 'tblTempVendorCDR_20' ) start [2025-10-19 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16045809', 'tblTempVendorCDR_20' ) end [2025-10-19 12:25:18] Production.INFO: ProcessCDR(1,16045809,1,1,2) [2025-10-19 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16045809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16045809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16045809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16045809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16045809', 'tblTempUsageDetail_20' ) start [2025-10-19 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16045809', 'tblTempUsageDetail_20' ) end [2025-10-19 12:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-19 12:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-19 12:25:29] Production.INFO: ==8935== Releasing lock... [2025-10-19 12:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 12:25:29] Production.INFO: 37.5 MB #Memory Used# [2025-10-19 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 10:25:05 [end_date_ymd] => 2025-10-19 13:25:05 [RateCDR] => 1 ) [2025-10-19 13:25: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-10-19 10:25:05' and `end` < '2025-10-19 13:25: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-10-19 13:25:18] Production.INFO: count ==1597 [2025-10-19 13:25:19] Production.ERROR: pbx CDR StartTime 2025-10-19 10:25:05 - End Time 2025-10-19 13:25:05 [2025-10-19 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16046056', 'tblTempUsageDetail_20' ) start [2025-10-19 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16046056', 'tblTempUsageDetail_20' ) end [2025-10-19 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16046056', 'tblTempVendorCDR_20' ) start [2025-10-19 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16046056', 'tblTempVendorCDR_20' ) end [2025-10-19 13:25:19] Production.INFO: ProcessCDR(1,16046056,1,1,2) [2025-10-19 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16046056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16046056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16046056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16046056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16046056', 'tblTempUsageDetail_20' ) start [2025-10-19 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16046056', 'tblTempUsageDetail_20' ) end [2025-10-19 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-19 13:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-19 13:25:29] Production.INFO: ==13521== Releasing lock... [2025-10-19 13:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 13:25:29] Production.INFO: 40.25 MB #Memory Used# [2025-10-19 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 11:25:05 [end_date_ymd] => 2025-10-19 14:25:05 [RateCDR] => 1 ) [2025-10-19 14:25: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-10-19 11:25:05' and `end` < '2025-10-19 14:25: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-10-19 14:25:17] Production.INFO: count ==1339 [2025-10-19 14:25:18] Production.ERROR: pbx CDR StartTime 2025-10-19 11:25:05 - End Time 2025-10-19 14:25:05 [2025-10-19 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16046303', 'tblTempUsageDetail_20' ) start [2025-10-19 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16046303', 'tblTempUsageDetail_20' ) end [2025-10-19 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16046303', 'tblTempVendorCDR_20' ) start [2025-10-19 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16046303', 'tblTempVendorCDR_20' ) end [2025-10-19 14:25:18] Production.INFO: ProcessCDR(1,16046303,1,1,2) [2025-10-19 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16046303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16046303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16046303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16046303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16046303', 'tblTempUsageDetail_20' ) start [2025-10-19 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16046303', 'tblTempUsageDetail_20' ) end [2025-10-19 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-19 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-19 14:25:28] Production.INFO: ==18172== Releasing lock... [2025-10-19 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 14:25:28] Production.INFO: 38.25 MB #Memory Used# [2025-10-19 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 12:25:05 [end_date_ymd] => 2025-10-19 15:25:05 [RateCDR] => 1 ) [2025-10-19 15:25: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-10-19 12:25:05' and `end` < '2025-10-19 15:25: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-10-19 15:25:18] Production.INFO: count ==1327 [2025-10-19 15:25:18] Production.ERROR: pbx CDR StartTime 2025-10-19 12:25:05 - End Time 2025-10-19 15:25:05 [2025-10-19 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16046550', 'tblTempUsageDetail_20' ) start [2025-10-19 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16046550', 'tblTempUsageDetail_20' ) end [2025-10-19 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16046550', 'tblTempVendorCDR_20' ) start [2025-10-19 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16046550', 'tblTempVendorCDR_20' ) end [2025-10-19 15:25:18] Production.INFO: ProcessCDR(1,16046550,1,1,2) [2025-10-19 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16046550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16046550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16046550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16046550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16046550', 'tblTempUsageDetail_20' ) start [2025-10-19 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16046550', 'tblTempUsageDetail_20' ) end [2025-10-19 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-19 15:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-19 15:25:28] Production.INFO: ==22574== Releasing lock... [2025-10-19 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 15:25:28] Production.INFO: 38 MB #Memory Used# [2025-10-19 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 13:25:05 [end_date_ymd] => 2025-10-19 16:25:05 [RateCDR] => 1 ) [2025-10-19 16:25: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-10-19 13:25:05' and `end` < '2025-10-19 16:25: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-10-19 16:25:18] Production.INFO: count ==1338 [2025-10-19 16:25:18] Production.ERROR: pbx CDR StartTime 2025-10-19 13:25:05 - End Time 2025-10-19 16:25:05 [2025-10-19 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16046797', 'tblTempUsageDetail_20' ) start [2025-10-19 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16046797', 'tblTempUsageDetail_20' ) end [2025-10-19 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16046797', 'tblTempVendorCDR_20' ) start [2025-10-19 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16046797', 'tblTempVendorCDR_20' ) end [2025-10-19 16:25:18] Production.INFO: ProcessCDR(1,16046797,1,1,2) [2025-10-19 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16046797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16046797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16046797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16046797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16046797', 'tblTempUsageDetail_20' ) start [2025-10-19 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16046797', 'tblTempUsageDetail_20' ) end [2025-10-19 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-19 16:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-19 16:25:29] Production.INFO: ==27144== Releasing lock... [2025-10-19 16:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 16:25:29] Production.INFO: 38.25 MB #Memory Used# [2025-10-19 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 14:25:06 [end_date_ymd] => 2025-10-19 17:25:06 [RateCDR] => 1 ) [2025-10-19 17:25: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-10-19 14:25:06' and `end` < '2025-10-19 17:25: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-10-19 17:25:18] Production.INFO: count ==1529 [2025-10-19 17:25:19] Production.ERROR: pbx CDR StartTime 2025-10-19 14:25:06 - End Time 2025-10-19 17:25:06 [2025-10-19 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16047044', 'tblTempUsageDetail_20' ) start [2025-10-19 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16047044', 'tblTempUsageDetail_20' ) end [2025-10-19 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16047044', 'tblTempVendorCDR_20' ) start [2025-10-19 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16047044', 'tblTempVendorCDR_20' ) end [2025-10-19 17:25:19] Production.INFO: ProcessCDR(1,16047044,1,1,2) [2025-10-19 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16047044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16047044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16047044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16047044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16047044', 'tblTempUsageDetail_20' ) start [2025-10-19 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16047044', 'tblTempUsageDetail_20' ) end [2025-10-19 17:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-19 17:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-19 17:25:29] Production.INFO: ==31627== Releasing lock... [2025-10-19 17:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 17:25:29] Production.INFO: 40 MB #Memory Used# [2025-10-19 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 15:25:05 [end_date_ymd] => 2025-10-19 18:25:05 [RateCDR] => 1 ) [2025-10-19 18:25: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-10-19 15:25:05' and `end` < '2025-10-19 18:25: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-10-19 18:25:17] Production.INFO: count ==1719 [2025-10-19 18:25:18] Production.ERROR: pbx CDR StartTime 2025-10-19 15:25:05 - End Time 2025-10-19 18:25:05 [2025-10-19 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16047291', 'tblTempUsageDetail_20' ) start [2025-10-19 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16047291', 'tblTempUsageDetail_20' ) end [2025-10-19 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16047291', 'tblTempVendorCDR_20' ) start [2025-10-19 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16047291', 'tblTempVendorCDR_20' ) end [2025-10-19 18:25:18] Production.INFO: ProcessCDR(1,16047291,1,1,2) [2025-10-19 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16047291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16047291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16047291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 18:25:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16047291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 18:25:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16047291', 'tblTempUsageDetail_20' ) start [2025-10-19 18:25:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16047291', 'tblTempUsageDetail_20' ) end [2025-10-19 18:25:54] Production.ERROR: pbx prc_insertCDR start [2025-10-19 18:25:56] Production.ERROR: pbx prc_insertCDR end [2025-10-19 18:25:57] Production.INFO: ==4322== Releasing lock... [2025-10-19 18:25:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 18:25:57] Production.INFO: 41.5 MB #Memory Used# [2025-10-19 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 16:25:05 [end_date_ymd] => 2025-10-19 19:25:05 [RateCDR] => 1 ) [2025-10-19 19:25: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-10-19 16:25:05' and `end` < '2025-10-19 19:25: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-10-19 19:25:17] Production.INFO: count ==2460 [2025-10-19 19:25:18] Production.ERROR: pbx CDR StartTime 2025-10-19 16:25:05 - End Time 2025-10-19 19:25:05 [2025-10-19 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16047536', 'tblTempUsageDetail_20' ) start [2025-10-19 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16047536', 'tblTempUsageDetail_20' ) end [2025-10-19 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16047536', 'tblTempVendorCDR_20' ) start [2025-10-19 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16047536', 'tblTempVendorCDR_20' ) end [2025-10-19 19:25:18] Production.INFO: ProcessCDR(1,16047536,1,1,2) [2025-10-19 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16047536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16047536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16047536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16047536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16047536', 'tblTempUsageDetail_20' ) start [2025-10-19 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16047536', 'tblTempUsageDetail_20' ) end [2025-10-19 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-19 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-19 19:25:29] Production.INFO: ==9072== Releasing lock... [2025-10-19 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 19:25:29] Production.INFO: 46.5 MB #Memory Used# [2025-10-19 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 17:25:05 [end_date_ymd] => 2025-10-19 20:25:05 [RateCDR] => 1 ) [2025-10-19 20:25: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-10-19 17:25:05' and `end` < '2025-10-19 20:25: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-10-19 20:25:18] Production.INFO: count ==2774 [2025-10-19 20:25:19] Production.ERROR: pbx CDR StartTime 2025-10-19 17:25:05 - End Time 2025-10-19 20:25:05 [2025-10-19 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16047783', 'tblTempUsageDetail_20' ) start [2025-10-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16047783', 'tblTempUsageDetail_20' ) end [2025-10-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16047783', 'tblTempVendorCDR_20' ) start [2025-10-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16047783', 'tblTempVendorCDR_20' ) end [2025-10-19 20:25:19] Production.INFO: ProcessCDR(1,16047783,1,1,2) [2025-10-19 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16047783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 20:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16047783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 20:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16047783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 20:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16047783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16047783', 'tblTempUsageDetail_20' ) start [2025-10-19 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16047783', 'tblTempUsageDetail_20' ) end [2025-10-19 20:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-19 20:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-19 20:25:30] Production.INFO: ==13803== Releasing lock... [2025-10-19 20:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 20:25:30] Production.INFO: 49.25 MB #Memory Used# [2025-10-19 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 18:25:05 [end_date_ymd] => 2025-10-19 21:25:05 [RateCDR] => 1 ) [2025-10-19 21:25: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-10-19 18:25:05' and `end` < '2025-10-19 21:25: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-10-19 21:25:18] Production.INFO: count ==2638 [2025-10-19 21:25:19] Production.ERROR: pbx CDR StartTime 2025-10-19 18:25:05 - End Time 2025-10-19 21:25:05 [2025-10-19 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16048030', 'tblTempUsageDetail_20' ) start [2025-10-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16048030', 'tblTempUsageDetail_20' ) end [2025-10-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16048030', 'tblTempVendorCDR_20' ) start [2025-10-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16048030', 'tblTempVendorCDR_20' ) end [2025-10-19 21:25:19] Production.INFO: ProcessCDR(1,16048030,1,1,2) [2025-10-19 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16048030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16048030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16048030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 21:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16048030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16048030', 'tblTempUsageDetail_20' ) start [2025-10-19 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16048030', 'tblTempUsageDetail_20' ) end [2025-10-19 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-19 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-19 21:25:28] Production.INFO: ==18716== Releasing lock... [2025-10-19 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 21:25:28] Production.INFO: 48 MB #Memory Used# [2025-10-19 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 19:25:05 [end_date_ymd] => 2025-10-19 22:25:05 [RateCDR] => 1 ) [2025-10-19 22:25: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-10-19 19:25:05' and `end` < '2025-10-19 22:25: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-10-19 22:25:18] Production.INFO: count ==1805 [2025-10-19 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-19 19:25:05 - End Time 2025-10-19 22:25:05 [2025-10-19 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16048277', 'tblTempUsageDetail_20' ) start [2025-10-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16048277', 'tblTempUsageDetail_20' ) end [2025-10-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16048277', 'tblTempVendorCDR_20' ) start [2025-10-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16048277', 'tblTempVendorCDR_20' ) end [2025-10-19 22:25:18] Production.INFO: ProcessCDR(1,16048277,1,1,2) [2025-10-19 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16048277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 22:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16048277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 22:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16048277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16048277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16048277', 'tblTempUsageDetail_20' ) start [2025-10-19 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16048277', 'tblTempUsageDetail_20' ) end [2025-10-19 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-19 22:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-19 22:25:28] Production.INFO: ==23133== Releasing lock... [2025-10-19 22:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 22:25:28] Production.INFO: 41.75 MB #Memory Used# [2025-10-19 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-19 20:25:05 [end_date_ymd] => 2025-10-19 23:25:05 [RateCDR] => 1 ) [2025-10-19 23:25: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-10-19 20:25:05' and `end` < '2025-10-19 23:25: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-10-19 23:25:17] Production.INFO: count ==1168 [2025-10-19 23:25:17] Production.ERROR: pbx CDR StartTime 2025-10-19 20:25:05 - End Time 2025-10-19 23:25:05 [2025-10-19 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16048524', 'tblTempUsageDetail_20' ) start [2025-10-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16048524', 'tblTempUsageDetail_20' ) end [2025-10-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16048524', 'tblTempVendorCDR_20' ) start [2025-10-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16048524', 'tblTempVendorCDR_20' ) end [2025-10-19 23:25:17] Production.INFO: ProcessCDR(1,16048524,1,1,2) [2025-10-19 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16048524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16048524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-19 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16048524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16048524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-19 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16048524', 'tblTempUsageDetail_20' ) start [2025-10-19 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16048524', 'tblTempUsageDetail_20' ) end [2025-10-19 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-19 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-19 23:25:27] Production.INFO: ==27957== Releasing lock... [2025-10-19 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-19 23:25:27] Production.INFO: 37.25 MB #Memory Used#