3 thoughts on - wav files are not playing asterisk

  • Hi

    I am using Asterisks as client. By console dial I can make calls.
    When do “dial s” from console it wil play demo files that I can here
    from headphone connected to asterisk running system(Android OS).If I
    play gsm file noise is coming,but asterisk is not playing wav
    files,below is the error I am getting. Where I can see the channels is
    encodes as GSM,and how to change to wav.?

    *CLI> dial s

  • Your error is in front of you.

    format_wav.c:148 check_header: Not in mono 2
    [Feb 28 22:27:07] WARNING[2736]: file.c:386 fn_wrapper: Unable to open
    format wav

    Your wav file is not in proper format.

    Must be mono, and at 8khz, 16bit

    You can resample by using this command:

    sox foo-in.wav -r 8000 -c 1 -s -w foo-out.wav resample -ql

    more info here: (found by using a cool search engine called google and
    typing “asterisk wav format”

    http://www.voip-info.org/wiki/view/Convert+WAV+audio+files+for+use+in+Asteri
    sk

    [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Nikhil
    Sent: Wednesday, March 02, 2011 12:51 AM

    Hi

    I am using Asterisks as client. By console dial I can make calls. When do
    “dial s” from console it wil play demo files that I can here from headphone
    connected to asterisk running system(Android OS).If I play gsm file noise is
    coming,but asterisk is not playing wav files,below is the error I am
    getting. Where I can see the channels is encodes as GSM,and how to change to
    wav.?

    *CLI> dial s