summaryrefslogtreecommitdiff
path: root/app/controllers/sip_accounts_controller.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-26 09:21:34 -0500
committerPeter Kozak <spag@golwen.net>2013-02-26 09:21:34 -0500
commit0a976c6b463288df4a9516bbd08f6232a37d427c (patch)
tree4fd75b7654bbe056408bb724c6fd0092b49ae064 /app/controllers/sip_accounts_controller.rb
parentad2121462a9ea9a776756a188779a9d504f078b7 (diff)
enable tel: handling for sip_accounts
Diffstat (limited to 'app/controllers/sip_accounts_controller.rb')
-rw-r--r--app/controllers/sip_accounts_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/sip_accounts_controller.rb b/app/controllers/sip_accounts_controller.rb
index b5c3ae4..2886c8b 100644
--- a/app/controllers/sip_accounts_controller.rb
+++ b/app/controllers/sip_accounts_controller.rb
@@ -10,6 +10,7 @@ class SipAccountsController < ApplicationController
end
def show
+ @register_tel_protocol = "#{request.protocol}#{request.host_with_port}/sip_accounts/#{@sip_account.try(:id)}/call?url=%s"
end
def new
@@ -74,6 +75,10 @@ class SipAccountsController < ApplicationController
redirect_to :root, :notice => t('sip_accounts.controller.successfuly_destroyed')
end
+ def call
+ redirect_to(:back)
+ end
+
private
def set_and_authorize_parent
@parent = @user || @tenant