diff options
author | spag <spag@golwen.net> | 2012-12-27 23:54:40 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2012-12-27 23:54:40 +0100 |
commit | 43199a00bcb0cc93775a3e3b71abea476a33a1a7 (patch) | |
tree | 74caeb557cf2af01cece85580ad82dcf53fb8a32 /misc/freeswitch | |
parent | 66e54fe90fa3a759a5e33cd018703992da475c63 (diff) |
save date and time to caller record
Diffstat (limited to 'misc/freeswitch')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/dialplan.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/dialplan/dialplan.lua b/misc/freeswitch/scripts/dialplan/dialplan.lua index bb4ad9f..391f5bf 100644 --- a/misc/freeswitch/scripts/dialplan/dialplan.lua +++ b/misc/freeswitch/scripts/dialplan/dialplan.lua @@ -872,6 +872,8 @@ function Dialplan.run(self, destination) self.caller:set_variable('gs_save_cdr', true); self.caller:set_variable('gs_call_service', 'dial'); self.caller.session:setAutoHangup(false); + self.caller.date = os.date('%y%m%d%w'); + self.caller.time = os.date('%H%M%S'); self.routes = common.configuration_file.get('/opt/freeswitch/scripts/ini/routes.ini'); self.caller.domain_local = self.domain; |