Problem solved. found that Asterisk is calling mpg123 to playback mp3's
which isn't installed on Slackware 9.1 by default. Downloaded mpg123 source
from http://www.mpg123.de/ and compiled with make linux; make install and
now working.
Also discovered that mpg123 doesn't seem to playback mp3's with ID3 tags
in
them, so strip them out before copying them to your Asterisk box.
_____
From: asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Christopher Lee
Sent: Thursday, 22 January 2004 11:18 AM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] mp3player not working
Hi,
I'm running the latest Asterisk (built last Saturday) and can't get
mp3's to
playback on my handsets (this includes music on hold).
I setup a couple of extensions, 901 and 902 to playback an mp3 I loaded on,
and the sample moh that is included with Asterisk.
When I attempt to call either extension I don't hear any sound, and the
following displays on the console:
-- Executing Answer("SIP/931-0efa", "") in new stack
-- Executing Wait("SIP/931-0efa", "1") in new stack
-- Executing MP3Player("SIP/931-0efa",
"/var/lib/asterisk/mohmp3/sample-hold
.mp3") in new stack
Jan 22 11:12:32 WARNING[442386]: rtp.c:375 ast_rtp_read: RTP Read error:
Resourc
e temporarily unavailable
Jan 22 11:12:35 NOTICE[442386]: app_mp3.c:93 timed_read: Selected timed
out/erro
red out with 0
-- Executing Wait("SIP/931-0efa", "20") in new stack
== Spawn extension (local, 902, 4) exited non-zero on 'SIP/931-0efa'
The IP phones I'm using are Cisco 7940 running G.729a. I have successfully
licenced and registered 2x channels of g729 codec (running the
new_codec_binary from ftp.digium.com <ftp://ftp.digium.com/> ) today, and
have no problems checking my voicemail on Asterisk or dialing out through
IAXtel or receiving calls.
Even when I was running g711ulaw codec on the phones I had the same problem.
Is there another dependency that is required for mp3playback in Linux? Is a
soundcard required?
My Linux box is running Slackware Linux 9.1.
Any help to point me in the right direction to getting mp3playback and my
music on hold working would be greatly appreciated.
Thanks in advance,
Chris Lee
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20040122/9897088d/attachment.htm