Skip to content

Commit

Permalink
New RTP statistics (#1133)
Browse files Browse the repository at this point in the history
* initial new RTP statistics
* YETI-1135, fix Vulnerability CVE-2022-22577 closes #1135
  • Loading branch information
dmitry-sinina authored Apr 30, 2022
1 parent 6447b7c commit 88b56af
Show file tree
Hide file tree
Showing 52 changed files with 2,883 additions and 493 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gem 'pg'
gem 'pg_advisory_lock', git: 'https://github.com/didww/pg_advisory_lock.git'
gem 'pg_sql_caller', git: 'https://github.com/didww/pg_sql_caller.git'
gem 'rack', '2.1.4' # https://github.com/rack/rack/issues/1628
gem 'rails', '~> 6.1.4.4'
gem 'rails', '~> 6.1.5.1'
gem 'responders'

# Authentication
Expand Down
120 changes: 60 additions & 60 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -104,40 +104,40 @@ GIT
GEM
remote: https://rubygems.org/
specs:
actioncable (6.1.4.7)
actionpack (= 6.1.4.7)
activesupport (= 6.1.4.7)
actioncable (6.1.5.1)
actionpack (= 6.1.5.1)
activesupport (= 6.1.5.1)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailbox (6.1.4.7)
actionpack (= 6.1.4.7)
activejob (= 6.1.4.7)
activerecord (= 6.1.4.7)
activestorage (= 6.1.4.7)
activesupport (= 6.1.4.7)
actionmailbox (6.1.5.1)
actionpack (= 6.1.5.1)
activejob (= 6.1.5.1)
activerecord (= 6.1.5.1)
activestorage (= 6.1.5.1)
activesupport (= 6.1.5.1)
mail (>= 2.7.1)
actionmailer (6.1.4.7)
actionpack (= 6.1.4.7)
actionview (= 6.1.4.7)
activejob (= 6.1.4.7)
activesupport (= 6.1.4.7)
actionmailer (6.1.5.1)
actionpack (= 6.1.5.1)
actionview (= 6.1.5.1)
activejob (= 6.1.5.1)
activesupport (= 6.1.5.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (6.1.4.7)
actionview (= 6.1.4.7)
activesupport (= 6.1.4.7)
actionpack (6.1.5.1)
actionview (= 6.1.5.1)
activesupport (= 6.1.5.1)
rack (~> 2.0, >= 2.0.9)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (6.1.4.7)
actionpack (= 6.1.4.7)
activerecord (= 6.1.4.7)
activestorage (= 6.1.4.7)
activesupport (= 6.1.4.7)
actiontext (6.1.5.1)
actionpack (= 6.1.5.1)
activerecord (= 6.1.5.1)
activestorage (= 6.1.5.1)
activesupport (= 6.1.5.1)
nokogiri (>= 1.8.5)
actionview (6.1.4.7)
activesupport (= 6.1.4.7)
actionview (6.1.5.1)
activesupport (= 6.1.5.1)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
Expand Down Expand Up @@ -168,34 +168,34 @@ GEM
kaminari (~> 1.0, >= 1.2.1)
railties (>= 5.2, < 6.2)
ransack (~> 2.1, >= 2.1.1)
activejob (6.1.4.7)
activesupport (= 6.1.4.7)
activejob (6.1.5.1)
activesupport (= 6.1.5.1)
globalid (>= 0.3.6)
activeldap (5.1.1)
activemodel (> 4.0.0)
builder
gettext
gettext_i18n_rails
locale
activemodel (6.1.4.7)
activesupport (= 6.1.4.7)
activemodel (6.1.5.1)
activesupport (= 6.1.5.1)
activemodel-serializers-xml (1.0.2)
activemodel (> 5.x)
activesupport (> 5.x)
builder (~> 3.1)
activerecord (6.1.4.7)
activemodel (= 6.1.4.7)
activesupport (= 6.1.4.7)
activerecord (6.1.5.1)
activemodel (= 6.1.5.1)
activesupport (= 6.1.5.1)
activerecord-import (1.0.4)
activerecord (>= 3.2)
activestorage (6.1.4.7)
actionpack (= 6.1.4.7)
activejob (= 6.1.4.7)
activerecord (= 6.1.4.7)
activesupport (= 6.1.4.7)
marcel (~> 1.0.0)
activestorage (6.1.5.1)
actionpack (= 6.1.5.1)
activejob (= 6.1.5.1)
activerecord (= 6.1.5.1)
activesupport (= 6.1.5.1)
marcel (~> 1.0)
mini_mime (>= 1.1.0)
activesupport (6.1.4.7)
activesupport (6.1.5.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
Expand Down Expand Up @@ -251,7 +251,7 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.1.9)
concurrent-ruby (1.1.10)
config (3.1.0)
deep_merge (~> 1.2, >= 1.2.1)
dry-validation (~> 1.0, >= 1.0.0)
Expand Down Expand Up @@ -356,7 +356,7 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
hashdiff (0.3.8)
i18n (1.8.11)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
inherited_resources (1.13.0)
actionpack (>= 5.2, < 6.2)
Expand Down Expand Up @@ -397,7 +397,7 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
locale (2.1.2)
loofah (2.13.0)
loofah (2.16.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
Expand Down Expand Up @@ -441,31 +441,31 @@ GEM
rack (2.1.4)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (6.1.4.7)
actioncable (= 6.1.4.7)
actionmailbox (= 6.1.4.7)
actionmailer (= 6.1.4.7)
actionpack (= 6.1.4.7)
actiontext (= 6.1.4.7)
actionview (= 6.1.4.7)
activejob (= 6.1.4.7)
activemodel (= 6.1.4.7)
activerecord (= 6.1.4.7)
activestorage (= 6.1.4.7)
activesupport (= 6.1.4.7)
rails (6.1.5.1)
actioncable (= 6.1.5.1)
actionmailbox (= 6.1.5.1)
actionmailer (= 6.1.5.1)
actionpack (= 6.1.5.1)
actiontext (= 6.1.5.1)
actionview (= 6.1.5.1)
activejob (= 6.1.5.1)
activemodel (= 6.1.5.1)
activerecord (= 6.1.5.1)
activestorage (= 6.1.5.1)
activesupport (= 6.1.5.1)
bundler (>= 1.15.0)
railties (= 6.1.4.7)
railties (= 6.1.5.1)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.4.2)
loofah (~> 2.3)
railties (6.1.4.7)
actionpack (= 6.1.4.7)
activesupport (= 6.1.4.7)
railties (6.1.5.1)
actionpack (= 6.1.5.1)
activesupport (= 6.1.5.1)
method_source
rake (>= 0.13)
rake (>= 12.2)
thor (~> 1.0)
rainbow (3.0.0)
rake (13.0.6)
Expand Down Expand Up @@ -581,7 +581,7 @@ GEM
daemons (~> 1.0, >= 1.0.9)
eventmachine (~> 1.0, >= 1.0.4)
rack (>= 1, < 3)
thor (1.1.0)
thor (1.2.1)
tilt (2.0.9)
timeliness (0.4.4)
tzinfo (2.0.4)
Expand Down Expand Up @@ -677,7 +677,7 @@ DEPENDENCIES
puma_worker_killer
pundit
rack (= 2.1.4)
rails (~> 6.1.4.4)
rails (~> 6.1.5.1)
rails-html-sanitizer (~> 1.0)
ransack
responders
Expand Down
74 changes: 1 addition & 73 deletions app/admin/cdr/cdrs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def scoped_collection
scope :short_calls, show_count: false
scope :rerouted_calls, show_count: false
scope :with_trace, show_count: false
scope :no_rtp, show_count: false
scope :not_authorized, show_count: false
scope :bad_routing, show_count: false

Expand Down Expand Up @@ -380,22 +379,6 @@ def scoped_collection

column :p_charge_info_in

column :lega_rx_payloads
column :lega_tx_payloads
column :legb_rx_payloads
column :legb_tx_payloads

column :lega_rx_bytes
column :lega_tx_bytes
column :lega_rx_decode_errs
column :lega_rx_no_buf_errs
column :lega_rx_parse_errs

column :legb_rx_bytes
column :legb_tx_bytes
column :legb_rx_decode_errs
column :legb_rx_no_buf_errs
column :legb_rx_parse_errs
column :core_version
column :yeti_version
column :lega_user_agent
Expand Down Expand Up @@ -527,22 +510,6 @@ def scoped_collection
row :pdd
row :rtt
row :early_media_present
row :lega_rx_payloads
row :lega_tx_payloads
row :legb_rx_payloads
row :legb_tx_payloads

row :lega_rx_bytes
row :lega_tx_bytes
row :lega_rx_decode_errs
row :lega_rx_no_buf_errs
row :lega_rx_parse_errs

row :legb_rx_bytes
row :legb_tx_bytes
row :legb_rx_decode_errs
row :legb_rx_no_buf_errs
row :legb_rx_parse_errs
row :core_version
row :yeti_version
row :lega_user_agent
Expand Down Expand Up @@ -758,23 +725,6 @@ def scoped_collection

column :p_charge_info_in

column :lega_rx_payloads
column :lega_tx_payloads
column :legb_rx_payloads
column :legb_tx_payloads

column :lega_rx_bytes
column :lega_tx_bytes
# column :lega_rx_decode_errs
# column :lega_rx_no_buf_errs
# column :lega_rx_parse_errs

column :legb_rx_bytes
column :legb_tx_bytes
# column :legb_rx_decode_errs
# column :legb_rx_no_buf_errs
# column :legb_rx_parse_errs

column :core_version
column :yeti_version
column :lega_user_agent
Expand Down Expand Up @@ -816,17 +766,10 @@ def scoped_collection
cdr.lega_disconnect_code.to_s unless (cdr.lega_disconnect_code == 0) || cdr.legb_disconnect_code.nil?
end
column('LegA Reason', sortable: 'lega_disconnect_reason', &:lega_disconnect_reason)
column :lega_rx_payloads
column :lega_tx_payloads
column :auth_orig_transport_protocol
column :auth_orig_ip do |cdr|
"#{cdr.auth_orig_ip}:#{cdr.auth_orig_port}".chomp(':')
end
column :lega_rx_bytes
column :lega_tx_bytes
column :lega_rx_decode_errs
column :lega_rx_no_buf_errs
column :lega_rx_parse_errs
column :src_prefix_routing
column :dst_prefix_routing
column :destination_prefix
Expand Down Expand Up @@ -866,13 +809,7 @@ def scoped_collection
cdr.legb_disconnect_code.to_s unless (cdr.legb_disconnect_code == 0) || cdr.legb_disconnect_code.nil?
end
column('LegB Reason', sortable: 'legb_disconnect_reason', &:legb_disconnect_reason)
column :legb_rx_payloads
column :legb_tx_payloads
column :legb_rx_bytes
column :legb_tx_bytes
column :legb_rx_decode_errs
column :legb_rx_no_buf_errs
column :legb_rx_parse_errs

column :pdd
column :rtt
column :early_media_present
Expand Down Expand Up @@ -1002,15 +939,6 @@ def scoped_collection
column :local_tag
column :legb_local_tag
column :term_call_id
column :lega_rx_payloads
column :lega_tx_payloads
column :legb_rx_payloads
column :legb_tx_payloads
column :lega_rx_bytes
column :lega_tx_bytes
column :legb_rx_bytes
column :legb_tx_bytes

end
end
end
Loading

0 comments on commit 88b56af

Please sign in to comment.