summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-13 22:55:06 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-13 22:55:06 +0100
commit191649e6bad92940fc502582f8fcdd842807b8e1 (patch)
tree93bdb43735c4db56de16e5b52a5bbc082799e882 /app
parent57097d16d2a7e86f9e03625fd2fb6796504c32a2 (diff)
Restart FreeSWITCH after initial setup.
Diffstat (limited to 'app')
-rw-r--r--app/controllers/gemeinschaft_setups_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/gemeinschaft_setups_controller.rb b/app/controllers/gemeinschaft_setups_controller.rb
index 81faf2a..7205a86 100644
--- a/app/controllers/gemeinschaft_setups_controller.rb
+++ b/app/controllers/gemeinschaft_setups_controller.rb
@@ -46,6 +46,10 @@ class GemeinschaftSetupsController < ApplicationController
GsParameter.where(:name => 'ringtone_url').first.update_attributes(:value => "http://#{@gemeinschaft_setup.sip_domain.host}")
GsParameter.where(:name => 'user_image_url').first.update_attributes(:value => "http://#{@gemeinschaft_setup.sip_domain.host}/uploads/user/image")
+ # Restart FreeSWITCH
+ require 'freeswitch_event'
+ FreeswitchAPI.execute('fsctl', 'shutdown restart')
+
# Auto-Login:
session[:user_id] = user.id