On Apr 19, 2008, at 7:52 AM, Pete Kay wrote:

Hi,

There are a few problems I found with voicemail and I am not sure if I did something wrong:


Problem 1:

With is my dialplan:
   <action application="set" data="default_language=zh"/>
<action application="voicemail" data="default $${domain} $ {dialed_ext}"/>


This is the result:
2008-04-19 22:12:35 [DEBUG] switch_ivr_play_say.c:115 switch_ivr_phrase_macro() No language specified - Using [zh] 2008-04-19 22:12:35 [DEBUG] switch_ivr_play_say.c:256 switch_ivr_phrase_macro() Handle say:[] (zh:zh) 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) 2008-04-19 22:12:35 [ERR] mod_sndfile.c:164 sndfile_file_open() Error Opening File [/usr/local/freeswitch/sounds/zh/cn/callie/ voicemail/vm-not_avaliable.wav] [System error : No such file or directory.] 2008-04-19 22:12:35 [DEBUG] switch_ivr_play_say.c:115 switch_ivr_phrase_macro() No language specified - Using [zh] 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) 2008-04-19 22:12:35 [DEBUG] mod_sndfile.c:170 sndfile_file_open() Opening File [/usr/local/freeswitch/sounds/zh/cn/callie/voicemail/ 8000/vm-goodbye.wav] rate 22050hz 2008-04-19 22:12:35 [WARNING] switch_core_file.c:114 switch_core_perform_file_open() Sample rate doesn't match 2008-04-19 22:12:35 [DEBUG] switch_ivr_play_say.c:860 switch_ivr_play_file() Codec Activated [EMAIL PROTECTED] 1 channels 20ms 2008-04-19 22:12:35 [NOTICE] switch_resample.c:77 switch_resample_create() Activate Resampler 22050->8000 0.362812 2008-04-19 22:12:36 [DEBUG] switch_ivr_play_say.c:1121 switch_ivr_play_file() done playing file 2008-04-19 22:12:36 [NOTICE] switch_core_state_machine.c:198 switch_core_standard_on_execute() Hangup sofia/default/[EMAIL PROTECTED] :5060 [CS_EXECUTE] [NORMAL_CLEARING]

For voicemail/vm-not_avaliable.wav, it goes to /usr/local/freeswitch/ sounds/zh/cn/callie/voicemail/ dir to fetch the file but for voicemail/vm-goodbye.wav, it goes to /usr/local/freeswitch/sounds/zh/ cn/callie/voicemail/8000/ 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?


The 8000 is the sample rate.  Your files are 22050.

Example.

/tmp/8000/test.wav
/tmp/16000/test.wav
/tmp/test.wav

Now if you tried to play /tmp/test.wav and your channel rate was 8000 we would first try /tmp/8000/test.wav and fall back to /tmp/test.wav if that didn't exist.


In my zh.xml:

<include>
<language name="zh" sound-path="$${base_dir}/sounds/zh/cn/callie" tts-engine="cepstral" tts-voice="callie">
    <X-PRE-PROCESS cmd="include" data="demo/demo.xml"/>
<!--voicemail_en_tts is purely implemented with tts, we need a files based implementation too -->
    <X-PRE-PROCESS cmd="include" data="vm/sounds.xml"/>
  </language>
</include>

In my zh.xml, the sound-path is /sounds/zh/cn/callie/, so I am not sure where the 8000 comes from?

Problem 2:


This time I change default_language to en:

   <action application="set" data="default_language=en"/>
<action application="voicemail" data="default $${domain} $ {dialed_ext}"/>

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?

Try to record something longer than 3 seconds. The console should indicate the message was too short.




In the wiki ( http://wiki.freeswitch.org/wiki/Mod_voicemail) , 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?


Problem 3:

If I want to add something like " The person at extension XXXX " before the vm-not_available.wav, how to do it?

Our voicemail already does this.




Problem 4:

When I tried to load the spidermonkey mod, I am getting the following error at startup:

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 **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: undefined symbol: SQLFetch**

you need to configure freeswitch with --enable-core-odbc-support



When making DB call in javascript, I get the following error:

2008-04-20 03:15:09 [DEBUG] switch_core_state_machine.c:142 switch_core_standard_on_execute() sofia/default/ [EMAIL PROTECTED]:5060 Execute javascript(switch.js) 2008-04-20 03:15:09 [ERR] mod_spidermonkey.c:3135 js_api_use() Error loading ODBC 2008-04-20 03:15:09 [ERR] switch.js:7 mod_spidermonkey() ReferenceError: ODBC is not defined


Thank you very much for your kind help and input.

Regards,
Pete


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Brian West
sip:[EMAIL PROTECTED]



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to