<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">what is the exact complete contents of those 2 lua scripts?<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 13, 2016, at 2:15 PM, Andrew Cassidy &lt;<a href="mailto:andrew@cassidywebservices.co.uk" class="">andrew@cassidywebservices.co.uk</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi guys,<div class=""><br class=""></div><div class="">Trying to build a DTMF test using flite TTS. So far I have this:</div><div class=""><br class=""></div><div class=""><pre style="background-color:rgb(20,20,20);color:rgb(248,248,248);font-family:&quot;dejavu sans mono&quot;;font-size:9pt" class=""><span style="color:rgb(191,96,96)" class="">session</span>:<span style="color:rgb(163,157,43)" class="">setVariable</span>(<span style="color:rgb(143,157,106)" class="">"tts_engine"</span><span style="color:rgb(204,120,50)" class="">, </span><span style="color:rgb(143,157,106)" class="">"flite"</span>)<br class=""><span style="background-color:rgb(60,60,87)" class="">session</span>:<span style="color:rgb(163,157,43)" class="">setVariable</span>(<span style="color:rgb(143,157,106)" class="">"tts_voice"</span><span style="color:rgb(204,120,50)" class="">, </span><span style="color:rgb(143,157,106)" class="">"stm"</span>)<br class=""><span style="color:rgb(191,96,96)" class="">digits </span><span style="color:rgb(205,168,105)" class="">= </span><span style="color:rgb(191,96,96)" class="">session</span>:<span style="color:rgb(163,157,43)" class="">playAndGetDigits</span>(<span style="color:rgb(207,106,76)" class="">2</span><span style="color:rgb(204,120,50)" class="">, </span><span style="color:rgb(207,106,76)" class="">30</span><span style="color:rgb(204,120,50)" class="">, </span><span style="color:rgb(207,106,76)" class="">3</span><span style="color:rgb(204,120,50)" class="">, </span><span style="color:rgb(207,106,76)" class="">5000</span><span style="color:rgb(204,120,50)" class="">, </span><span style="color:rgb(143,157,106)" class="">"#"</span><span style="color:rgb(204,120,50)" class="">, </span><span style="color:rgb(143,157,106)" class="">"say:Please enter some digits, followed by the hash key."</span><span style="color:rgb(204,120,50)" class="">, </span><span style="color:rgb(143,157,106)" class="">"say:Sorry, I didn't catch that. Please try again."</span><span style="color:rgb(204,120,50)" class="">, </span><span style="color:rgb(143,157,106)" class="">"\\d+"</span>)<br class=""><span style="color:rgb(191,96,96)" class="">session</span>:<span style="color:rgb(163,157,43)" class="">execute</span>(<span style="color:rgb(143,157,106)" class="">"speak"</span><span style="color:rgb(204,120,50)" class="">, </span><span style="color:rgb(143,157,106)" class="">"flite|stm|" </span><span style="color:rgb(205,168,105)" class="">.. </span><span style="color:rgb(191,96,96)" class="">digits</span>)</pre></div><div class=""><br class=""></div><div class="">I keep getting the following error and can't work out why:</div><div class=""><br class=""></div><div class=""><div class="">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)</div><div class="">stack traceback:</div><div class=""><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>/usr/share/freeswitch/scripts/dtmf_test.lua:2: in main chunk</div></div><div class=""><br class=""></div><div class="">It's mostly something stupid I'm doing, out of everything I'm good at lua isn't one of them!</div><div class=""><br class=""></div><div class="">Does anyone have any ideas what I'm doing wrong?</div><div class=""><br class=""></div><div class="">Kind regards,<br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><b class="">Andrew Cassidy BSc (Hons) MBCS SSCA</b><div class="">Managing Director<div class=""><div class=""><img src="https://docs.google.com/uc?export=download&amp;id=0B48A-71LkjxcRUlpZlNFZmY5Q2s&amp;revid=0B48A-71LkjxcaWJXYm5XZjdGY1czZFF1citBazFCVXV6R0ZnPQ" class=""><br class=""></div><div class=""><div class="">03303 880 960&nbsp;<a href="mailto:andrew@cassidywebservices.co.uk" style="font-size:12.8px" target="_blank" class="">andrew@cassidyweb.co.uk</a>&nbsp;<a href="http://www.cassidywebservices.co.uk/" style="font-size:12.8px" target="_blank" class="">www.cassidyweb.co.uk</a></div></div></div></div></div></div></div></div></div>
</div></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>