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:
@@ -276,16 +276,17 @@
|
|||||||
--unset bind meta app
|
--unset bind meta app
|
||||||
session:execute("unbind_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
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--set the callback function
|
||||||
|
if (session:ready()) then
|
||||||
|
session:setVariable("playback_terminators", "#");
|
||||||
|
session:setInputCallback("on_dtmf", "");
|
||||||
|
end
|
||||||
|
|
||||||
--general functions
|
--general functions
|
||||||
require "resources.functions.base64";
|
require "resources.functions.base64";
|
||||||
require "resources.functions.trim";
|
require "resources.functions.trim";
|
||||||
|
|||||||
Reference in New Issue
Block a user