From ab64efe581e0099a01c2bbc836c2ec10a48d7ab1 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Tue, 23 Jul 2013 12:59:35 +0200 Subject: snom provisioning routes --- config/routes.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 707d0fc..86bbca6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -206,13 +206,24 @@ Gemeinschaft42c::Application.routes.draw do # Unified path for Snom phones. # Enter e.g. "http://192.168.1.105:3000/settings" # as the Setting URL (Advanced -> Update). - match 'snom-:provisioning_key' => 'config_snom#show', + match 'snom-:provisioning_key' => 'config_snom#snom_phone', + :via => [:get], + :format => 'xml' + match 'snom-:provisioning_key-:mac_address' => 'config_snom#snom_phone', + :constraints => { :mac_address => /000413[0-9A-F]{6}/i }, :via => [:get], :format => 'xml' match 'settings-:mac_address' => 'config_snom#show', :constraints => { :mac_address => /000413[0-9A-F]{6}/i }, :via => [:get], :format => 'xml' + match 'snom_vision-:provisioning_key' => 'config_snom#snom_vision', + :via => [:get], + :format => 'xml' + match 'snom_vision-:provisioning_key-:mac_address' => 'config_snom#snom_vision', + :constraints => { :mac_address => /000413[0-9A-F]{6}/i }, + :via => [:get], + :format => 'xml' match "/DeploymentService/LoginService" => 'config_siemens#index', :via => [:post], :format => 'xml' @@ -327,6 +338,7 @@ Gemeinschaft42c::Application.routes.draw do resources :phones, :only => [] do resources :phone_sip_accounts + resources :extension_modules end # Display all phone book entries that the current user can access: -- cgit v1.2.3