To allow recording termination when the extension is entered by menu (*98) (#3956)

It was not possible to terminate a recording with a keypress when *98 was used.
*98ext was working.
This commit is contained in:
ednt 2019-01-09 21:49:08 +01:00 committed by FusionPBX
parent 935b8888cd
commit 0ffb8d4c7d
1 changed files with 6 additions and 5 deletions

View File

@ -276,16 +276,17 @@
--unset bind meta app
session:execute("unbind_meta_app", "");
--set the callback function
if (session:ready()) then
session:setVariable("playback_terminators", "#");
session:setInputCallback("on_dtmf", "");
end
end
end
end
end
--set the callback function
if (session:ready()) then
session:setVariable("playback_terminators", "#");
session:setInputCallback("on_dtmf", "");
end
--general functions
require "resources.functions.base64";
require "resources.functions.trim";