Adds check for the peer state before sending ringing responses to received invite.