[Freeswitch-users] LUA execute response question

Michael Jerris mike at jerris.com
Tue Dec 30 13:40:45 PST 2008


session:execute runs a freeswitch app, you want to be executing the  
fsapi command using API:execute
Mike


On Dec 30, 2008, at 4:16 PM, jonathan augenstine wrote:

> 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081230/8a8d8b9f/attachment-0002.html 


More information about the FreeSWITCH-users mailing list