That was it. Thanks Mike.
This test build was trunk and default
configs. The problem is in the trunk vars.xml this line has been removed.
I added this line back to vars.xml and the demo_ivr started working again.
<X-PRE-PROCESS cmd="set"
data="sound_prefix=$${base_dir}/sounds/en/us/callie"/>
The IVR source must still require
sound_prefix to be set (and does not use the new sounds_dir variable).
Thanks again,
Robert
From: Michael Jerris
[mailto:mike@jerris.com]
Sent: Wednesday, February 10, 2010
9:34 PM
To:
Subject: Re: [Freeswitch-users]
demo_ivr cannot find sound files viarelative paths
did you make any changes to the default configs? what is in your
vars.xml related to sounds? the relative paths were always relative to
that dir, did you make any changes to the sounds prefix ?
Mike
On Feb 10, 2010, at 11:57 PM, Michael Collins wrote:
If I read this log
correctly it failed to find the "invalid entry" file but it did find
the phrases just fine. Can you confirm the presence of this file:
/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-that_was_an_invalid_entry.wav
(It looks like this call is at 8kHz so that's where I'm assuming FS is looking
to find the sound file...)
-MC
On Wed, Feb 10, 2010 at 10:50 AM,
Hi,
It appears a
recent change (possibly the new sounds_dir variable or the new ivr_menu
folder?) may have broken relative sound file paths in the IVR. I built a
today’s trunk version and installed to the default location. Using the
default conf files the demo_ivr cannot find files based on the relative paths
specified in ivr_menus/demo_ivr.xml.
[root@TEO-UCM-T2
conf]# cat ivr_menus/demo_ivr.xml
<include>
<!-- demo IVR setup -->
<!-- demo IVR, Main Menu -->
<menu name="demo_ivr"
greet-long="phrase:demo_ivr_main_menu"
greet-short="phrase:demo_ivr_main_menu_short"
invalid-sound="ivr/ivr-that_was_an_invalid_entry.wav"
exit-sound="voicemail/vm-goodbye.wav"
2010-02-10
10:32:15.300337 [DEBUG] switch_ivr_menu.c:414 Executing IVR menu demo_ivr
2010-02-10 10:32:15.300337 [DEBUG]
switch_ivr_play_say.c:118 No language specified - Using [en]
2010-02-10
10:32:15.300337 [DEBUG] switch_ivr_play_say.c:273 Handle
play-file:[ivr/ivr-welcome_to_freeswitch.wav] (en:en)
2010-02-10
10:32:15.300337 [DEBUG] switch_ivr_play_say.c:1158 Codec Activated L16@8000hz 1
channels 20ms
2010-02-10
10:32:17.922147 [DEBUG] switch_ivr_play_say.c:1450 done playing file
2010-02-10
10:32:18.042149 [DEBUG] switch_ivr_play_say.c:273 Handle
play-file:[ivr/ivr-this_ivr_will_let_you_test_features.wav] (en:en)
2010-02-10
10:32:18.042149 [DEBUG] switch_ivr_play_say.c:1158 Codec Activated L16@8000hz 1
channels 20ms
2010-02-10
10:32:19.962158 [DEBUG] switch_rtp.c:2417 RTP RECV DTMF 2:800
2010-02-10
10:32:19.962158 [DEBUG] switch_ivr_play_say.c:1450 done playing file
2010-02-10
10:32:20.082156 [DEBUG] switch_ivr_menu.c:329 waiting for 3/4 digits t/o 2000
2010-02-10
10:32:20.120617 [DEBUG] switch_rtp.c:2417 RTP RECV DTMF 2:400
2010-02-10
10:32:20.442158 [DEBUG] switch_rtp.c:2417 RTP RECV DTMF 2:800
2010-02-10
10:32:20.682162 [DEBUG] switch_rtp.c:2417 RTP RECV DTMF 2:800
2010-02-10
10:32:20.682162 [DEBUG] switch_ivr_menu.c:376 digits '2222'
2010-02-10
10:32:20.682162 [DEBUG] switch_ivr_menu.c:470 action regex [2222]
[/^(10[01][0-9])$/] [0]
2010-02-10
10:32:20.682162 [DEBUG] switch_ivr_menu.c:560 IVR menu 'demo_ivr' caught
invalid input '2222'
2010-02-10 10:32:20.682162 [ERR] mod_sndfile.c:194
Error Opening File [/usr/local/freeswitch/sounds/ivr/ivr-that_was_an_invalid_entry.wav]
[System error : No such file or directory.]
2010-02-10
10:32:21.701505 [DEBUG] switch_ivr_play_say.c:118 No language specified - Using
[en]
2010-02-10
10:32:21.701505 [DEBUG] switch_ivr_play_say.c:273 Handle
play-file:[silence_stream://1000] (en:en)
2010-02-10
10:32:21.701505 [DEBUG] switch_ivr_play_say.c:1158 Codec Activated L16@8000hz 1
channels 20ms
2010-02-10
10:32:22.700352 [DEBUG] switch_ivr_play_say.c:1450 done playing file