<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. It's not the most elagant solution, but it works. Call volume is light so I don't think there will be any scalability issues. 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" <testa@voicetechnology.com.br><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 other incoming calls<br><br>You may consider use lua socket.http package as an alternative to popen+wget. Check:<div> <a href="https://web.tecgraf.puc-rio.br/luasocket/" target="_blank">https://web.tecgraf.puc-rio.br/luasocket/</a> </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> </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> </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. 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" <<a href="mailto:rupa@rupa.com" target="_blank">rupa@rupa.com</a>><br>To: "freeswitch-users" <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><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 class="Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:freeswitch-users@digitaldan.com" target="_blank">freeswitch-users@digitaldan.com</a>></span><span class="Apple-converted-space"> </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 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>--<span class="Apple-converted-space"> </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>