<div dir="ltr"><div style="font-size:12.8000001907349px"><span style="background-color:rgba(255,255,255,0)">2015-04-01 10:39:34.860517 [ERR] mod_lua.cpp:203 ...itch/scripts/resources/functions/database_handle.lua:5: attempt to index global 'database' (a nil value)</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div>That means you're trying to use a variable named database that has not yet been set.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 April 2015 at 23:31, Ing. Antonyam <span dir="ltr"><<a href="mailto:ing.antonyam@gmail.com" target="_blank">ing.antonyam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi</div><div><br></div><div>I change of permisión and Now i have this error:</div><div><br></div><div><span style="background-color:rgba(255,255,255,0)">2015-04-01 10:39:34.860517 [ERR] mod_lua.cpp:203 ...itch/scripts/resources/functions/database_handle.lua:5: attempt to index global 'database' (a nil value)</span></div><div><span style="background-color:rgba(255,255,255,0)">stack traceback:</span></div><div><span style="background-color:rgba(255,255,255,0)"><span>        </span>...itch/scripts/resources/functions/database_handle.lua:5: in function 'database_handle'</span></div><div><span style="background-color:rgba(255,255,255,0)"><span>        </span>...ml_handler/resources/scripts/directory/directory.lua:113: in main chunk</span></div><div><span style="background-color:rgba(255,255,255,0)"><span>        </span>[C]: in function 'dofile'</span></div><div><span style="background-color:rgba(255,255,255,0)"><span>        </span>...r/local/freeswitch/scripts/app/xml_handler/index.lua:110: in main chunk</span></div><div><span style="background-color:rgba(255,255,255,0)"><span>        </span>/usr/local/freeswitch/scripts/app.lua:50: in main chunk</span></div><div><span style="background-color:rgba(255,255,255,0)">2015-04-01 10:39:34.860530 [ERR] mod_lua.cpp:269 LUA script parse/ejecutes</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div>Regatas. </div><div><div class="h5"><div><br>El 31/03/2015, a las 13:35, Steven Ayre <<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>> escribió:<br><br></div><blockquote type="cite"><div><div dir="ltr">It's probably a file permission problem. Linux returns the same 'no such file' error for both missing files and permission errors.<div><br></div><div>Does the 'freeswitch' user have +r on the file and +rx on every directory component in the path - either through user (u), group (g) or other (o)?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 31 March 2015 at 20:21, Antony Aguirre Morales <span dir="ltr"><<a href="mailto:ing.antonyam@gmail.com" target="_blank">ing.antonyam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div><div>Install fusionpbx to manage freeswitch, perform the configuration of lua module enable these lines in lua.conf.xml</div><div><br></div><div><param name = "xml-handler-script" value = "app.lua xml_handler" /></div><div> <param name = "xml-handler-bindings" value = "dialplan | directory | configuration" /></div><div><br></div><div>I am using the script for the configuration that comes in the pbx in the following path:</div><div><br></div><div>/ var / www / html / fusionpbx / resources / install / scripts</div><div><br></div><div>copy them to the following path freeswitch:</div><div><br></div><div>/ usr / local / freeswitch / scripts /</div><div><br></div><div>but when you start freeswitch shows me the following errors have some idea:</div><div><br></div><div><div>2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:203 cannot open /usr/local/freeswitch/scripts/resources/config.lua: No such file or directory</div><div>stack traceback:</div><div><span style="white-space:pre-wrap">        </span>[C]: in function 'dofile'</div><div><span style="white-space:pre-wrap">        </span>/usr/local/freeswitch/scripts/app.lua:30: in main chunk</div><div>2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:269 LUA script parse/execute error!</div><div>2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:203 cannot open /usr/local/freeswitch/scripts/resources/config.lua: No such file or directory</div><div>stack traceback:</div><div><span style="white-space:pre-wrap">        </span>[C]: in function 'dofile'</div><div><span style="white-space:pre-wrap">        </span>/usr/local/freeswitch/scripts/app.lua:30: in main chunk</div><div>2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:269 LUA script parse/execute error!</div><div>2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:203 cannot open /usr/local/freeswitch/scripts/resources/config.lua: No such file or directory</div><div>stack traceback:</div><div><span style="white-space:pre-wrap">        </span>[C]: in function 'dofile'</div><div><span style="white-space:pre-wrap">        </span>/usr/local/freeswitch/scripts/app.lua:30: in main chunk</div><div>2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:269 LUA script parse/execute error!</div></div><div><br></div><div>Regards.</div>
</div></div>
<br>_________________________________________________________________________<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.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.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.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services: </span><br><span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></div></blockquote></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.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.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">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>