<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Was working with mod_pocketsphinx and found it difficult to
troubleshoot the failed loading of the dictionary files.&nbsp; Tried to open
a JIRA to apply the patch on this but it told me the following:<br>
<h3 class="formtitle">Issue Created Successfully</h3>
You have successfully created the issue (MODASRTTS-6), however you do
not have the permission to view the created issue.
<p> If you think this message is wrong, please consult your <a
 href="http://jira.freeswitch.org/secure/Administrators.jspa">administrators</a>
about getting the necessary permissions.<br>
<br>
</p>
Anyways, here is the patch.<br>
<br>
<br>
Index: mod_pocketsphinx.c<br>
===================================================================<br>
--- mod_pocketsphinx.c&nbsp; (revision 9003)<br>
+++ mod_pocketsphinx.c&nbsp; (working copy)<br>
@@ -125,12 +125,12 @@<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; model = switch_mprintf("%s%smodel%s%s",
SWITCH_GLOBAL_dirs.grammar_dir, SWITCH_PATH_SEPARATOR,
SWITCH_PATH_SEPARATOR, globals.model);<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (switch_file_exists(dic, ah-&gt;memory_pool) !=
SWITCH_STATUS_SUCCESS) {<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
"Can't open dictionary.\n");<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
"Can't open dictionary. %s\n", dic);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; goto end;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (switch_file_exists(lm, ah-&gt;memory_pool) !=
SWITCH_STATUS_SUCCESS) {<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_log_printf(SWITCH_CHANNEL_LOG,
SWITCH_LOG_WARNING, "Can't open language model.\n");<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_log_printf(SWITCH_CHANNEL_LOG,
SWITCH_LOG_WARNING, "Can't open language model. %s\n", lm);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; goto end;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
<br>
<br>
<div class="moz-signature"><b>Chris Danielson</b>
<br>
Software Consultant and Co-Founder
<br>
Web: <a href="http://www.maxpowersoft.com/">MaxPowerSoft, LLC</a>
<br>
<br>
</div>
</body>
</html>