summaryrefslogtreecommitdiff
path: root/db/migrate/20130112073300_set_dialplan_variables.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20130112073300_set_dialplan_variables.rb')
-rw-r--r--db/migrate/20130112073300_set_dialplan_variables.rb11
1 files changed, 11 insertions, 0 deletions
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