<div dir="ltr">Hi Mike,<div><br></div><div>Thanks for responding but I&#39;ve resolved the issue by not being a moron, the code I quoted works just fine.</div><div><br></div><div>The code that was throwing the error is </div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-family:consolas,menlo,&quot;liberation mono&quot;,courier,monospace;font-size:12px;line-height:1.4;color:rgb(51,51,51)"><span class="gmail-n">session</span> <span class="gmail-o" style="font-weight:700">=</span> <span class="gmail-n">freeswitch</span><span class="gmail-p">.</span><span class="gmail-n">Session</span><span class="gmail-p">(</span><span class="gmail-s2" style="color:rgb(187,136,68)">&quot;</span><span class="gmail-s" style="color:rgb(187,136,68)">sofia/external/&quot;</span> <span class="gmail-o" style="font-weight:700">..</span> <span class="gmail-n">argv</span><span class="gmail-p">[</span><span class="gmail-mi" style="color:rgb(0,153,153)">1</span><span class="gmail-p">]</span> <span class="gmail-o" style="font-weight:700">..</span> <span class="gmail-s2" style="color:rgb(187,136,68)">&quot;</span><span class="gmail-s" style="color:rgb(187,136,68)">@<a href="http://london.out.simwood.com">london.out.simwood.com</a>&quot;</span><span class="gmail-p">);</span></pre></div><div><br></div><div>Which has a superfluous semi-colon on the end</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 December 2016 at 19:51, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">what is the exact complete contents of those 2 lua scripts?<div><br><div><blockquote type="cite"><div><div class="h5"><div>On Dec 13, 2016, at 2:15 PM, Andrew Cassidy &lt;<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.<wbr>uk</a>&gt; wrote:</div><br class="m_-5951936965403083136Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">Hi guys,<div><br></div><div>Trying to build a DTMF test using flite TTS. So far I have this:</div><div><br></div><div><pre style="background-color:rgb(20,20,20);color:rgb(248,248,248);font-family:&quot;dejavu sans mono&quot;;font-size:9pt"><span style="color:rgb(191,96,96)">session</span>:<span style="color:rgb(163,157,43)">setVariable</span>(<span style="color:rgb(143,157,106)">&quot;tts_<wbr>engine&quot;</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">&quot;flite&quot;</span>)<br><span style="background-color:rgb(60,60,87)">session</span>:<span style="color:rgb(163,157,43)">setVariable</span>(<span style="color:rgb(143,157,106)">&quot;tts_<wbr>voice&quot;</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">&quot;stm&quot;</span>)<br><span style="color:rgb(191,96,96)">digits </span><span style="color:rgb(205,168,105)">= </span><span style="color:rgb(191,96,96)">session</span>:<span style="color:rgb(163,157,43)">playAndGetDigits</span>(<span style="color:rgb(207,106,76)">2</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(207,106,76)">30</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(207,106,76)">3</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(207,106,76)">5000</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">&quot;#&quot;</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">&quot;say:Please enter some digits, followed by the hash key.&quot;</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">&quot;say:Sorry, I didn&#39;t catch that. Please try again.&quot;</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">&quot;\\d+&quot;</span>)<br><span style="color:rgb(191,96,96)">session</span>:<span style="color:rgb(163,157,43)">execute</span>(<span style="color:rgb(143,157,106)">&quot;speak&quot;</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(143,157,106)">&quot;flite|stm|&quot; </span><span style="color:rgb(205,168,105)">.. </span><span style="color:rgb(191,96,96)">digits</span>)</pre></div><div><br></div><div>I keep getting the following error and can&#39;t work out why:</div><div><br></div><div><div>2016-12-13 19:16:10.377932 [ERR] mod_lua.cpp:203 /usr/share/freeswitch/scripts/<wbr>dtmf_test.lua:9: attempt to concatenate field &#39;?&#39; (a nil value)</div><div>stack traceback:</div><div><span class="m_-5951936965403083136gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>/usr/share/freeswitch/scripts/<wbr>dtmf_test.lua:2: in main chunk</div></div><div><br></div><div>It&#39;s mostly something stupid I&#39;m doing, out of everything I&#39;m good at lua isn&#39;t one of them!</div><div><br></div><div>Does anyone have any ideas what I&#39;m doing wrong?</div><div><br></div><div>Kind regards,<br clear="all"><div><br></div>-- <br><div class="m_-5951936965403083136gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="https://docs.google.com/uc?export=download&amp;id=0B48A-71LkjxcRUlpZlNFZmY5Q2s&amp;revid=0B48A-71LkjxcaWJXYm5XZjdGY1czZFF1citBazFCVXV6R0ZnPQ"><br></div><div><div><a href="tel:0330%20388%200960" value="+443303880960" target="_blank">03303 880 960</a> <a href="mailto:andrew@cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">andrew@cassidyweb.co.uk</a> <a href="http://www.cassidywebservices.co.uk/" style="font-size:12.8px" target="_blank">ww<wbr>w.cassidyweb.co.uk</a></div></div></div></div></div></div></div></div></div>
</div></div></div></div>
______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></blockquote></div><br></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="https://docs.google.com/uc?export=download&amp;id=0B48A-71LkjxcRUlpZlNFZmY5Q2s&amp;revid=0B48A-71LkjxcaWJXYm5XZjdGY1czZFF1citBazFCVXV6R0ZnPQ"><br></div><div><div>03303 880 960 <a href="mailto:andrew@cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">andrew@cassidyweb.co.uk</a> <a href="http://www.cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">www.cassidyweb.co.uk</a></div></div></div></div></div></div></div></div></div>
</div>