private void MainActivity_OnPhoneHangout(object sender, TwilioEventArgs e)
 {
     if (_connection != null)
     {
         _connection.Disconnect();
     }
 }
        private void MainActivity_OnPhoneCall(object sender, TwilioEventArgs e)
        {
            var parameters = new Dictionary <string, string>()
            {
                { "CallId", e.CallID }
            };

            if (_device != null)
            {
                _connection       = _device.Connect(parameters, null);
                _connection.Muted = false;
            }
        }
        private void MainActivity_OnPhoneCall(object sender, TwilioEventArgs e)
        {
            //NSDictionary parameters = NSDictionary.FromObjectsAndKeys(
            //    new object[] { from, to },
            //    new object[] { "Source", "Target" }
            //);

            NSDictionary parameters = NSDictionary.FromObjectsAndKeys(
                new object[] { e.CallID },
                new object[] { "CallId" }
                );

            _connection = _device.Connect(parameters, null);
        }
 private void GlobalEvents_OnMute(object sender, TwilioEventArgs e)
 {
     _connection.Muted = !_connection.Muted;
 }