From fdab546ae6710e8b870d4b7a46a4283e2f20d86c Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Wed, 22 May 2013 00:35:22 +0200 Subject: date/time in routing test fixed --- misc/freeswitch/scripts/test_route.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'misc/freeswitch/scripts/test_route.lua') diff --git a/misc/freeswitch/scripts/test_route.lua b/misc/freeswitch/scripts/test_route.lua index 98dfda9..4a879d1 100644 --- a/misc/freeswitch/scripts/test_route.lua +++ b/misc/freeswitch/scripts/test_route.lua @@ -41,6 +41,8 @@ local dialplan_object = dialplan.dialplan.Dialplan:new{ log = log, caller = call dialplan_object:configuration_read(); caller.dialplan = dialplan_object; caller.local_node_id = dialplan_object.node_id; +caller.date = os.date('%y%m%d%w'); +caller.time = os.date('%H%M%S'); dialplan_object:retrieve_caller_data(); local destination = arguments.destination or dialplan_object:destination_new{ number = caller.destination_number }; -- cgit v1.2.3