private void _transportManager_OnCommandRecieved(object sender, CommandEventArgs e)
 {
     switch (e.Command.Name)
     {
         case CommandName.VoicePacket:
             if (IsInCall)
             {
                 var data = _commandBuilder.GetUnderlyingObject<byte[]>(e.Command);
                 _audioDevice.Play(data);
             }
             break;
         case CommandName.EndCall:
             IsInCall = false;
             _audioDevice.StopCapture();
             CallEnded(this, EventArgs.Empty);
             break;
         case CommandName.IncomingCall:
             _incomingCallCommand = e.Command;
             IncomingCall(this, new CallEventsArgs { Number = _commandBuilder.GetUnderlyingObject<string>(e.Command)});
             break;
     }
 }
 private void _transportManager_OnCommandRecieved(object sender, CommandEventArgs e)
 {
     //switch (e.Command.Name)
     //{
     //}
 }