[Freeswitch-users] Lua DTMF Test

Andrew Cassidy andrew at cassidywebservices.co.uk
Tue Dec 13 22:15:59 MSK 2016


Hi guys,

Trying to build a DTMF test using flite TTS. So far I have this:

session:setVariable("tts_engine", "flite")
session:setVariable("tts_voice", "stm")
digits = session:playAndGetDigits(2, 30, 3, 5000, "#", "say:Please
enter some digits, followed by the hash key.", "say:Sorry, I didn't
catch that. Please try again.", "\\d+")
session:execute("speak", "flite|stm|" .. digits)


I keep getting the following error and can't work out why:

2016-12-13 19:16:10.377932 [ERR] mod_lua.cpp:203
/usr/share/freeswitch/scripts/dtmf_test.lua:9: attempt to concatenate field
'?' (a nil value)
stack traceback:
/usr/share/freeswitch/scripts/dtmf_test.lua:2: in main chunk

It's mostly something stupid I'm doing, out of everything I'm good at lua
isn't one of them!

Does anyone have any ideas what I'm doing wrong?

Kind regards,

-- 
*Andrew Cassidy BSc (Hons) MBCS SSCA*
Managing Director

03303 880 960 andrew at cassidyweb.co.uk <andrew at cassidywebservices.co.uk>
www.cassidyweb.co.uk <http://www.cassidywebservices.co.uk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161213/82600031/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list