Skip to content

Commit

Permalink
remove deprecated routing attributes (#1460)
Browse files Browse the repository at this point in the history
* remove deprecated routing attributes
  • Loading branch information
dmitry-sinina authored Apr 10, 2024
1 parent 0259367 commit e020f50
Show file tree
Hide file tree
Showing 15 changed files with 6,155 additions and 82 deletions.
6 changes: 2 additions & 4 deletions app/admin/equipment/gateways.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
:sip_timer_b, :dns_srv_failover_timer,
[:sdp_c_location_name, proc { |row| row.sdp_c_location.try(:name) }],
[:codec_group_name, proc { |row| row.codec_group.try(:name) }],
:proxy_media, :single_codec_in_200ok, :force_symmetric_rtp, :symmetric_rtp_nonstop, :symmetric_rtp_ignore_rtcp, :force_dtmf_relay, :rtp_ping,
:proxy_media, :single_codec_in_200ok, :force_symmetric_rtp, :symmetric_rtp_nonstop,
:force_dtmf_relay, :rtp_ping,
:rtp_timeout,
:filter_noaudio_streams,
:rtp_relay_timestamp_aligning,
Expand Down Expand Up @@ -264,7 +265,6 @@ def resource_params
column :single_codec_in_200ok
column :force_symmetric_rtp
column :symmetric_rtp_nonstop
column :symmetric_rtp_ignore_rtcp
column :rtp_ping
column :rtp_timeout
column :filter_noaudio_streams
Expand Down Expand Up @@ -484,7 +484,6 @@ def resource_params
f.input :single_codec_in_200ok
f.input :force_symmetric_rtp
f.input :symmetric_rtp_nonstop
f.input :symmetric_rtp_ignore_rtcp
f.input :rtp_ping
f.input :rtp_timeout
f.input :filter_noaudio_streams
Expand Down Expand Up @@ -673,7 +672,6 @@ def resource_params
row :single_codec_in_200ok
row :force_symmetric_rtp
row :symmetric_rtp_nonstop
row :symmetric_rtp_ignore_rtcp
row :rtp_ping
row :rtp_timeout
row :filter_noaudio_streams
Expand Down
1 change: 0 additions & 1 deletion app/models/gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
# sst_minimum_timer :integer(4) default(50), not null
# sst_session_expires :integer(4) default(50)
# suppress_early_media :boolean default(FALSE), not null
# symmetric_rtp_ignore_rtcp :boolean default(FALSE), not null
# symmetric_rtp_nonstop :boolean default(FALSE), not null
# term_append_headers_req :string
# term_force_outbound_proxy :boolean default(FALSE), not null
Expand Down
3 changes: 1 addition & 2 deletions app/models/importing/gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
# sst_minimum_timer :integer(4)
# sst_session_expires :integer(4)
# suppress_early_media :boolean
# symmetric_rtp_ignore_rtcp :boolean
# symmetric_rtp_nonstop :boolean
# term_append_headers_req :string
# term_disconnect_policy_name :string
Expand Down Expand Up @@ -219,7 +218,7 @@ class Importing::Gateway < Importing::Base
sip_timer_b dns_srv_failover_timer
sdp_c_location_id codec_group_id
single_codec_in_200ok force_symmetric_rtp symmetric_rtp_nonstop
symmetric_rtp_ignore_rtcp force_dtmf_relay rtp_ping
force_dtmf_relay rtp_ping
rtp_timeout filter_noaudio_streams rtp_relay_timestamp_aligning
rtp_force_relay_cn
dtmf_receive_mode_id dtmf_send_mode_id
Expand Down
4 changes: 1 addition & 3 deletions app/resources/api/rest/admin/gateway_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Api::Rest::Admin::GatewayResource < ::BaseResource
:relay_update, :suppress_early_media, :fake_180_timer, :transit_headers_from_origination,
:transit_headers_from_termination, :sip_interface_name, :allow_1xx_without_to_tag, :sip_timer_b,
:dns_srv_failover_timer, :proxy_media, :single_codec_in_200ok,
:force_symmetric_rtp, :symmetric_rtp_nonstop, :symmetric_rtp_ignore_rtcp,
:force_symmetric_rtp, :symmetric_rtp_nonstop,
:force_dtmf_relay, :rtp_ping, :rtp_timeout, :filter_noaudio_streams, :rtp_relay_timestamp_aligning,
:rtp_force_relay_cn, :preserve_anonymous_from_domain, :registered_aor_mode_id,
:incoming_auth_username, :incoming_auth_password, :origination_capacity, :termination_capacity,
Expand Down Expand Up @@ -115,7 +115,6 @@ class Api::Rest::Admin::GatewayResource < ::BaseResource
ransack_filter :single_codec_in_200ok, type: :boolean
ransack_filter :ringing_timeout, type: :number
ransack_filter :symmetric_rtp_nonstop, type: :boolean
ransack_filter :symmetric_rtp_ignore_rtcp, type: :boolean
ransack_filter :resolve_ruri, type: :boolean
ransack_filter :force_dtmf_relay, type: :boolean
ransack_filter :relay_options, type: :boolean
Expand Down Expand Up @@ -227,7 +226,6 @@ def self.updatable_fields(_context)
single_codec_in_200ok
force_symmetric_rtp
symmetric_rtp_nonstop
symmetric_rtp_ignore_rtcp
force_dtmf_relay
rtp_ping
rtp_timeout
Expand Down
Loading

0 comments on commit e020f50

Please sign in to comment.