[asterisk-users] Asterisk cant play sounds from AGI

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Jul 11 12:50:03 CDT 2008


On Friday 11 July 2008 12:40:47 Edwin Quijada wrote:
> > From: daniel at highdesertchurch.com
> > To: asterisk-users at lists.digium.com
> > Date: Fri, 11 Jul 2008 08:10:38 -0700
> > Subject: Re: [asterisk-users] Asterisk cant play sounds from AGI
> >
> > On Jul 10, 2008, at 7:54 PM, Edwin Quijada wrote:
> >> Hi! I am a newbie using Asterisk. I am developing an IVR using perl
> >> from AGI and Cepstral as voices
> >> The AGI is this
> >
> > [snip]
> >
> >> My problem is that i cant hear anything when play the file sound
> >> using $AGI->stream_file($filename);
> >> I put asterisk in verbose mode but just see that it plays the sound
> >> but I cant hear anything.
> >>
> >> I thought maybe was the codec but asterisk can play .wav
> >> But this works
> >> $AGI->say_number('9865');
> >
> > If Asterisk says it is playing the file, then I would suspect the file
> > itself has nothing to say. Try copying the file to your computer and
> > playing it. If it does indeed play locally on your computer with
> > audio, double check to make sure it is in the right format. I use AGI
> > to play files all the time. Actually, I use an AGI script as my whole
> > menu and dialing system to replace having to do it in AEL (so much
> > nicer to add a single MySQL record and suddenly have voicemail and
> > direct dial work instantly).
> >
> > Daniel
>
> I tested the files playing in other app, Winamp, and the file play fine.
> I tested with other files ,sounds from asterisk, and I get the same thing.
> In my spftphone doesnt hear anything
> But this works
>
> >> $AGI->say_number('9865')
>
> so fine.

Check the format of the file.  In most cases, the file should be 8000Hz,
single channel, uncompressed, signed linear, 16-bit samples format.  Winamp
can play a great many different formats, but Asterisk is limited to the
formats for which it has a translator.

-- 
Tilghman



More information about the asterisk-users mailing list