Silly question, but are you sure they're loaded? Are they any error messages when you try loading them?<br><br>What do the commands 'module_exists mod_spidermonkey' and 'module_exists mod_pocketsphinx' give you from the fs_cli?<br>
<br>-Steve<br><br><br><div class="gmail_quote">On 6 July 2011 14:25, ankIT WALiA <span dir="ltr"><<a href="mailto:ankitwalia4u@gmail.com">ankitwalia4u@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br><br>I tried to execute the pizza example for PocketSphinx for speech recognition.<br><br>I added the grammar,enabled mod_pocketsphinx and spidermonkey, added sound files and js files as per the wiki.<br><a href="http://wiki.freeswitch.org/wiki/Mod_pocketsphinx#Install_.26_Configure" target="_blank">http://wiki.freeswitch.org/wiki/Mod_pocketsphinx#Install_.26_Configure</a><br>
<br>When, I call to the extension, though it passes the Regex, showing true for the conditions. But could not execute the javascript application and subsequently the js file.<br><br>The dialplan looks like <b><br><extension name="pizza_demo"><br>
<condition field="destination_number" expression="^(74992)$"/><br> <condition field="${module_exists(mod_spidermonkey)}" expression="true"/><br> <condition field="${module_exists(mod_pocketsphinx)}" expression="true"> <br>
<action application="javascript" data="ps_pizza.js"/> <br> </condition><br> </extension></b><br><br>If I remove the condition of module exist, the js file gets executed and the call goes on. But, It does not work with Module exists condition.<br>
<br>I have pasted the logs <a href="http://pastebin.freeswitch.org/16680" target="_blank">http://pastebin.freeswitch.org/16680</a>. I could not even find anything concrete on the logs. <br><br>Thanks<br>Ankitx<br clear="all">
<font color="#888888"><br>-- <br>Life is like a rose its upto u feel it as its fragrance or thorns<br>
</font><br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>