Er, found the problem. For some reason OpenPBX expects the file  
suffix to be in all caps, ie .WAV but the tarball from the website is  
in lower case, ie .wav. ... And Mac by default creates a case  
insensitive filesystem, so you do an ls on demo-echotest.WAV and it  
finds demo-echotest.wav. renaming the file to be .WAV works. But will  
this break anything else?

Is there a way to specify lower case .wav when the opbx_filehelper  
goes to look for a file to transcode and play?

Jesse


On 27/01/2007, at 10:10 PM, Jesse Reynolds wrote:

> Hello
>
> I'm hoping someone can suggest something I've done wrong here ... or
> if it all looks good, then I guess this is another Mac OS X bug.
>
> I've just found and installed the 8k openpbx sounds, and installed
> them at /usr/local/openpbx.org/var/data/sounds/ - which is the
> location specified in the openpbx.conf config file as follows:
>
> opbxsoundsdir => /usr/local/openpbx.org/var/data/sounds
>
> But when I try calling the 600 echo test, no sound recording is
> played, and I still get "No such file or directory". Is this because
> it's somehow unable to transcode WAV go gsm format? Here is the
> verbose output from OpenPBX when calling 600:
>
>      -- Accepting AUTHENTICATED call from 192.168.1.30:
>> requested format = gsm,
>> requested prefs = (),
>> actual format = gsm,
>> host prefs = (),
>> priority = mine
>      -- Executing Playback("IAX2/jesse2-4", "demo-echotest") in new
> stack
> Jan 27 22:00:59 WARNING[876]: format_wav_gsm.c:151 check_header:
> Unexpected header size 16
> Jan 27 22:00:59 WARNING[876]: file.c:432 opbx_filehelper: Unable to
> open file on /usr/local/openpbx.org/var/data/sounds/demo-echotest.WAV
> Jan 27 22:00:59 WARNING[876]: format_wav_gsm.c:151 check_header:
> Unexpected header size 16
> Jan 27 22:00:59 WARNING[876]: file.c:432 opbx_filehelper: Unable to
> open file on /usr/local/openpbx.org/var/data/sounds/demo-echotest.WAV
> Jan 27 22:00:59 WARNING[876]: file.c:817 opbx_streamfile: Unable to
> open demo-echotest (format gsm): No such file or directory
> Jan 27 22:00:59 WARNING[876]: app_playback.c:126 playback_exec:
> opbx_streamfile failed on IAX2/jesse2-4 for demo-echotest
>      -- Executing Echo("IAX2/jesse2-4", "") in new stack
>
>
> Here is the file it's talking about:
>
> phoney root# ls -ld /usr/local/openpbx.org/var/data/sounds/demo-
> echotest.WAV
> -rw-r--r--   1 openpbx  openpbx  139020 Nov 30 04:03 /usr/local/
> openpbx.org/var/data/sounds/demo-echotest.WAV
>
> phoney root# file /usr/local/openpbx.org/var/data/sounds/demo-
> echotest.WAV
> /usr/local/openpbx.org/var/data/sounds/demo-echotest.WAV: RIFF
> (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
>
> directory permissions:
>
> drwxr-x---   5 openpbx  openpbx  170 Jan 27 22:06 /usr/local/
> openpbx.org/var
> drwxr-xr-x   8 root  openpbx  272 Jan 27 21:51 /usr/local/openpbx.org/
> var/data
> drwxr-xr-x   209 openpbx  openpbx  7106 Nov 30 04:01 /usr/local/
> openpbx.org/var/data/sounds
>
> Thanks
> Jesse
>
>    Jesse Reynolds
>    Virtual Artists Pty Ltd - http://www.va.com.au/
>    Phone: 08 8223 2288    Mobile: 0414 669 790
>
>
> _______________________________________________
> Openpbx-users mailing list
> [email protected]
> http://lists.openpbx.org/mailman/listinfo/openpbx-users

   Jesse Reynolds
   Virtual Artists Pty Ltd - http://www.va.com.au/
   Phone: 08 8223 2288    Mobile: 0414 669 790


_______________________________________________
Openpbx-users mailing list
[email protected]
http://lists.openpbx.org/mailman/listinfo/openpbx-users

Reply via email to