Asterisk is a project mainly written in JAVA and GROOVY, it's free.
http://objectgeneration.com/eclipse/03-Design%20Classes.html
http://www.touchkanology.com/asterisk-realtime-1-4-x-with-mysql.html