Update dtmf_handler.lua

Event-Date-Timestamp resolution is in microseconds, transfer_history is only seconds. We need have the same key.
This commit is contained in:
Luis Daniel Lucio Quiroz
2021-03-17 19:19:55 -04:00
committed by GitHub
parent 908e7f67d6
commit fa12c4daea

View File

@@ -4,7 +4,8 @@
--freeswitch.consoleLog("NOTICE", "Serial!\n" .. s)
local call_uuid = event:getHeader("Caller-Unique-ID");
local channel_timestamp = event:getHeader("Event-Date-Timestamp");
--local channel_timestamp = event:getHeader("Event-Date-Timestamp");
local channel_timestamp = os.time();
local dtmf_value = event:getHeader("DTMF-Digit");
local session = freeswitch.Session(call_uuid);