Hello Tamas,<br><br>Getting starting with spidermonkey is as simple as following this example in this email.<br><br>In your configuration file of freeswitch.xml, simply configure a dial plan extension that will executes the "Javascript" dial plan application.
<br><br>For example * , inserting this segment into your dial plan section will yield extension 1480 to 'default.js' : <br><br> <extension name="1480"><br> <condition field="destination_number" expression="^1480$">
<br> <action application="javascript" data="default.js" /><br> </condition><br> </extension><br><br>To explore, change "default.js" to another .js file and make sure that your js file is located in /usr/local/freeswitch/scripts .
<br>[ I am not sure what directory this is under win32, can somebody clarify this?] <br><br>You should be able to download the example JS scripts from the URL you provided and follow the same directions.<br><br>Beyond that is basically up to your feedback. How would you best see the framework solving problems for your environment?
<br><br>Try reviewing the "mod_spidermonkey.c" source code, and if you have any questions feel free to post them here.<br><br>Best regards,<br>D<br><a href="http://www.hypercubesolutions.com">www.hypercubesolutions.com
</a><br><br>* Make sure that when you build Freeswitch that your "modules.conf"
includes the un-commented line of mod_spidermonkey (Which is _not_ on
by default)<br><br><br><br><br><br><br><br><br><br>
<div><span class="gmail_quote">On 8/16/06, <b class="gmail_sendername">Tamas</b> <<a href="mailto:jalsot@gmail.com">jalsot@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I'm experimenting with freeswitch and want to build simple IVR in js,<br>however I don't know how to set up freeswitch for it.<br>I have mod_spidermonkey compiled already.<br><br>Could anybody tell me what to do next?
<br>[I know, there are some examples scripts at<br><a href="http://www.freeswitch.org/eg/js/">http://www.freeswitch.org/eg/js/</a>]<br><br>Thanks in advance,<br> Tamas<br><br>_______________________________________________
<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br><a 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">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<br></blockquote></div><br>