summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 15:33:06 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 15:33:06 +0100
commit39aa7132ceed3d4beab3a9b828e571bbfc67c07e (patch)
tree6c88289c9f99be0af8635636fcdf64102090e5ec /config/routes.rb
parent5ad8203ce4f1bfea997960d0b52c626dea24b944 (diff)
parent6f69c1a85055ec7c2515719d79d2a7a4e60cec50 (diff)
Merge branch 'develop'5.1-beta1
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb33
1 files changed, 30 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 33238dc..22a36e5 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,4 +1,30 @@
Gemeinschaft42c::Application.routes.draw do
+
+ scope :constraints => lambda{|req|%w(127.0.0.1).include? req.remote_addr} do
+ get "trigger/voicemail"
+ get "trigger/fax"
+ end
+
+ resources :call_routes do
+ resources :route_elements do
+ member do
+ put 'move_higher'
+ put 'move_lower'
+ end
+ end
+ member do
+ put 'move_higher'
+ put 'move_lower'
+ end
+ end
+
+ resources :gateways do
+ resources :gateway_settings
+ resources :gateway_parameters
+ end
+
+ resources :gs_parameters, :only => [:show, :index, :update, :edit]
+
resources :automatic_call_distributors
resources :gs_cluster_sync_log_entries
@@ -53,7 +79,7 @@ Gemeinschaft42c::Application.routes.draw do
end
end
- if CALLTHROUGH_HAS_WHITELISTS == true
+ if GsParameter.get('CALLTHROUGH_HAS_WHITELISTS') == true
resources :whitelists, :only => [] do
resources :phone_numbers do
member do
@@ -237,7 +263,7 @@ Gemeinschaft42c::Application.routes.draw do
resources :conferences
resources :phone_number_ranges
resources :callthroughs
- if CALLTHROUGH_HAS_WHITELISTS == true
+ if GsParameter.get('CALLTHROUGH_HAS_WHITELISTS') == true
resources :whitelists
end
resources :hunt_groups
@@ -252,7 +278,7 @@ Gemeinschaft42c::Application.routes.draw do
put 'move_lower'
end
end
- if CALLTHROUGH_HAS_WHITELISTS == true
+ if GsParameter.get('CALLTHROUGH_HAS_WHITELISTS') == true
resources :whitelists
end
end
@@ -302,6 +328,7 @@ Gemeinschaft42c::Application.routes.draw do
member do
put 'move_higher'
put 'move_lower'
+ put 'call'
end
end
end