Click here to Skip to main content
15,881,715 members
Articles / Programming Languages / C#

SIP Stack with SIP Proxy - (VOIP)

Rate me:
Please Sign up or sign in to vote.
4.86/5 (45 votes)
11 Jun 2007CPOL2 min read 1.6M   28.1K   162  
C# implementation of SIP
using System;
using System.Collections.Generic;
using System.Text;

namespace LumiSoft.Net.SIP.Stack
{
    /// <summary>
    /// This class represents known SIP request methods.
    /// </summary>
    public class SIP_Methods
    {
        /// <summary>
        /// ACK method. Defined in RFC 3261.
        /// </summary>
        public const string ACK = "ACK";

        /// <summary>
        /// BYE method. Defined in RFC 3261.
        /// </summary>
        public const string BYE = "BYE";

        /// <summary>
        /// CANCEL method. Defined in RFC 3261.
        /// </summary>
        public const string CANCEL = "CANCEL";

        /// <summary>
        /// INFO method. Defined in RFC 2976.
        /// </summary>
        public const string INFO = "INFO";

        /// <summary>
        /// INVITE method. Defined in RFC 3261.
        /// </summary>
        public const string INVITE = "INVITE";

        /// <summary>
        /// MESSAGE method. Defined in RFC 3428.
        /// </summary>
        public const string MESSAGE = "MESSAGE";

        /// <summary>
        /// NOTIFY method. Defined in RFC 3265.
        /// </summary>
        public const string NOTIFY = "NOTIFY";
                
        /// <summary>
        /// OPTIONS method. Defined in RFC 3261.
        /// </summary>
        public const string OPTIONS = "OPTIONS";

        /// <summary>
        /// PRACK method. Defined in RFC 3262.
        /// </summary>
        public const string PRACK = "PRACK";

        /// <summary>
        /// PUBLISH method. Defined in RFC 3903.
        /// </summary>
        public const string PUBLISH = "PUBLISH";

        /// <summary>
        /// REFER method. Defined in RFC 3515.
        /// </summary>
        public const string REFER = "REFER";
                
        /// <summary>
        /// REGISTER method. Defined in RFC 3261.
        /// </summary>
        public const string REGISTER = "REGISTER";

        /// <summary>
        /// SUBSCRIBE method. Defined in RFC 3265.
        /// </summary>
        public const string SUBSCRIBE = "SUBSCRIBE";

        /// <summary>
        /// UPDATE method. Defined in RFC 3311.
        /// </summary>
        public const string UPDATE = "UPDATE";
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Estonia Estonia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions