summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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');