[asterisk-bugs] [Asterisk 0015224]: mp3 playback not working via AGI "STREAM FILE", but "EXEC PLAYBACK" works
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Jul 20 02:24:09 CDT 2009
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=15224
======================================================================
Reported By: rbd
Assigned To: tilghman
======================================================================
Project: Asterisk
Issue ID: 15224
Category: Addons/format_mp3
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Asterisk Version: 1.4.24
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-05-29 12:49 CDT
Last Modified: 2009-07-20 02:24 CDT
======================================================================
Summary: mp3 playback not working via AGI "STREAM FILE", but
"EXEC PLAYBACK" works
Description:
-Ubuntu 8.10 x64
-Using Asterisk 1.4.24 (compiled from source), Addons 1.4.7
Trying to play an MP3 file via FastAGI "STREAM FILE" and/or "GET DATA"
commands fails, with the command returning immediately (log attached). We
have tried two different types of mp3 files:
-16-bit, 44.100kHz, CBR, 128kbit
(http://asterisk.gnuinter.net/files/digium/asterisk-ng/sounds/fpm-calm-river.mp3,
from the standard asterisk-addons distribution)
-16-bit, 11.025kHZ, CBR, 32kbit
Playing either mp3 with the Playback() callflow command (from
extensions.conf) works fine. It just seems that things are broken with
AGI.
This is a problem for us because EXEC PLAYBACK can't take DTMF. We need to
process DTMF like STREAM DATA allows for.
The AGI server script we are using is attached.
Note that in the log snippets you will see mention of voiceglue/phoneglue.
This is because we are working the voiceglue folks to get mp3 playback
working with it, and saw this bug. Note that in this testing here, we have
totally removed voiceglue out of the picture. This is just plain old
asterisk playing a plain old MP3 file.
======================================================================
----------------------------------------------------------------------
(0107943) mflorell (reporter) - 2009-07-20 02:24
https://issues.asterisk.org/view.php?id=15224#c107943
----------------------------------------------------------------------
Update on my problem. It seems that something didn't like the formatting of
the first file I was trying to play during the call through AGI on some
systems(but it didn't display any errors), and it seems if STREAM FILE
encounters any problems it won't actually stream any more files during that
call through the STREAM FILE command(even if it says it is playing them),
but other commands will work just fine. I have not been able to isolate
what causes the problem on only some systems, but reformatting all audio
files to 16bit 8k PCM mono has fixed the issue on those affected systems
for me.
Issue History
Date Modified Username Field Change
======================================================================
2009-07-20 02:24 mflorell Note Added: 0107943
======================================================================
More information about the asterisk-bugs
mailing list