Listen for dtmf key presses when voicemail message is played.

This commit is contained in:
markjcrane
2015-10-14 16:03:33 -07:00
parent bbf9ca9203
commit 5a2e78dc29

View File

@@ -31,6 +31,11 @@
max_digits = 1;
--flush dtmf digits from the input buffer
session:flushDigits();
--set the callback function
if (session:ready()) then
session:setVariable("playback_terminators", "#");
session:setInputCallback("on_dtmf", "");
end
--set the display
if (session:ready()) then
reply = api:executeString("uuid_display "..session:get_uuid().." "..caller_id_number);