[Freeswitch-users] mutiple playback files (unescape_char) Windows

Diego Toro dftoro at yahoo.com
Thu Jan 21 05:02:40 PST 2010


Hi MikeJ, using '\\' the behavior is the same, '\\s' is replaced by ' '.

<action application="playback" data="misc\\8000\\serror.wav!misc\\8000\\provide_reference_number.wav!digits\\8000\\5.wav"/>  

Console output error is:

[ERR] mod_sndfile.c:194 Error Opening File [d:\fs\fs_trunk_20100118\Debug\sounds\es\co\callie\misc\8000 error.wav]


S.O.: Windows 7
FreeSwitch: Trunk (svn latest version)

Thank you


Diego Toro
http://lacarretade.blogspot.com/


--- On Thu, 1/21/10, Michael Jerris <mike at jerris.com> wrote:

> From: Michael Jerris <mike at jerris.com>
> Subject: Re: [Freeswitch-users] mutiple playback files (unescape_char) Windows
> To: freeswitch-users at lists.freeswitch.org
> Date: Thursday, January 21, 2010, 2:12 AM
> 
> On Jan 20, 2010, at 6:31 PM, Diego Toro
> wrote:
> Greetings
> 
> I have a next section dial plan:
> 
> <action application="set"
> data="sound_prefix=$${base_dir}\sounds\es\co\callie\"
> />
> <action application="set"
> data="playback_delimiter=!"/>
> 
> <action application="playback"
> data="misc\8000\serror.wav!misc\8000\provide_reference_number.wav!digits\8000\5.wav"
> />  
> 
> 
> 
> <action
> application="playback"
> data="misc\\8000\\serror.wav!misc\\8000\\provide_reference_number.wav!digits\\8000\\5.wav"
> />  
> ??
> ....
> 
> I have a problem using multiple playback files on Windows,
> the path  misc\8000\serror.wav is changed by
> misc\8000 serror.wav.  I check C code on
> switch_utils.c, cleanup_separated_string function call to
> unescape_char function which change \s by ' '.
> This is correct, but on Windows '\' is the path
> separator, so is not possible to use  '\s',
> '\n'... into path file. I think this is possible
> to fix it.
> 
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 


      




More information about the FreeSWITCH-users mailing list