[Freeswitch-users] LUA execute response question

jonathan augenstine jaugenstine at gmail.com
Tue Dec 30 13:16:36 PST 2008


Mike,

I executed the following:

>From CLI:
http get http://www.google.com {}

This comes back with the HTTP response and prints it to the console.  I
tried to execute the following:

response = session:execute("http", "get http://www.google.com {}");

What I am unable to figure out how to do is retrieve HTTP response.  That is
my dilemma.

Jonathan

On Tue, Dec 30, 2008 at 12:57 PM, Michael Jerris <mike at jerris.com> wrote:

> you can execute the freeswitch api command like any other api command or
> use any loadable lua module available to do this.
>
> Mike
>
> On Dec 30, 2008, at 3:36 PM, jonathan augenstine wrote:
>
> I am developing a Freeswitch/LUA script.  From the script, I have a
> requirement to retrieve information via HTTP from an app server.  I have
> utilized the HTTP application from the Freeswitch CLI.  It works great.  My
> question is how can I call the "http get http://www......." from within
> the LUA script and retrieve the HTTP response?  Is this feasible?  Or is
> there a way to make an HTTP request directly from LUA?
>
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081230/c087a7ad/attachment-0002.html 


More information about the FreeSWITCH-users mailing list