<div dir="ltr">Thank you all. I'm using the Debian package 1.6.2 freeswitch-all, so I guess the start option is only valid for me - or using full path location for my lua script.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 27, 2015 at 10:36 AM, Matt Broad <span dir="ltr"><<a href="mailto:matt@supportedbusiness.com" target="_blank">matt@supportedbusiness.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">You can also use "--with-scriptdir" when configuring Freeswitch.<div><br></div><div>e.g. ./configure --with-scriptdir=<span style="font-size:12.8px">/etc/freeswitch/scripts/</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">This will overwrite the default script location to the one entered. This will remove the need to use the start option suggested by Vallimamod (although this is also a valid option if you are likely to change the location and do not want to re-configure Freeswitch)</span></div><div><span style="font-size:12.8px"><br></span></div><div>Hope this helps</div><div><br></div><div>thanks</div><span class="HOEnZb"><font color="#888888"><div>Matt</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 27 October 2015 at 09:09, Vallimamod Abdullah <span dir="ltr"><<a href="mailto:vma@440hz.fr" target="_blank">vma@440hz.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Have you tried the freeswitch start option -scripts:<br>
<br>
-scripts [scriptsdir] -- alternate directory for scripts<br>
<br>
Best Regards,<br>
- Vallimamod<br>
.<br>
<div><div><br>
> On 27 Oct 2015, at 07:56, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> wrote:<br>
><br>
> My quick-fix for now is:<br>
> <param name="xml-handler-script" value="/etc/freeswitch/scripts/users.lua"/><br>
><br>
> But it would be nice to have a general setting of script dir to /etc/freeswitch/scripts/<br>
><br>
> but this works...<br>
><br>
><br>
> On Tue, Oct 27, 2015 at 7:53 AM, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> wrote:<br>
> And I've had tried:<br>
> 2015-10-27 01:52:18.389161 [INFO] mod_lua.cpp:335 lua: appending script directory: '/etc/freeswitch/scripts'<br>
><br>
> 2015-10-27 01:52:18.389168 [INFO] mod_lua.cpp:325 binding 'users.lua' to 'directory'<br>
><br>
> 2015-10-27 01:52:18.389176 [INFO] mod_lua.cpp:404 lua: LUA_PATH set to: '/etc/freeswitch/scripts'<br>
><br>
><br>
><br>
> Still no luck<br>
><br>
><br>
> On Tue, Oct 27, 2015 at 7:50 AM, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> wrote:<br>
> That could of course fix the issue for know, but I'm running multiple FS' and would like to keep the structure for automatic updates on all FS' etc.<br>
> ...and I guess I like the real issue to be fixed, which is why FS doesn't recognise the value.<br>
> My startup log shows:<br>
> 2015-10-27 01:50:06.454994 [INFO] mod_lua.cpp:335 lua: appending script directory: '/etc/freeswitch/scripts/?.lua'<br>
><br>
> 2015-10-27 01:50:06.455000 [INFO] mod_lua.cpp:325 binding 'users.lua' to 'directory'<br>
><br>
> 2015-10-27 01:50:06.455008 [INFO] mod_lua.cpp:404 lua: LUA_PATH set to: '/etc/freeswitch/scripts/?.lua'<br>
><br>
><br>
><br>
><br>
> On Tue, Oct 27, 2015 at 3:18 AM, Kamil Nigmatullin <<a href="mailto:kamil.nigmatullin@gmail.com" target="_blank">kamil.nigmatullin@gmail.com</a>> wrote:<br>
> Just make a symlink to the folder<br>
> 27 окт. 2015 г. 3:07 пользователь "Michael Nielsen" <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> написал:<br>
><br>
><br>
> ><br>
> > That refers to /usr/share/FreeSWITCH/scripts<br>
> > But I want the other dir which is set in LUA.conf.xml.<br>
> > The capital letters is my autocorrect on iOS :(<br>
> ><br>
> ><br>
> > On Monday, October 26, 2015, Russell Treleaven <<a href="mailto:rtreleaven@bunnykick.ca" target="_blank">rtreleaven@bunnykick.ca</a>> wrote:<br>
> >><br>
> >> from the freeswitch console issue "global_getvar script_dir"<br>
> >><br>
> >> On Mon, Oct 26, 2015 at 2:17 PM, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> wrote:<br>
> >>><br>
> >>> The FS wiki mentions /?.lua, and I've tried without that ending but still no luck.<br>
> >>><br>
> >>> I'm running freeswitch-all Debian package 1.6.2.<br>
> >>><br>
> >>><br>
> >>> On Monday, October 26, 2015, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> wrote:<br>
> >>>><br>
> >>>> Yes, I've restarted FS and actually the entire server...<br>
> >>>><br>
> >>>> On Sun, Oct 25, 2015 at 8:25 AM, ik <<a href="mailto:idokan@gmail.com" target="_blank">idokan@gmail.com</a>> wrote:<br>
> >>>>><br>
> >>>>> Have you restarted freeswitch after setting the directory?<br>
> >>>>> The lua module is loaded as a core module, and can only be reloaded with FS itself (as I found out myself the hard way).<br>
> >>>>><br>
> >>>>> Ido<br>
> >>>>><br>
> >>>>> On Fri, Oct 23, 2015 at 4:02 PM, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> wrote:<br>
> >>>>>><br>
> >>>>>> My log shows this:<br>
> >>>>>><br>
> >>>>>> 2015-10-23 08:00:17.609061 [INFO] mod_lua.cpp:335 lua: appending script directory: '/etc/freeswitch/scripts/?.lua'<br>
> >>>>>><br>
> >>>>>> 2015-10-23 08:00:17.609067 [INFO] mod_lua.cpp:325 binding 'users.lua' to 'directory'<br>
> >>>>>><br>
> >>>>>> 2015-10-23 08:00:17.609075 [INFO] mod_lua.cpp:404 lua: LUA_PATH set to: '/etc/freeswitch/scripts/?.lua'<br>
> >>>>>><br>
> >>>>>><br>
> >>>>>> If I move my script to /usr/share/... then it works, but I would like to keep my scripts in one place.<br>
> >>>>>><br>
> >>>>>><br>
> >>>>>> On Fri, Oct 23, 2015 at 2:26 PM, Michael Nielsen <<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>> wrote:<br>
> >>>>>>><br>
> >>>>>>> I get the error:<br>
> >>>>>>><br>
> >>>>>>> cannot open /usr/share/freeswitch/scripts/users.lua<br>
> >>>>>>><br>
> >>>>>>> My script is located at /etc/freeswitch/scripts/ and I've added the following to my lua.conf.xml<br>
> >>>>>>><br>
> >>>>>>> <param name="script-directory" value="/etc/freeswitch/scripts/?.lua"/><br>
> >>>>>>><br>
> >>>>>>> <param name="xml-handler-script" value="users.lua"/><br>
> >>>>>>><br>
> >>>>>>> <param name="xml-handler-bindings" value="directory"/><br>
> >>>>>>><br>
> >>>>>>><br>
> >>>>>>> Why is it still looking in /usr/share/freeswitch...?<br>
> >>>>>><br>
> >>>>>><br>
> >>>>>><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" rel="noreferrer" target="_blank">http://www.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.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" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> >>>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >>>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> >>>>><br>
> >>>>><br>
> >>>>><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" rel="noreferrer" target="_blank">http://www.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.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" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> >>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> >>>><br>
> >>>><br>
> >>><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" rel="noreferrer" target="_blank">http://www.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.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" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> >>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> >><br>
> >><br>
> ><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" rel="noreferrer" target="_blank">http://www.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.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" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
><br>
><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" rel="noreferrer" target="_blank">http://www.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.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" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
><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" rel="noreferrer" target="_blank">http://www.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.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" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
<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" rel="noreferrer" target="_blank">http://www.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.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" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br></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" rel="noreferrer" target="_blank">http://www.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.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.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>