Show / Hide Table of Contents

Class SIPConstants

Inheritance
System.Object
SIPConstants
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.SIP
Assembly: SIPSorcery.dll
Syntax
public static class SIPConstants

Fields

| Improve this Doc View Source

ALLOWED_SIP_METHODS

Declaration
public const string ALLOWED_SIP_METHODS = "ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER, SUBSCRIBE"
Field Value
Type Description
System.String
| Improve this Doc View Source

CRLF

Declaration
public const string CRLF = "\r\n"
Field Value
Type Description
System.String
| Improve this Doc View Source

DEFAULT_ENCODING

Declaration
public static Encoding DEFAULT_ENCODING
Field Value
Type Description
System.Text.Encoding
| Improve this Doc View Source

DEFAULT_MAX_FORWARDS

Declaration
public const int DEFAULT_MAX_FORWARDS = 70
Field Value
Type Description
System.Int32
| Improve this Doc View Source

DEFAULT_REGISTEREXPIRY_SECONDS

Declaration
public const int DEFAULT_REGISTEREXPIRY_SECONDS = 600
Field Value
Type Description
System.Int32
| Improve this Doc View Source

DEFAULT_SIP_PORT

Declaration
public const ushort DEFAULT_SIP_PORT = 5060
Field Value
Type Description
System.UInt16
| Improve this Doc View Source

DEFAULT_SIP_TLS_PORT

Declaration
public const ushort DEFAULT_SIP_TLS_PORT = 5061
Field Value
Type Description
System.UInt16
| Improve this Doc View Source

DEFAULT_SIP_WEBSOCKET_PORT

Declaration
public const ushort DEFAULT_SIP_WEBSOCKET_PORT = 80
Field Value
Type Description
System.UInt16
| Improve this Doc View Source

DEFAULT_SIPS_WEBSOCKET_PORT

Declaration
public const ushort DEFAULT_SIPS_WEBSOCKET_PORT = 443
Field Value
Type Description
System.UInt16
| Improve this Doc View Source

HEADER_DELIMITER_CHAR

Declaration
public const char HEADER_DELIMITER_CHAR = ':'
Field Value
Type Description
System.Char
| Improve this Doc View Source

NONCE_TIMEOUT_MINUTES

Declaration
public const int NONCE_TIMEOUT_MINUTES = 5
Field Value
Type Description
System.Int32
| Improve this Doc View Source

SIP_BRANCH_MAGICCOOKIE

Declaration
public const string SIP_BRANCH_MAGICCOOKIE = "z9hG4bK"
Field Value
Type Description
System.String
| Improve this Doc View Source

SIP_DEFAULT_FROMURI

Declaration
public const string SIP_DEFAULT_FROMURI = "sip:thisis@anonymous.invalid"
Field Value
Type Description
System.String
| Improve this Doc View Source

SIP_DEFAULT_USERNAME

Declaration
public const string SIP_DEFAULT_USERNAME = "Anonymous"
Field Value
Type Description
System.String
| Improve this Doc View Source

SIP_FULLVERSION_STRING

Declaration
public const string SIP_FULLVERSION_STRING = "SIP/2.0"
Field Value
Type Description
System.String
| Improve this Doc View Source

SIP_LOOSEROUTER_PARAMETER

Declaration
public const string SIP_LOOSEROUTER_PARAMETER = "lr"
Field Value
Type Description
System.String
| Improve this Doc View Source

SIP_MAJOR_VERSION

Declaration
public const int SIP_MAJOR_VERSION = 2
Field Value
Type Description
System.Int32
| Improve this Doc View Source

SIP_MAXIMUM_RECEIVE_LENGTH

The maximum size supported for an incoming SIP message.

Declaration
public const int SIP_MAXIMUM_RECEIVE_LENGTH = 65535
Field Value
Type Description
System.Int32
Remarks

From https://tools.ietf.org/html/rfc3261#section-18.1.1: However, implementations MUST be able to handle messages up to the maximum datagram packet size.For UDP, this size is 65,535 bytes, including IP and UDP headers.

| Improve this Doc View Source

SIP_MINOR_VERSION

Declaration
public const int SIP_MINOR_VERSION = 0
Field Value
Type Description
System.Int32
| Improve this Doc View Source

SIP_REGISTER_REMOVEALL

Declaration
public const string SIP_REGISTER_REMOVEALL = "*"
Field Value
Type Description
System.String
| Improve this Doc View Source

SIP_REMOTEHANGUP_CAUSE

Declaration
public const string SIP_REMOTEHANGUP_CAUSE = "remote end hungup"
Field Value
Type Description
System.String
| Improve this Doc View Source

SIP_REQUEST_REGEX

Declaration
public const string SIP_REQUEST_REGEX = "^\\w+ .* SIP/.*"
Field Value
Type Description
System.String
| Improve this Doc View Source

SIP_RESPONSE_REGEX

Declaration
public const string SIP_RESPONSE_REGEX = "^SIP/.* \\d{3}"
Field Value
Type Description
System.String
| Improve this Doc View Source

SIP_VERSION_STRING

Declaration
public const string SIP_VERSION_STRING = "SIP"
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

SipUserAgentVersionString

Declaration
public static string SipUserAgentVersionString { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

GetDefaultPort(SIPProtocolsEnum)

Gets the default SIP port for the protocol.

Declaration
public static int GetDefaultPort(SIPProtocolsEnum protocol)
Parameters
Type Name Description
SIPProtocolsEnum protocol

The transport layer protocol to get the port for.

Returns
Type Description
System.Int32

The default port to use.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX