Cool, will submit a patch once done. <div><br></div><div>I have a second thought, in that way, we could have this curl function outside of javascript, ie:<div><br></div><div>curl <a href="http://ip/scripts">http://ip/scripts</a> /temp/scripts</div>
<div>jsrun /temp/scripts</div><div><br></div><div>this way, it can be use for different type of scripts, ie &quot;lua&quot;, etc. So, curl have to be a separate module. </div><div><br></div><div>Do you see any drawback with above method?</div>
<div><br></div><div><br><div class="gmail_quote">On Thu, Jun 10, 2010 at 4:30 PM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">I would do exactly that.  You could do something into memory, but I think its just asking for problems.  Sounds great and I look forward to seeing your patch.  You can submit patches via <a href="http://jira.freeswitch.org" target="_blank">http://jira.freeswitch.org</a>.  If you assign it to me I will try to look at it quickly.<div>
<br></div><div><div><br></div><div>Mike</div><div class="im"><div><br><div><div>On Jun 10, 2010, at 4:08 PM, Johny Kadarisman Kwan wrote:</div><br><blockquote type="cite">Mike, <div><br></div><div>Thanks for the pointer. So,the flow will be curl into temp file and use existing jsrun to run the temp script.<div>
I&#39;m looking at js_fetchurl_file, look like i can copy some of the functionality from there.</div>
<div><br></div><div>Johny K.</div><div><br><br><div class="gmail_quote">On Thu, Jun 10, 2010 at 11:58 AM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">
<div style="word-wrap:break-word">This could be accomplished fine with a little added code in mod_spidermonkey.  We already have libcurl in that module, but you would need to add the code to get the file from http<div><br>

</div><div>Mike</div><div><div><br><div><div>On Jun 9, 2010, at 4:05 PM, Johny Kadarisman Kwan wrote:</div><br><blockquote type="cite">I want to dynamically serve javascript to freeswitch. ie. &quot;jsrun <a href="http://ip/mydynamicscript" target="_blank">http://ip/mydynamicscript</a>&quot;<div>

Is there any way to accomplish above function? or any pro and cons on above intention.</div>
</blockquote></div><br></div></div></div></blockquote></div></div></div></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>