Making a system call with LUA
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 Regards,
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
Can I assume that info/functions in lua are all available in the embedded lua in FS? Regards -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Alexandru Nedelcu Sent: 09 February 2009 14:07 To: freeswitch-users@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Alexandru Nedelcu
-
Michael Collins
-
Nik Middleton