Listen for dtmf key presses when voicemail message is played.
This commit is contained in:
parent
bbf9ca9203
commit
5a2e78dc29
|
|
@ -31,6 +31,11 @@
|
||||||
max_digits = 1;
|
max_digits = 1;
|
||||||
--flush dtmf digits from the input buffer
|
--flush dtmf digits from the input buffer
|
||||||
session:flushDigits();
|
session:flushDigits();
|
||||||
|
--set the callback function
|
||||||
|
if (session:ready()) then
|
||||||
|
session:setVariable("playback_terminators", "#");
|
||||||
|
session:setInputCallback("on_dtmf", "");
|
||||||
|
end
|
||||||
--set the display
|
--set the display
|
||||||
if (session:ready()) then
|
if (session:ready()) then
|
||||||
reply = api:executeString("uuid_display "..session:get_uuid().." "..caller_id_number);
|
reply = api:executeString("uuid_display "..session:get_uuid().." "..caller_id_number);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue