Пример #1
0
        private async void EndCallBtn_Clicked(object sender, EventArgs e)
        {
            try
            {
                var action = await DisplayActionSheet("Operation", "Cancel", null, Enum.GetNames(typeof(CallEndType)));

                Log.Debug(Globals.LogTag, "Action: " + action);
                if (action != null)
                {
                    Log.Debug(Globals.LogTag, "End call start");
                    CallEndType type = (CallEndType)Enum.Parse(typeof(CallEndType), action);
                    CallEndData data = await call.EndCall(activeCallHandle, type);

                    Log.Debug(Globals.LogTag, "End call success, call id = " + data.Id + ", end type = " + data.Type);
                }
            }

            catch (Exception ex)
            {
                Log.Debug(Globals.LogTag, "End call ,exception = " + ex.ToString());
            }
        }
Пример #2
0
 internal CallEndData(CallEndType type, uint id)
 {
     _type = type;
     _id   = id;
 }
Пример #3
0
 internal static extern int EndCall(IntPtr handle, uint callHandle, CallEndType type, TapiResponseCallback cb, IntPtr userData);