diff options
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 46562eb..d958c87 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,6 +11,8 @@ Gemeinschaft42c::Application.routes.draw do resources :sip_accounts, :only => [:show, :index] resources :pager_groups resources :phone_numbers, :only => [:show, :index] + resources :calls, :only => [:index, :show, :update] + resources :phone_book_entries, :only => [:index] end resources :rows @@ -74,6 +76,7 @@ Gemeinschaft42c::Application.routes.draw do resources :gateways do resources :gateway_settings resources :gateway_parameters + resources :gateway_headers end resources :gs_parameters, :only => [:show, :index, :update, :edit] @@ -204,13 +207,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' @@ -325,6 +339,11 @@ Gemeinschaft42c::Application.routes.draw do resources :phones, :only => [] do resources :phone_sip_accounts + resources :extension_modules do + member do + put 'restart' + end + end end # Display all phone book entries that the current user can access: |