[Freeswitch-users] Which Lua script am I?

Mike van Lammeren mike at van.lammeren.net
Mon Mar 8 09:00:37 PST 2010


Actually, I don't believe that does work. At least, not on my system. Trying
to access argv[0] just produces a lua error about "concatenating a nil
value."

On Fri, Mar 5, 2010 at 10:28 PM, Seven Du <dujinfang at gmail.com> wrote:

> and also you can get the script name from argv[0] if you name you
> script in different names
>
> 2010/3/6 Mike van Lammeren <mike at van.lammeren.net>:
> > In case anyone's interested, I just found something cool. You can pass
> > parameters to the Lua script from the lua.conf.xml file, like so:
> >     <param name="startup-script" value="temp.lua script1"/>
> >     <param name="startup-script" value="temp.lua script2"/>
> >     <param name="startup-script" value="temp.lua script3"/>
> > I can see that being useful.
> > Mike van Lammeren
> >
> > On Fri, Mar 5, 2010 at 2:59 PM, Mike van Lammeren <mike at van.lammeren.net
> >
> > wrote:
> >>
> >> Thanks so much, everyone! Awesome advice, as usual!
> >> Due to a deadline situation, I'm going with the Lua script idea.
> However,
> >> if it gives us any trouble after the looming deadline, then I will
> >> definitely go the C route.
> >> Thanks again!
> >> Mike van Lammeren
> >>
> >> On Fri, Mar 5, 2010 at 2:42 PM, Brian West <brian at freeswitch.org>
> wrote:
> >>>
> >>> Write it in C and use the FreeSWITCH task scheduler API.
> >>>
> >>> /b
> >>>
> >>> On Mar 5, 2010, at 1:38 PM, Mike van Lammeren wrote:
> >>>
> >>> > All the same, I'm still open to suggestions on better ways to achieve
> >>> > my ultimate goals!
> >>>
> >>>
> >>> _______________________________________________
> >>> FreeSWITCH-users mailing list
> >>> FreeSWITCH-users at lists.freeswitch.org
> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >>> UNSUBSCRIBE:
> http://lists.freeswitch.org/mailman/options/freeswitch-users
> >>> http://www.freeswitch.org
> >>
> >
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
> >
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100308/c55fbf55/attachment-0002.html 


More information about the FreeSWITCH-users mailing list