В общем часа три шаманил над тем чтоб запустить wav, выдает такую ошибку:
[Aug 10 14:08:05] WARNING[32289]: file.c:698 ast_openstream_full: File record/output does not exist in any format
[Aug 10 14:08:05] WARNING[32289]: file.c:1021 ast_streamfile: Unable to open record/output (format (ulaw)): No such file or directory
[Aug 10 14:08:05] WARNING[32289]: pbx.c:9940 pbx_builtin_background: ast_streamfile failed on SIP/333-00000002 for record/output
Сам файл перегонял так:
sox input.wav -r 8000 -c 1 output.wav
Права на чтение есть
Сам файл который пытается открыть https://rapidshare.com/files/441862669/output.wav
Как все-таки заставить его читать этот файл?
100001 audio g723 (G.723.1)
100002 audio gsm (GSM)
100003 audio ulaw (G.711 u-law)
100004 audio alaw (G.711 A-law)
100011 audio g726 (G.726 RFC3551)
100006 audio adpcm (ADPCM)
100019 audio slin (16 bit Signed Linear PCM)
100007 audio lpc10 (LPC10)
100008 audio g729 (G.729A)
100009 audio speex (SpeeX)
100016 audio speex16 (SpeeX 16khz)
100010 audio ilbc (iLBC)
100005 audio g726aal2 (G.726 AAL2)
100012 audio g722 (G722)
100021 audio slin16 (16 bit Signed Linear PCM (16kHz))
300001 image jpeg (JPEG image)
300002 image png (PNG image)
200001 video h261 (H.261 Video)
200002 video h263 (H.263 Video)
200003 video h263p (H.263+ Video)
200004 video h264 (H.264 Video)
200005 video mpeg4 (MPEG4 Video)
400001 text red (T.140 Realtime Text with redundancy)
400002 text t140 (Passthrough T.140 Realtime Text)
100013 audio siren7 (ITU G.722.1 (Siren7, licensed from Polycom))
100014 audio siren14 (ITU G.722.1 Annex C, (Siren14, licensed from Polycom))
100017 audio testlaw (G.711 test-law)
100015 audio g719 (ITU G.719)
100028 audio speex32 (SpeeX 32khz)
100020 audio slin12 (16 bit Signed Linear PCM (12kHz))
100022 audio slin24 (16 bit Signed Linear PCM (24kHz))
100023 audio slin32 (16 bit Signed Linear PCM (32kHz))
100024 audio slin44 (16 bit Signed Linear PCM (44kHz))
100025 audio slin48 (16 bit Signed Linear PCM (48kHz))
100026 audio slin96 (16 bit Signed Linear PCM (96kHz))
100027 audio slin192 (16 bit Signed Linear PCM (192kHz))
100018 audio silk8 (SILK Custom Format 8khz)
100018 audio silk12 (SILK Custom Format 12khz)
100018 audio silk16 (SILK Custom Format 16khz)
100018 audio silk24 (SILK Custom Format 24khz)
Asterisk 10.5
extensions.conf
[voicemenu-custom-1]
include=default
exten=s,1,NoOp(Demo-ivr-menu)
exten=s,2,Answer()
exten=s,3,Background(/var/lib/asterisk/sounds/record/foo-out.sln)
exten=s,4,Wait(50)
спросил
2012-08-10 15:16:04 +0400
dobs 62 ● 15 ● 2 ● 12