HowTo compile and use sipX under Debian Linux
From SIPfoundry sipXecs IP PBX, The Open Source SIP PBX for Linux - Calivia
HELP WANTED to finish this page - please post your experience and help us make the build process on Debian reproducible
Contents |
Build Tool
I have posted a build tool to the user's list. The tool should work on *ix platform but it is developed, tested, and documented only for Sarge at this point.
Please note I used xerces 2.5 only because it was what I read on the site. As reported below, xerces 2.6 seems to work and I will switch to unless it causes problems on the next build.
This should get you to the README:
Building
I just finished building all the various components from source. The only non-sipX component I built from source, as opposed to using packages, is mod_cplusplus. I have sipxpbx running under Debian GNU/Linux 3.1 (Sarge) at this time.
Dependencies
Off the top of my head, these are the dependancies needed from Debian:
- postgresql, postgresql-server
- libcgicc1-dev
- apache2-mpm-worker, apache2-threaded-dev
- libwww-ssl-dev
- libxerces26-dev
- ant (Requires the JDK package, notes below.)
I think there might have been more.
I also built it on Sarge.
Which version did you build?
I have 2.6.2 running and I have built 2.8.0. Although the instructions do not require it, I managed to run "make check" on every package except the config server version 2.8.0 ... it was full of ANTs :-(.
My user name here is 'gwh'. Feel free to send me email if you know how to do this ... or I will add instructions if someone tells me how to do so without exposing my real address (too lazy and busy to figure this out right now).
I am going to build another 2.6.2 server today and I will post the full dependence list after I am done.
I have a perl script which builds either version and a replacement for the start-up script works. Both scripts depend on a common set of environment variables for which there is a shell-include which can set them for either version.
--gh
Thanks gh. This would be great, after more time then I want to admit i finally got things compiled and installed, but nothing really worked :-(
--digitaldan
I'm on the users mail list now. Someone there has been trying to get 2.8.1 to build. I built 2.6.2, 2.8.0 and 2.8.1 this afternoon on a freshly installed box. I have not configured 2.8.x yet but that's the next step. My first configuration was ugly but getting it working was the goal there. I will try to make it neater this time.
One key is to have a working SIP phone. The xten phone was released for linux about a week ago. The kphone is very noisy. If you use a windows client this is not a real problem. I'll post some stuff on phones after config. Things will probably hit the list first.
--gh
Notes
- You'll need JDK 1.4. Use the java-package package in Debian Sarge to build this from SUN's distribution
- For mod_cplusplus, you might need to symlink /usr/share/apache2/include to /usr/include/apache2
- For mod_cplusplus, you will need to feed APR's include directory to configure: $ CXXFLAGS=-I/usr/include/apr-0 CFLAGS=-I/usr/include/apr-0 ./configure --with-httpd=/usr/share/apache2 --prefix=/opt/sipx
- Since the init script for sipxpbx uses su sipxchange -c COMMAND syntax, make sure that the sipxchange user has a valid shell
That's all I can remember at the moment. Post questions to the sipx-user list and I'll try to elaborate. If I go into production with sipX components, I will build Debian packages.
