PJSIP is highly recommended. You can look at CsipSimple which is an opensource Android phone using PJSIP and a good place to start. PJSIP supports a number of codecs including G.729 and speex, has small memory foot print and has extensive documentation.