[Freeswitch-users] Lua: io.popen/read blocking in other incoming calls
Rupa Schomaker
rupa at rupa.com
Tue Jan 19 15:32:57 PST 2010
Ah... yes you do. Patches / Bounty to implement that accepted.
On Tue, Jan 19, 2010 at 5:17 PM, Dan <freeswitch-users at digitaldan.com>wrote:
> 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
>
> _______________________________________________
> 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
>
>
--
-Rupa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100119/bbf506f4/attachment.html
More information about the FreeSWITCH-users
mailing list