DaveF81
Explorer
- Joined
- Jan 28, 2014
- Messages
- 56
[How-to] Install Asterisk 13 in a FreeNAS 9.3 Jail
What is Asterisk?
From Wikipedia:
Asterisk is a software implementation of a telephone private branch exchange (PBX); it was created in 1999 by Mark Spencer of Digium.[1][2] Like any PBX, it allows attached telephones to make calls to one another, and to connect to other telephone services, such as the public switched telephone network (PSTN) and Voice over Internet Protocol (VoIP) services. Its name comes from the asterisk symbol, *.
You can find out more information about Asterisk at http://www.asterisk.org/
This is a quick guide on how to install Asterisk 13 into a jail running on FreeNAS. This guide only provides detail on how to install Asterisk, it does not provide instruction on how to configure it.
This guide has been updated for FreeNAS 9.3. I can make no guarantee it will work with earlier versions of FreeNAS.
Last updated 20th December 2015.
Revision history:
Once up to date, you can install Asterisk 13 by simply running:
Accept to upgrade 'pkg', once done, you'll be prompted to install Asterisk and required dependencies. Accept this to continue.
Add 'asterisk_enable' to /etc/rc.conf, so that Asterisk starts with the Jail:
You can now start Asterisk, by running:
There is no GUI for Asterisk 13. The Asterisk GUI is now deprecated. You can try following the instructions below should you wish, but I advise against it. Learn how to modify the configuration files manually and read the documentation for Asterisk. At the end of the day, there are really only three files to edit: sip.conf, extensions.conf, and voicemail.conf. Example configuration for use with freephoneline.ca is attached.
Troubleshooting/Work-arounds
During the Asterisk installation, some files/directories will not have been assigned the correct permissions. It's recommended that you change ownership of the following files/directories to the Asterisk user:
What is Asterisk?
From Wikipedia:
Asterisk is a software implementation of a telephone private branch exchange (PBX); it was created in 1999 by Mark Spencer of Digium.[1][2] Like any PBX, it allows attached telephones to make calls to one another, and to connect to other telephone services, such as the public switched telephone network (PSTN) and Voice over Internet Protocol (VoIP) services. Its name comes from the asterisk symbol, *.
You can find out more information about Asterisk at http://www.asterisk.org/
This is a quick guide on how to install Asterisk 13 into a jail running on FreeNAS. This guide only provides detail on how to install Asterisk, it does not provide instruction on how to configure it.
This guide has been updated for FreeNAS 9.3. I can make no guarantee it will work with earlier versions of FreeNAS.
Last updated 20th December 2015.
Revision history:
- 20th December 2015 - Attached a sample configuration for use with Canadian VoIP provider, freephoneline.ca. (See asterisk13-config.zip) and removed guide for FreeNAS 9.2.x as it is out of date.
- 13th December 2015 - GUI for Asterisk 1.8 has been deprecated for some time. Updated How-to to reflect that
- 1st April 2015 - How-to revised for FreeNAS 9.3
- 6th April 2014 - Minor edits, typo fixes.
- 5th April 2014 - Update jail set-up, make Asterisk GUI optional, expand on DAHDI.
- 30th March 2014 - Initial document.
- Log in to your FreeNAS server
- Select Jails
- Select Add Jail and give it a name. Don't select any template. This is a basic FreeBSD jail.
Code:
pkg update
Once up to date, you can install Asterisk 13 by simply running:
Code:
pkg install asterisk13
Accept to upgrade 'pkg', once done, you'll be prompted to install Asterisk and required dependencies. Accept this to continue.
Add 'asterisk_enable' to /etc/rc.conf, so that Asterisk starts with the Jail:
Code:
sysrc asterisk_enable=YES
You can now start Asterisk, by running:
Code:
service asterisk start
There is no GUI for Asterisk 13. The Asterisk GUI is now deprecated. You can try following the instructions below should you wish, but I advise against it. Learn how to modify the configuration files manually and read the documentation for Asterisk. At the end of the day, there are really only three files to edit: sip.conf, extensions.conf, and voicemail.conf. Example configuration for use with freephoneline.ca is attached.
Troubleshooting/Work-arounds
During the Asterisk installation, some files/directories will not have been assigned the correct permissions. It's recommended that you change ownership of the following files/directories to the Asterisk user:
Code:
# chown -R asterisk:asterisk /usr/local/etc/asterisk/ /usr/local/lib/asterisk /usr/local/share/asterisk /var/lib/asterisk # chmod 644 /usr/local/etc/asterisk/*
Attachments
Last edited: