[Freeswitch-users] Lua: io.popen/read blocking in other incoming calls

Dan freeswitch-users at digitaldan.com
Tue Jan 19 15:17:37 PST 2010


I would, but I need to post a a wav file that gets recorded, I didn't see a way to supply the location of a file to use as the post data. It looks like you have to url encode the data in the script and pass it all in the call. 


Thanks 
Dan- 
----- Original Message ----- 
From: "Rupa Schomaker" <rupa at rupa.com> 
To: "freeswitch-users" <freeswitch-users at lists.freeswitch.org> 
Sent: Tuesday, January 19, 2010 4:06:36 PM 
Subject: Re: [Freeswitch-users] Lua: io.popen/read blocking in other incoming calls 




On Tue, Jan 19, 2010 at 3:03 PM, Dan < freeswitch-users at digitaldan.com > wrote: 




My lua script is calling wget through lua's io.popen to send and receive data from a web service. While the f:read to wget is running, other incoming calls will block on the same io.popen call until the first call closes the pipe (with f:close()). 


You might want to look at the api that mod_curl exposes to do what you want. No need to do an expensive system call just to call a webservice. 
-- 
-Rupa 

_______________________________________________ 
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/20100119/61ef791b/attachment-0002.html 


More information about the FreeSWITCH-users mailing list