summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-14 05:16:25 -0400
committerPeter Kozak <spag@golwen.net>2013-03-14 05:16:25 -0400
commit05619cea39af74cb538598c598abf4427319de5f (patch)
tree318766ceb5c108a6126de74f404516c4da0714ef
parent7c5c0f972b6127335bc1f9b3141b8df0c5d35fbf (diff)
save destination in caller table
-rw-r--r--misc/freeswitch/scripts/test_route.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/test_route.lua b/misc/freeswitch/scripts/test_route.lua
index e311690..98dfda9 100644
--- a/misc/freeswitch/scripts/test_route.lua
+++ b/misc/freeswitch/scripts/test_route.lua
@@ -65,6 +65,8 @@ if destination and destination.type == 'unknown' then
destination.callee_id_name = nil;
end
+caller.destination = destination;
+
require 'dialplan.router';
routes = dialplan.router.Router:new{ log = log, database = database, caller = caller, variables = caller, log_details = true }:route_run(arguments.table or 'outbound');