<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Thanks, I'm using os.execute now and piping the output to a temp file.&nbsp; It's not the most elagant solution, but it works.&nbsp; Call volume is light so I don't think there will be any scalability issues.&nbsp; I'll take a look at the sites you mention and see if I can find something a little bit less hacky.<br><br>Thanks again.<br>Dan-<br><br>----- Original Message -----<br>From: "Fernando Gregianin Testa" &lt;testa@voicetechnology.com.br&gt;<br>To: freeswitch-users@lists.freeswitch.org<br>Sent: Sunday, January 24, 2010 12:21:51 PM<br>Subject: Re: [Freeswitch-users] Lua: io.popen/read blocking in&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;other&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;incoming calls<br><br>You may consider use lua socket.http package as an alternative to popen+wget.&nbsp;Check:<div>&nbsp;<a href="https://web.tecgraf.puc-rio.br/luasocket/" target="_blank">https://web.tecgraf.puc-rio.br/luasocket/</a>&nbsp;</div><div><a href="http://www.tecgraf.puc-rio.br/%7Ediego/professional/luasocket/http.html" target="_blank">http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/http.html</a>&nbsp;</div><div><br><div>Maybe you can be interested also in <a href="http://github.com/fertesta/restinlua" target="_blank">http://github.com/fertesta/restinlua</a>&nbsp;</div><div><br><div><div><div>Em 19/01/2010, às 21:17, Dan escreveu:</div><br class="Apple-interchange-newline"><blockquote><div><div style="font-family: 'Times New Roman'; font-size: 12pt; color: rgb(0, 0, 0);">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. &nbsp;It looks like you have to url encode the data in the script and pass it all in the call.&nbsp;<div><br></div><div>Thanks</div><div>Dan-<br>----- Original Message -----<br>From: "Rupa Schomaker" &lt;<a href="mailto:rupa@rupa.com" target="_blank">rupa@rupa.com</a>&gt;<br>To: "freeswitch-users" &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Sent: Tuesday, January 19, 2010 4:06:36 PM<br>Subject: Re: [Freeswitch-users] Lua: io.popen/read blocking in other&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;incoming calls<br><br><br><br><div class="gmail_quote">On Tue, Jan 19, 2010 at 3:03 PM, Dan<span class="Apple-converted-space">&nbsp;</span><span dir="ltr">&lt;<a href="mailto:freeswitch-users@digitaldan.com" target="_blank">freeswitch-users@digitaldan.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><div><div style="font-family: 'Times New Roman'; font-size: 12pt; color: rgb(0, 0, 0);">My lua script is calling wget through lua's io.popen to send and&nbsp;receive&nbsp;data from a web service. While the f:read to wget &nbsp;is running, other incoming calls will block on the same io.popen call until the first call closes the pipe (with f:close()). &nbsp;</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. &nbsp;No need to do an expensive system call just to call a webservice.</div><br>--<span class="Apple-converted-space">&nbsp;</span><br>-Rupa<br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></div></div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><div>Fernando Gregianin Testa</div><div><a href="mailto:testa@voicetechnology.com.br" target="_blank">testa@voicetechnology.com.br</a></div><div>+55 11 35882166</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></div></div><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></body></html>