[Freeswitch-users] Make of FreeSWITCH 1.6 on CentOS 7 issue(s) - resolved
Brian Edgar
bedgar at vseinc.com
Mon Jan 4 18:05:48 MSK 2016
Andrew,
I will perform the tasks and provide a result. Thank you for the timely response.
Regards and Happy New Year!
Brian
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Andrew Keil
Sent: Monday, January 4, 2016 1:27 AM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Make of FreeSWITCH 1.6 on CentOS 7 issue(s) - resolved
Brian,
I am a little pushed for time this week. I checked performing the following which works and should get you up and running for now.
Login as root user from inside the Terminal (su -)
cd /etc/rc.d/init.d
vi freeswitch
Add the the following lines (changing FS_USER=${FS_USER-your_user – replace “your_user” with the user that you login to CentOS-7}:
#!/bin/bash
#
# /etc/rc.d/init.d/freeswitch
#
# The FreeSwitch Open Source Voice Platform
#
# chkconfig: 345 89 14
# description: Starts and stops the freeswitch server daemon
# processname: freeswitch
# config: /usr/local/freeswitch/conf/freeswitch.conf
# pidfile: /usr/local/freeswitch/run/freeswitch.pid
#
# Source function library.
. /etc/init.d/functions
PROG_NAME=freeswitch
PID_FILE=${PID_FILE-/usr/local/freeswitch/run/freeswitch.pid}
#FS_USER=${FS_USER-freeswitch}
FS_USER=${FS_USER-your_user}
FS_FILE=${FS_FILE-/usr/local/freeswitch/bin/freeswitch}
FS_HOME=${FS_HOME-/usr/local/freeswitch}
LOCK_FILE=/var/lock/subsys/freeswitch
#FREESWITCH_ARGS="-nc"
FREESWITCH_ARGS="-nc -nonat -nonatmap"
RETVAL=0
# Source usr/localions file
if [ -f /etc/sysconfig/freeswitch ]; then
. /etc/sysconfig/freeswitch
fi
# <define any local shell functions used by the code that follows>
start() {
echo -n "Starting $PROG_NAME: "
if [ -e $LOCK_FILE ]; then
if [ -e $PID_FILE ] && [ -e /proc/`cat $PID_FILE` ]; then
echo
echo -n $"$PROG_NAME is already running.";
failure $"$PROG_NAME is already running.";
echo
return 1
fi
fi
cd $FS_HOME
daemon --user $FS_USER --pidfile $PID_FILE "$FS_FILE $FREESWITCH_ARGS $FREESWITCH_PARAMS >/dev/null 2>&1"
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $LOCK_FILE;
echo
return $RETVAL
}
stop() {
echo -n "Shutting down $PROG_NAME: "
if [ ! -e $LOCK_FILE ]; then
echo
echo -n $"cannot stop $PROG_NAME: $PROG_NAME is not running."
failure $"cannot stop $PROG_NAME: $PROG_NAME is not running."
echo
return 1;
fi
cd $FS_HOME
$FS_FILE -stop > /dev/null 2>&1
killproc $PROG_NAME
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f $LOCK_FILE;
return $RETVAL
}
rhstatus() {
status $PROG_NAME;
}
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $PROG_NAME
RETVAL=$?
;;
restart)
stop
start
;;
reload)
# <cause the service configuration to be reread, either with
# kill -HUP or by restarting the daemons, in a manner similar
# to restart above>
;;
condrestart)
[ -f $PID_FILE ] && restart || :
;;
*)
echo "Usage: $PROG_NAME {start|stop|status|reload|restart}"
exit 1
;;
esac
exit $RETVAL
Save and close (<Esc>wq!)
chmod 0750 freeswitch
chkconfig --add freeswitch && chkconfig --levels 35 freeswitch on
service freeswitch start
This will autostart freeswitch when you next restart CentOS 7. You can still use the old “service freeswitch stop” and “service freeswitch start” when logged in as root user.
Andrew
From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Brian Edgar
Sent: Sunday, 3 January 2016 12:05 PM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>>
Subject: Re: [Freeswitch-users] Make of FreeSWITCH 1.6 on CentOS 7 issue(s) - resolved
Andrew,
Much appreciated.
Brian
From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Andrew Keil
Sent: Friday, January 1, 2016 6:34 PM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>>
Subject: Re: [Freeswitch-users] Make of FreeSWITCH 1.6 on CentOS 7 issue(s) - resolved
Brian,
Sorry for the delay in responding to your message. I will be looking into this next week and should have a response for you then.
Andrew
From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Brian Edgar
Sent: Thursday, 31 December 2015 12:10 PM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>>
Subject: Re: [Freeswitch-users] Make of FreeSWITCH 1.6 on CentOS 7 issue(s) - resolved
Andrew,
Your posting was very helpful. Do you have the procedure for configuring CentOS 7 to autostart FreeSWITCH in the new preferred method of systemd? Doesn’t appear that the old init.d method appropriate.
I saw a hint for a shell script in the source but it is no longer there.
Thank you,
Brian Edgar
From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Brian West
Sent: Monday, September 21, 2015 10:38 PM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>>
Subject: Re: [Freeswitch-users] Make of FreeSWITCH 1.6 on CentOS 7 issue(s) - resolved
Yeah you shouldn't shy away from IPv6 it's really easy to setup.
On Mon, Sep 21, 2015 at 5:05 PM -0700, "Andrew Keil" <andrew.keil at visytel.com<mailto:andrew.keil at visytel.com>> wrote:
Brian,
Sorry this was only relevant to my test setup. I should have removed these lines prior to posting my last message.
Andrew
From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Brian West
Sent: Tuesday, 22 September 2015 12:15 AM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>>
Subject: Re: [Freeswitch-users] Make of FreeSWITCH 1.6 on CentOS 7 issue(s) - resolved
Whats the purpose of disabling ipv6 support?
On Mon, Sep 21, 2015 at 2:43 AM, Andrew Keil <andrew.keil at visytel.com<mailto:andrew.keil at visytel.com>> wrote:
To all,
Found what I was missing (and causing all my build issues): rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm
Now when I perform the yum install commands and it pulls down the right version and everything works as expected.
Here is my procedure (for those who wish to use the manual configure/make approach):
Install FreeSWITCH 1.6.0 on CentOS 7 (fresh installation):
Note: Everything below is run inside CentOS 7 terminal as "root" user (via "su -" command)
1) Make sure yum update is run and CentOS is up-to-date
2) {optional} inside Terminal window select Edit Profile Preferences and select "Use custom default terminal size" and make it 160 x 60. Close terminal and re-open for the change to take affect.
3) yum -y install git
4) yum -y install epel-release
5) rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm
6) yum -y install git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel libxml2-devel
7) yum -y install libyuv-devel opus-devel libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel
8) cd /usr/local/src
9) git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git
10) cd /usr/local/src/freeswitch
11) ./bootstrap.sh
12) ./configure
13) make
14) make install
15) make cd-sounds-install
16) make cd-moh-install
17) cd /usr/local/freeswitch/conf
18) vi vars.xml
Change: <X-PRE-PROCESS cmd="set" data="default_password=1234"/> {!!set it to something different!!}
Save and close (<Esc> :wq!)
19) cd /usr/local/freeswitch/conf/sip_profiles
20) mv internal-ipv6.xml internal-ipv6.xml.removed {disables ipv6 support}
21) mv external-ipv6.xml external-ipv6.xml.removed {disables ipv6 support}
22) cd /usr/local/freeswitch/bin
23) ./freeswitch -nonat -nonatmap
24) ... to exit from FreeSWITCH console
FreeSWITCH Version: 1.6.0+git~20150903T203652Z~6762f14140~64bit (git 6762f14 2015-09-03 20:36:52Z 64bit)
From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] On Behalf Of Andrew Keil
Sent: Saturday, 19 September 2015 12:06 PM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>>
Subject: Re: [Freeswitch-users] Make of FreeSWITCH 1.6 on CentOS 7 issue(s)
This worked! However mod_opus fails now. Since I cannot perform a yum install libopus-devel do I need to follow this link: http://files.freeswitch.org/downloads/libs/opus-1.1.tar.gz
Getting there!
Andrew
From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Andrew Keil
Sent: Saturday, 19 September 2015 8:46 AM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>>
Subject: Re: [Freeswitch-users] Make of FreeSWITCH 1.6 on CentOS 7 issue(s)
Thanks I will give this a try.
On 19 Sep 2015, at 12:07 AM, Christopher Rienzo <cmrienzo at gmail.com<mailto:cmrienzo at gmail.com>> wrote:
sudo yum install lua-devel
On Fri, Sep 18, 2015 at 1:39 AM, Andrew Keil <andrew.keil at visytel.com<mailto:andrew.keil at visytel.com>> wrote:
To FreeSWITCH users,
I am attempting to make the latest FreeSWITCH release on CentOS 7 (I am trying to avoid the RPM approach since I am also working with Sangoma to assist with their updated merge of freetdm into FreeSWITCH).
CentOS 7: CentOS-7-x86_64-DVD-1503-01.iso (with yum update done successfully).
As root user:
yum install git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel libxml2-devel
{also did the following to see if these will help}
yum install libyuv-devel
yum install libvpx-devel
yum install libidn-devel
yum install unbound-devel
yum install libdb4*
yum install libuuid-devel
cd /usr/local/src
git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git
cd freeswitch
./bootstrap.sh
vi modules.conf {comment out mod_fsv (due to libyuv-devel error)}
./configure
./make
making all mod_lua
make[4]: Entering directory `/usr/local/src/freeswitch/src/mod/languages/mod_lua'
CXX mod_lua_la-mod_lua.lo
mod_lua.cpp:37:17: fatal error: lua.h: No such file or directory
#include "lua.h"
The mod_fsv issue I do not care so much about however Lua I need.
FYI: I did try the rpm approach on a separate CentOS 7 VM and noticed the Lua dependant package is version 5.1.4 not 5.2.
I hope someone has an idea of what to try next.
Regards,
Andrew Keil
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<http://lists.freeswitch.org/mailman/options/freeswitch-users>
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Brian West
brian at freeswitch.org<mailto:brian at freeswitch.org>
[http://billing.freeswitch.org/templates/default/img/whmcslogo.png]
Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
Got Bugs? Report them here<https://freeswitch.org/jira>! | Reddit: /r/freeswitch<https://www.reddit.com/r/freeswitch>
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160104/5a2f4bae/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list