<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>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. <div><br></div><div>Thanks</div><div>Dan-<br>----- Original Message -----<br>From: "Rupa Schomaker" <rupa@rupa.com><br>To: "freeswitch-users" <freeswitch-users@lists.freeswitch.org><br>Sent: Tuesday, January 19, 2010 4:06:36 PM<br>Subject: Re: [Freeswitch-users] Lua: io.popen/read blocking in other incoming calls<br><br><br><br><div class="gmail_quote">On Tue, Jan 19, 2010 at 3:03 PM, Dan <span dir="ltr"><<a href="mailto:freeswitch-users@digitaldan.com" target="_blank">freeswitch-users@digitaldan.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-family:Times New Roman;font-size:12pt;color:#000000">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()). </div>
</div></blockquote></div><div><br></div><div>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.</div><br>-- <br>-Rupa<br>
<br>_______________________________________________<br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></div></div></body></html>