This is a work in progress
Notes
Basic gentoo knowledge is required, if you don't know what a USE flag then this will be hard to follow.
Look the the requirements in the INSTALL file and get your apache/php flags correct and reemerge dev-lang/php if needed.
emerge asterisk >= 1.2 - http://gentoo-portage.com/net-misc/asterisk
and asterisk-addons - http://gentoo-portage.com/net-misc/asterisk-addons
note: as of this writing the correct ebuild is asterisk-1.2.9_p1
Both are masked with ~x86 so (if you're not on x86 modify as needed) umask them with
`echo "net-misc/asterisk ~x86" >> /etc/portage/package.keywords`
and
`echo "net-misc/asterisk-addons ~x86" >> /etc/portage/package.keywords`
To emerge:
`emerge asterisk asterisk-addons`
Note: I have `net-misc/asterisk zaptel speex mysql -vmdbmysql` in
my package.use for asterisk but you may need otherwise, read the use
flags descriptions at gentoo-portage.com
This will get asterisk to be ready to futher configure.
Amportal Issues:
in /usr/sbin/safe_asterisk change
ASTSBINDIR=/sbin to
ASTSBINDIR=/usr/sbin
check in /etc/passwd and make the asterisk user have /bin/bash as the shell if it's not already such.
I also needed asterisk ownership on the htdocs folder above the freepbx files.