Summary:ASTERISK-02384: app_mp3 used in MP3Player fails to play stream due to timeout
Reporter:alcot2 (alcot2)Labels:
Date Opened:2004-09-11 03:34:05Date Closed:2008-01-15 15:07:15.000-0600
Versions:Frequency of
is related toASTERISK-27752 Ten seconds of silence after mp3 playback
Description:app_mp3 when called in MP3Player with URL as parameter fails to play remote stream

Try with :



The timeout used in app_mp3.c is apparently too short and works OK only for local MP3 files. When buffering through the network a larger timeout should be more appropriate. Since timeout in streaming URLs may actually be depending on bandwidth & remote server speed/latency it would actually be nice to be able to set the timeout as a paramenter in MP3Player for each URL.

Error message is as follows:
Sep 11 10:00:04 NOTICE[442385]: Selected timed out/errored out with 0

No problems when playing local mp3 files.

compiled on Linux Slackware 10

Comments:By: alcot2 (alcot2) 2004-09-11 03:42:53

Bug reported using mpg123-059r

By: twisted (twisted) 2004-09-11 05:02:59

Seeing as this was on CVS-HEAD-05/27/04-17:35:10, I'm going to reccomend you update, and see if this problem has not been corrected since May.. It's september now.  :)  

Also, lowering severity, as this does not even remotely qualify as a block.

By: Mark Spencer (markster) 2004-09-11 09:29:10

Okay I made it use 10 seconds if you're running http...

By: alcot2 (alcot2) 2004-09-29 12:41:44

Reminder sent to markster

Hi There,

re. Bug ID# 0002418 : I am sorry but could not check your fix earlier. The bug is closed, but I still have problems on most streams. Some *DO* work, most DO NOT, and I cannot understand the reason for such difference. The bug is closed - do I have to open another bug for the same problem?

Please try for example with this with http://mp3.nexus.org:8000/irn.mp3

exten => 8602,3,MP3Player(http://mp3-4.nexus.org:8000/irn.mp3)

;exten => 8602,3,MP3Player(http://mp3-4.nexus.org:8000/irn.mp3)

exten => 8603,2,MP3Player(http://mp3-4.nexus.org:8000/irn64.mp3)

exten => 8603,3,MP3Player(http://stream.buyhear.com/jazz)

This instead works OK :

exten => 8604,2,MP3Player(http://broadcast.umbc.edu:8001/elektronkind)


When it fails, it keeps trying and I can hear some fragments .. but at last it aborts. The stream at nexus.org are almost local here and it is not a bandwidth issue.

Also: audio level is quite low (also for local mp3 files played from Asterisk) -- any way to raise the audio level?


Alfredo (alfredo@nexus.org)

By: Digium Subversion (svnbot) 2008-01-15 15:07:15.000-0600

Repository: asterisk
Revision: 3763

U   trunk/apps/app_mp3.c

r3763 | markster | 2008-01-15 15:07:14 -0600 (Tue, 15 Jan 2008) | 2 lines

Use longer timeout if using http (bug ASTERISK-2384)