<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;">Yes, you can use the stream global object.&nbsp;&nbsp; <br><br>example:<br>&nbsp;&nbsp; local api = freeswitch.API();<br>&nbsp;&nbsp; local reply = api:execute("originate", someRoute);<br><br>&nbsp;&nbsp; if (reply) then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stream:write("RESULT: " .. reply .. "\n");<br>&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stream:write("ERROR")<br>&nbsp;&nbsp; end<br><br><br>
<blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size: 10pt; color: black; font-family: verdana;">
<div   >
-------- Original Message --------<br>
Subject: [Freeswitch-users] Lua Script Return Value &amp; mod_xmlrpc<br>
From: "Nick Lemberger" &lt;Nick.Lemberger@lkfd.net&gt;<br>
Date: Thu, August 06, 2009 4:19 pm<br>
To: &lt;freeswitch-users@lists.freeswitch.org&gt;<br>
<br>
Is it possible to have a LUA script return something to the client when accessed via the XML RPC gateway &amp; luarun?<br>
<br>
ie: access the url: <a href="http://FSip:8080/api/luarun?myscript.lua" target="_blank" mce_href="http://FSip:8080/api/luarun?myscript.lua">http://FSip:8080/api/luarun?myscript.lua</a> and have the script return a value?<br>
<br>
-Nick<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
FreeSWITCH-users@lists.freeswitch.org<br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" mce_href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" mce_href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank" mce_href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>

</div>
</blockquote></span></body></html>