Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] How to use Lua standard libraries


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
jbr at consiglia.dk
Guest





PostPosted: Sun Sep 14, 2008 11:48 am    Post subject: [Freeswitch-users] How to use Lua standard libraries Reply with quote

I want to use a string function "strfind" in a Lua script. What should I
do to access this and other standard Lua libraries?
Thanks, Jon




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Sep 14, 2008 12:29 pm    Post subject: [Freeswitch-users] How to use Lua standard libraries Reply with quote

require and include just like any other lua script should work.

/b

On Sep 14, 2008, at 11:44 AM, Jon Bruel wrote:

Quote:
I want to use a string function "strfind" in a Lua script. What
should I
do to access this and other standard Lua libraries?
Thanks, Jon




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Brian West
sip:brian@freeswitch.org







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
jbr at consiglia.dk
Guest





PostPosted: Mon Sep 15, 2008 12:17 am    Post subject: [Freeswitch-users] How to use Lua standard libraries Reply with quote

Well, Brian, you gave me the answer: "require and include just like any other lua script should work.", but I'm new the Lua - a dummy - and I haven't been able to Google it with just the right question, so please spell it out for me! What are the exact commands, and where do I find further information for similar issues?
Jon
Back to top
brian at freeswitch.org
Guest





PostPosted: Mon Sep 15, 2008 12:20 am    Post subject: [Freeswitch-users] How to use Lua standard libraries Reply with quote

Jon,
Forgive me I made the assumption you knew lua! Wink Mybad.

Example:

require "luasql.postgres"

The standard library stuff should already be there.

http://lua-users.org/ has a lot of info that helps.

/b


On Sep 15, 2008, at 12:13 AM, Jon Bruel wrote:

Quote:
Well, Brian, you gave me the answer: "require and include just like
any other lua script should work.", but I'm new the Lua - a dummy -
and I haven't been able to Google it with just the right question,
so please spell it out for me! What are the exact commands, and
where do I find further information for similar issues?

Jon


Brian West
sip:brian@freeswitch.org







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services