Ejemplo n.º 1
0
 /// <summary>
 /// Cancel our call attempt prior to it being answered.
 /// </summary>
 public void Cancel()
 {
     if (m_uac != null)
     {
         if (m_uac.IsUACAnswered == false)
         {
             m_uac.Cancel();
         }
         else
         {
             m_uac.Hangup();
         }
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Cancel our call attempt prior to it being answered.
        /// </summary>
        public void Cancel()
        {
            MediaSession.SessionMediaChanged -= MediaSessionOnSessionMediaChanged;
            MediaSession?.Close();

            if (m_uac != null)
            {
                if (m_uac.IsUACAnswered == false)
                {
                    m_uac.Cancel();
                }
                else
                {
                    m_uac.Hangup();
                }
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Cancel our call attempt prior to it being answered.
        /// </summary>
        public void Cancel()
        {
            if (m_uac != null)
            {
                if (m_uac.IsUACAnswered == false)
                {
                    m_uac.Cancel();
                }
                else
                {
                    m_uac.Hangup();
                }
            }

            if (MediaSession != null)
            {
                MediaSession.Close("call cancelled");
            }
        }