[Freeswitch-users] Which Lua script am I?

Seven Du dujinfang at gmail.com
Mon Mar 8 17:01:42 PST 2010


The patch was committed on 15433. Though I haven't start to use that.
Which version are you on?
http://jira.freeswitch.org/browse/MODLANG-122

2010/3/9 Mike van Lammeren <mike at van.lammeren.net>:
> 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
>
>
> _______________________________________________
> 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
>
>




More information about the FreeSWITCH-users mailing list