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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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);