Disclaimer
This cookbook is intended for those that are atleast slightly familiar with building and configuring unix applications on Mac OS X and Mac OS X Server. No support is offered and the author is not responsible for any lost data due to following these steps or mistakes made while attempting to follow these steps.
With that in mind, these steps did work for the author and will provide a quick copy & paste solution for those that don’t want to figure out all the steps themselves (although this is a really easy one).
Caveats
Unfortunately, the CLI is currently broken on Darwin/Mac OS X in OpenPBX RC2, so that reduces its overall functionality considerably.
OpenPBX RC2 also requires editline, so you’ll have to build that as well (see instructions below). RC3 and the current trunk in Subversion will use readline and so can be linked to version of readline included with Mac OS X.
Preparing the Build Environment
cd ~/Desktop
mkdir openpbx-build
cd openpbx-build
Building & Installing LibTIFF
curl -O ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz
tar -xzf tiff-3.8.2.tar.gz
pushd pushd tiff-3.8.2
./configure --prefix=/usr/local
make
sudo make install
popd
Building & Installing SpanDSP
curl -O http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.3pre27.tgz
tar -xzf spandsp-0.0.3pre27.tgz
pushd spandsp-0.0.3
./configure --prefix=/usr/local
make
sudo make install
popd
Building & Installing Editline Library
curl -O http://www.thrysoee.dk/editline/libedit-20061022-2.9.tar.gz
tar -xzf libedit-20061022-2.9.tar.gz
pushd libedit-20061022-2.9
./configure --prefix=/usr/local
make
sudo make install
popd
Building & Installing OpenPBX
curl -O http://www.openpbx.org/openpbx.org-1.2_rc2.tar.gz
tar -xzf openpbx.org-1.2_rc2.tar.gz
pushd openpbx.org-1.2_rc2
./configure --enable-iax-trunking=yes --enable-t38=yes --prefix=/usr/local/openpbx
make
sudo make install
popd
Allowing Communication with the Outside World
Open the following ports in the firewall (via Server Admin.app):
- “iChat – Session Initiation Protocol” (UDP port 5060)
- “iChat – audio/video RTP & RCTP” (UDP ports 16384-16403)
- “IAX – Inter-Asterisk eXchange” (UDP port 4569; you’ll need to add this one to the list)
Reference
- http://www.openpbx.org/
- http://www.voip-info.org/wiki/index.php?page=OpenPBX.org
- http://www.voip-info.org/wiki/view/OpenPBX.org+How+to+build+on+OSX%252FDarwin
- http://wiki.openpbx.org/tiki-index.php?page=BuildNotes
- http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/additionalfeatures/chapter_10_section_9.html
- http://www.remotesensing.org/libtiff/
- http://www.soft-switch.org/downloads/spandsp/
- http://www.soft-switch.org/installing-spandsp.html
- http://lists.mactelephony.net/pipermail/mac-telephony-list/2006-December/000043.html
- http://www.thrysoee.dk/editline/
Download This Cookbook as Text: