Installation
I’m using the Asterisk Port on FreeBSD 5.4. The latest version (at the time of writing) is 1.2, but it will probably be a little while until that’s available as a port for BSD.
So for now, this is what pkg_info tells me my asterisk version is:
asterisk-1.0.9_2 An Open Source PBX and telephony toolkit
I ran portinstall asterisk, and after a couple of hours it all failed. I had a few problems:
- My BSD box doesn’t have a DSP (sound card) so I couldn’t use the local DSP as a console
- My BSD box doesn’t have, and shouldn’t have, kernel source so I could not compile the Zaptel source
- I have an old version of MySQL installed
After some sage advice from Mr Girtby I changed /usr/local/etc/pkgtools.conf thus:
MAKE_ARGS = {
'net/asterisk' => 'WITHOUT_ZAPTEL=1 WITHOUT_MYSQL=1'
}
Then I stumbled around in /usr/local/etc/asterisk/*.conf removing references to dsp devices, and everything seemed to come up fine:
$ sudo asterisk
$ sudo asterisk -vvvvvr
Password:
== Parsing '/usr/local/etc/asterisk/asterisk.conf': Found
== Parsing '/usr/local/etc/asterisk/extconfig.conf': Found
Asterisk 1.0.8-BRIstuffed-0.2.0-RC8h, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <markster @digium.com>
=========================================================================
Connected to Asterisk 1.0.8-BRIstuffed-0.2.0-RC8h currently running on bsd (pid = 40902)
Verbosity was 0 and is now 5
bsd*CLI>
Then to make it all start up on reboot, I added the line:
asterisk_enable="YES"
…to /etc/rc.conf
[Todo: Add nice pictures of the network topology]





