Was working with mod_pocketsphinx and found it difficult to troubleshoot the failed loading of the dictionary files. Tried to open a JIRA to apply the patch on this but it told me the following: Issue Created Successfully You have successfully created the issue (MODASRTTS-6), however you do not have the permission to view the created issue. If you think this message is wrong, please consult your administrators <http://jira.freeswitch.org/secure/Administrators.jspa> about getting the necessary permissions. Anyways, here is the patch. Index: mod_pocketsphinx.c =================================================================== --- mod_pocketsphinx.c (revision 9003) +++ mod_pocketsphinx.c (working copy) @@ -125,12 +125,12 @@ model = switch_mprintf("%s%smodel%s%s", SWITCH_GLOBAL_dirs.grammar_dir, SWITCH_PATH_SEPARATOR, SWITCH_PATH_SEPARATOR, globals.model); if (switch_file_exists(dic, ah->memory_pool) != SWITCH_STATUS_SUCCESS) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't open dictionary.\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't open dictionary. %s\n", dic); goto end; } if (switch_file_exists(lm, ah->memory_pool) != SWITCH_STATUS_SUCCESS) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't open language model.\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't open language model. %s\n", lm); goto end; } *Chris Danielson* Software Consultant and Co-Founder Web: MaxPowerSoft, LLC <http://www.maxpowersoft.com/> Index: mod_pocketsphinx.c =================================================================== --- mod_pocketsphinx.c (revision 9003) +++ mod_pocketsphinx.c (working copy) @@ -125,12 +125,12 @@ model = switch_mprintf("%s%smodel%s%s", SWITCH_GLOBAL_dirs.grammar_dir, SWITCH_PATH_SEPARATOR, SWITCH_PATH_SEPARATOR, globals.model); if (switch_file_exists(dic, ah->memory_pool) != SWITCH_STATUS_SUCCESS) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't open dictionary.\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't open dictionary. %s\n", dic); goto end; } if (switch_file_exists(lm, ah->memory_pool) != SWITCH_STATUS_SUCCESS) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't open language model.\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't open language model. %s\n", lm); goto end; }