[asterisk-users] sound file debug

Danny Nicholas danny at debsinc.com
Tue Oct 12 15:02:40 CDT 2010


Hi gang,

            I have a "fun" one for you.  I'm not getting the quality of
sound I want out of GSM, so I'm trying to make my files into .WAV (.wav)
format.  Here is the "file" output for 5 files:

file *.WAV

cents.WAV:    RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz

dollars.WAV:  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit,
mono 8000 Hz

hundred.WAV:  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz

million.WAV:  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz

thousand.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz

 

million, thousand and hundred play, cents and dollars do not 

here is the CLI output:

core show version

Asterisk 1.4.30 built by root @ debsdev-danny1 on a x86_64 running Linux on
2010-09-27 18:28:58 UTC

    -- Executing [2553 at default:1] Answer("SIP/134-00000087", "") in new
stack

    -- Executing [2553 at default:2] Set("SIP/134-00000087",
"filedir=/var/lib/asterisk/sounds/digits/84108795/en") in new stack

    -- Executing [2553 at default:3] AGI("SIP/134-00000087",
"allwavs.agi|/var/lib/asterisk/sounds/digits/84108795/en|en") in new stack

    -- Launched AGI Script /var/lib/asterisk/agi-bin/allwavs.agi

    -- AGI Script Executing Application: (BACKGROUND) Options:
(/var/lib/asterisk/sounds/digits/84108795/en/thousand)

    -- <SIP/134-00000087> Playing
'/var/lib/asterisk/sounds/digits/84108795/en/thousand' (language 'en')

[Oct 12 14:54:22] ERROR[13545]: utils.c:968 ast_carefulwrite: write()
returned error: Broken pipe

    -- AGI Script Executing Application: (BACKGROUND) Options:
(/var/lib/asterisk/sounds/digits/84108795/en/cents)

[Oct 12 14:54:22] WARNING[13545]: format_wav.c:170 check_header: Can only
handle 16bits per sample: 1

[Oct 12 14:54:22] WARNING[13545]: file.c:385 fn_wrapper: Unable to open
format wav

[Oct 12 14:54:22] WARNING[13545]: file.c:991 ast_streamfile: Unable to open
/var/lib/asterisk/sounds/digits/84108795/en/cents (format 0x4 (ulaw)): No
such file or directory

[Oct 12 14:54:22] WARNING[13545]: pbx.c:5752 pbx_builtin_background:
ast_streamfile failed on SIP/134-00000087 for
/var/lib/asterisk/sounds/digits/84108795/en/cents

[Oct 12 14:54:22] ERROR[13545]: utils.c:968 ast_carefulwrite: write()
returned error: Broken pipe

    -- AGI Script Executing Application: (BACKGROUND) Options:
(/var/lib/asterisk/sounds/digits/84108795/en/million)

    -- <SIP/134-00000087> Playing
'/var/lib/asterisk/sounds/digits/84108795/en/million' (language 'en')

[Oct 12 14:54:23] ERROR[13545]: utils.c:968 ast_carefulwrite: write()
returned error: Broken pipe

    -- AGI Script Executing Application: (BACKGROUND) Options:
(/var/lib/asterisk/sounds/digits/84108795/en/hundred)

    -- <SIP/134-00000087> Playing
'/var/lib/asterisk/sounds/digits/84108795/en/hundred' (language 'en')

[Oct 12 14:54:24] ERROR[13545]: utils.c:968 ast_carefulwrite: write()
returned error: Broken pipe

    -- AGI Script Executing Application: (BACKGROUND) Options:
(/var/lib/asterisk/sounds/digits/84108795/en/dollars)

[Oct 12 14:54:24] WARNING[13545]: format_wav_gsm.c:142 check_header:
Unexpected header size 16

[Oct 12 14:54:24] WARNING[13545]: file.c:385 fn_wrapper: Unable to open
format wav49

[Oct 12 14:54:24] WARNING[13545]: format_wav_gsm.c:142 check_header:
Unexpected header size 16

[Oct 12 14:54:24] WARNING[13545]: file.c:385 fn_wrapper: Unable to open
format wav49

[Oct 12 14:54:24] WARNING[13545]: file.c:991 ast_streamfile: Unable to open
/var/lib/asterisk/sounds/digits/84108795/en/dollars (format 0x4 (ulaw)): No
such file or directory

[Oct 12 14:54:24] WARNING[13545]: pbx.c:5752 pbx_builtin_background:
ast_streamfile failed on SIP/134-00000087 for
/var/lib/asterisk/sounds/digits/84108795/en/dollars

[Oct 12 14:54:24] ERROR[13545]: utils.c:968 ast_carefulwrite: write()
returned error: Broken pipe

    -- AGI Script allwavs.agi completed, returning 0

    -- Executing [2553 at default:4] Hangup("SIP/134-00000087", "") in new
stack

  == Spawn extension (default, 2553, 4) exited non-zero on
'SIP/134-00000087'

    -- Executing [h at default:1] Goto("SIP/134-00000087", "end-call|h|1") in
new stack

    -- Goto (end-call,h,1)

    -- Executing [h at end-call:1] Hangup("SIP/134-00000087", "") in new stack

  == Spawn extension (end-call, h, 1) exited non-zero on 'SIP/134-00000087'

 

I've googled for this and still no joy.  Any ideas?

Danny Nicholas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101012/e1d5aa54/attachment.htm 


More information about the asterisk-users mailing list