Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Making a system call with LUA


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





PostPosted: Mon Feb 09, 2009 8:33 am    Post subject: [Freeswitch-users] Making a system call with LUA Reply with quote

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,
Back to top
alex at sinapticode.ro
Guest





PostPosted: Mon Feb 09, 2009 9:11 am    Post subject: [Freeswitch-users] Making a system call with LUA Reply with quote

On Mon, 2009-02-09 at 13:30 +0000, Nik Middleton wrote:
Quote:
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
Back to top
nik.middleton at noble...
Guest





PostPosted: Mon Feb 09, 2009 10:48 am    Post subject: [Freeswitch-users] Making a system call with LUA Reply with quote

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:
Quote:
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

_______________________________________________
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
msc at freeswitch.org
Guest





PostPosted: Mon Feb 09, 2009 12:23 pm    Post subject: [Freeswitch-users] Making a system call with LUA Reply with quote

On Mon, Feb 9, 2009 at 7:47 AM, Nik Middleton
<nik.middleton@noblesolutions.co.uk> wrote:
Quote:
Can I assume that info/functions in lua are all available in the
embedded lua in FS?

Regards

Generally speaking that is a safe assumption.
-MC

_______________________________________________
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