internal virtual void OnCallDisconnected(Call call, DisconnectCauseType causetype, string causestring) { try { Debug.WriteWarn("Call {0} {1}{2}", call.Id, causetype, string.IsNullOrEmpty(causestring) ? "" : " - " + causestring); var handler = CallDisconnected; if (handler != null) { handler(_codec, new CallDisconnectEventArgs(call, causetype, causestring)); } } catch (Exception e) { CloudLog.Exception(e); } }
internal CallDisconnectEventArgs(Call disconnectedCall, DisconnectCauseType causeType, string causeString) { DisconnectedCall = disconnectedCall; CauseType = causeType; CauseString = causeString; }