diff options
author | Peter Kozak <spag@golwen.net> | 2013-04-08 16:05:16 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-04-08 16:05:16 +0200 |
commit | d6adfbba723de9732f24efd71f80c422ae1a40f0 (patch) | |
tree | 5c487b5839443054b12d5aff591879b2e868907b /misc/freeswitch/scripts | |
parent | 8d8bf48aa95f979da8f67d274b66d5c207b8b667 (diff) |
dtmf test
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/functions.lua | 4 |
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'); |