Could you try this with latest trunk as well for comparison, I just changed the way the sounds base directory is set and I want to make sure I did not mess anything up.

Mike

On Jan 14, 2010, at 3:23 AM, François Legal wrote:

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.

 

However, for the sake of discussion, I did try this with 1.0.5pre8 and the result was different :

with the extension

  <extension name="Disable Ringing on FXS">
   <condition field="destination_number" expression="^#1234$">
    <action application="set_global" data="dont_ring_fxs=true"/>
    <action application="answer"/>
    <action application="sleep" data="1000"/>
    <action application="playback" data="misc/ringing_disabled.wav"/>
    <action application="hangup" data="normal_clearing"/>
   </condition>
  </extension>

FS was trying to play the file ${FREESWITCH_PATH}/sounds/en/us/callie/misc/ringing_disabled.wav

with the extension

  <extension name="Disable Ringing on FXS">
   <condition field="destination_number" expression="^#1234$">
    <action application="set" data="default_language=fr"/>
    <action application="set_global" data="dont_ring_fxs=true"/>
    <action application="answer"/>
    <action application="sleep" data="1000"/>
    <action application="playback" data="misc/ringing_disabled.wav"/>
    <action application="hangup" data="normal_clearing"/>
   </condition>
  </extension>

FS was trying to load ${FREESWITCH_PATH}/sounds/fr/fr/julie/misc/ringing_disabled.wav

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.

 

François

 

On Wed, 13 Jan 2010 16:32:16 +0100, François Legal wrote:

Hello,

 

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.

 

The files I want to play are in the french language (fr/fr/julie as configured in lang/fr/fr.xml)

My extension is as follows :


  <extension name="Disable Ringing on FXS">
   <condition field="destination_number" expression="^#1234$">
    <action application="set" data="default_language=fr"/>
    <action application="set_global" data="dont_ring_fxs=true"/>
    <action application="answer"/>
    <action application="sleep" data="1000"/>
    <action application="playback" data="misc/ringing_disabled.wav"/>
    <action application="hangup" data="normal_clearing"/>
   </condition>
  </extension>

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

I have the same with play_and_get_digits application.

 

What am I doing wrong ?

 

François

 
_______________________________________________
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