Asterisk MOH error solution

Posted on March 6, 2008 14:54 by brian

Tired of receiving messages like the following every 8 minutes?

Mar  3 15:37:06 WARNING[11697] res_musiconhold.c: Found no files in '/var/lib/asterisk/mohmp3'
Mar  3 15:37:06 WARNING[11697] res_musiconhold.c: Unable to spawn mp3player

Despite not having MOH (Music On Hold) setup, for some reason Asterisk insists on looking for mp3 files.  Why it does so, I have no idea.  Seems pretty silly to go looking for them if you're not even using that feature...  Oh well...

The solution is VERY simple though.  Just touch anything.mp3 in the listed directory and Asterisk will quit bugging you.  Doesn't matter that you just created a completely empty file without a proper mp3 header.  Asterisk only seems to care that something (anything) exist in that directory with the extension of ".mp3"!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

March 7. 2008 05:48

Josh Pollard

that seems like a bug you should report

Josh Pollard us

March 7. 2008 16:07

Brian Knoblauch

Probably, but I've pretty much given up on reporting bugs/issues with open source software (reports usually seem to fall into a blackhole and disappear) and I just don't have the time to dive into the code myself right now.

Brian Knoblauch us

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

July 23. 2008 11:25