summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-31 20:07:17 +0100
committerspag <spag@golwen.net>2013-01-31 20:07:17 +0100
commit3c0290515e4c097b97ee4fb4d807f9f86c2985a2 (patch)
tree02d67d4086dae688a0a01137a51f56214a5f7da5 /app
parentb3e0cb6887d48374d528227230d0a5a2511f99df (diff)
destinations drop down menu
Diffstat (limited to 'app')
-rw-r--r--app/controllers/call_routes_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/call_routes_controller.rb b/app/controllers/call_routes_controller.rb
index 7cc50ab..894dd61 100644
--- a/app/controllers/call_routes_controller.rb
+++ b/app/controllers/call_routes_controller.rb
@@ -20,6 +20,11 @@ class CallRoutesController < ApplicationController
def new
@call_route = CallRoute.new
+ @endpoints = Gateway.all.collect {|r| [ "gateway: #{r.to_s}", "gateway=#{r.id}" ] }
+ @endpoints << [ 'phonenumber', 'phonenumber=' ]
+ @endpoints << [ 'dialplanfunction', 'dialplanfunction=' ]
+ @endpoints << [ 'hangup', 'hangup=' ]
+ @endpoints << [ 'unknown', 'unknown=' ]
spread_breadcrumbs
end