rtp_media_server: state transition improvement