summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-12 09:07:50 +0100
committerspag <spag@golwen.net>2013-01-12 09:07:50 +0100
commitce44ece18e64dc0bccee4cab680b965a38c0522d (patch)
tree1fea961e1d974a08005c393099e0f600502a33a8
parent81dfa5ac9a7c6b25526109d11309706260a739f5 (diff)
dialplan variables set
-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