MP3s not decoding properly for MusicOnHold.

Home » Asterisk Users » MP3s not decoding properly for MusicOnHold.
Asterisk Users 2 Comments

I have some MP3 files that play well in any MP3 player I throw at them,
but when I try to make a MusicOnHold class with them, I get a continuous
stream of errors like this:

[Dec 2 13:20:31] WARNING[9120]: mp3/common.c:148 decode_header: Layer 2
not supported!
[Dec 2 13:20:31] WARNING[9120]: mp3/interface.c:216 decodeMP3: Junk at
the beginning of frame 50686f74
[Dec 2 13:20:31] WARNING[9120]: mp3/interface.c:216 decodeMP3: Junk at
the beginning of frame e7becffc
[Dec 2 13:20:31] WARNING[9120]: mp3/interface.c:216 decodeMP3: Junk at
the beginning of frame 49443302

I figured this was something that was answered before, but googling for
this error message reveals nothing.

2 thoughts on - MP3s not decoding properly for MusicOnHold.

  • Not addressing your errors, but why would you want to burn CPU resources
    decoding MP3s over and over? If you decode the files to
    [wav|ulaw|slin|xxx] the files will ‘just work’ and you’ll have more cycles
    for more fun stuff like handling calls.

  • Hello,

    in order to play the music in asterisk like a MusicOnHold you can convert
    it from MP3 to GSM

    Regards,

    2010/12/2 Steve Edwards

    href=”mailto:sedwards@sedwards.com”>sedwards@sedwards.com Voice: +1-760-468-3867 PST