summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-30 10:01:35 +0100
committerspag <spag@golwen.net>2013-01-30 10:01:35 +0100
commit0dc0b4d44907b51f859e125a00c8b5dbc39c1a6f (patch)
tree4e2ef0049d07019dbab20eca879f6a8ab6a299ab /db/migrate
parent98e26f3e5b7bb7e282a25a7f7ce9af1294a3d3ed (diff)
disable passing of custom headers to gateway
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20130130185300_add_no_copy_headers.rb9
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