summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/dialplan/functions.lua
diff options
context:
space:
mode:
Diffstat (limited to 'misc/freeswitch/scripts/dialplan/functions.lua')
-rw-r--r--misc/freeswitch/scripts/dialplan/functions.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/dialplan/functions.lua b/misc/freeswitch/scripts/dialplan/functions.lua
index 0c30b86..7519ff9 100644
--- a/misc/freeswitch/scripts/dialplan/functions.lua
+++ b/misc/freeswitch/scripts/dialplan/functions.lua
@@ -918,13 +918,15 @@ end
function Functions.test(self, caller, name)
if tostring(name) == 'dtmf' then
+ self.log:info('FUNCTION_TEST_DTMF');
local digits = '';
+ caller:answer();
while caller:ready() do
if digits == '' then
caller:playback('ivr/ivr-love_those_touch_tones.wav');
end
digits = caller.session:read(1, 1, '', 5000, '');
- self.log:devel('DTMF: ', digits);
+ self.log:info('DTMF: ', digits);
caller:send_display('DTMF: ', digits);
if digits == '*' then
caller:playback('digits/star.wav');