summaryrefslogtreecommitdiff
path: root/db/migrate/20130112073300_set_dialplan_variables.rb
blob: 3d538c0600d5df80bc94d03bdcbff350045201fa (plain)
1
2
3
4
5
6
7
8
9
10
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