public VoipClientModule(string serverIp, int serverPort)
 {
     PhoneState = new PhoneState {
         Status = PhoneStatus.Unregistered, OtherUserId = null
     };
     _softphone  = new Softphone();
     _serverIp   = serverIp;
     _serverPort = serverPort;
     AttachEvents();
 }
 private void SetPhoneStatus(PhoneStatus status, string otherUserId)
 {
     if (PhoneState.Status != status || PhoneState.OtherUserId != otherUserId)
     {
         PhoneState = new PhoneState {
             OtherUserId = otherUserId, Status = status
         };
         PhoneStateChanged?.Invoke(PhoneState);
     }
 }