Ubuntu Server 10.04 64-bit Installation Woes
Hi everyone, I'm a new freeswitch user, and I'm basically trying to use it as a SIP proxy / media proxy (RTP) for handling some SIP phones. Basically, I'm trying to install freeswitch (latest) on a ubuntu-server 10.04 64-bit box, and get everything running smoothly. The requirements I'd like to meet are: - Freeswitch can be controlled via normal ubuntu init scripts (eg: service freeswitch start|stop|restart). - Freeswitch starts on system boot. - Freeswitch binaries are accessible in the default user PATH variable (so that I can simply type 'fs_cli' from the command line). - Freeswitch logs to the appropriate locations in /var/log/ (or wherever the suggested location is). I've found the install guide ( http://wiki.freeswitch.org/wiki/Installation_Guide) really confusing so far. Unless I'm crazy, the top of the install guide says to always install from the git repo (latest), which I also take to mean that one should not install from any OS packages, etc. So what I've tried is: 1. Cloned the git repo. 2. Installed all OS dependency packages. 3. Built from the git repo using the following commands: ./bootstrap.sh ./configure --enable-core-odbc-support sudo make all install sounds-install moh-install Up to this point, everything works great. Everything compiles, all files are located in /usr/local/freeswitch/ which seems good, and things look great. Here are the problems I'm having at this point, which I'm not sure how to resolve: 1. The freeswitch binaries are not in the default user PATH. Basically, if I type 'fs_cli' or 'freeswitch' form the command line, I get a command not found error. This is because the default PATH on ubuntu (obviously) doesn't contain /usr/local/freeswitch/bin. Shouldn't the installer add that? Or am I missing something? What is the best way to get this working? I could just modify my user's .bashrc file to append /usr/local/freeswitch/bin to the PATH variable, but that seems like a hack. 2. There are no system init scripts for freeswitch. I can't start, stop, or restart the freeswitch daemon. This makes managing it a real pain. What's the best way to get this working? I have a lot of prior experience with Asterisk, but very little with freeswitch. So I'm relatively competent working with these sorts of systems once I get the basics :) Thanks so much for any help / advice, I'm really looking forward to seeing what the ideal way to get this running is. -Randall
Hello and welcome to freeswitch, Your questions are answered in this introductory article: http://bit.ly/EpVrv Have a nice day. -Milena 2010/7/26 Randall Degges <rdegges@gmail.com>
Hi everyone,
I'm a new freeswitch user, and I'm basically trying to use it as a SIP proxy / media proxy (RTP) for handling some SIP phones.
Basically, I'm trying to install freeswitch (latest) on a ubuntu-server 10.04 64-bit box, and get everything running smoothly. The requirements I'd like to meet are:
- Freeswitch can be controlled via normal ubuntu init scripts (eg: service freeswitch start|stop|restart). - Freeswitch starts on system boot. - Freeswitch binaries are accessible in the default user PATH variable (so that I can simply type 'fs_cli' from the command line). - Freeswitch logs to the appropriate locations in /var/log/ (or wherever the suggested location is).
I've found the install guide ( http://wiki.freeswitch.org/wiki/Installation_Guide) really confusing so far.
Unless I'm crazy, the top of the install guide says to always install from the git repo (latest), which I also take to mean that one should not install from any OS packages, etc.
So what I've tried is:
1. Cloned the git repo. 2. Installed all OS dependency packages. 3. Built from the git repo using the following commands:
./bootstrap.sh ./configure --enable-core-odbc-support sudo make all install sounds-install moh-install
Up to this point, everything works great. Everything compiles, all files are located in /usr/local/freeswitch/ which seems good, and things look great.
Here are the problems I'm having at this point, which I'm not sure how to resolve:
1. The freeswitch binaries are not in the default user PATH. Basically, if I type 'fs_cli' or 'freeswitch' form the command line, I get a command not found error. This is because the default PATH on ubuntu (obviously) doesn't contain /usr/local/freeswitch/bin. Shouldn't the installer add that? Or am I missing something? What is the best way to get this working? I could just modify my user's .bashrc file to append /usr/local/freeswitch/bin to the PATH variable, but that seems like a hack.
2. There are no system init scripts for freeswitch. I can't start, stop, or restart the freeswitch daemon. This makes managing it a real pain. What's the best way to get this working?
I have a lot of prior experience with Asterisk, but very little with freeswitch. So I'm relatively competent working with these sorts of systems once I get the basics :)
Thanks so much for any help / advice, I'm really looking forward to seeing what the ideal way to get this running is.
-Randall
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Mon, Jul 26, 2010 at 9:57 AM, Randall Degges <rdegges@gmail.com> wrote:
Hi everyone,
Hi Randall,
I'm a new freeswitch user, and I'm basically trying to use it as a SIP proxy / media proxy (RTP) for handling some SIP phones. Basically, I'm trying to install freeswitch (latest) on a ubuntu-server 10.04 64-bit box, and get everything running smoothly. The requirements I'd like to meet are:
Another way it to build the packages: aptitude install build-essential cd freeswitch.git dpkg-buildpackage
- Freeswitch can be controlled via normal ubuntu init scripts (eg: service freeswitch start|stop|restart). This is in the pkg.
- Freeswitch starts on system boot. Edit /etc/default/freeswitch
- Freeswitch binaries are accessible in the default user PATH variable (so that I can simply type 'fs_cli' from the command line). - Freeswitch logs to the appropriate locations in /var/log/ (or wherever the suggested location is). Currently, the debian/ubuntu package doesn't respect FHS (man hier). But you can add symlink: /var/log/freeswitch -> /opt/freeswitch/log and /usr/sbin/{freeswitch,fs_cli}.
I've found the install guide (http://wiki.freeswitch.org/wiki/Installation_Guide) really confusing so far. Agree.
Unless I'm crazy, the top of the install guide says to always install from the git repo (latest), which I also take to mean that one should not install from any OS packages, etc. But you can also package from git,see above.
So what I've tried is: 1. Cloned the git repo. 2. Installed all OS dependency packages. 3. Built from the git repo using the following commands: ./bootstrap.sh ./configure --enable-core-odbc-support sudo make all install sounds-install moh-install Up to this point, everything works great. Everything compiles, all files are located in /usr/local/freeswitch/ which seems good, and things look great. Here are the problems I'm having at this point, which I'm not sure how to resolve: ... see above.
Regards Mathieu Parent
participants (3)
-
Mathieu Parent
-
Milena
-
Randall Degges