Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-3301

sh: mpg123: command not found

    XMLWordPrintable

    Details

    • Asterisk Version:
      1.4.22

      Description

      I hadn't tried adding any new music on hold since upgrading to 2.5 a couple weeks ago. I just tried and I got:

      "sh: mpg123: command not found"

      My first instinct was to check to see is mpg123 was installed and accessible directly from any shell prompt. I just typed mpg123 in shell and it brought up the various parameter options for mpg123 which told me everything was normal as far as that.

      I fixed it by editing /var/www/html/admin/modules/music/page.music.php:

      Original Line 207:
      "$mpg123cmd = "mpg123 -w \"".substr(...."

      Changed to:
      $mpg123cmd = "/usr/local/bin/mpg123 -w \"".substr(..."

      As you can see, I just told it the complete path to mpg123 on centos and everything works great now. It doesn't keep the .mp3 format though like it use to in 2.4 which I liked as it saved space versus a wav file but I got 120 gigs to spare; I probably will only add but like 20 more songs.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                johnakabean johnakabean
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.