Hi,<br><br>There are a few problems I found with voicemail and I am not sure if I did something wrong:<br><br><br>Problem 1:<br><br>With is my dialplan:<br> <action application="set" data="default_language=zh"/><br>
<action application="voicemail" data="default $${domain} ${dialed_ext}"/><br><br><br>This is the result:<br>2008-04-19 22:12:35 [DEBUG] switch_ivr_play_say.c:115 switch_ivr_phrase_macro() No language specified - Using [zh]<br>
2008-04-19 22:12:35 [DEBUG] switch_ivr_play_say.c:256 switch_ivr_phrase_macro() Handle say:[] (zh:zh)<br>2008-04-19 22:12:35 [DEBUG] switch_ivr_play_say.c:256 switch_ivr_phrase_macro() Handle play-file:[voicemail/vm-not_avaliable.wav] (zh:zh)<br>
2008-04-19 22:12:35 [ERR] mod_sndfile.c:164 sndfile_file_open() Error Opening File<span style="color: rgb(255, 0, 0);"> [/usr/local/freeswitch/sounds/zh/cn/callie/voicemail/vm-not_avaliable.wav] [System error : No such file or directory.]</span><br>
2008-04-19 22:12:35 [DEBUG] switch_ivr_play_say.c:115 switch_ivr_phrase_macro() No language specified - Using [zh]<br>2008-04-19 22:12:35 [DEBUG] switch_ivr_play_say.c:256 switch_ivr_phrase_macro() Handle play-file:[voicemail/vm-goodbye.wav] (zh:zh)<br>
2008-04-19 22:12:35 [DEBUG] mod_sndfile.c:170 sndfile_file_open() Opening File<span style="color: rgb(255, 0, 0);"> [/usr/local/freeswitch/sounds/zh/cn/callie/voicemail/8000/vm-goodbye.wav]</span> rate 22050hz<br>2008-04-19 22:12:35 [WARNING] switch_core_file.c:114 switch_core_perform_file_open() Sample rate doesn't match<br>
2008-04-19 22:12:35 [DEBUG] switch_ivr_play_say.c:860 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 20ms<br>2008-04-19 22:12:35 [NOTICE] switch_resample.c:77 switch_resample_create() Activate Resampler 22050->8000 0.362812<br>
2008-04-19 22:12:36 [DEBUG] switch_ivr_play_say.c:1121 switch_ivr_play_file() done playing file<br>2008-04-19 22:12:36 [NOTICE] switch_core_state_machine.c:198 switch_core_standard_on_execute() Hangup sofia/default/<a href="http://1004@192.168.1.104:5060" target="_blank">1004@192.168.1.104:5060</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>
<br>For voicemail/vm-not_avaliable.wav, it goes to <span style="color: rgb(255, 0, 0);">/usr/local/freeswitch/sounds/zh/cn/callie/voicemail/ dir to fetch the file but for </span>voicemail/vm-goodbye.wav, it goes to <span style="color: rgb(255, 0, 0);">/usr/local/freeswitch/sounds/zh/cn/callie/voicemail/8000/<span style="color: rgb(0, 0, 0);"> dir. Following the en sample, I put my wav files under the /8000/ only. With language=en, it always go to the <...>/8000/ dir, but with language=zh, it is not. How come? Also, where is the /8000/ defined? </span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">In my zh.xml:</span><br style="color: rgb(0, 0, 0);"><br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><include></span><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);"> <language name="zh" sound-path="$${base_dir}/sounds/zh/cn/callie" tts-engine="cepstral" tts-voice="callie"></span><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);"> <X-PRE-PROCESS cmd="include" data="demo/demo.xml"/> </span><br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"> <!--voicemail_en_tts is purely implemented with tts, we need a files based implementation too --></span><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);"> <X-PRE-PROCESS cmd="include" data="vm/sounds.xml"/></span><br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"> </language></span><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);"></include><br><br>In my zh.xml, the sound-path is /sounds/zh/cn/callie/, so I am not sure where the 8000 comes from?<br><br>Problem 2:<br><br><br></span></span>This time I change default_language to en:<br>
<br>
<action application="set" data="default_language=en"/><br>
<action application="voicemail" data="default $${domain} ${dialed_ext}"/><br><br>when dialing in, the voice says something like " please record your message .... press any key to end the recording. I found that it will actually wait for a while before accepting my dtmf ( the "pressing any key to end recording"). I think the wait time is too long, cuz some people may just want to press the # key to hangup. With the current voicemail, it will repeat the "please record your message...." again and again. Is there a config for turning off the this waiting period? <br>
<br>In the wiki ( <a href="http://wiki.freeswitch.org/wiki/Mod_voicemail" target="_blank">http://wiki.freeswitch.org/wiki/Mod_voicemail</a>) , there are a number of configuration parameter "keys", where can I find out more on how to use those keys and the available values that can be used?<br>
<br><br>Problem 3:<br><br>If I want to add something like " The person at extension XXXX " before the vm-not_available.wav, how to do it?<br><br><br>Problem 4:<br><br>When I tried to load the spidermonkey mod, I am getting the following error at startup:<br>
<br>2008-04-19 23:52:30 [ERR] mod_spidermonkey.c:930 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so<br>**/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: undefined symbol: SQLFetch**<br>
<br>When making DB call in javascript, I get the following error:<br><br>2008-04-20 03:15:09 [DEBUG] switch_core_state_machine.c:142 switch_core_standard_on_execute() sofia/default/<a href="http://1004@192.168.1.104:5060" target="_blank">1004@192.168.1.104:5060</a> Execute javascript(switch.js)<br>
2008-04-20 03:15:09 [ERR] mod_spidermonkey.c:3135 js_api_use() Error loading ODBC<br>2008-04-20 03:15:09 [ERR] switch.js:7 mod_spidermonkey() ReferenceError: ODBC is not defined<br><br><br>Thank you very much for your kind help and input.<br>
<br>Regards,<br>Pete<br><br><br>