diff options
author | Peter Kozak <spag@golwen.net> | 2013-07-23 12:59:35 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-07-23 12:59:35 +0200 |
commit | ab64efe581e0099a01c2bbc836c2ec10a48d7ab1 (patch) | |
tree | c659864f6982c839b36de0d73a4f9562b6d65f6a /config | |
parent | d86835d5cf124e2c48eae9f3b7e3ba235c229614 (diff) |
snom provisioning routes
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 14 |
1 files changed, 13 insertions, 1 deletions
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: |