summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-08-13 07:32:21 +0200
committerPeter Kozak <spag@golwen.net>2013-08-13 07:32:21 +0200
commitf1e25f83da0e24779b95329b8fa96d7cee867557 (patch)
treeea4cfec15956b92ec601f1d1a5a53d79ade3d987
parent53492ca776b50665beb9fc218015dcde0f3a265b (diff)
yealink routes added
-rw-r--r--config/routes.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index d958c87..abe8c25 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -203,6 +203,10 @@ Gemeinschaft42c::Application.routes.draw do
get "config_polycom/:phone/:sip_account/phone_book" => "config_polycom#phone_book"
get "config_polycom/:phone/:sip_account/call_history" => "config_polycom#call_history"
get "config_polycom/:phone/:sip_account/idle_screen" => "config_polycom#idle_screen"
+
+ #Yealink
+ get "config_yealink/:phone/:sip_account/phone_book" => "config_yealink#phone_book"
+ get "config_yealink/:phone/:sip_account/:phone_book/phone_book" => "config_yealink#phone_book"
# Unified path for Snom phones.
# Enter e.g. "http://192.168.1.105:3000/settings"
@@ -218,6 +222,10 @@ Gemeinschaft42c::Application.routes.draw do
:constraints => { :mac_address => /000413[0-9A-F]{6}/i },
:via => [:get],
:format => 'xml'
+ match 'settings-:mac_address' => 'config_yealink#show',
+ :constraints => { :mac_address => /001565[0-9A-F]{6}/i },
+ :via => [:get],
+ :format => 'text'
match 'snom_vision-:provisioning_key' => 'config_snom#snom_vision',
:via => [:get],
:format => 'xml'
@@ -232,6 +240,10 @@ Gemeinschaft42c::Application.routes.draw do
:constraints => { :mac_address => /0004f2[0-9A-F]{6}/i },
:via => [:get],
:format => 'xml'
+ match ':mac_address.cfg' => 'config_yealink#show',
+ :constraints => { :mac_address => /001565[0-9A-F]{6}/i },
+ :via => [:get],
+ :format => 'text'
match 'settings-:mac_address.cfg' => 'config_polycom#settings',
:constraints => { :mac_address => /0004f2[0-9A-F]{6}/i },
:via => [:get],