Asterisk Linux Gentoo

Image Image

Asterisk on Gentoo Linux

Asterisk is supported and maintained on Gentoo Linux.

Asterisk Installation


emerge -av net-misc/asterisk

If portage asks to install an older version, such as net-misc/asterisk-0.9.0, you may have to unmask the lastest version:

Edit /etc/portage/package.keywords and add net-misc/asterisk ~x86

mkdir /etc/portage
echo "net-misc/asterisk ~x86" >> /etc/portage/package.keywords

If you are using zaptel and/or libpri, you will probably want to unmask those as well:

echo "net-libs/libpri ~x86" >> /etc/portage/package.keywords
echo "net-misc/zaptel ~x86" >> /etc/portage/package.keywords

Now you can emerge the lastest version:

emerge -av net-misc/asterisk

Depending on your USE flags you will get/not get support for:

alsa Adds support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
doc Adds extra documentation (API, Javadoc, etc)
gtk Adds support for x11-libs/gtk+ (The GIMP Toolkit)
mmx Adds support for optimizations for Pentium MMX and Athlon class processors
mysql Adds mySQL support
pri Enables pri support (>=asterisk-1.0.1)
zaptel Enables zaptel support (>=asterisk-1.0.1)
uclibc Enable uclibc specific patches and build or link uclibc
debug Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too
postgres Adds support for the postgresql database
vmdbmysql Enable mysql db support in voicemail application
vmdbpostgres Enable postgres db support in voicemail application
bri Enable ISDN BRI support (bristuff)
hardened activate default security enhancements for toolchain (gcc, glibc, binutils)
speex Adds support for the speex audio codec
resperl Enables support for embedded perl in extensions.conf



If you want to install Asterisk overriding your make.conf USE variables adding support for mysql, and mmx optimizations but you don't want Primary Rate ISDN support:

Edit first /etc/portage/package.use and add net-im/skype net-misc/asterisk mysql mmx nopri

mkdir /etc/portage
echo "net-misc/asterisk mysql mmx -pri" >> /etc/portage/package.use

And then, just:

emerge -av net-misc/asterisk''

Zaptel on Kernel 2.6 and devfs Installation


If you don't have nozaptel in your USE variable you will get installed zaptel has a dependancy of Asterisk. Make sure if your are using 2.6 kernel series with devfs to put in USE variable devfs26 in order to let portage make the apropiate modifications (Asterisk Zaptel Installation) to make Zaptel work with devfs in 2.6.

devfs26Zaptel Devfs support for Linux-2.6

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

There are no know problems with udev and 2.6 kernels.


Asterisk CVS Installation


Please go to asterisk and zaptel cvs ebuilds on Gentoo Bugzilla.
It's not officially supported but maybe you want to take a look (:biggrin:)

Asterisk Starting and Stopping


You dont need to follow the instructions on Asterisk Starting and Stopping.
For start asterisk on boot just add asterisk to the default run-level or start/stop it manually:

rc-update add asterisk default
/etc/init.d/asterisk {start,stop}

To configure the startup arguments for asterisk

$EDITOR /etc/conf.d/asterisk


Asterisk Festival Installation



Again if you want to install Festival for Asterisk usage you dont need to follow the installation steps on Asterisk Festival Installation (maybe only just want to read the configuration and troubleshooting).


asteriskAdds a new command named tts_textasterisk that is required by net-misc/asterisk to communicate with the Festival server

Just add asterisk in your USE variable:

mkdir /etc/portage
echo "app-accessibility/festival asterisk" >> /etc/portage/package.use

And then, just:

emerge -av app-accessibility/festival''


Help! and Bug Reporting


If you detect a bug please submit it on Gentoo Bugzilla and assign it to the Gentoo VoIP Herd <voip@gentoo.org>.
You can also visit #gentoo on the FreeNode IRC network.


Related Packages on Gentoo Linux


Asterisk related packages maintained on Gentoo Linux (stable versions).

net-misc/asterisk 1.2.13-1.2.21 Asterisk
net-misc/asterisk-addons 1.2.5 Additional Plugins for Asterisk
net-misc/asterisk-app_authenticate_ldap 0.1.3 Asterisk application plugin for authentication using LDAP
net-misc/asterisk-app_conference 0.0.1_pre20060210 Asterisk application plugin for conferences
net-misc/asterisk-app_event 20060120 Asterisk plugin to generate a manger event from the dialplan
net-misc/asterisk-app_icd 1.0.0 ICD (Intelligent Call Distributor) application plugin for Asterisk
net-misc/asterisk-app_iconv 0.9.2-r1 Asterisk application plugin for character conversion
net-misc/asterisk-app_intercept 20060120 Asterisk plugin to intercept an unanswered call
net-misc/asterisk-app_ldap 1.0_rc5 Asterisk application plugin to do lookups in a LDAP directory
net-misc/asterisk-app_notify 1.0_rc2 Asterisk application plugin to notify users
net-misc/asterisk-app_nv_faxdetect 1.0.6 Asterisk plugins to detect faxes, dtfm and voice (faxdetect and backgrounddetect)
net-misc/asterisk-app_rtxfax 0.0.2_pre25 Asterisk applications for sending and receiving faxes
net-misc/asterisk-cdr_shell 20060120 Asterisk plugin to use an external shell script for cdr handling
net-misc/asterisk-chan_bluetooth 0.0.1_pre20050212 Asterisk channel plugin for bluetooth HandsFree Profile
net-misc/asterisk-chan_capi 0.7.1 CAPI2.0 channel module for Asterisk
net-misc/asterisk-chan_misdn 0.3.0 Asterisk channel plugin for mISDN
net-misc/asterisk-chan_sccp 0.0.20060204 SCCP channel plugin for the Asterisk soft PBX
net-misc/asterisk-chan_unicall 0.0.3_pre9 Asterisk channel plugin for UniCall
net-misc/asterisk-chan_unistim 0.9.4 Unistim channel module for Asterisk
net-misc/asterisk-rate_engine 0.5.4 Asterisk application for least-cost routing
net-misc/asterisk-res_bondia 0.9 Asterisk resource plugin for Apple Bonjour (aka zeroconf) support
net-misc/asterisk-res_bonjour 1.0_rc1 Asterisk resource plugin for Apple Bonjour (aka zeroconf) support
net-misc/asterisk-sounds 1.2.1-r1 Additional sounds for Asterisk
net-misc/asterisk-sounds-de-pforzheim 2005.09.11 German voice prompts for Asterisk from the City of Pforzheim
net-misc/asterisk-spandsp_codec_g726 0.0.2_pre25 SpanDSP ITU G.726-32kbps codec for Asterisk
sec-policy/selinux-asterisk 20070329 Gentoo SELinux policy for asterisk, a modular open-source PBX system
app-accessibility/festival 1.9.6_beta Festival Text to Speech engine
net-libs/iax 0.2.2 IAX (Inter Asterisk eXchange) Library
net-libs/libpri 1.2.5 Primary Rate ISDN (PRI) library
app-doc/doxygen 1.5.4 Documentation and analysis tool for C++, C, Java, IDL, PHP and C#
net-libs/zapata 1.0.1 Library of additional telephony related functions
net-misc/zaptel 1.2.22 Drivers for Digium and ZapataTelephony cards

See Also



Created by: wylie, Last modification: Fri 18 of Jan, 2008 (10:55 UTC) by FKlama


Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+

Page Changes | Comments