/// <summary> /// Notify application when registration status has changed. /// </summary> /// <param name="sender">The current sender.</param> /// <param name="e">The event parameter.</param> private void _voipManager_OnRegState(object sender, OnRegStateParam e) { // Send a notification to the call. Param.OnRegStateParam param = new Param.OnRegStateParam(); param.Info = e.RxData.Info; param.SrcAddress = e.RxData.SrcAddress; param.WholeMsg = e.RxData.WholeMsg; param.Code = e.Code; param.Expiration = e.Expiration; param.Reason = e.Reason; param.Status = e.Status; // Call the event handler. OnRegState?.Invoke(this, param); }
/// <summary> /// Notify application when registration status has changed. /// </summary> /// <param name="sender">The current sender.</param> /// <param name="e">The event parameter.</param> private void _account_OnRegState(object sender, OnRegStateParam e) { OnRegState?.Invoke(this, e); }