Solved

Asterisk & FreePBX in GENTOO Linux

Posted on 2007-04-10
4
2,361 Views
Last Modified: 2013-12-06
I'm trying to install FreePBX and Asterisk on a Gentoo Linux box and am extremely unfamiliar with the whole Gentoo way of doing things.  Newbie-proof instructions starting from the beginning (including how to install dependencies) would be greatly appreciated.  Some previous unfinished attempts at people trying to explain how to install FreePBX and Asterisk can be found at:

http://www.aussievoip.com/wiki/freePBX-Gentoo
http://www.daniel.jp/joomla/info/voip/installing-freepbx-on-gentoo.html

I know people have done this before, but the documentation that is out there is not very newbie-friendly and some elaboration would be welcomed.  All help and comments are appreciated and invited!

Thanks
0
Comment
Question by:T-Snipez
4 Comments
 
LVL 7

Accepted Solution

by:
mzalfres earned 250 total points
ID: 18896288
Hi,

I'll try to help you, but it wont be quick. First, you need to read some basic manuals for portage system in Gentoo (I hope you already did it). I don't know Asterisk & FreePBX and exact installation procedure,
but I can you with Gentoo-specific problems.
I'll try to follow manuals you mentioned, and explain what you probably need to do.

First step,check If there is '/etc/portage directory' in your system. If no, please create it.
Then type:

 echo "net-misc/asterisk zaptel" >> /etc/portage/package.use

You set 'zaptel' USE flag for net-misc/asterisk package.
Then you need to 'emerge' packages. Type:

 emerge asterisk asterisk-addons

This will install asterisk software. Now you need to make is working with your hardware.
 We can follow up, if you are successful at this point.
0
 
LVL 1

Assisted Solution

by:BrightSide
BrightSide earned 250 total points
ID: 18960832
Installing in Gentoo is easy using emerge. I'd recommend you start by passing it the "-av" options, this will make portage calculate all dependencies and then show you the list of packages that will be installed, including which use-flags are enabled and download size. It will also ask you if it should proceed with compilation and installing. For instance:

# emerge -av asterisk

Asterisk has many use-flags, which can affect its dependecies or features. For instance, the zaptel use-flag is mentioned one of your guides is for enabling drivers related to the Digium and ZapataTelephony cards. If you dont own one of these cards, you dont need the zaptel use-flag enabled. While the echo commands works just fine for setting use-flags,  I would recommend you install the "flagedit" utility, it will manage all your use-flags and keyword settings for you.

# emerge -av flagedit

To set for instance the zaptel flag, this would be the command to use:

# flagedit net-misc/asterisk +zaptel

Not specifying any package, would set a global useflag in your /etc/make.conf file.
When your satisfied with all the flags, emerge asterisk as normal.

Your not mention if you are using stable or developing branch on your Gentoo box, so I will assume you are using the stable branch. If you have a need to install the asterisk-addons, this is only available in the developing branch, so you need to tell portage this is okay to use by setting the keyword flag. You can do this also using flagedit, like this

# flagedit net-misc/asterisk-addons -- ~x86

The two dashes means you are not setting any useflags, only changing the keyword for the package. You can ofcourse also combine the two and setting both use-flags and keyword. Here I am assuming the x86 architecture, but you can substitute this if you use another architecture. The tilde in front of the arch specifies you want the development branch version of the package.

After asterisk has been installed, you need to configure the files in /etc/asterisk to you tastes. Finally, add it to your runlevel, usually the default with the following command:

# rc-update add asterisk default

Be also sure to check /etc/conf.d/asterisk for any configuration options.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now