void dialButton(Windows.Media.Devices.CallControl sender, Windows.Media.Devices.DialRequestedEventArgs dialRequestedEventArgs)
        {
            // A device may send a dial request by either sending a URI or if it is a speed dial,
            // an integer with the number to dial.
            if (dialRequestedEventArgs.Contact.GetType() == typeof(UInt32))
            {
                dispatchMessage("Dial requested: " + dialRequestedEventArgs.Contact.ToString());
                dialRequestedEventArgs.Handled();
            }
            else
            {
                // Dialing a URI
                Uri uri = (Uri)dialRequestedEventArgs.Contact;
                if (uri.Scheme.Equals("tel", StringComparison.OrdinalIgnoreCase))
                {
                    string host = uri.Host;
                    string path = uri.PathAndQuery;
                    dispatchMessage("Dial requested: " + path);
                }


            }
        }
 void redialButton(Windows.Media.Devices.CallControl sender, Windows.Media.Devices.RedialRequestedEventArgs redialRequestedEventArgs)
 {
     // Handle the redial request here.  Indicate to the device that the request was handled.
     dispatchMessage("Redial Requested");
     redialRequestedEventArgs.Handled();
 }