Digium just released a new version of asterisk. Here is the appropriate ebuild. The only changes I did are re-diffing gsm-pic.patch and pri-missing-keyword.patch. Compiles nice and smoothly.
Created attachment 233801 [details] ebuild for asterisk-1.6.2.8
Created attachment 233803 [details, diff] gsm-pic.patch
Created attachment 233805 [details, diff] pri-missing-keyword.patch
Created attachment 234281 [details, diff] Restore inband progress indications see https://issues.asterisk.org/view.php?id=17372
Created attachment 234283 [details] new ebuild which includes inband indications patch see https://issues.asterisk.org/view.php?id=17372
+*asterisk-1.6.2.8 (07 Jun 2010) + + 07 Jun 2010; <chainsaw@gentoo.org> +asterisk-1.6.2.8.ebuild, + +files/1.6.2/asterisk-1.6.2.8-gsm-pic.patch, + +files/1.6.2/asterisk-1.6.2.8-inband-indications.patch, + +files/1.6.2/asterisk-1.6.2.8-pri-missing-keyword.patch: + Version bump, conditional lua dependency by Francisco Javier in bug + #320517. Patching by Oliver Jaksch & Federico Santulli from bug #322427.