handle outgoing and ringing state