[2025-11-27 00:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-11-26 21:00:08 [end_date_ymd] => 2025-11-27 00:00:08 [RateCDR] => 1 ) [2025-11-27 00:00:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-26 21:00:08' and `end` < '2025-11-27 00:00:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 00:00:20] Production.INFO: count ==912 [2025-11-27 00:00:21] Production.ERROR: pbx CDR StartTime 2025-11-26 21:00:08 - End Time 2025-11-27 00:00:08 [2025-11-27 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16274199', 'tblTempUsageDetail_20' ) start [2025-11-27 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16274199', 'tblTempUsageDetail_20' ) end [2025-11-27 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16274199', 'tblTempVendorCDR_20' ) start [2025-11-27 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16274199', 'tblTempVendorCDR_20' ) end [2025-11-27 00:00:21] Production.INFO: ProcessCDR(1,16274199,1,1,2) [2025-11-27 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16274199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 00:03:16] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16274199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 00:03:16] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16274199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 00:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16274199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16274199', 'tblTempUsageDetail_20' ) start [2025-11-27 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16274199', 'tblTempUsageDetail_20' ) end [2025-11-27 00:06:33] Production.ERROR: pbx prc_insertCDR start [2025-11-27 00:06:33] Production.ERROR: pbx prc_insertCDR end [2025-11-27 00:06:36] Production.INFO: ==17872== Releasing lock... [2025-11-27 00:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 00:06:36] Production.INFO: 37.75 MB #Memory Used# [2025-11-27 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-26 22:00:06 [end_date_ymd] => 2025-11-27 01:00:06 [RateCDR] => 1 ) [2025-11-27 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-26 22:00:06' and `end` < '2025-11-27 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 01:00:18] Production.INFO: count ==561 [2025-11-27 01:00:18] Production.ERROR: pbx CDR StartTime 2025-11-26 22:00:06 - End Time 2025-11-27 01:00:06 [2025-11-27 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16274445', 'tblTempUsageDetail_20' ) start [2025-11-27 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16274445', 'tblTempUsageDetail_20' ) end [2025-11-27 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16274445', 'tblTempVendorCDR_20' ) start [2025-11-27 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16274445', 'tblTempVendorCDR_20' ) end [2025-11-27 01:00:18] Production.INFO: ProcessCDR(1,16274445,1,1,2) [2025-11-27 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16274445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 01:03:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16274445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 01:03:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16274445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 01:06:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16274445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 01:06:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16274445', 'tblTempUsageDetail_20' ) start [2025-11-27 01:06:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16274445', 'tblTempUsageDetail_20' ) end [2025-11-27 01:06:17] Production.ERROR: pbx prc_insertCDR start [2025-11-27 01:06:18] Production.ERROR: pbx prc_insertCDR end [2025-11-27 01:06:18] Production.INFO: ==22561== Releasing lock... [2025-11-27 01:06:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 01:06:18] Production.INFO: 33.25 MB #Memory Used# [2025-11-27 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-26 23:00:06 [end_date_ymd] => 2025-11-27 02:00:06 [RateCDR] => 1 ) [2025-11-27 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-26 23:00:06' and `end` < '2025-11-27 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 02:00:18] Production.INFO: count ==580 [2025-11-27 02:00:18] Production.ERROR: pbx CDR StartTime 2025-11-26 23:00:06 - End Time 2025-11-27 02:00:06 [2025-11-27 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16274693', 'tblTempUsageDetail_20' ) start [2025-11-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16274693', 'tblTempUsageDetail_20' ) end [2025-11-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16274693', 'tblTempVendorCDR_20' ) start [2025-11-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16274693', 'tblTempVendorCDR_20' ) end [2025-11-27 02:00:18] Production.INFO: ProcessCDR(1,16274693,1,1,2) [2025-11-27 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16274693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 02:03:02] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16274693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 02:03:02] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16274693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 02:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16274693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16274693', 'tblTempUsageDetail_20' ) start [2025-11-27 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16274693', 'tblTempUsageDetail_20' ) end [2025-11-27 02:06:23] Production.ERROR: pbx prc_insertCDR start [2025-11-27 02:06:23] Production.ERROR: pbx prc_insertCDR end [2025-11-27 02:06:23] Production.INFO: ==27205== Releasing lock... [2025-11-27 02:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 02:06:23] Production.INFO: 32.75 MB #Memory Used# [2025-11-27 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 00:00:06 [end_date_ymd] => 2025-11-27 03:00:06 [RateCDR] => 1 ) [2025-11-27 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 00:00:06' and `end` < '2025-11-27 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 03:00:18] Production.INFO: count ==558 [2025-11-27 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-27 00:00:06 - End Time 2025-11-27 03:00:06 [2025-11-27 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16274940', 'tblTempUsageDetail_20' ) start [2025-11-27 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16274940', 'tblTempUsageDetail_20' ) end [2025-11-27 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16274940', 'tblTempVendorCDR_20' ) start [2025-11-27 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16274940', 'tblTempVendorCDR_20' ) end [2025-11-27 03:00:18] Production.INFO: ProcessCDR(1,16274940,1,1,2) [2025-11-27 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16274940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 03:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16274940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 03:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16274940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 03:06:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16274940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 03:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16274940', 'tblTempUsageDetail_20' ) start [2025-11-27 03:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16274940', 'tblTempUsageDetail_20' ) end [2025-11-27 03:06:16] Production.ERROR: pbx prc_insertCDR start [2025-11-27 03:06:16] Production.ERROR: pbx prc_insertCDR end [2025-11-27 03:06:16] Production.INFO: ==32063== Releasing lock... [2025-11-27 03:06:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 03:06:16] Production.INFO: 33 MB #Memory Used# [2025-11-27 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 01:00:07 [end_date_ymd] => 2025-11-27 04:00:07 [RateCDR] => 1 ) [2025-11-27 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 01:00:07' and `end` < '2025-11-27 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 04:00:19] Production.INFO: count ==395 [2025-11-27 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-27 01:00:07 - End Time 2025-11-27 04:00:07 [2025-11-27 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16275188', 'tblTempUsageDetail_20' ) start [2025-11-27 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16275188', 'tblTempUsageDetail_20' ) end [2025-11-27 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16275188', 'tblTempVendorCDR_20' ) start [2025-11-27 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16275188', 'tblTempVendorCDR_20' ) end [2025-11-27 04:00:19] Production.INFO: ProcessCDR(1,16275188,1,1,2) [2025-11-27 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16275188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 04:03:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16275188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 04:03:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16275188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 04:06:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16275188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 04:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16275188', 'tblTempUsageDetail_20' ) start [2025-11-27 04:06:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16275188', 'tblTempUsageDetail_20' ) end [2025-11-27 04:06:13] Production.ERROR: pbx prc_insertCDR start [2025-11-27 04:06:13] Production.ERROR: pbx prc_insertCDR end [2025-11-27 04:06:13] Production.INFO: ==4476== Releasing lock... [2025-11-27 04:06:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 04:06:13] Production.INFO: 31.5 MB #Memory Used# [2025-11-27 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 02:00:06 [end_date_ymd] => 2025-11-27 05:00:06 [RateCDR] => 1 ) [2025-11-27 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 02:00:06' and `end` < '2025-11-27 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 05:00:18] Production.INFO: count ==210 [2025-11-27 05:00:18] Production.ERROR: pbx CDR StartTime 2025-11-27 02:00:06 - End Time 2025-11-27 05:00:06 [2025-11-27 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16275435', 'tblTempUsageDetail_20' ) start [2025-11-27 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16275435', 'tblTempUsageDetail_20' ) end [2025-11-27 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16275435', 'tblTempVendorCDR_20' ) start [2025-11-27 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16275435', 'tblTempVendorCDR_20' ) end [2025-11-27 05:00:18] Production.INFO: ProcessCDR(1,16275435,1,1,2) [2025-11-27 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16275435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 05:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16275435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 05:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16275435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 05:06:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16275435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 05:06:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16275435', 'tblTempUsageDetail_20' ) start [2025-11-27 05:06:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16275435', 'tblTempUsageDetail_20' ) end [2025-11-27 05:06:00] Production.ERROR: pbx prc_insertCDR start [2025-11-27 05:06:00] Production.ERROR: pbx prc_insertCDR end [2025-11-27 05:06:00] Production.INFO: ==9323== Releasing lock... [2025-11-27 05:06:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 05:06:00] Production.INFO: 30 MB #Memory Used# [2025-11-27 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 03:00:06 [end_date_ymd] => 2025-11-27 06:00:06 [RateCDR] => 1 ) [2025-11-27 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 03:00:06' and `end` < '2025-11-27 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 06:00:18] Production.INFO: count ==97 [2025-11-27 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-27 03:00:06 - End Time 2025-11-27 06:00:06 [2025-11-27 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16275683', 'tblTempUsageDetail_20' ) start [2025-11-27 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16275683', 'tblTempUsageDetail_20' ) end [2025-11-27 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16275683', 'tblTempVendorCDR_20' ) start [2025-11-27 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16275683', 'tblTempVendorCDR_20' ) end [2025-11-27 06:00:18] Production.INFO: ProcessCDR(1,16275683,1,1,2) [2025-11-27 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16275683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 06:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16275683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 06:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16275683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 06:05:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16275683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 06:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16275683', 'tblTempUsageDetail_20' ) start [2025-11-27 06:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16275683', 'tblTempUsageDetail_20' ) end [2025-11-27 06:05:57] Production.ERROR: pbx prc_insertCDR start [2025-11-27 06:05:57] Production.ERROR: pbx prc_insertCDR end [2025-11-27 06:05:57] Production.INFO: ==14553== Releasing lock... [2025-11-27 06:05:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 06:05:57] Production.INFO: 28.5 MB #Memory Used# [2025-11-27 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 04:00:05 [end_date_ymd] => 2025-11-27 07:00:05 [RateCDR] => 1 ) [2025-11-27 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 04:00:05' and `end` < '2025-11-27 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 07:00:17] Production.INFO: count ==111 [2025-11-27 07:00:17] Production.ERROR: pbx CDR StartTime 2025-11-27 04:00:05 - End Time 2025-11-27 07:00:05 [2025-11-27 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16275929', 'tblTempUsageDetail_20' ) start [2025-11-27 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16275929', 'tblTempUsageDetail_20' ) end [2025-11-27 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16275929', 'tblTempVendorCDR_20' ) start [2025-11-27 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16275929', 'tblTempVendorCDR_20' ) end [2025-11-27 07:00:17] Production.INFO: ProcessCDR(1,16275929,1,1,2) [2025-11-27 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16275929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 07:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16275929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 07:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16275929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 07:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16275929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16275929', 'tblTempUsageDetail_20' ) start [2025-11-27 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16275929', 'tblTempUsageDetail_20' ) end [2025-11-27 07:06:20] Production.ERROR: pbx prc_insertCDR start [2025-11-27 07:06:20] Production.ERROR: pbx prc_insertCDR end [2025-11-27 07:06:20] Production.INFO: ==19699== Releasing lock... [2025-11-27 07:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 07:06:20] Production.INFO: 28.75 MB #Memory Used# [2025-11-27 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 05:00:07 [end_date_ymd] => 2025-11-27 08:00:07 [RateCDR] => 1 ) [2025-11-27 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 05:00:07' and `end` < '2025-11-27 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 08:00:19] Production.INFO: count ==212 [2025-11-27 08:00:19] Production.ERROR: pbx CDR StartTime 2025-11-27 05:00:07 - End Time 2025-11-27 08:00:07 [2025-11-27 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16276177', 'tblTempUsageDetail_20' ) start [2025-11-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16276177', 'tblTempUsageDetail_20' ) end [2025-11-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16276177', 'tblTempVendorCDR_20' ) start [2025-11-27 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16276177', 'tblTempVendorCDR_20' ) end [2025-11-27 08:00:19] Production.INFO: ProcessCDR(1,16276177,1,1,2) [2025-11-27 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16276177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 08:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16276177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 08:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16276177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16276177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16276177', 'tblTempUsageDetail_20' ) start [2025-11-27 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16276177', 'tblTempUsageDetail_20' ) end [2025-11-27 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-11-27 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-11-27 08:06:23] Production.INFO: ==25208== Releasing lock... [2025-11-27 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 08:06:23] Production.INFO: 30.25 MB #Memory Used# [2025-11-27 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 06:00:06 [end_date_ymd] => 2025-11-27 09:00:06 [RateCDR] => 1 ) [2025-11-27 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 06:00:06' and `end` < '2025-11-27 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 09:00:18] Production.INFO: count ==887 [2025-11-27 09:00:18] Production.ERROR: pbx CDR StartTime 2025-11-27 06:00:06 - End Time 2025-11-27 09:00:06 [2025-11-27 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16276424', 'tblTempUsageDetail_20' ) start [2025-11-27 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16276424', 'tblTempUsageDetail_20' ) end [2025-11-27 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16276424', 'tblTempVendorCDR_20' ) start [2025-11-27 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16276424', 'tblTempVendorCDR_20' ) end [2025-11-27 09:00:18] Production.INFO: ProcessCDR(1,16276424,1,1,2) [2025-11-27 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16276424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 09:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16276424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 09:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16276424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 09:06:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16276424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 09:06:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16276424', 'tblTempUsageDetail_20' ) start [2025-11-27 09:06:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16276424', 'tblTempUsageDetail_20' ) end [2025-11-27 09:06:44] Production.ERROR: pbx prc_insertCDR start [2025-11-27 09:06:45] Production.ERROR: pbx prc_insertCDR end [2025-11-27 09:06:45] Production.INFO: ==29849== Releasing lock... [2025-11-27 09:06:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 09:06:45] Production.INFO: 35.5 MB #Memory Used# [2025-11-27 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 07:00:06 [end_date_ymd] => 2025-11-27 10:00:06 [RateCDR] => 1 ) [2025-11-27 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 07:00:06' and `end` < '2025-11-27 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 10:00:20] Production.INFO: count ==2391 [2025-11-27 10:00:21] Production.ERROR: pbx CDR StartTime 2025-11-27 07:00:06 - End Time 2025-11-27 10:00:06 [2025-11-27 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16276671', 'tblTempUsageDetail_20' ) start [2025-11-27 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16276671', 'tblTempUsageDetail_20' ) end [2025-11-27 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16276671', 'tblTempVendorCDR_20' ) start [2025-11-27 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16276671', 'tblTempVendorCDR_20' ) end [2025-11-27 10:00:22] Production.INFO: ProcessCDR(1,16276671,1,1,2) [2025-11-27 10:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16276671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 10:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16276671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 10:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16276671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 10:06:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16276671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 10:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16276671', 'tblTempUsageDetail_20' ) start [2025-11-27 10:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16276671', 'tblTempUsageDetail_20' ) end [2025-11-27 10:06:46] Production.ERROR: pbx prc_insertCDR start [2025-11-27 10:06:48] Production.ERROR: pbx prc_insertCDR end [2025-11-27 10:06:48] Production.INFO: ==2448== Releasing lock... [2025-11-27 10:06:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 10:06:48] Production.INFO: 46.25 MB #Memory Used# [2025-11-27 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 08:00:06 [end_date_ymd] => 2025-11-27 11:00:06 [RateCDR] => 1 ) [2025-11-27 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 08:00:06' and `end` < '2025-11-27 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 11:00:20] Production.INFO: count ==4264 [2025-11-27 11:00:22] Production.ERROR: pbx CDR StartTime 2025-11-27 08:00:06 - End Time 2025-11-27 11:00:06 [2025-11-27 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16276918', 'tblTempUsageDetail_20' ) start [2025-11-27 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16276918', 'tblTempUsageDetail_20' ) end [2025-11-27 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16276918', 'tblTempVendorCDR_20' ) start [2025-11-27 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16276918', 'tblTempVendorCDR_20' ) end [2025-11-27 11:00:23] Production.INFO: ProcessCDR(1,16276918,1,1,2) [2025-11-27 11:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16276918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 11:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16276918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 11:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16276918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 11:06:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16276918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 11:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16276918', 'tblTempUsageDetail_20' ) start [2025-11-27 11:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16276918', 'tblTempUsageDetail_20' ) end [2025-11-27 11:06:50] Production.ERROR: pbx prc_insertCDR start [2025-11-27 11:06:53] Production.ERROR: pbx prc_insertCDR end [2025-11-27 11:06:53] Production.INFO: ==7621== Releasing lock... [2025-11-27 11:06:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 11:06:53] Production.INFO: 60 MB #Memory Used# [2025-11-27 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 09:00:06 [end_date_ymd] => 2025-11-27 12:00:06 [RateCDR] => 1 ) [2025-11-27 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 09:00:06' and `end` < '2025-11-27 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 12:00:30] Production.INFO: count ==5290 [2025-11-27 12:00:32] Production.ERROR: pbx CDR StartTime 2025-11-27 09:00:06 - End Time 2025-11-27 12:00:06 [2025-11-27 12:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 12:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16277164', 'tblTempUsageDetail_20' ) start [2025-11-27 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16277164', 'tblTempUsageDetail_20' ) end [2025-11-27 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16277164', 'tblTempVendorCDR_20' ) start [2025-11-27 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16277164', 'tblTempVendorCDR_20' ) end [2025-11-27 12:00:33] Production.INFO: ProcessCDR(1,16277164,1,1,2) [2025-11-27 12:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16277164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 12:03:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16277164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 12:03:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16277164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 12:03:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16277164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 12:03:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16277164', 'tblTempUsageDetail_20' ) start [2025-11-27 12:03:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16277164', 'tblTempUsageDetail_20' ) end [2025-11-27 12:03:56] Production.ERROR: pbx prc_insertCDR start [2025-11-27 12:03:58] Production.ERROR: pbx prc_insertCDR end [2025-11-27 12:03:58] Production.INFO: ==12069== Releasing lock... [2025-11-27 12:03:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 12:03:58] Production.INFO: 67.75 MB #Memory Used# [2025-11-27 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 10:00:07 [end_date_ymd] => 2025-11-27 13:00:07 [RateCDR] => 1 ) [2025-11-27 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 10:00:07' and `end` < '2025-11-27 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 13:00:21] Production.INFO: count ==5288 [2025-11-27 13:00:24] Production.ERROR: pbx CDR StartTime 2025-11-27 10:00:07 - End Time 2025-11-27 13:00:07 [2025-11-27 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16277412', 'tblTempUsageDetail_20' ) start [2025-11-27 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16277412', 'tblTempUsageDetail_20' ) end [2025-11-27 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16277412', 'tblTempVendorCDR_20' ) start [2025-11-27 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16277412', 'tblTempVendorCDR_20' ) end [2025-11-27 13:00:25] Production.INFO: ProcessCDR(1,16277412,1,1,2) [2025-11-27 13:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16277412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 13:03:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16277412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 13:03:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16277412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 13:06:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16277412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 13:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16277412', 'tblTempUsageDetail_20' ) start [2025-11-27 13:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16277412', 'tblTempUsageDetail_20' ) end [2025-11-27 13:06:50] Production.ERROR: pbx prc_insertCDR start [2025-11-27 13:06:53] Production.ERROR: pbx prc_insertCDR end [2025-11-27 13:06:53] Production.INFO: ==17935== Releasing lock... [2025-11-27 13:06:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 13:06:53] Production.INFO: 67.75 MB #Memory Used# [2025-11-27 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 11:00:06 [end_date_ymd] => 2025-11-27 14:00:06 [RateCDR] => 1 ) [2025-11-27 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 11:00:06' and `end` < '2025-11-27 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 14:00:19] Production.INFO: count ==5122 [2025-11-27 14:00:22] Production.ERROR: pbx CDR StartTime 2025-11-27 11:00:06 - End Time 2025-11-27 14:00:06 [2025-11-27 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16277659', 'tblTempUsageDetail_20' ) start [2025-11-27 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16277659', 'tblTempUsageDetail_20' ) end [2025-11-27 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16277659', 'tblTempVendorCDR_20' ) start [2025-11-27 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16277659', 'tblTempVendorCDR_20' ) end [2025-11-27 14:00:22] Production.INFO: ProcessCDR(1,16277659,1,1,2) [2025-11-27 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16277659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 14:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16277659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 14:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16277659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16277659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16277659', 'tblTempUsageDetail_20' ) start [2025-11-27 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16277659', 'tblTempUsageDetail_20' ) end [2025-11-27 14:03:25] Production.ERROR: pbx prc_insertCDR start [2025-11-27 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-11-27 14:03:27] Production.INFO: ==22714== Releasing lock... [2025-11-27 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 14:03:27] Production.INFO: 66.5 MB #Memory Used# [2025-11-27 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 12:00:06 [end_date_ymd] => 2025-11-27 15:00:06 [RateCDR] => 1 ) [2025-11-27 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 12:00:06' and `end` < '2025-11-27 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 15:00:21] Production.INFO: count ==6178 [2025-11-27 15:00:24] Production.ERROR: pbx CDR StartTime 2025-11-27 12:00:06 - End Time 2025-11-27 15:00:06 [2025-11-27 15:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16277906', 'tblTempUsageDetail_20' ) start [2025-11-27 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16277906', 'tblTempUsageDetail_20' ) end [2025-11-27 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16277906', 'tblTempVendorCDR_20' ) start [2025-11-27 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16277906', 'tblTempVendorCDR_20' ) end [2025-11-27 15:00:25] Production.INFO: ProcessCDR(1,16277906,1,1,2) [2025-11-27 15:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16277906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 15:03:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16277906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 15:03:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16277906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 15:03:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16277906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 15:03:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16277906', 'tblTempUsageDetail_20' ) start [2025-11-27 15:03:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16277906', 'tblTempUsageDetail_20' ) end [2025-11-27 15:03:48] Production.ERROR: pbx prc_insertCDR start [2025-11-27 15:03:51] Production.ERROR: pbx prc_insertCDR end [2025-11-27 15:03:51] Production.INFO: ==27738== Releasing lock... [2025-11-27 15:03:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 15:03:51] Production.INFO: 74.5 MB #Memory Used# [2025-11-27 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 13:00:06 [end_date_ymd] => 2025-11-27 16:00:06 [RateCDR] => 1 ) [2025-11-27 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 13:00:06' and `end` < '2025-11-27 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 16:00:20] Production.INFO: count ==6254 [2025-11-27 16:00:23] Production.ERROR: pbx CDR StartTime 2025-11-27 13:00:06 - End Time 2025-11-27 16:00:06 [2025-11-27 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16278153', 'tblTempUsageDetail_20' ) start [2025-11-27 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16278153', 'tblTempUsageDetail_20' ) end [2025-11-27 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16278153', 'tblTempVendorCDR_20' ) start [2025-11-27 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16278153', 'tblTempVendorCDR_20' ) end [2025-11-27 16:00:23] Production.INFO: ProcessCDR(1,16278153,1,1,2) [2025-11-27 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16278153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 16:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16278153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 16:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16278153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 16:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16278153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 16:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16278153', 'tblTempUsageDetail_20' ) start [2025-11-27 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16278153', 'tblTempUsageDetail_20' ) end [2025-11-27 16:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-27 16:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-27 16:00:39] Production.INFO: ==32226== Releasing lock... [2025-11-27 16:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 16:00:39] Production.INFO: 75 MB #Memory Used# [2025-11-27 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 14:00:06 [end_date_ymd] => 2025-11-27 17:00:06 [RateCDR] => 1 ) [2025-11-27 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 14:00:06' and `end` < '2025-11-27 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 17:00:20] Production.INFO: count ==6112 [2025-11-27 17:00:23] Production.ERROR: pbx CDR StartTime 2025-11-27 14:00:06 - End Time 2025-11-27 17:00:06 [2025-11-27 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16278399', 'tblTempUsageDetail_20' ) start [2025-11-27 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16278399', 'tblTempUsageDetail_20' ) end [2025-11-27 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16278399', 'tblTempVendorCDR_20' ) start [2025-11-27 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16278399', 'tblTempVendorCDR_20' ) end [2025-11-27 17:00:23] Production.INFO: ProcessCDR(1,16278399,1,1,2) [2025-11-27 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16278399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 17:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16278399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 17:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16278399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 17:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16278399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16278399', 'tblTempUsageDetail_20' ) start [2025-11-27 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16278399', 'tblTempUsageDetail_20' ) end [2025-11-27 17:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-27 17:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-27 17:00:39] Production.INFO: ==4393== Releasing lock... [2025-11-27 17:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 17:00:39] Production.INFO: 74 MB #Memory Used# [2025-11-27 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 15:00:07 [end_date_ymd] => 2025-11-27 18:00:07 [RateCDR] => 1 ) [2025-11-27 18:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 15:00:07' and `end` < '2025-11-27 18:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 18:00:19] Production.INFO: count ==4986 [2025-11-27 18:00:22] Production.ERROR: pbx CDR StartTime 2025-11-27 15:00:07 - End Time 2025-11-27 18:00:07 [2025-11-27 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16278644', 'tblTempUsageDetail_20' ) start [2025-11-27 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16278644', 'tblTempUsageDetail_20' ) end [2025-11-27 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16278644', 'tblTempVendorCDR_20' ) start [2025-11-27 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16278644', 'tblTempVendorCDR_20' ) end [2025-11-27 18:00:22] Production.INFO: ProcessCDR(1,16278644,1,1,2) [2025-11-27 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16278644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 18:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16278644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 18:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16278644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 18:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16278644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 18:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16278644', 'tblTempUsageDetail_20' ) start [2025-11-27 18:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16278644', 'tblTempUsageDetail_20' ) end [2025-11-27 18:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-27 18:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-27 18:00:37] Production.INFO: ==9684== Releasing lock... [2025-11-27 18:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 18:00:37] Production.INFO: 65.5 MB #Memory Used# [2025-11-27 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 16:00:06 [end_date_ymd] => 2025-11-27 19:00:06 [RateCDR] => 1 ) [2025-11-27 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 16:00:06' and `end` < '2025-11-27 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 19:00:19] Production.INFO: count ==4309 [2025-11-27 19:00:21] Production.ERROR: pbx CDR StartTime 2025-11-27 16:00:06 - End Time 2025-11-27 19:00:06 [2025-11-27 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16278891', 'tblTempUsageDetail_20' ) start [2025-11-27 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16278891', 'tblTempUsageDetail_20' ) end [2025-11-27 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16278891', 'tblTempVendorCDR_20' ) start [2025-11-27 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16278891', 'tblTempVendorCDR_20' ) end [2025-11-27 19:00:21] Production.INFO: ProcessCDR(1,16278891,1,1,2) [2025-11-27 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16278891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 19:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16278891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 19:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16278891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 19:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16278891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16278891', 'tblTempUsageDetail_20' ) start [2025-11-27 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16278891', 'tblTempUsageDetail_20' ) end [2025-11-27 19:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-27 19:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-27 19:00:34] Production.INFO: ==14418== Releasing lock... [2025-11-27 19:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 19:00:34] Production.INFO: 60.5 MB #Memory Used# [2025-11-27 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 17:00:06 [end_date_ymd] => 2025-11-27 20:00:06 [RateCDR] => 1 ) [2025-11-27 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 17:00:06' and `end` < '2025-11-27 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 20:00:18] Production.INFO: count ==3025 [2025-11-27 20:00:20] Production.ERROR: pbx CDR StartTime 2025-11-27 17:00:06 - End Time 2025-11-27 20:00:06 [2025-11-27 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16279138', 'tblTempUsageDetail_20' ) start [2025-11-27 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16279138', 'tblTempUsageDetail_20' ) end [2025-11-27 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16279138', 'tblTempVendorCDR_20' ) start [2025-11-27 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16279138', 'tblTempVendorCDR_20' ) end [2025-11-27 20:00:20] Production.INFO: ProcessCDR(1,16279138,1,1,2) [2025-11-27 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16279138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 20:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16279138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 20:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16279138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 20:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16279138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16279138', 'tblTempUsageDetail_20' ) start [2025-11-27 20:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16279138', 'tblTempUsageDetail_20' ) end [2025-11-27 20:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-27 20:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-27 20:00:32] Production.INFO: ==18926== Releasing lock... [2025-11-27 20:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 20:00:32] Production.INFO: 51.25 MB #Memory Used# [2025-11-27 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 18:00:06 [end_date_ymd] => 2025-11-27 21:00:06 [RateCDR] => 1 ) [2025-11-27 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 18:00:06' and `end` < '2025-11-27 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 21:00:18] Production.INFO: count ==2153 [2025-11-27 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-27 18:00:06 - End Time 2025-11-27 21:00:06 [2025-11-27 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16279385', 'tblTempUsageDetail_20' ) start [2025-11-27 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16279385', 'tblTempUsageDetail_20' ) end [2025-11-27 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16279385', 'tblTempVendorCDR_20' ) start [2025-11-27 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16279385', 'tblTempVendorCDR_20' ) end [2025-11-27 21:00:19] Production.INFO: ProcessCDR(1,16279385,1,1,2) [2025-11-27 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16279385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16279385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16279385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 21:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16279385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16279385', 'tblTempUsageDetail_20' ) start [2025-11-27 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16279385', 'tblTempUsageDetail_20' ) end [2025-11-27 21:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-27 21:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-27 21:00:30] Production.INFO: ==23364== Releasing lock... [2025-11-27 21:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 21:00:30] Production.INFO: 44.25 MB #Memory Used# [2025-11-27 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 19:00:07 [end_date_ymd] => 2025-11-27 22:00:07 [RateCDR] => 1 ) [2025-11-27 22:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 19:00:07' and `end` < '2025-11-27 22:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 22:00:19] Production.INFO: count ==1497 [2025-11-27 22:00:20] Production.ERROR: pbx CDR StartTime 2025-11-27 19:00:07 - End Time 2025-11-27 22:00:07 [2025-11-27 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16279632', 'tblTempUsageDetail_20' ) start [2025-11-27 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16279632', 'tblTempUsageDetail_20' ) end [2025-11-27 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16279632', 'tblTempVendorCDR_20' ) start [2025-11-27 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16279632', 'tblTempVendorCDR_20' ) end [2025-11-27 22:00:20] Production.INFO: ProcessCDR(1,16279632,1,1,2) [2025-11-27 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16279632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 22:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16279632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 22:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16279632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 22:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16279632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16279632', 'tblTempUsageDetail_20' ) start [2025-11-27 22:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16279632', 'tblTempUsageDetail_20' ) end [2025-11-27 22:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-27 22:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-27 22:00:31] Production.INFO: ==27747== Releasing lock... [2025-11-27 22:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 22:00:31] Production.INFO: 39.5 MB #Memory Used# [2025-11-27 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-27 20:00:06 [end_date_ymd] => 2025-11-27 23:00:06 [RateCDR] => 1 ) [2025-11-27 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-27 20:00:06' and `end` < '2025-11-27 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-27 23:00:18] Production.INFO: count ==1135 [2025-11-27 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-27 20:00:06 - End Time 2025-11-27 23:00:06 [2025-11-27 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-27 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16279879', 'tblTempUsageDetail_20' ) start [2025-11-27 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16279879', 'tblTempUsageDetail_20' ) end [2025-11-27 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16279879', 'tblTempVendorCDR_20' ) start [2025-11-27 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16279879', 'tblTempVendorCDR_20' ) end [2025-11-27 23:00:19] Production.INFO: ProcessCDR(1,16279879,1,1,2) [2025-11-27 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16279879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16279879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-27 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16279879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 23:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16279879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-27 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16279879', 'tblTempUsageDetail_20' ) start [2025-11-27 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16279879', 'tblTempUsageDetail_20' ) end [2025-11-27 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-27 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-27 23:00:29] Production.INFO: ==32190== Releasing lock... [2025-11-27 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-27 23:00:29] Production.INFO: 36.75 MB #Memory Used#