<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Thank You!<br>
    <br>
    <blockquote
      cite="mid:BANLkTi=rPGC2FA0FdNhO-vXn-6wYBfgfZA@mail.gmail.com"
      type="cite"><a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_get_Lua_to_see_my_own_libraries_using_.22require.22">http://wiki.freeswitch.org/wiki/Mod_lua#How_can_I_get_Lua_to_see_my_own_libraries_using_.22require.22</a><br>
      <br>
      <br>
      <div class="gmail_quote">On Tue, Apr 19, 2011 at 2:00 PM, Boris
        Kovalenko <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div text="#000000" bgcolor="#ffffff"> Hello!<br>
            <br>
            &nbsp;&nbsp;&nbsp; Would You please explain why?? I have no db_connect.lua
            in my scripts directory and also no freeswitch installed in
            /usr/local/freeswitch. <br>
            <div>
              <div class="h5"> <br>
                <blockquote type="cite">Before run Freeswitch you have
                  to put this command:<br>
                  <br>
                  export
                  LUA_PATH=/usr/local/freeswitch/scripts/db_connect.lua<br>
                  <br>
                  <br>
                  <div class="gmail_quote">On Tue, Apr 19, 2011 at 10:34
                    AM, Boris Kovalenko <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:boris@tagnet.ru" target="_blank">boris@tagnet.ru</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">Hello!<br>
                      <br>
                      &nbsp; &nbsp; I want to include LUA script into another LUA
                      script. I have<br>
                      modified lua.conf.xml and set &lt;param
                      name="script-directory"<br>
                      value="$${base_dir}/scripts/?"/&gt; and restarted
                      freeswitch. In my script<br>
                      called test1.lua I wrote: require('test2.lua');<br>
                      test2.lua is placed into the same directory as
                      test1.lua, and directory<br>
                      is /opt/fs/scripts/. But luarun test1.lua gives an
                      error:<br>
                      &nbsp;2011-04-19 10:14:40.651205 [ERR] mod_lua.cpp:182<br>
                      /opt/fs/scripts/test1.lua:3: module 'test2.lua'
                      not found:<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no field package.preload['test2.lua']<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no file '/opt/fs/scripts/test2/lua'<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no file './test2/lua.so'<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no file './libtest2/lua51.so'<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no file
                      '/usr/local/lib/lua/5.1/test2/lua.so'<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no file
                      '/usr/local/lib/lua/5.1/libtest2/lua51.so'<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no file
                      '/usr/local/lib/lua/5.1/loadall.so'<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no file './test2.so'<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no file './libtest251.so'<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no file '/usr/local/lib/lua/5.1/test2.so'<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no file
                      '/usr/local/lib/lua/5.1/libtest251.so'<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; no file
                      '/usr/local/lib/lua/5.1/loadall.so'<br>
                      stack traceback:<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; [C]: in function 'require'<br>
                      &nbsp; &nbsp; &nbsp; &nbsp; /opt/fs/scripts/test1.lua:3: in main chunk<br>
                      <br>
                      <br>
                      What is wrong with my setup?<br>
                      <br>
                      --<br>
                      Regards,<br>
                      Boris<br>
                      <br>
                      <br>
                      <br>
                      _______________________________________________<br>
                      FreeSWITCH-users mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                        target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                      <a moz-do-not-send="true"
                        href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                        target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                      UNSUBSCRIBE:<a moz-do-not-send="true"
                        href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                        target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                      <a moz-do-not-send="true"
                        href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                    </blockquote>
                  </div>
                  <br>
                  <br clear="all">
                  <br>
                  -- <br>
                  Regards <br>
                  ---------- <br>
                  M Emran<br>
                  <br>
                  E-Mail: <a moz-do-not-send="true"
                    href="mailto:info@e-softbilling.com" target="_blank">info@e-softbilling.com</a><br>
                  Web: <a moz-do-not-send="true"
                    href="http://www.e-softbilling.com/" target="_blank">www.e-softbilling.com</a><br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
                    href="http://www.isoftswitch.com/" target="_blank">www.isoftswitch.com</a><br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
                    href="http://www.howtonix.com/" target="_blank">www.howtonix.com</a><br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
                    href="http://www.sipmobiledialer.com/"
                    target="_blank">www.sipmobiledialer.com</a><br>
                  <pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
                </blockquote>
                <br>
                <br>
              </div>
            </div>
            <pre cols="72">-- 
Regards,
Boris

</pre>
          </div>
          <br>
          _______________________________________________<br>
          FreeSWITCH-users mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
          <a moz-do-not-send="true"
            href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
            target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
          UNSUBSCRIBE:<a moz-do-not-send="true"
            href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
            target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
          <a moz-do-not-send="true" href="http://www.freeswitch.org"
            target="_blank">http://www.freeswitch.org</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Regards <br>
      ---------- <br>
      M Emran<br>
      <br>
      E-Mail: <a moz-do-not-send="true"
        href="mailto:info@e-softbilling.com" target="_blank">info@e-softbilling.com</a><br>
      Web: <a moz-do-not-send="true"
        href="http://www.e-softbilling.com/" target="_blank">www.e-softbilling.com</a><br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
        href="http://www.isoftswitch.com/" target="_blank">www.isoftswitch.com</a><br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
        href="http://www.howtonix.com/" target="_blank">www.howtonix.com</a><br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
        href="http://www.sipmobiledialer.com/" target="_blank">www.sipmobiledialer.com</a><br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
&#1057; &#1091;&#1074;&#1072;&#1078;&#1077;&#1085;&#1080;&#1077;&#1084;,
  &#1041;&#1086;&#1088;&#1080;&#1089; &#1050;&#1086;&#1074;&#1072;&#1083;&#1077;&#1085;&#1082;&#1086;
  &#1047;&#1040;&#1054; "&#1058;&#1072;&#1075;&#1085;&#1077;&#1090;"
  &#1090;&#1077;&#1083;. +7 (3435) 230001
  &#1092;&#1072;&#1082;&#1089; +7 (3435) 230005
</pre>
  </body>
</html>