From 0dc0b4d44907b51f859e125a00c8b5dbc39c1a6f Mon Sep 17 00:00:00 2001 From: spag Date: Wed, 30 Jan 2013 10:01:35 +0100 Subject: disable passing of custom headers to gateway --- db/migrate/20130130185300_add_no_copy_headers.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20130130185300_add_no_copy_headers.rb (limited to 'db') 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 -- cgit v1.2.3