diff options
author | spag <spag@golwen.net> | 2013-01-30 10:01:35 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-30 10:01:35 +0100 |
commit | 0dc0b4d44907b51f859e125a00c8b5dbc39c1a6f (patch) | |
tree | 4e2ef0049d07019dbab20eca879f6a8ab6a299ab | |
parent | 98e26f3e5b7bb7e282a25a7f7ce9af1294a3d3ed (diff) |
disable passing of custom headers to gateway
-rw-r--r-- | db/migrate/20130130185300_add_no_copy_headers.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130130185300_add_no_copy_headers.rb b/db/migrate/20130130185300_add_no_copy_headers.rb new file mode 100644 index 0000000..c2c5c90 --- /dev/null +++ b/db/migrate/20130130185300_add_no_copy_headers.rb @@ -0,0 +1,9 @@ +class AddNoCopyHeaders < ActiveRecord::Migration + def up + GsParameter.create(:entity => 'dialplan', :section => 'variables', :name => 'sip_copy_custom_headers', :value => 'false', :class_type => 'Boolean', :description => 'Controls passing SIP headers from one call leg to another.') + end + + def down + GsParameter.create(:entity => 'dialplan', :section => 'variables', :name => 'sip_copy_custom_headers').destroy_all + end +end |