Music on hold (moh) - asterisk v1.4.16.1 - freepbx 2.3.1.3

I have just installed asterisk v1.4.16.1 with freepbx 2.3.1.3 to try out 1.4 on debian etch

I have the following music on hold issue, which i have fixed but, suspect is a freepbx bug, would people offer an opinion, as i dont want to submit as a bug if it isnt.

So as follows:

When you go to the music on hold section of the freepbx interface you get some php errors the nub of which is that:

/var/lib/asterisk/mohmp3 does not exist.

I checked and it doesn’t, this directory is there in my 1.2 install which contains some mp3s

There is however a:

/var/lib/asterisk/moh on 1.4

which contains some wav files

to correct the problem i created a symlink as follows

ln -s /var/lib/asterisk/moh /var/lib/asterisk/mohmp3

then

chown asterisk:asterisk /var/lib/asterisk/mohmp3

I hope this is helpful for those needing help with the same problem.

I would appreciate comment as to whether this is a bug related to 1.4 asterisk.

The install_amp code should make that directory for you. FreePBX continues to use mohmp3 despite the fact that Asterisk decided to change names going to 1.4. Ultimately Asterisk does not care because it is specified in the conf file.

I say should because I don’t look at that portion of the code that often, but there is a generic routine that is suppose to check and create directories if they don’t exist. If you installed telling it to ignore the music files then this would have been skipped.

I installed with the usual ./install approach and pretty much took the default options ie. I did not knowingly tell it to ignore music files. I will be trying the install again after christmas and will report back.