<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    Indeed, there was a bug in the documentation. <br>
    Fix was committed in 1.8 and trunk.<br>
    <br>
    Thanks and Regards,<br>
    <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
    <br>
    On 06/13/2012 11:12 PM, Gledhill, James wrote:
    <blockquote
cite="mid:A671FCA12875564E8CC11878981732BB1577F8DD@mse2be2.mse2.exchange.ms"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 11 (filtered
        medium)">
      <!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
      <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
      <div class="Section1">
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;">I
              read the source code and solved my own
              problem and am reporting back for others, if/when needed.<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;">Additionally,
              it would be good for someone
              to change the code or the documentation.<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;">modparam("lua",
              "<b><span style="font-weight: bold;">filename</span></b>",
              "/etc/opensips/opensips.lua") needs to be &#8230;<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;">modparam("lua",
              "<b><span style="font-weight: bold;">luafilename</span></b>",
              "/etc/opensips/opensips.lua")
              &#8230;<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;">Changing
              the parameter from &#8220;filename&#8221;
              to &#8220;luafilename&#8221;<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;">Thanks<o:p></o:p></span></font></p>
        <div>
          <div class="MsoNormal" style="text-align: center;"
            align="center"><font face="Times New Roman" size="3"><span
                style="font-size: 12pt;">
                <hr tabindex="-1" align="center" size="2" width="100%">
              </span></font></div>
          <p class="MsoNormal"><b><font face="Tahoma" size="2"><span
                  style="font-size: 10pt; font-family: Tahoma;
                  font-weight: bold;">From:</span></font></b><font
              face="Tahoma" size="2"><span style="font-size: 10pt;
                font-family: Tahoma;">
                <a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>
                [<a class="moz-txt-link-freetext" href="mailto:users-bounces@lists.opensips.org">mailto:users-bounces@lists.opensips.org</a>] <b><span
                    style="font-weight: bold;">On Behalf Of </span></b>Gledhill,
                James<br>
                <b><span style="font-weight: bold;">Sent:</span></b>
                Wednesday, June 13, 2012
                1:57 PM<br>
                <b><span style="font-weight: bold;">To:</span></b>
                <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
                <b><span style="font-weight: bold;">Subject:</span></b>
                [OpenSIPS-Users]
                parameter &lt;filename&gt; not found in module
                &lt;lua&gt;</span></font><o:p></o:p></p>
        </div>
        <p class="MsoNormal"><font face="Times New Roman" size="3"><span
              style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">I am trying
              to test/work with the lua module, but having
              difficulties.&nbsp; <o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">When starting
              opensips I get the following error:<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">&lt;25&gt;:
              /usr/local/opensips_proxy/sbin/opensips -f
/usr/local/opensips_proxy/etc/opensips/opensips_jbg_test.cfg<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">Jun 13
              14:40:37 [25953] ERROR:core:set_mod_param_regex:
              parameter &lt;filename&gt; not found in module &lt;lua&gt;<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">Jun 13
              14:40:37 [25953] CRITICAL:core:yyerror: parse error
              in config file
              /usr/local/opensips_proxy/etc/opensips/opensips_jbg_test.cfg,
              line
              90, column 20-21: Parameter &lt;filename&gt; not found in
              module &lt;lua&gt; -
              can't set<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">Jun 13
              14:40:37 [25953] ERROR:core:main: bad config file (1
              errors)<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">----<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">/usr/local/opensips_proxy/etc/opensips/opensips_jbg_test.cfg
has
              the following:<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">&#8230; <o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">loadmodule
              "lua.so"<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">modparam("lua",
              "filename",
              "/usr/local/opensips_proxy/etc/opensips/test.lua")&nbsp; ##
              Line 90<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">&#8230;<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">-------<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">The lua file
              exists and has a function in it:<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"
              lang="ES-TRAD">&lt;26&gt;: ls -la
              /usr/local/opensips_proxy/etc/opensips/test.lua<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">-rw-r--r-- 1
              root root 68 Jun 13 14:24
              /usr/local/opensips_proxy/etc/opensips/test.lua<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">&lt;28&gt;:
              cat
              /usr/local/opensips_proxy/etc/opensips/test.lua<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">-- test lua<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">function
              testFunction()<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              xlog("test
              from lua\n");<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">end<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">------<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">Environment:&nbsp;
              <o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">&nbsp; CentOS
              release 5.8 (Final) &#8211; 64-bit<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">&nbsp; opensips
              1.8<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">&nbsp; Lua 5.1.4<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>