[Freeswitch-users] voicemail_mod and spidermokey_odbc users

Pete Kay petedao at gmail.com
Sat Apr 19 05:52:40 PDT 2008


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}

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]
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]
2008-04-19 22:12:35 [DEBUG] mod_sndfile.c:170 sndfile_file_open() Opening
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 L16 at 8000hz 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/

For voicemail/vm-not_avaliable.wav, it goes to
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?

In my zh.xml:

  <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"/>

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}

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?

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?

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:

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

2008-04-20 03:15:09 [DEBUG] switch_core_state_machine.c:142
sofia/default/1004 at javascript(switch.js)
2008-04-20 03:15:09 [ERR] mod_spidermonkey.c:3135 js_api_use() Error loading
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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080419/6c7e6612/attachment-0002.html 

More information about the FreeSWITCH-users mailing list