-
Mpg123 Asterisk Install카테고리 없음 2020. 3. 2. 21:27
Install Asterisk On Windows
Hi to all,I’ve i686 machine running asterisk 1.4.5when I make the mpg123.
This install procedure was tested using the Redhat Enterprise Linux distributions known as CentOS and Scientific Linux. Software used:CentOS v5 or CentOS v6 or Scientific Linux v6Asterisk 1.8FreePBX 2.9 or 2.10 Let's get startedIf you are installing Linux from scratch using Anaconda via install CD select 'minimal' and proceed with the install which will install with no groups. Skip down to the yum -y update part.Otherwise, it is assumed you already have a server with a base CentOS installation before you begin. Do NOT install a GUI such as Gnome or KDE. We only want to be running in console text mode not GUI graphics mode.
Mpg123 Frontend
If you already have a desktop or server GUI installed you will want to exit to console mode. You do that by typing init 3 from a terminal or console window.
Mpg123 Asterisk Install Centos
You will need to be logged in as root in order to do this so if not you can su root. All instructions in this guide are assuming you are always logged in as root.Get rid of all installed groups except 'Yum Utilities' so we are starting with a clean slate. Check the delete list before entering 'y' to make sure none of these remove 'sshd' or 'yum' (they don't but check just in case things change with newer revisions). Mkdir /tftpbootchmod 777 /tftpbootservice xinetd restart Set TimezoneCopy your timezone or use tzselect tzselectCreate a symbolic link to the appropriate timezone from /etc/localtime.Example: ln -sf /usr/share/zoneinfo/America/Vancouver /etc/localtimePHP timezone (required since PHP v5.3):if not set and using php v5.3+ (the version included with RHEL6) it will revert to the default timezone which may not be the correct one depending on your location. The FreePBX install might throw out a bunch of warnings if you are using RHEL 6 and don't set this. Nano +633 /etc/php.inifor RHEL6 nano +946 /etc/php.iniUncomment (;) date.timezone = and add your timezoneRestart apache for the changes to take effect service httpd restart Memory LimitThe recommended setting is 128M otherwise you may get warnings in FreePBX. RHEL 5 installs will probably already have this set correctly.
RHEL 6 may need to have this changed.For RHEL 5 nano +302 /etc/php.ini memorylimit = 128MFor RHEL 6 nano +457 /etc/php.ini memorylimit = 128MAs always after php.ini changes, apache needs to be restarted for the changes to take effect.service httpd restart Download and untar source files and install.Zaptel/Dahdi is not included in this install procedure. Starting with Asterisk 1.6.2/FreePBX2.9, it is possible to use ConfBridge in place of MeetMe conferencing. Meetme conferencing was the last Asterisk application that required a timing source.
The only reason to install zaptel/dahdi now is if you are installing telephony hardware. Meetme still has some features that confbridge does not and is still required if you also require paging. To install meetme conferencing you must install dahdi and ensure meetme is selected during the asterisk menuselect installation part of the procedure. You can also install confbridge but FreePBX will default to use MeetMe if it detects it.Get FreePBX.
Check if this is the latest released version. Cd /usr/srcwget zxvf freepbx-2.10.0.tar.gzGet Asterisk v1.8.
Wget zxvf asterisk-1.8-current.tar.gzNOTE: There is no separate asterisk addons package to download starting with Asterisk v1.8. Cd /usr/src/asterisk-1.8.make clean./configure && make menuselectSelect all addons. I believe these are all needed or recommended for FreePBX. Select base and addon sounds. I suggest ulaw as they sound better than gsm especially if you are using ulaw as your default codec. I usually just check both.
Then make sure to press the 'save' button afterwards.When you select 'formatmp3' above as an addon you must run a script before going any further otherwise the install will fail./contrib/scripts/getmp3source.shYou must also have subversion installed to run the above script and be in the root directory of the Asterisk source code.Now install Asterisk. NOTE: If upgrading Asterisk on an already running FreePBX system do NOT run make samples.
Make && make install && make samplesCreate user. May already exist but just to make sure useradd -c 'Asterisk PBX' -d /var/lib/asterisk asteriskThe following directory may already exist but just to make sure mkdir /var/run/asteriskSet ownership chown -R asterisk /var/run/asteriskchown -R asterisk /var/log/asteriskchown -R asterisk /var/lib/asterisk/mohchown -R asterisk /var/lib/php/sessionMusic on HoldThe Asterisk default moh directory is '/moh' and the Freepbx default moh directory is '/mohmp3'. If we create a symbolic link instead everything is in one place and can still be found by both FreePBX and Asterisk. Ln -s /var/lib/asterisk/moh /var/lib/asterisk/mohmp3The new default behaviour for Asterisk and Freepbx is to only use wav files for moh due to transcoding overhead and Asterisk stability issues with mp3's.
So we want to install mpg123 for converting uploaded mp3's to wav automagically. If you won't be uploading or streaming mp3's or won't be using FreePBX (new) default behaviour then you probably don't need to install mpg123. Cd /usr/srcwget -xjvf mpg123-1.14.2.tar.bz2cd mpg123-1.14.2./configure && make && make installFreepbx php script cannot find mpg123 by default so we need to create a symbolic link.
Ln -s /usr/local/bin/mpg123 /usr/bin/mpg123 CHANGE APACHE USERChange User apache and Group apache to User asterisk and Group asterisk. Sed -i 's/User apache/User asterisk/' /etc/httpd/conf/httpd.confsed -i 's/Group apache/Group asterisk/' /etc/httpd/conf/httpd.conf MYSQL SETUPBefore you can do anything to MySQL, you need to make sure it's running:NOTE: If running RHEL/CENTOS/SL 6 you may need to run mysqlinstalldb first. Try without and see if it starts first. Service mysqld start.