login | register
Sat 17 of May, 2008 [06:42 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.
 
Google Ads
Shoutbox
  • Juan Ortega, Thu 15 of May, 2008 [10:33 UTC]: Hi everybody, I'm Juan, an ITCom student, and I need to know what basic elements I need to create a VoIP network. Can anybody helpme, please?,Thank you very much
  • gineta, Wed 14 of May, 2008 [03:58 UTC]: any here not fine the configuration of firewall juniper -screem for VOIP asterisk????
  • Anoop Prabhakaran, Tue 13 of May, 2008 [12:16 UTC]: I am developing Asterisk IVR, Whenever i make a internation call to the IVR system, the DTMF is not getting detected properly, this happens only for the first time, second call onwards system works fine. why this is happening
  • joe, Mon 12 of May, 2008 [04:27 UTC]: Is there an opensource browser based softphone, or a system like Busta where everything is not manages through their website?
  • Nick Barnes, Fri 09 of May, 2008 [11:36 UTC]: Christopher - yesterday I tried an Asterisk install on a CentOS 5.1 box with stock GUI and it all worked fine. Sorry I can't help.
  • aero, Fri 09 of May, 2008 [08:20 UTC]: can someone help me out on this, i tried to play some sound files on my asterisk box and this is the error message i got. WARNING[4429]: format_wav.c:169 check_header: Unexpected freqency 22050 May 8 11:17:39 WARNING[4433]: codec_gsm.c:194 gsmtolin_fra
  • Christopher Faust, Thu 08 of May, 2008 [14:15 UTC]: I beleive that I may have to change something in the xserver configuration. Please advise
  • Christopher Faust, Thu 08 of May, 2008 [14:14 UTC]: Everything was perfect. In the bios I have increased the memory allocated Still receive input not supported on my display.
  • Christopher Faust, Thu 08 of May, 2008 [14:13 UTC]: This would not be my main box. I am doing some testing to see if I can install zaptel and asterisk 1.4 on a full centos 5.1 box with development software Its bizzare, because before I went through the asterisk and zaptel installation everything was perfe
  • Nick Barnes, Thu 08 of May, 2008 [13:44 UTC]: Christopher - I can't see any way in which an Asterisk installation would muck your GUI, but remember that it is advised not to use a GUI on an Asterisk box anyway.
Server Stats
  • Execution time: 0.42s
  • Memory usage: 2.20MB
  • Database queries: 29
  • GZIP: Disabled
  • Server load: 0.92

mpg123

Quoted from the homepage:

"mpg123 is a real time MPEG Audio Player for Layer 1,2 and Layer3. (MPEG 2.0 with Layer1/2 not heavily tested) Tested with Linux, FreeBSD, SunOS4.1.3, Solaris 2.5, HPUX 9.x and SGI Irix. Plays Layer 3 in stereo on an AMD-486-120Mhz or (of course) a faster machine. (Just for info: mpg123 plays an average 128bps stream, with about 66% in full quality on my AMD 486-133MHz machine) Note: this player is only for non commercial use."

Homepage of MPG123

mpg123 version 0.59r is known to work with Asterisk.

Do not install or use mpg321 on the linux-System because it does not do the necessary converting of the frequency.
So e.g. if your music on hold sounds odd on the phone, most likely there is a problem with the codec/player.

INSTALLING THE CORRECT VERSION
If you are *EVER* unsure that mpg123 is correctly installed (correct verison etc), you can enter the asterisk source tree, and type 'make mpg123' (without quotes), and mpg123 v0.59r will be download ed, unpacked, and built for you, and then a simple make install will install asterisk AND mpg123 in one smooth motion.
-Josh

Also see format_mp3 from asterisk-addons. This can be used as a replacement for a external mp3 decoder.
See Asterisk MusicOnHold Configuration for more info.

See Also

Created by Yosh, Last modification by jamieg on Tue 07 of Jun, 2005 [13:35 UTC]

Comments Filter

broken'make mpg123'

by steelback on Friday 02 of February, 2007 [18:56:16 UTC]
thanks to Mathias Pasquay, your solution helped me
I have the same problem with Slackware 11.0, gcc 3.4.6, GNU Make 3.81

Same Problem in Suse 10.2

by Silvio Lucas on Friday 26 of January, 2007 [12:44:10 UTC]


gcc: gcc-4.1.3-29
make: make-3.81-23

I was compilling mpg123 in my suse box (10.2 version) and I had the same problem of Mathias Pasquay. I did the same changes and works normally. I don't know why, but works. :) My gcc is gcc-4.1.3-29 and make is make-3.81-23.

by callwbs on Monday 13 of November, 2006 [06:24:16 UTC]
Thanks for the post - it fixed our issue with Fedora Core6.

Debian Sid (gcc 4.11 and make 3.81) workaround

by Mathias Pasquay on Sunday 22 of October, 2006 [11:25:43 UTC]
If you try to compile mpg123 with "make mpg123" on a Debian Sid system you'll get the following compile error:

<pre>
gcc -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX \
       -DREAD_MMAP -DOSS -DTERM_CONTROL\
       -Wall -O2 -m486 \
       -fomit-frame-pointer -funroll-all-loops \
       -finline-functions -ffast-math   -c -o dct64_i386.o dct64_i386.c
<command line>:1:13: warning: missing whitespace after the macro name
as -o decode_i586.o decode_i586.s
make3: *** No rule to make target `\
', needed by `mpg123'. Stop.
</pre>

I just changed these lines in the Makefile
<pre>
linux:
               $(MAKE) CC=gcc LDFLAGS= \
               OBJECTS='decode_i386.o dct64_i386.o decode_i586.o \
                       audio_oss.o term.o' \
               CFLAGS='-DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX \
                       -DREAD_MMAP -DOSS -DTERM_CONTROL\
                       -Wall -O2 -m486 \
                       -fomit-frame-pointer -funroll-all-loops \
                       -finline-functions -ffast-math' \
               mpg123-make
</pre>

in these two lines

<pre>
linux:
               $(MAKE) CC=gcc LDFLAGS= OBJECTS='decode_i386.o dct64_i386.o decode_i586.o audio_oss.o term.o' CFLAGS='-DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX  -DREAD_MMAP -DOSS -DTERM_CONTROL -Wall -O2 -m486 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math' mpg123-make

</pre>


now it works. I don't know if this is a Debian specific problem or if it has something to do with my make or gcc version.

Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2008 VOIP-Info.org LLC

Powered by bitweaver