/// <summary> /// Raises CallTerminated event. /// </summary> /// <param name="call">Call terminated.</param> protected internal void OnCallTerminated(SIP_B2BUA_Call call) { if (CallTerminated != null) { CallTerminated(call, new EventArgs()); } }
/// <summary> /// Raises CallCreated event. /// </summary> /// <param name="call">Call created.</param> protected void OnCallCreated(SIP_B2BUA_Call call) { if (CallCreated != null) { CallCreated(call, new EventArgs()); } }
/// <summary> /// Adds specified call to calls list. /// </summary> /// <param name="caller">Caller side dialog.</param> /// <param name="calee">Calee side dialog.</param> internal void AddCall(SIP_Dialog caller, SIP_Dialog calee) { lock (m_pCalls) { SIP_B2BUA_Call call = new SIP_B2BUA_Call(this, caller, calee); m_pCalls.Add(call); OnCallCreated(call); } }
/// <summary> /// Removes specified call from calls list. /// </summary> /// <param name="call">Call to remove.</param> internal void RemoveCall(SIP_B2BUA_Call call) { m_pCalls.Remove(call); OnCallTerminated(call); }