Silly question, but are you sure they&#39;re loaded? Are they any error messages when you try loading them?<br><br>What do the commands &#39;module_exists mod_spidermonkey&#39; and &#39;module_exists mod_pocketsphinx&#39; 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">&lt;<a href="mailto:ankitwalia4u@gmail.com">ankitwalia4u@gmail.com</a>&gt;</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>&lt;extension name=&quot;pizza_demo&quot;&gt;<br>


    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(74992)$&quot;/&gt;<br>    &lt;condition field=&quot;${module_exists(mod_spidermonkey)}&quot; expression=&quot;true&quot;/&gt;<br>    &lt;condition field=&quot;${module_exists(mod_pocketsphinx)}&quot; expression=&quot;true&quot;&gt;    <br>


    &lt;action application=&quot;javascript&quot; data=&quot;ps_pizza.js&quot;/&gt;    <br>    &lt;/condition&gt;<br>  &lt;/extension&gt;</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>