Music on hold problems in 0.9

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#1
In Music on hold module in 0.9, I can't see any songs at Elastix interface (but they are in /var/lib/asterisk/sounds!)
After changing /etc/php.ini to enable 20mb files, when I try to upload a mp3 file I get an error:
Error Processing: "sh: lame: command not found" for Songname.mp3
I installed lame from source, but get the same error!<br><br>Post edited by: ramoncio, at: 2007/11/02 04:06
 

lek

Guest
#2
Thanks for your post ramoncio. Have you tried 0.9-beta2?

We have fixed a bug when you upload sound files.

We'll try to see what happens. Meanwhile, please send us as much info as you can about this bug.
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#3
In 0.9.0 Beta 2 the musiconhold_additional.conf is not there. Add the file and

[default]
mode=files
directory=/var/lib/asterisk/mohmp3/
random=yes

and optionally add if you want to use the acc_1 class that was pre-setup upon install.

[acc_1]
mode=files
directory=/var/lib/asterisk/mohmp3/acc_1/
random=yes

(just make sure you upload some files to it)

All working fine now. Confirmed by checking under the CLI that it could not see files, or classes before zeroing on the issue.

Hope this helps...

Bob
 

lek

Guest
#4
Hmm... it seems to work. Thanks Bob!

Ramoncio. This fix your issue too?<br><br>Post edited by: edgar, at: 2007/11/06 05:05
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#5
Edgar,

That gets the musiconhold working, however, there is another issue with the embedded Freepbx which relates to the MusicOnHold list, which I have listed under a different thread
0.9 Beta 2 issues - Bobs List
 

adminad

Joined
Apr 29, 2010
Messages
150
Likes
0
Points
0
#6
Dear Bob,

I went to your post but the issues are not listed there ;(
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#7
I didn't do anything with musiconhold_additional.conf , I just added some folders with mp3's through scp and the file was created automatically at some moment.

But I still don't see the songs.

You could put a link to listen to the song, this would be nice, easy & cool.
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#8
Admin,

Sorry about that, completed the first post, and went to start adding issues, and the Elastix web site became unavailable for a short period.

Are you having problems with the Website??

It was down on the weekend as well for 12+ hours....
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Likes
1
Points
36
#9
Ramoncio,

You are spot on.

I found the code that performed this task while looking last night at the other issue that you have mentioned.

It appears in the "trixbox/freepbx" product they have already populated as part of the iso.

The issue you mentioned re: listing is a more systemic issue which I have described (but no immediate solution at this second) in 0.9 beta 2 - Bobs list

Regards

Bob
 

adminad

Joined
Apr 29, 2010
Messages
150
Likes
0
Points
0
#10
The real problem is in the freePBX code. Please edit the file /var/www/html/admin/modules/music/page.music.php and after these lines:

if ($category == "default")
$path_to_dir = $asterisk_conf['astvarlibdir']."/mohmp3"; //path to directory u want to read.
else
$path_to_dir = $asterisk_conf['astvarlibdir']."/mohmp3/$category"; //path to directory u want to read.
Add one additional line:

$GLOBALS['path_to_dir'] = $path_to_dir;

I think this is the line 29.

Anyway we'll fix this issue in the next release.
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#11
Great!
One less issue!
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top