summaryrefslogtreecommitdiff
path: root/app/controllers/call_routes_controller.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-17 02:08:18 -0400
committerPeter Kozak <spag@golwen.net>2013-03-17 02:08:18 -0400
commit87655b8f02c5cdefc44abbacea8e60deefaf77c4 (patch)
treecc257878e7922c6b1bb5466c5cf6fd0f48f19174 /app/controllers/call_routes_controller.rb
parent1702b51b05ca73751bd52c715dd453f98d9b578f (diff)
set caller account
Diffstat (limited to 'app/controllers/call_routes_controller.rb')
-rw-r--r--app/controllers/call_routes_controller.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/controllers/call_routes_controller.rb b/app/controllers/call_routes_controller.rb
index 819b593..e5cf56a 100644
--- a/app/controllers/call_routes_controller.rb
+++ b/app/controllers/call_routes_controller.rb
@@ -97,7 +97,15 @@ class CallRoutesController < ApplicationController
if account
destination_number = params[:destination_number]
routing_table = params[:routing_table]
- @route_test = CallRoute.test_route(routing_table, {'caller.destination_number' => destination_number, 'caller.auth_account_type' => account.class.name, 'caller.auth_account_id' => account.id, 'caller.auth_account_uuid' => account.try(:uuid)})
+ @route_test = CallRoute.test_route(routing_table, {
+ 'caller.destination_number' => destination_number,
+ 'caller.auth_account_type' => account.class.name,
+ 'caller.auth_account_id' => account.id,
+ 'caller.auth_account_uuid' => account.try(:uuid),
+ 'caller.account_type' => account.class.name,
+ 'caller.account_id' => account.id,
+ 'caller.account_uuid' => account.try(:uuid),
+ })
end
end