Cookbook: OpenPBX RC2 on Mac OS X 10.4 (Tiger) Server ¬

2006-12-28

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

Download This Cookbook as Text:

Cookbook – OpenPBX RC2 on Mac OS X 10.4 (Tiger) Server.txt

  Textile help