<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">OK, so replying to myself, I think I
need to include the string library... I can see in lua.conf.xml
that one can have a "module-directory" but I'm not sure where I
should get these modules from. Any recommended quick reading on
this?<br>
</div>
<blockquote cite="mid:4FDF5D9D.4060707@thewinelake.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">More lua trouble - real beginner
stuff, I'm afraid.<br>
<br>
Why does this not work:<br>
<br>
destnum = session:playAndGetDigits(3, 20, 3, 5000, "#",
"/home/oev/fs-pabx/prompts/dmsb12_mcm3.wav", "", "\\d+\\*")<br>
l = strlen(destnum)<br>
<br>
The objection is<br>
<br>
<br>
2012-06-18 16:52:30.415261 [ERR] mod_lua.cpp:198
/usr/local/freeswitch/scripts/mcm2.lua:13: attempt to call
global 'strlen' (a nil value)<br>
stack traceback:<br>
/usr/local/freeswitch/scripts/mcm2.lua:13: in function
'getDestNumber'<br>
/usr/local/freeswitch/scripts/mcm2.lua:49: in function
'unattendedTransfer'<br>
/usr/local/freeswitch/scripts/mcm2.lua:24: in function
'processMcmOption'<br>
/usr/local/freeswitch/scripts/mcm2.lua:153: in main
chunk<br>
<br>
I was just assuming that lua is lua and that anything in the lua
wiki (eg. <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://www.lua.org/manual/2.4/node32.html#exstring">http://www.lua.org/manual/2.4/node32.html#exstring</a>)
would work. <br>
<br>
</div>
<blockquote
cite="mid:CALNZuwmhmW7Yp1owGtLK+z8EhG=URxn7c0YpZtkyZvFU24SNMA@mail.gmail.com"
type="cite">
<div dir="ltr">Phrases let you mix and match speak, say,
play-file, silence, other macros, and even passing in options.<br>
<br>
<div><a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_phrase">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_phrase</a><br>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Speech_Phrase_Management">http://wiki.freeswitch.org/wiki/Speech_Phrase_Management</a><br>
<br>
<div>-Avi<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<p class="" avgcert""="" color="#000000" align="left">No virus
found in this message.<br>
Checked by AVG - <a moz-do-not-send="true"
href="http://www.avg.com">www.avg.com</a><br>
Version: 2012.0.2177 / Virus Database: 2433/5076 - Release
Date: 06/17/12</p>
</blockquote>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<p class="" avgcert""="" color="#000000" align="left">No virus
found in this message.<br>
Checked by AVG - <a moz-do-not-send="true"
href="http://www.avg.com">www.avg.com</a><br>
Version: 2012.0.2177 / Virus Database: 2437/5077 - Release Date:
06/18/12</p>
</blockquote>
<br>
<br>
</body>
</html>