Just a brief note on segfaults when compiling Asterisk 1.6.0 (through to 1.6.0.3-rc1 and perhaps onwards). If you find that the Asterisk process segfaults when a caller starts to record a VoiceMail message then go back to the build step:

make menuselect
Compiler Flags -> DONT OPTIMIZE

And then recompile / reinstall.