From ce44ece18e64dc0bccee4cab680b965a38c0522d Mon Sep 17 00:00:00 2001 From: spag Date: Sat, 12 Jan 2013 09:07:50 +0100 Subject: dialplan variables set --- db/migrate/20130112073300_set_dialplan_variables.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20130112073300_set_dialplan_variables.rb (limited to 'db/migrate/20130112073300_set_dialplan_variables.rb') diff --git a/db/migrate/20130112073300_set_dialplan_variables.rb b/db/migrate/20130112073300_set_dialplan_variables.rb new file mode 100644 index 0000000..3d538c0 --- /dev/null +++ b/db/migrate/20130112073300_set_dialplan_variables.rb @@ -0,0 +1,11 @@ +class SetDialplanVariables < ActiveRecord::Migration + def up + GsParameter.create(:entity => 'dialplan', :section => 'variables', :name => 'ringback', :value => '%(2000,4000,440.0,480.0)', :class_type => 'String') + GsParameter.create(:entity => 'dialplan', :section => 'variables', :name => 'send_silence_when_idle', :value => 0, :class_type => 'Integer') + GsParameter.create(:entity => 'dialplan', :section => 'variables', :name => 'hold_music', :value => 'local_stream://moh', :class_type => 'String') + end + + def down + GsParameter.where(:entity => 'dialplan', :section => 'variables').destroy_all + end +end -- cgit v1.2.3