Music on hold problems in 0.9

Discussion in 'General' started by ramoncio, Nov 2, 2007.

  1. ramoncio

    Joined:
    May 12, 2010
    Messages:
    1,663
    Likes Received:
    0
    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
     
  2. lek

    lek Guest

    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.
     
  3. Bob

    Bob

    Joined:
    Nov 4, 2007
    Messages:
    2,400
    Likes Received:
    1
    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
     
  4. lek

    lek Guest

    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
     
  5. Bob

    Bob

    Joined:
    Nov 4, 2007
    Messages:
    2,400
    Likes Received:
    1
    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
     
  6. adminad

    Joined:
    Apr 29, 2010
    Messages:
    150
    Likes Received:
    0
    Dear Bob,

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

    Joined:
    May 12, 2010
    Messages:
    1,663
    Likes Received:
    0
    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.
     
  8. Bob

    Bob

    Joined:
    Nov 4, 2007
    Messages:
    2,400
    Likes Received:
    1
    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....
     
  9. Bob

    Bob

    Joined:
    Nov 4, 2007
    Messages:
    2,400
    Likes Received:
    1
    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
     
  10. adminad

    Joined:
    Apr 29, 2010
    Messages:
    150
    Likes Received:
    0
    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:

    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.
     
  11. ramoncio

    Joined:
    May 12, 2010
    Messages:
    1,663
    Likes Received:
    0
    Great!
    One less issue!
     

Share This Page