<!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>So I could (kind of) solve this by myself. There is in vars.xml the variable ${sound_prefix}. I did set it properly to my french sound path and then it worked.</p>
<p> </p>
<p>However, for the sake of discussion, I did try this with 1.0.5pre8 and the result was different :</p>
<p>with the extension</p>
<p> <extension name="Disable Ringing on FXS"><br /> <condition field="destination_number" expression="^#1234$"><br /> <action application="set_global" data="dont_ring_fxs=true"/><br /> <action application="answer"/><br /> <action application="sleep" data="1000"/><br /> <action application="playback" data="misc/ringing_disabled.wav"/><br /> <action application="hangup" data="normal_clearing"/><br /> </condition><br /> </extension></p>
<p>FS was trying to play the file ${FREESWITCH_PATH}/sounds/en/us/callie/misc/ringing_disabled.wav</p>
<p>with the extension</p>
<p> <extension name="Disable Ringing on FXS"><br /> <condition field="destination_number" expression="^#1234$"><br /> <action application="set" data="default_language=fr"/><br /> <action application="set_global" data="dont_ring_fxs=true"/><br /> <action application="answer"/><br /> <action application="sleep" data="1000"/><br /> <action application="playback" data="misc/ringing_disabled.wav"/><br /> <action application="hangup" data="normal_clearing"/><br /> </condition><br /> </extension></p>
<p>FS was trying to load ${FREESWITCH_PATH}/sounds/fr/fr/julie/misc/ringing_disabled.wav</p>
<p>Now with the latest snapshot, with either one of the 2 mentionned extensions, FS tries to play the file in ${sound_prefix}/filepath/${codec_bit_rate}/filename whereas 1.0.5pre8 did not add the codec_bit_rate in the path but took care of the default_language variable.</p>
<p> </p>
<p>François</p>
<p> </p>
<p>On Wed, 13 Jan 2010 16:32:16 +0100, François Legal wrote:</p>
<blockquote style="border-left: 2px solid #1010ff; padding-left: 5px; margin-left: 5px; width: 100%;">
<p>Hello,</p>
<p> </p>
<p>trying to make so dialplan extensions that use the playback and play_and_get_digits applications, but I'm having trouble with the file name specification.</p>
<p> </p>
<p>The files I want to play are in the french language (fr/fr/julie as configured in lang/fr/fr.xml)</p>
<p>My extension is as follows :</p>
<br />
<p> <extension name="Disable Ringing on FXS"><br /> <condition field="destination_number" expression="^#1234$"><br /> <action application="set" data="default_language=fr"/><br /> <action application="set_global" data="dont_ring_fxs=true"/><br /> <action application="answer"/><br /> <action application="sleep" data="1000"/><br /> <action application="playback" data="misc/ringing_disabled.wav"/><br /> <action application="hangup" data="normal_clearing"/><br /> </condition><br /> </extension></p>
<p>The channel is using a bit rate of 8000 Hz, so by the set default_language=fr I would expect freeswitch to playback the file at ${FREESWITCH_PATH}/sounds/fr/fr/julie/misc/8000/ringing_disabled.wav whereas it tries to playback the file at ${FREESWITCH_PATH}/sounds/en/us/callie/misc/8000/ringing_disabled.wav</p>
<p>I have the same with play_and_get_digits application.</p>
<p> </p>
<p>What am I doing wrong ?</p>
<p> </p>
<p>François</p>
</blockquote>
<p> </p>