[2026-03-21 00:02:05] Production.INFO: next invoice date [2026-03-21 00:02:05] Production.INFO: 2026-04-21 [2026-03-21 00:02:05] Production.INFO: getdaysdiff [2026-03-21 00:02:05] Production.INFO: +31 [2026-03-21 00:02:05] Production.INFO: call prc_setAccountDiscountPlan (18,19,1,31,31,'RMScheduler',2026-03-21 00:02:04,1,0,,,0) [2026-03-21 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-20 21:02:06 [end_date_ymd] => 2026-03-21 00:02:06 [RateCDR] => 1 ) [2026-03-21 00:02: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` >= '2026-03-20 21:02:06' and `end` < '2026-03-21 00:02: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 ,'') [2026-03-21 00:02:37] Production.INFO: count ==877 [2026-03-21 00:02:37] Production.ERROR: pbx CDR StartTime 2026-03-20 21:02:06 - End Time 2026-03-21 00:02:06 [2026-03-21 00:02:37] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16949728', 'tblTempUsageDetail_20' ) start [2026-03-21 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16949728', 'tblTempUsageDetail_20' ) end [2026-03-21 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16949728', 'tblTempVendorCDR_20' ) start [2026-03-21 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16949728', 'tblTempVendorCDR_20' ) end [2026-03-21 00:02:37] Production.INFO: ProcessCDR(1,16949728,1,1,2) [2026-03-21 00:02:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16949728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 00:02:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16949728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 00:02:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16949728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 00:02:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16949728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 00:02:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16949728', 'tblTempUsageDetail_20' ) start [2026-03-21 00:02:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16949728', 'tblTempUsageDetail_20' ) end [2026-03-21 00:02:58] Production.ERROR: pbx prc_insertCDR start [2026-03-21 00:02:59] Production.ERROR: pbx prc_insertCDR end [2026-03-21 00:03:02] Production.INFO: ==9556== Releasing lock... [2026-03-21 00:03:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 00:03:02] Production.INFO: 39.5 MB #Memory Used# [2026-03-21 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-20 22:02:05 [end_date_ymd] => 2026-03-21 01:02:05 [RateCDR] => 1 ) [2026-03-21 01:02: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` >= '2026-03-20 22:02:05' and `end` < '2026-03-21 01:02: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 ,'') [2026-03-21 01:02:16] Production.INFO: count ==929 [2026-03-21 01:02:16] Production.ERROR: pbx CDR StartTime 2026-03-20 22:02:05 - End Time 2026-03-21 01:02:05 [2026-03-21 01:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16949975', 'tblTempUsageDetail_20' ) start [2026-03-21 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16949975', 'tblTempUsageDetail_20' ) end [2026-03-21 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16949975', 'tblTempVendorCDR_20' ) start [2026-03-21 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16949975', 'tblTempVendorCDR_20' ) end [2026-03-21 01:02:16] Production.INFO: ProcessCDR(1,16949975,1,1,2) [2026-03-21 01:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16949975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 01:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16949975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 01:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16949975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 01:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16949975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 01:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16949975', 'tblTempUsageDetail_20' ) start [2026-03-21 01:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16949975', 'tblTempUsageDetail_20' ) end [2026-03-21 01:02:36] Production.ERROR: pbx prc_insertCDR start [2026-03-21 01:02:37] Production.ERROR: pbx prc_insertCDR end [2026-03-21 01:02:37] Production.INFO: ==14120== Releasing lock... [2026-03-21 01:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 01:02:37] Production.INFO: 35.5 MB #Memory Used# [2026-03-21 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-20 23:02:05 [end_date_ymd] => 2026-03-21 02:02:05 [RateCDR] => 1 ) [2026-03-21 02:02: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` >= '2026-03-20 23:02:05' and `end` < '2026-03-21 02:02: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 ,'') [2026-03-21 02:02:16] Production.INFO: count ==921 [2026-03-21 02:02:17] Production.ERROR: pbx CDR StartTime 2026-03-20 23:02:05 - End Time 2026-03-21 02:02:05 [2026-03-21 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16950222', 'tblTempUsageDetail_20' ) start [2026-03-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16950222', 'tblTempUsageDetail_20' ) end [2026-03-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16950222', 'tblTempVendorCDR_20' ) start [2026-03-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16950222', 'tblTempVendorCDR_20' ) end [2026-03-21 02:02:17] Production.INFO: ProcessCDR(1,16950222,1,1,2) [2026-03-21 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16950222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 02:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16950222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 02:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16950222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 02:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16950222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 02:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16950222', 'tblTempUsageDetail_20' ) start [2026-03-21 02:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16950222', 'tblTempUsageDetail_20' ) end [2026-03-21 02:02:37] Production.ERROR: pbx prc_insertCDR start [2026-03-21 02:02:37] Production.ERROR: pbx prc_insertCDR end [2026-03-21 02:02:37] Production.INFO: ==18867== Releasing lock... [2026-03-21 02:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 02:02:37] Production.INFO: 35.25 MB #Memory Used# [2026-03-21 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 00:02:05 [end_date_ymd] => 2026-03-21 03:02:05 [RateCDR] => 1 ) [2026-03-21 03:02: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` >= '2026-03-21 00:02:05' and `end` < '2026-03-21 03:02: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 ,'') [2026-03-21 03:02:16] Production.INFO: count ==935 [2026-03-21 03:02:16] Production.ERROR: pbx CDR StartTime 2026-03-21 00:02:05 - End Time 2026-03-21 03:02:05 [2026-03-21 03:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 03:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16950469', 'tblTempUsageDetail_20' ) start [2026-03-21 03:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16950469', 'tblTempUsageDetail_20' ) end [2026-03-21 03:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16950469', 'tblTempVendorCDR_20' ) start [2026-03-21 03:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16950469', 'tblTempVendorCDR_20' ) end [2026-03-21 03:02:16] Production.INFO: ProcessCDR(1,16950469,1,1,2) [2026-03-21 03:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16950469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 03:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16950469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 03:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16950469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 03:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16950469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 03:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16950469', 'tblTempUsageDetail_20' ) start [2026-03-21 03:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16950469', 'tblTempUsageDetail_20' ) end [2026-03-21 03:02:36] Production.ERROR: pbx prc_insertCDR start [2026-03-21 03:02:37] Production.ERROR: pbx prc_insertCDR end [2026-03-21 03:02:37] Production.INFO: ==24365== Releasing lock... [2026-03-21 03:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 03:02:37] Production.INFO: 35.25 MB #Memory Used# [2026-03-21 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 01:02:05 [end_date_ymd] => 2026-03-21 04:02:05 [RateCDR] => 1 ) [2026-03-21 04:02: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` >= '2026-03-21 01:02:05' and `end` < '2026-03-21 04:02: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 ,'') [2026-03-21 04:02:16] Production.INFO: count ==740 [2026-03-21 04:02:16] Production.ERROR: pbx CDR StartTime 2026-03-21 01:02:05 - End Time 2026-03-21 04:02:05 [2026-03-21 04:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 04:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16950717', 'tblTempUsageDetail_20' ) start [2026-03-21 04:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16950717', 'tblTempUsageDetail_20' ) end [2026-03-21 04:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16950717', 'tblTempVendorCDR_20' ) start [2026-03-21 04:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16950717', 'tblTempVendorCDR_20' ) end [2026-03-21 04:02:16] Production.INFO: ProcessCDR(1,16950717,1,1,2) [2026-03-21 04:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16950717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 04:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16950717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 04:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16950717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 04:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16950717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 04:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16950717', 'tblTempUsageDetail_20' ) start [2026-03-21 04:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16950717', 'tblTempUsageDetail_20' ) end [2026-03-21 04:02:36] Production.ERROR: pbx prc_insertCDR start [2026-03-21 04:02:36] Production.ERROR: pbx prc_insertCDR end [2026-03-21 04:02:36] Production.INFO: ==29328== Releasing lock... [2026-03-21 04:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 04:02:36] Production.INFO: 34 MB #Memory Used# [2026-03-21 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 02:02:05 [end_date_ymd] => 2026-03-21 05:02:05 [RateCDR] => 1 ) [2026-03-21 05:02: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` >= '2026-03-21 02:02:05' and `end` < '2026-03-21 05:02: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 ,'') [2026-03-21 05:02:17] Production.INFO: count ==487 [2026-03-21 05:02:17] Production.ERROR: pbx CDR StartTime 2026-03-21 02:02:05 - End Time 2026-03-21 05:02:05 [2026-03-21 05:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16950965', 'tblTempUsageDetail_20' ) start [2026-03-21 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16950965', 'tblTempUsageDetail_20' ) end [2026-03-21 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16950965', 'tblTempVendorCDR_20' ) start [2026-03-21 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16950965', 'tblTempVendorCDR_20' ) end [2026-03-21 05:02:17] Production.INFO: ProcessCDR(1,16950965,1,1,2) [2026-03-21 05:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16950965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 05:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16950965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 05:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16950965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 05:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16950965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 05:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16950965', 'tblTempUsageDetail_20' ) start [2026-03-21 05:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16950965', 'tblTempUsageDetail_20' ) end [2026-03-21 05:02:38] Production.ERROR: pbx prc_insertCDR start [2026-03-21 05:02:38] Production.ERROR: pbx prc_insertCDR end [2026-03-21 05:02:38] Production.INFO: ==1791== Releasing lock... [2026-03-21 05:02:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 05:02:38] Production.INFO: 32.25 MB #Memory Used# [2026-03-21 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 03:02:06 [end_date_ymd] => 2026-03-21 06:02:06 [RateCDR] => 1 ) [2026-03-21 06:02: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` >= '2026-03-21 03:02:06' and `end` < '2026-03-21 06:02: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 ,'') [2026-03-21 06:02:17] Production.INFO: count ==332 [2026-03-21 06:02:17] Production.ERROR: pbx CDR StartTime 2026-03-21 03:02:06 - End Time 2026-03-21 06:02:06 [2026-03-21 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16951212', 'tblTempUsageDetail_20' ) start [2026-03-21 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16951212', 'tblTempUsageDetail_20' ) end [2026-03-21 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16951212', 'tblTempVendorCDR_20' ) start [2026-03-21 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16951212', 'tblTempVendorCDR_20' ) end [2026-03-21 06:02:17] Production.INFO: ProcessCDR(1,16951212,1,1,2) [2026-03-21 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16951212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 06:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16951212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 06:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16951212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 06:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16951212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 06:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16951212', 'tblTempUsageDetail_20' ) start [2026-03-21 06:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16951212', 'tblTempUsageDetail_20' ) end [2026-03-21 06:02:37] Production.ERROR: pbx prc_insertCDR start [2026-03-21 06:02:37] Production.ERROR: pbx prc_insertCDR end [2026-03-21 06:02:37] Production.INFO: ==7208== Releasing lock... [2026-03-21 06:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 06:02:37] Production.INFO: 30.75 MB #Memory Used# [2026-03-21 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 04:02:06 [end_date_ymd] => 2026-03-21 07:02:06 [RateCDR] => 1 ) [2026-03-21 07:02: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` >= '2026-03-21 04:02:06' and `end` < '2026-03-21 07:02: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 ,'') [2026-03-21 07:02:17] Production.INFO: count ==179 [2026-03-21 07:02:17] Production.ERROR: pbx CDR StartTime 2026-03-21 04:02:06 - End Time 2026-03-21 07:02:06 [2026-03-21 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16951459', 'tblTempUsageDetail_20' ) start [2026-03-21 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16951459', 'tblTempUsageDetail_20' ) end [2026-03-21 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16951459', 'tblTempVendorCDR_20' ) start [2026-03-21 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16951459', 'tblTempVendorCDR_20' ) end [2026-03-21 07:02:17] Production.INFO: ProcessCDR(1,16951459,1,1,2) [2026-03-21 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16951459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 07:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16951459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 07:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16951459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 07:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16951459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 07:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16951459', 'tblTempUsageDetail_20' ) start [2026-03-21 07:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16951459', 'tblTempUsageDetail_20' ) end [2026-03-21 07:02:37] Production.ERROR: pbx prc_insertCDR start [2026-03-21 07:02:37] Production.ERROR: pbx prc_insertCDR end [2026-03-21 07:02:37] Production.INFO: ==11844== Releasing lock... [2026-03-21 07:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 07:02:37] Production.INFO: 30 MB #Memory Used# [2026-03-21 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 05:02:06 [end_date_ymd] => 2026-03-21 08:02:06 [RateCDR] => 1 ) [2026-03-21 08:02: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` >= '2026-03-21 05:02:06' and `end` < '2026-03-21 08:02: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 ,'') [2026-03-21 08:02:17] Production.INFO: count ==161 [2026-03-21 08:02:17] Production.ERROR: pbx CDR StartTime 2026-03-21 05:02:06 - End Time 2026-03-21 08:02:06 [2026-03-21 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16951706', 'tblTempUsageDetail_20' ) start [2026-03-21 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16951706', 'tblTempUsageDetail_20' ) end [2026-03-21 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16951706', 'tblTempVendorCDR_20' ) start [2026-03-21 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16951706', 'tblTempVendorCDR_20' ) end [2026-03-21 08:02:17] Production.INFO: ProcessCDR(1,16951706,1,1,2) [2026-03-21 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16951706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 08:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16951706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 08:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16951706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 08:02:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16951706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 08:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16951706', 'tblTempUsageDetail_20' ) start [2026-03-21 08:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16951706', 'tblTempUsageDetail_20' ) end [2026-03-21 08:02:38] Production.ERROR: pbx prc_insertCDR start [2026-03-21 08:02:38] Production.ERROR: pbx prc_insertCDR end [2026-03-21 08:02:38] Production.INFO: ==16610== Releasing lock... [2026-03-21 08:02:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 08:02:38] Production.INFO: 29.5 MB #Memory Used# [2026-03-21 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 06:02:05 [end_date_ymd] => 2026-03-21 09:02:05 [RateCDR] => 1 ) [2026-03-21 09:02: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` >= '2026-03-21 06:02:05' and `end` < '2026-03-21 09:02: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 ,'') [2026-03-21 09:02:17] Production.INFO: count ==236 [2026-03-21 09:02:17] Production.ERROR: pbx CDR StartTime 2026-03-21 06:02:05 - End Time 2026-03-21 09:02:05 [2026-03-21 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16951953', 'tblTempUsageDetail_20' ) start [2026-03-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16951953', 'tblTempUsageDetail_20' ) end [2026-03-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16951953', 'tblTempVendorCDR_20' ) start [2026-03-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16951953', 'tblTempVendorCDR_20' ) end [2026-03-21 09:02:17] Production.INFO: ProcessCDR(1,16951953,1,1,2) [2026-03-21 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16951953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 09:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16951953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 09:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16951953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 09:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16951953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 09:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16951953', 'tblTempUsageDetail_20' ) start [2026-03-21 09:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16951953', 'tblTempUsageDetail_20' ) end [2026-03-21 09:02:36] Production.ERROR: pbx prc_insertCDR start [2026-03-21 09:02:36] Production.ERROR: pbx prc_insertCDR end [2026-03-21 09:02:36] Production.INFO: ==21310== Releasing lock... [2026-03-21 09:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 09:02:36] Production.INFO: 30 MB #Memory Used# [2026-03-21 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 07:02:05 [end_date_ymd] => 2026-03-21 10:02:05 [RateCDR] => 1 ) [2026-03-21 10:02: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` >= '2026-03-21 07:02:05' and `end` < '2026-03-21 10:02: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 ,'') [2026-03-21 10:02:16] Production.INFO: count ==742 [2026-03-21 10:02:17] Production.ERROR: pbx CDR StartTime 2026-03-21 07:02:05 - End Time 2026-03-21 10:02:05 [2026-03-21 10:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16952200', 'tblTempUsageDetail_20' ) start [2026-03-21 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16952200', 'tblTempUsageDetail_20' ) end [2026-03-21 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16952200', 'tblTempVendorCDR_20' ) start [2026-03-21 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16952200', 'tblTempVendorCDR_20' ) end [2026-03-21 10:02:17] Production.INFO: ProcessCDR(1,16952200,1,1,2) [2026-03-21 10:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16952200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 10:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16952200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 10:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16952200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 10:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16952200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 10:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16952200', 'tblTempUsageDetail_20' ) start [2026-03-21 10:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16952200', 'tblTempUsageDetail_20' ) end [2026-03-21 10:02:36] Production.ERROR: pbx prc_insertCDR start [2026-03-21 10:02:36] Production.ERROR: pbx prc_insertCDR end [2026-03-21 10:02:36] Production.INFO: ==25938== Releasing lock... [2026-03-21 10:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 10:02:36] Production.INFO: 33.75 MB #Memory Used# [2026-03-21 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 08:02:06 [end_date_ymd] => 2026-03-21 11:02:06 [RateCDR] => 1 ) [2026-03-21 11:02: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` >= '2026-03-21 08:02:06' and `end` < '2026-03-21 11:02: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 ,'') [2026-03-21 11:02:17] Production.INFO: count ==1379 [2026-03-21 11:02:18] Production.ERROR: pbx CDR StartTime 2026-03-21 08:02:06 - End Time 2026-03-21 11:02:06 [2026-03-21 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16952447', 'tblTempUsageDetail_20' ) start [2026-03-21 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16952447', 'tblTempUsageDetail_20' ) end [2026-03-21 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16952447', 'tblTempVendorCDR_20' ) start [2026-03-21 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16952447', 'tblTempVendorCDR_20' ) end [2026-03-21 11:02:18] Production.INFO: ProcessCDR(1,16952447,1,1,2) [2026-03-21 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16952447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 11:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16952447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 11:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16952447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 11:02:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16952447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 11:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16952447', 'tblTempUsageDetail_20' ) start [2026-03-21 11:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16952447', 'tblTempUsageDetail_20' ) end [2026-03-21 11:02:38] Production.ERROR: pbx prc_insertCDR start [2026-03-21 11:02:39] Production.ERROR: pbx prc_insertCDR end [2026-03-21 11:02:39] Production.INFO: ==30491== Releasing lock... [2026-03-21 11:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 11:02:39] Production.INFO: 38.5 MB #Memory Used# [2026-03-21 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 09:02:06 [end_date_ymd] => 2026-03-21 12:02:06 [RateCDR] => 1 ) [2026-03-21 12:02: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` >= '2026-03-21 09:02:06' and `end` < '2026-03-21 12:02: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 ,'') [2026-03-21 12:02:17] Production.INFO: count ==1878 [2026-03-21 12:02:19] Production.ERROR: pbx CDR StartTime 2026-03-21 09:02:06 - End Time 2026-03-21 12:02:06 [2026-03-21 12:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16952694', 'tblTempUsageDetail_20' ) start [2026-03-21 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16952694', 'tblTempUsageDetail_20' ) end [2026-03-21 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16952694', 'tblTempVendorCDR_20' ) start [2026-03-21 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16952694', 'tblTempVendorCDR_20' ) end [2026-03-21 12:02:20] Production.INFO: ProcessCDR(1,16952694,1,1,2) [2026-03-21 12:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16952694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 12:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16952694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 12:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16952694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 12:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16952694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 12:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16952694', 'tblTempUsageDetail_20' ) start [2026-03-21 12:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16952694', 'tblTempUsageDetail_20' ) end [2026-03-21 12:02:40] Production.ERROR: pbx prc_insertCDR start [2026-03-21 12:02:41] Production.ERROR: pbx prc_insertCDR end [2026-03-21 12:02:41] Production.INFO: ==2572== Releasing lock... [2026-03-21 12:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 12:02:41] Production.INFO: 42.25 MB #Memory Used# [2026-03-21 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 10:02:06 [end_date_ymd] => 2026-03-21 13:02:06 [RateCDR] => 1 ) [2026-03-21 13:02: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` >= '2026-03-21 10:02:06' and `end` < '2026-03-21 13:02: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 ,'') [2026-03-21 13:02:17] Production.INFO: count ==1994 [2026-03-21 13:02:18] Production.ERROR: pbx CDR StartTime 2026-03-21 10:02:06 - End Time 2026-03-21 13:02:06 [2026-03-21 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16952941', 'tblTempUsageDetail_20' ) start [2026-03-21 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16952941', 'tblTempUsageDetail_20' ) end [2026-03-21 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16952941', 'tblTempVendorCDR_20' ) start [2026-03-21 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16952941', 'tblTempVendorCDR_20' ) end [2026-03-21 13:02:18] Production.INFO: ProcessCDR(1,16952941,1,1,2) [2026-03-21 13:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16952941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 13:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16952941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 13:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16952941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 13:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16952941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 13:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16952941', 'tblTempUsageDetail_20' ) start [2026-03-21 13:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16952941', 'tblTempUsageDetail_20' ) end [2026-03-21 13:02:40] Production.ERROR: pbx prc_insertCDR start [2026-03-21 13:02:41] Production.ERROR: pbx prc_insertCDR end [2026-03-21 13:02:41] Production.INFO: ==7052== Releasing lock... [2026-03-21 13:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 13:02:41] Production.INFO: 43 MB #Memory Used# [2026-03-21 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 11:02:05 [end_date_ymd] => 2026-03-21 14:02:05 [RateCDR] => 1 ) [2026-03-21 14:02: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` >= '2026-03-21 11:02:05' and `end` < '2026-03-21 14:02: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 ,'') [2026-03-21 14:02:17] Production.INFO: count ==1867 [2026-03-21 14:02:18] Production.ERROR: pbx CDR StartTime 2026-03-21 11:02:05 - End Time 2026-03-21 14:02:05 [2026-03-21 14:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16953188', 'tblTempUsageDetail_20' ) start [2026-03-21 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16953188', 'tblTempUsageDetail_20' ) end [2026-03-21 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16953188', 'tblTempVendorCDR_20' ) start [2026-03-21 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16953188', 'tblTempVendorCDR_20' ) end [2026-03-21 14:02:18] Production.INFO: ProcessCDR(1,16953188,1,1,2) [2026-03-21 14:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16953188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 14:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16953188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 14:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16953188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 14:02:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16953188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 14:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16953188', 'tblTempUsageDetail_20' ) start [2026-03-21 14:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16953188', 'tblTempUsageDetail_20' ) end [2026-03-21 14:02:38] Production.ERROR: pbx prc_insertCDR start [2026-03-21 14:02:39] Production.ERROR: pbx prc_insertCDR end [2026-03-21 14:02:39] Production.INFO: ==11605== Releasing lock... [2026-03-21 14:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 14:02:39] Production.INFO: 42.25 MB #Memory Used# [2026-03-21 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 12:02:05 [end_date_ymd] => 2026-03-21 15:02:05 [RateCDR] => 1 ) [2026-03-21 15:02: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` >= '2026-03-21 12:02:05' and `end` < '2026-03-21 15:02: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 ,'') [2026-03-21 15:02:17] Production.INFO: count ==1835 [2026-03-21 15:02:17] Production.ERROR: pbx CDR StartTime 2026-03-21 12:02:05 - End Time 2026-03-21 15:02:05 [2026-03-21 15:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16953435', 'tblTempUsageDetail_20' ) start [2026-03-21 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16953435', 'tblTempUsageDetail_20' ) end [2026-03-21 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16953435', 'tblTempVendorCDR_20' ) start [2026-03-21 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16953435', 'tblTempVendorCDR_20' ) end [2026-03-21 15:02:17] Production.INFO: ProcessCDR(1,16953435,1,1,2) [2026-03-21 15:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16953435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 15:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16953435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 15:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16953435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 15:02:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16953435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 15:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16953435', 'tblTempUsageDetail_20' ) start [2026-03-21 15:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16953435', 'tblTempUsageDetail_20' ) end [2026-03-21 15:02:38] Production.ERROR: pbx prc_insertCDR start [2026-03-21 15:02:39] Production.ERROR: pbx prc_insertCDR end [2026-03-21 15:02:39] Production.INFO: ==16081== Releasing lock... [2026-03-21 15:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 15:02:39] Production.INFO: 42 MB #Memory Used# [2026-03-21 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 13:02:05 [end_date_ymd] => 2026-03-21 16:02:05 [RateCDR] => 1 ) [2026-03-21 16:02: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` >= '2026-03-21 13:02:05' and `end` < '2026-03-21 16:02: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 ,'') [2026-03-21 16:02:17] Production.INFO: count ==1633 [2026-03-21 16:02:18] Production.ERROR: pbx CDR StartTime 2026-03-21 13:02:05 - End Time 2026-03-21 16:02:05 [2026-03-21 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16953682', 'tblTempUsageDetail_20' ) start [2026-03-21 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16953682', 'tblTempUsageDetail_20' ) end [2026-03-21 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16953682', 'tblTempVendorCDR_20' ) start [2026-03-21 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16953682', 'tblTempVendorCDR_20' ) end [2026-03-21 16:02:18] Production.INFO: ProcessCDR(1,16953682,1,1,2) [2026-03-21 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16953682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 16:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16953682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 16:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16953682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 16:02:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16953682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 16:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16953682', 'tblTempUsageDetail_20' ) start [2026-03-21 16:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16953682', 'tblTempUsageDetail_20' ) end [2026-03-21 16:02:38] Production.ERROR: pbx prc_insertCDR start [2026-03-21 16:02:39] Production.ERROR: pbx prc_insertCDR end [2026-03-21 16:02:39] Production.INFO: ==20716== Releasing lock... [2026-03-21 16:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 16:02:39] Production.INFO: 40.75 MB #Memory Used# [2026-03-21 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 14:02:05 [end_date_ymd] => 2026-03-21 17:02:05 [RateCDR] => 1 ) [2026-03-21 17:02: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` >= '2026-03-21 14:02:05' and `end` < '2026-03-21 17:02: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 ,'') [2026-03-21 17:02:17] Production.INFO: count ==1744 [2026-03-21 17:02:18] Production.ERROR: pbx CDR StartTime 2026-03-21 14:02:05 - End Time 2026-03-21 17:02:05 [2026-03-21 17:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16953929', 'tblTempUsageDetail_20' ) start [2026-03-21 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16953929', 'tblTempUsageDetail_20' ) end [2026-03-21 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16953929', 'tblTempVendorCDR_20' ) start [2026-03-21 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16953929', 'tblTempVendorCDR_20' ) end [2026-03-21 17:02:18] Production.INFO: ProcessCDR(1,16953929,1,1,2) [2026-03-21 17:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16953929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 17:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16953929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 17:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16953929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 17:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16953929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 17:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16953929', 'tblTempUsageDetail_20' ) start [2026-03-21 17:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16953929', 'tblTempUsageDetail_20' ) end [2026-03-21 17:02:40] Production.ERROR: pbx prc_insertCDR start [2026-03-21 17:02:41] Production.ERROR: pbx prc_insertCDR end [2026-03-21 17:02:41] Production.INFO: ==25325== Releasing lock... [2026-03-21 17:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 17:02:41] Production.INFO: 41.25 MB #Memory Used# [2026-03-21 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 15:02:05 [end_date_ymd] => 2026-03-21 18:02:05 [RateCDR] => 1 ) [2026-03-21 18:02: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` >= '2026-03-21 15:02:05' and `end` < '2026-03-21 18:02: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 ,'') [2026-03-21 18:02:17] Production.INFO: count ==1761 [2026-03-21 18:02:18] Production.ERROR: pbx CDR StartTime 2026-03-21 15:02:05 - End Time 2026-03-21 18:02:05 [2026-03-21 18:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16954176', 'tblTempUsageDetail_20' ) start [2026-03-21 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16954176', 'tblTempUsageDetail_20' ) end [2026-03-21 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16954176', 'tblTempVendorCDR_20' ) start [2026-03-21 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16954176', 'tblTempVendorCDR_20' ) end [2026-03-21 18:02:18] Production.INFO: ProcessCDR(1,16954176,1,1,2) [2026-03-21 18:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16954176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 18:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16954176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 18:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16954176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 18:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16954176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 18:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16954176', 'tblTempUsageDetail_20' ) start [2026-03-21 18:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16954176', 'tblTempUsageDetail_20' ) end [2026-03-21 18:02:40] Production.ERROR: pbx prc_insertCDR start [2026-03-21 18:02:41] Production.ERROR: pbx prc_insertCDR end [2026-03-21 18:02:41] Production.INFO: ==30399== Releasing lock... [2026-03-21 18:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 18:02:41] Production.INFO: 41.25 MB #Memory Used# [2026-03-21 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 16:02:05 [end_date_ymd] => 2026-03-21 19:02:05 [RateCDR] => 1 ) [2026-03-21 19:02: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` >= '2026-03-21 16:02:05' and `end` < '2026-03-21 19:02: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 ,'') [2026-03-21 19:02:16] Production.INFO: count ==1992 [2026-03-21 19:02:17] Production.ERROR: pbx CDR StartTime 2026-03-21 16:02:05 - End Time 2026-03-21 19:02:05 [2026-03-21 19:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16954421', 'tblTempUsageDetail_20' ) start [2026-03-21 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16954421', 'tblTempUsageDetail_20' ) end [2026-03-21 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16954421', 'tblTempVendorCDR_20' ) start [2026-03-21 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16954421', 'tblTempVendorCDR_20' ) end [2026-03-21 19:02:17] Production.INFO: ProcessCDR(1,16954421,1,1,2) [2026-03-21 19:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16954421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 19:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16954421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 19:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16954421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 19:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16954421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 19:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16954421', 'tblTempUsageDetail_20' ) start [2026-03-21 19:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16954421', 'tblTempUsageDetail_20' ) end [2026-03-21 19:02:39] Production.ERROR: pbx prc_insertCDR start [2026-03-21 19:02:40] Production.ERROR: pbx prc_insertCDR end [2026-03-21 19:02:40] Production.INFO: ==2901== Releasing lock... [2026-03-21 19:02:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 19:02:40] Production.INFO: 43 MB #Memory Used# [2026-03-21 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 17:02:06 [end_date_ymd] => 2026-03-21 20:02:06 [RateCDR] => 1 ) [2026-03-21 20:02: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` >= '2026-03-21 17:02:06' and `end` < '2026-03-21 20:02: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 ,'') [2026-03-21 20:02:17] Production.INFO: count ==1906 [2026-03-21 20:02:18] Production.ERROR: pbx CDR StartTime 2026-03-21 17:02:06 - End Time 2026-03-21 20:02:06 [2026-03-21 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16954668', 'tblTempUsageDetail_20' ) start [2026-03-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16954668', 'tblTempUsageDetail_20' ) end [2026-03-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16954668', 'tblTempVendorCDR_20' ) start [2026-03-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16954668', 'tblTempVendorCDR_20' ) end [2026-03-21 20:02:18] Production.INFO: ProcessCDR(1,16954668,1,1,2) [2026-03-21 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16954668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 20:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16954668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 20:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16954668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 20:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16954668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 20:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16954668', 'tblTempUsageDetail_20' ) start [2026-03-21 20:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16954668', 'tblTempUsageDetail_20' ) end [2026-03-21 20:02:39] Production.ERROR: pbx prc_insertCDR start [2026-03-21 20:02:39] Production.ERROR: pbx prc_insertCDR end [2026-03-21 20:02:39] Production.INFO: ==7399== Releasing lock... [2026-03-21 20:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 20:02:39] Production.INFO: 42.5 MB #Memory Used# [2026-03-21 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 18:02:06 [end_date_ymd] => 2026-03-21 21:02:06 [RateCDR] => 1 ) [2026-03-21 21:02: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` >= '2026-03-21 18:02:06' and `end` < '2026-03-21 21:02: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 ,'') [2026-03-21 21:02:17] Production.INFO: count ==1728 [2026-03-21 21:02:18] Production.ERROR: pbx CDR StartTime 2026-03-21 18:02:06 - End Time 2026-03-21 21:02:06 [2026-03-21 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16954915', 'tblTempUsageDetail_20' ) start [2026-03-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16954915', 'tblTempUsageDetail_20' ) end [2026-03-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16954915', 'tblTempVendorCDR_20' ) start [2026-03-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16954915', 'tblTempVendorCDR_20' ) end [2026-03-21 21:02:18] Production.INFO: ProcessCDR(1,16954915,1,1,2) [2026-03-21 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16954915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 21:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16954915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 21:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16954915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 21:02:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16954915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 21:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16954915', 'tblTempUsageDetail_20' ) start [2026-03-21 21:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16954915', 'tblTempUsageDetail_20' ) end [2026-03-21 21:02:38] Production.ERROR: pbx prc_insertCDR start [2026-03-21 21:02:39] Production.ERROR: pbx prc_insertCDR end [2026-03-21 21:02:39] Production.INFO: ==12108== Releasing lock... [2026-03-21 21:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 21:02:39] Production.INFO: 41 MB #Memory Used# [2026-03-21 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 19:02:05 [end_date_ymd] => 2026-03-21 22:02:05 [RateCDR] => 1 ) [2026-03-21 22:02: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` >= '2026-03-21 19:02:05' and `end` < '2026-03-21 22:02: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 ,'') [2026-03-21 22:02:16] Production.INFO: count ==1504 [2026-03-21 22:02:17] Production.ERROR: pbx CDR StartTime 2026-03-21 19:02:05 - End Time 2026-03-21 22:02:05 [2026-03-21 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16955162', 'tblTempUsageDetail_20' ) start [2026-03-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16955162', 'tblTempUsageDetail_20' ) end [2026-03-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16955162', 'tblTempVendorCDR_20' ) start [2026-03-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16955162', 'tblTempVendorCDR_20' ) end [2026-03-21 22:02:17] Production.INFO: ProcessCDR(1,16955162,1,1,2) [2026-03-21 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16955162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 22:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16955162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 22:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16955162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 22:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16955162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 22:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16955162', 'tblTempUsageDetail_20' ) start [2026-03-21 22:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16955162', 'tblTempUsageDetail_20' ) end [2026-03-21 22:02:37] Production.ERROR: pbx prc_insertCDR start [2026-03-21 22:02:37] Production.ERROR: pbx prc_insertCDR end [2026-03-21 22:02:37] Production.INFO: ==16953== Releasing lock... [2026-03-21 22:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 22:02:37] Production.INFO: 39.5 MB #Memory Used# [2026-03-21 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-21 20:02:05 [end_date_ymd] => 2026-03-21 23:02:05 [RateCDR] => 1 ) [2026-03-21 23:02: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` >= '2026-03-21 20:02:05' and `end` < '2026-03-21 23:02: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 ,'') [2026-03-21 23:02:17] Production.INFO: count ==1350 [2026-03-21 23:02:17] Production.ERROR: pbx CDR StartTime 2026-03-21 20:02:05 - End Time 2026-03-21 23:02:05 [2026-03-21 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-21 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16955409', 'tblTempUsageDetail_20' ) start [2026-03-21 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16955409', 'tblTempUsageDetail_20' ) end [2026-03-21 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16955409', 'tblTempVendorCDR_20' ) start [2026-03-21 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16955409', 'tblTempVendorCDR_20' ) end [2026-03-21 23:02:17] Production.INFO: ProcessCDR(1,16955409,1,1,2) [2026-03-21 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16955409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 23:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16955409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-21 23:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16955409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 23:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16955409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-21 23:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16955409', 'tblTempUsageDetail_20' ) start [2026-03-21 23:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16955409', 'tblTempUsageDetail_20' ) end [2026-03-21 23:02:37] Production.ERROR: pbx prc_insertCDR start [2026-03-21 23:02:38] Production.ERROR: pbx prc_insertCDR end [2026-03-21 23:02:38] Production.INFO: ==21594== Releasing lock... [2026-03-21 23:02:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-21 23:02:38] Production.INFO: 38.5 MB #Memory Used#