Exemplo n.º 1
0
 /// <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());
     }
 }
Exemplo n.º 2
0
 /// <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());
     }
 }
Exemplo n.º 3
0
        /// <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);
            }
        }
Exemplo n.º 4
0
        /// <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);
        }
Exemplo n.º 5
0
        /// <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);
        }