[Freeswitch-users] Making a system call with LUA

Nik Middleton nik.middleton at noblesolutions.co.uk
Mon Feb 9 07:47:17 PST 2009


Can I assume that info/functions in lua are all available in the
embedded lua in FS?

Regards


-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Alexandru Nedelcu
Sent: 09 February 2009 14:07
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Making a system call with LUA

On Mon, 2009-02-09 at 13:30 +0000, Nik Middleton wrote:
> In the absence of any directives on lua/mysql, is it possible to
> launch a PHP script  from lua?  All I need to do is pass some data to
> update a db record.  I don't need to have any links to the call as I
> intend to call is in the hang-up callback

I'm actually using Javascript, but os.execute should work:
http://www.lua.org/pil/22.2.html




_______________________________________________
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