Easier and better way then running your own on raspberry pi is https://simonics.com/services/ . With your own pbx you can do much more. Multiple google extensions, emailing voice mails, recording etc. Another site to investigate is pbxinaflash.com forums.