• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • SipLib.Body
      • BodyParser
      • ContentTypes
      • MessageContentsContainer
      • MultipartBinaryBodyBuilder
      • SipBodyBuilder
    • SipLib.Channels
      • AcceptCertificateDelegate
      • AcceptConnectionDelegate
      • DscpSettings
      • LogInvalidSipMessageDelegate
      • LogSipRequestDelegate
      • LogSipResponseDelegate
      • Qos
      • SIPChannel
      • SIPConnection
      • SIPConnectionDisconnectedDelegate
      • SIPConnectionsEnum
      • SIPMessageReceivedDelegate
      • SIPTCPChannel
      • SIPTLSChannel
      • SIPUDPChannel
      • SipConnectionFailedDelegate
      • SipRequestReceivedDelegate
      • SipResponseReceivedDelegate
      • SipTransactionCompleteDelegate
      • WindowsQos
    • SipLib.Collections
      • ThreadSafeGenericList<T>
    • SipLib.Core
      • ByteBufferInfo
      • CallProperties
      • Crypto
      • HTTPDigest
      • IPSocket
      • SIPAuthenticationHeader
      • SIPAuthorisationDigest
      • SIPAuthorisationHeadersEnum
      • SIPCallInfoHeader
      • SIPConstants
      • SIPContactHeader
      • SIPEndPoint
      • SIPEscape
      • SIPFrag
      • SIPFromHeader
      • SIPGeolocationHeader
      • SIPHeader
      • SIPHeaders
      • SIPMessage
      • SIPMessageTypesEnum
      • SIPMethods
      • SIPMethodsEnum
      • SIPPaiHeader
      • SIPParameters
      • SIPPpiHeader
      • SIPProtocolsEnum
      • SIPProtocolsType
      • SIPReplacesParameter
      • SIPRequest
      • SIPResponse
      • SIPResponseStatusCodes
      • SIPResponseStatusCodesEnum
      • SIPRoute
      • SIPRouteSet
      • SIPSchemesEnum
      • SIPSchemesType
      • SIPToHeader
      • SIPURI
      • SIPUserField
      • SIPValidationException
      • SIPValidationFieldsEnum
      • SIPViaHeader
      • SIPViaSet
      • SipUtils
      • TypeExtensions
    • SipLib.Dtls
      • AlertLevelsEnum
      • AlertTypesEnum
      • DtlsClientUdpTransport
      • DtlsServerUdpTransport
      • DtlsSrtpClient
      • DtlsSrtpServer
      • DtlsSrtpTransport
      • DtlsUtils
      • IDtlsSrtpPeer
      • IPacketTransformer
      • ITransformEngine
      • NetConvert
      • RTCDtlsFingerprint
      • RawPacket
      • SrtcpCryptoContext
      • SrtpPolicy
      • SrtpTransformEngine
      • SrtpTransformer
    • SipLib.Logging
      • SipLogger
    • SipLib.Media
      • ALawDecoder
      • ALawEncoder
      • AudioDestination
      • AudioDestinationDelegate
      • AudioSampleData
      • AudioSamplesReadyDelegate
      • AudioSource
      • Band
      • DtmfDigitReceivedDelegate
      • FileAudioSource
      • G722Codec
      • G722CodecState
      • G722Decoder
      • G722Encoder
      • G722Flags
      • HighResolutionTimer
      • HighResolutionTimerDelegate
      • IAudioDecoder
      • IAudioEncoder
      • IAudioSampleSource
      • MediaPortManager
      • MediaPortSettings
      • MediaTypes
      • MsrpEncryptionEnum
      • MuLawDecoder
      • MuLawEncoder
      • PcmaDecoder
      • PcmaEncoder
      • PcmuDecoder
      • PcmuEncoder
      • PortRange
      • RtpEncryptionEnum
    • SipLib.Msrp
      • ByteRangeHeader
      • CpimMessage
      • MsrpCompletionStatus
      • MsrpConnection
      • MsrpConnectionStatusDelegate
      • MsrpMessage
      • MsrpMessageDeliveryFailedDelegate
      • MsrpMessageReceivedDelegate
      • MsrpMessageSentDelegate
      • MsrpMessageType
      • MsrpPathHeader
      • MsrpStatusHeader
      • MsrpStreamParser
      • MsrpTextMessageReceivedDelegate
      • MsrpUri
      • ReportReceivedDelegate
    • SipLib.Network
      • IpUtils
    • SipLib.RealTimeText
      • RttCharactersReceivedDelegate
      • RttParameters
      • RttReceiver
      • RttRtpSendDelegate
      • RttSender
    • SipLib.Rtp
      • ByePacket
      • DtlsHandshakeFailedDelegate
      • DtmfEventEnum
      • DtmfPacket
      • JitterStatistics
      • MeanOpinionScore
      • ReceiveStatisticsReadyDelegate
      • ReceiverReport
      • ReportBlock
      • RtcpCompoundPacket
      • RtcpHeader
      • RtcpPacketReceivedDelegate
      • RtcpPacketSentDelegate
      • RtcpPacketType
      • RtpChannel
      • RtpPacket
      • RtpPacketReceivedDelegate
      • RtpPacketSentDelegate
      • RtpReceiveStatistics
      • RtpUtils
      • SdesChunk
      • SdesItem
      • SdesItemType
      • SdesPacket
      • SenderInfo
      • SenderReport
    • SipLib.RtpCrypto
      • AesFunctions
      • CryptoAttribute
      • CryptoContext
      • CryptoSuites
      • InlineParams
      • MasterKeys
      • RocVals
      • RocValues
      • SRtpErrorsEnum
      • SRtpUtils
      • SessionKeys
      • SrtpDecryptor
      • SrtpEncryptor
      • SrtpLabelItem
      • SrtpTransformBase
    • SipLib.Sdp
      • ConnectionData
      • MediaDescription
      • MediaDirectionEnum
      • Origin
      • RtpMapAttribute
      • Sdp
      • SdpAnswerSettings
      • SdpAttribute
      • SdpUtils
      • SetupType
    • SipLib.Threading
      • QueuedActionWorkerTask
    • SipLib.Transactions
      • ClientInviteTransaction
      • ClientNonInviteTransaction
      • ServerInviteTransaction
      • ServerNonInviteTransaction
      • SipTimers
      • SipTransactionBase
      • SipTransport
      • TransactionRequestReceivedDelegate
      • TransactionResponseReceivedDelegate
      • TransactionStateEnum
      • TransactionTerminationReasonEnum
    • SipLib.Video
      • H264Depacketiser
      • H264Packetiser
      • H264Packetiser.H264Nal
      • H264RtpReceiver
      • H264RtpSender
      • RtpSendDelegate
      • RtpVP8Header
      • VP8RtpReceiver
      • VP8RtpSender
      • VideoRtpReceiver
      • VideoRtpSender

    Class SIPHeader

    Class for handling the SIP headers portion of a SIP request or a SIP response message.

    Inheritance
    object
    SIPHeader
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: SipLib.Core
    Assembly: SipLib.dll
    Syntax
    public class SIPHeader
    Remarks

    For header fields with string values, a null value indicates that the header field is not present. For header fields with numeric values, a value of -1 indicates that the header field is not present.

    Constructors

    | Edit this page View Source

    SIPHeader()

    Default constructor.

    Declaration
    public SIPHeader()
    | Edit this page View Source

    SIPHeader(SIPContactHeader, SIPFromHeader, SIPToHeader, int, string)

    Constructs a new SIPHeader object.

    Declaration
    public SIPHeader(SIPContactHeader contact, SIPFromHeader from, SIPToHeader to, int cseq, string callId)
    Parameters
    Type Name Description
    SIPContactHeader contact

    SIPContact object

    SIPFromHeader from

    SIPFromHeader object

    SIPToHeader to

    SIPToHeader object

    int cseq

    Numeric portion of the CSeq header field

    string callId

    Call-ID header field value

    Exceptions
    Type Condition
    ApplicationException

    Thrown if the from, to or callId parameters are null or empty.

    | Edit this page View Source

    SIPHeader(SIPFromHeader, SIPToHeader, int, string)

    Constructs a new SIPHeader object.

    Declaration
    public SIPHeader(SIPFromHeader from, SIPToHeader to, int cseq, string callId)
    Parameters
    Type Name Description
    SIPFromHeader from

    SIPFromHeader object

    SIPToHeader to

    SIPToHeader object

    int cseq

    Numeric portion of the CSeq header field

    string callId

    Call-ID header field value

    Exceptions
    Type Condition
    ApplicationException

    Thrown if the from, to or callId parameters are null or empty.

    | Edit this page View Source

    SIPHeader(List<SIPContactHeader>, SIPFromHeader, SIPToHeader, int, string)

    Constructs a new SIPHeader object

    Declaration
    public SIPHeader(List<SIPContactHeader> contactList, SIPFromHeader from, SIPToHeader to, int cseq, string callId)
    Parameters
    Type Name Description
    List<SIPContactHeader> contactList

    List of SIPContactHeader objects

    SIPFromHeader from

    SIPFromHeader object

    SIPToHeader to

    SIPToHeader object

    int cseq

    Numeric portion of the CSeq header field

    string callId

    Call-ID header field value

    Exceptions
    Type Condition
    ApplicationException

    Thrown if the from, to or callId parameters are null or empty.

    | Edit this page View Source

    SIPHeader(string, string, int, string)

    Constructs a new SIPHeader object.

    Declaration
    public SIPHeader(string fromHeader, string toHeader, int cseq, string callId)
    Parameters
    Type Name Description
    string fromHeader

    From header field value.

    string toHeader

    To header field value.

    int cseq

    CSeq header field value.

    string callId

    Call-ID header field value.

    Exceptions
    Type Condition
    ApplicationException

    Thrown if the fromHeader, toHeader or callId parameters are null or empty.

    | Edit this page View Source

    SIPHeader(string, string, string, int, string)

    Constructs a new SIPHeader object.

    Declaration
    public SIPHeader(string fromHeader, string toHeader, string contactHeader, int cseq, string callId)
    Parameters
    Type Name Description
    string fromHeader

    From header field value.

    string toHeader

    To header field value.

    string contactHeader

    Contact header field value

    int cseq

    CSeq header field value.

    string callId

    Call-ID header field value.

    Exceptions
    Type Condition
    ApplicationException

    Thrown if the fromHeader, toHeader or callId parameters are null or empty.

    Fields

    | Edit this page View Source

    Accept

    Accept header field. See Section 20.1 of RFC 3261.

    Declaration
    public string? Accept
    Field Value
    Type Description
    string
    | Edit this page View Source

    AcceptEncoding

    Accept-Encoding header field. See Section 20.2 of RFC 3261.

    Declaration
    public string? AcceptEncoding
    Field Value
    Type Description
    string
    | Edit this page View Source

    AcceptLanguage

    Accept-Language header field. See Section 20.3 of RFC 3261.

    Declaration
    public string? AcceptLanguage
    Field Value
    Type Description
    string
    | Edit this page View Source

    AlertInfo

    Alert-Info header field. See Section 20.4 of RFC 3261.

    Declaration
    public string? AlertInfo
    Field Value
    Type Description
    string
    | Edit this page View Source

    Allow

    Allow header field. See Section 20.5 of RFC 3261.

    Declaration
    public string? Allow
    Field Value
    Type Description
    string
    | Edit this page View Source

    AllowEvents

    Allow-Events header field. The Allow header field lists the set of methods supported by the UA generating the message. See Section 3.3.7 of RFC 3265.

    Declaration
    public string? AllowEvents
    Field Value
    Type Description
    string
    | Edit this page View Source

    AuthenticationHeader

    WWW-Authenticate header field. See Section 20.44 of RFC 3261.

    Declaration
    public SIPAuthenticationHeader? AuthenticationHeader
    Field Value
    Type Description
    SIPAuthenticationHeader
    | Edit this page View Source

    AuthenticationInfo

    Authentication-Info header field. See Section 20.6 of RFC 3261

    Declaration
    public string? AuthenticationInfo
    Field Value
    Type Description
    string
    | Edit this page View Source

    CSeq

    Specifies the numeric portion of the CSeq header field. See Section 20.16 of RFC 3261. A value of -1 indicates that there is no CSeq field.

    Declaration
    public int CSeq
    Field Value
    Type Description
    int
    | Edit this page View Source

    CSeqMethod

    Specifies the method portion of the CSeq header field. See Section 20.16 of RFC 3261.

    Declaration
    public SIPMethodsEnum CSeqMethod
    Field Value
    Type Description
    SIPMethodsEnum
    | Edit this page View Source

    CallId

    Call-ID header field. See Section 20.8 of RFC 3261.

    Declaration
    public string CallId
    Field Value
    Type Description
    string
    | Edit this page View Source

    CallInfo

    Call-Info header field. See Section 20.9 of RFC 3261. An empty list indicates that there are no Call-Info header fields.

    Declaration
    public List<SIPCallInfoHeader> CallInfo
    Field Value
    Type Description
    List<SIPCallInfoHeader>
    | Edit this page View Source

    Contact

    Contact header field. See Section 20.10 of RFC 3261. An empty list indicates that there are no Contact header fiels.

    Declaration
    public List<SIPContactHeader>? Contact
    Field Value
    Type Description
    List<SIPContactHeader>
    | Edit this page View Source

    ContentDisposition

    Content-Disposition header field. See Section 20.11 of RFC 3261.

    Declaration
    public string? ContentDisposition
    Field Value
    Type Description
    string
    | Edit this page View Source

    ContentEncoding

    Content-Encoding header field. See Section 20.12 of RFC 3261.

    Declaration
    public string? ContentEncoding
    Field Value
    Type Description
    string
    | Edit this page View Source

    ContentLanguage

    Content-Language header field. See Section 20.13 of RFC 3261.

    Declaration
    public string? ContentLanguage
    Field Value
    Type Description
    string
    | Edit this page View Source

    ContentLength

    Content-Length header field. See Section 20.14 of RFC 3261.

    Declaration
    public int ContentLength
    Field Value
    Type Description
    int
    | Edit this page View Source

    ContentType

    Content-Type header field. See Section 20.15 of RFC 3261.

    Declaration
    public string? ContentType
    Field Value
    Type Description
    string
    | Edit this page View Source

    Date

    Date header field. See Section 20.17 of RFC 3261.

    Declaration
    public string? Date
    Field Value
    Type Description
    string
    | Edit this page View Source

    ErrorInfo

    Error-Info header field. See Section 20.18 of RFC 3261.

    Declaration
    public string? ErrorInfo
    Field Value
    Type Description
    string
    | Edit this page View Source

    Event

    Event header field. See RFC 3265 and RFC 6665.

    Declaration
    public string? Event
    Field Value
    Type Description
    string
    | Edit this page View Source

    Expires

    Expires header field. See Section 20.19 of RFC 3261.

    Declaration
    public int Expires
    Field Value
    Type Description
    int
    | Edit this page View Source

    From

    From header field. See Section 20.20 of RFC 3261.

    Declaration
    public SIPFromHeader? From
    Field Value
    Type Description
    SIPFromHeader
    | Edit this page View Source

    Geolocation

    Contains the header field values of 1 or more Geolocation headers as defined in RFC 6442. An empty list indicates that no Geolocation headers are present.

    Declaration
    public List<SIPGeolocationHeader> Geolocation
    Field Value
    Type Description
    List<SIPGeolocationHeader>
    | Edit this page View Source

    GeolocationError

    Contains the header value of a Geolocation-Error header as defined in RFC 6442. The value is numeric code between 1 and 3 digits long.

    Declaration
    public string? GeolocationError
    Field Value
    Type Description
    string
    | Edit this page View Source

    GeolocationRouting

    Contains the header value of a Geolocation-Routing header as defined in RFC 6442. The header value may be either yes or no.

    Declaration
    public string? GeolocationRouting
    Field Value
    Type Description
    string
    | Edit this page View Source

    InReplyTo

    In-Reply-To header field. See Section 20.21 of RFC 3261.

    Declaration
    public string? InReplyTo
    Field Value
    Type Description
    string
    | Edit this page View Source

    MIMEVersion

    MIME-Version header field. See Section 20.24 of RFC 3261.

    Declaration
    public string? MIMEVersion
    Field Value
    Type Description
    string
    | Edit this page View Source

    MaxForwards

    Max-Forwards header field. See Section 20.22 of RFC 3261.

    Declaration
    public int MaxForwards
    Field Value
    Type Description
    int
    | Edit this page View Source

    MinExpires

    Min-Expires header field. See Section 20.23 of RFC 3261.

    Declaration
    public int MinExpires
    Field Value
    Type Description
    int
    | Edit this page View Source

    Organization

    Organization header field. See Section 20.25 of RFC 3261.

    Declaration
    public string? Organization
    Field Value
    Type Description
    string
    | Edit this page View Source

    PAssertedIdentity

    P-Asserted-Identity header field. See RFC 3325.

    Declaration
    public SIPPaiHeader? PAssertedIdentity
    Field Value
    Type Description
    SIPPaiHeader
    | Edit this page View Source

    PPreferredIdentity

    P-Preferred-Identity header field. See RFC 3325.

    Declaration
    public SIPPpiHeader? PPreferredIdentity
    Field Value
    Type Description
    SIPPpiHeader
    | Edit this page View Source

    Priority

    Priority header field. See Section 20.26 of RFC 3261.

    Declaration
    public string? Priority
    Field Value
    Type Description
    string
    | Edit this page View Source

    ProxyRequire

    Proxy-Require header field. See Section 20.29 of RFC 3261.

    Declaration
    public string? ProxyRequire
    Field Value
    Type Description
    string
    | Edit this page View Source

    Reason

    Reason header field. See RFC 3326.

    Declaration
    public string? Reason
    Field Value
    Type Description
    string
    | Edit this page View Source

    RecordRoutes

    Record-Route header field. See Section 20.30 of RFC 3261.

    Declaration
    public SIPRouteSet RecordRoutes
    Field Value
    Type Description
    SIPRouteSet
    | Edit this page View Source

    ReferSub

    Refer-Sub header field. See RFC 4488. If set to false indicates the implict REFER subscription should not be created.

    Declaration
    public string? ReferSub
    Field Value
    Type Description
    string
    | Edit this page View Source

    ReferTo

    Refer-To header field. See RFC 3515.

    Declaration
    public string? ReferTo
    Field Value
    Type Description
    string
    | Edit this page View Source

    ReferredBy

    The Referred-By header field. See RFC 3515.

    Declaration
    public string? ReferredBy
    Field Value
    Type Description
    string
    | Edit this page View Source

    ReplyTo

    Reply-To header field. See Section 20.31 of RFC 3261.

    Declaration
    public string? ReplyTo
    Field Value
    Type Description
    string
    | Edit this page View Source

    Require

    Require header field. See Section 20.32 of RFC 3261.

    Declaration
    public string? Require
    Field Value
    Type Description
    string
    | Edit this page View Source

    ResourcePriority

    Resource-Priority header field. See RFC 4412.

    Declaration
    public string? ResourcePriority
    Field Value
    Type Description
    string
    | Edit this page View Source

    RetryAfter

    Retry-After header field. See Section 20.33 of RFC 3261.

    Declaration
    public string? RetryAfter
    Field Value
    Type Description
    string
    | Edit this page View Source

    Routes

    Route header field. See Section 20.34 of RFC 3261.

    Declaration
    public SIPRouteSet Routes
    Field Value
    Type Description
    SIPRouteSet
    | Edit this page View Source

    Server

    Server header field. See Section 20.35 of RFC 3261.

    Declaration
    public string? Server
    Field Value
    Type Description
    string
    | Edit this page View Source

    Subject

    Subject header field. See Section 20.36 of RFC 3261.

    Declaration
    public string? Subject
    Field Value
    Type Description
    string
    | Edit this page View Source

    SubscriptionState

    Subscription-State header field. See RFC 3265 and RFC 6665.

    Declaration
    public string? SubscriptionState
    Field Value
    Type Description
    string
    | Edit this page View Source

    Supported

    Supported header field. See Section 20.37 of RFC 3261.

    Declaration
    public string? Supported
    Field Value
    Type Description
    string
    | Edit this page View Source

    Timestamp

    Timestamp header field. See Section 20.38 of RFC 3261.

    Declaration
    public string? Timestamp
    Field Value
    Type Description
    string
    | Edit this page View Source

    To

    To header field. See Section 20.39 of RFC 3261.

    Declaration
    public SIPToHeader? To
    Field Value
    Type Description
    SIPToHeader
    | Edit this page View Source

    UnknownHeaders

    Holds any unrecognized headers. Each item in the list is the original header line.

    Declaration
    public List<string> UnknownHeaders
    Field Value
    Type Description
    List<string>
    | Edit this page View Source

    Unsupported

    Unsupported header field. See Section 20.40 of RFC 3261.

    Declaration
    public string? Unsupported
    Field Value
    Type Description
    string
    | Edit this page View Source

    UserAgent

    User-Agent header field. See Section 20.41 of RFC 3261.

    Declaration
    public string? UserAgent
    Field Value
    Type Description
    string
    | Edit this page View Source

    Vias

    Via header field. See Section 20.42 of RFC 3261.

    Declaration
    public SIPViaSet Vias
    Field Value
    Type Description
    SIPViaSet
    | Edit this page View Source

    Warning

    Warning header field. See Section 20.43 of RFC 3261.

    Declaration
    public string? Warning
    Field Value
    Type Description
    string

    Methods

    | Edit this page View Source

    Copy()

    Creates a deep copy of this SIPHeader object.

    Declaration
    public SIPHeader Copy()
    Returns
    Type Description
    SIPHeader
    | Edit this page View Source

    GetUnknownHeaderValue(string)

    Unknown SIP headers are put into the UnknownHeaders member of this object by the ParseSIPHeaders() function. Each string is this string array contains the whole header line (for example: UnknownHeader: value). This function retrieves the entire header line given the input header name.

    Declaration
    public string? GetUnknownHeaderValue(string unknownHeaderName)
    Parameters
    Type Name Description
    string unknownHeaderName

    Name of the unknown SIP Header

    Returns
    Type Description
    string

    Returns null if the header is not found or the complete header line if it exists.

    Remarks

    This function assumes that there will be only a single header line for a given header name.

    | Edit this page View Source

    ParseSIPHeaders(string[])

    Parses an array of header lines and creates a new SIPHeader object.

    Declaration
    public static SIPHeader ParseSIPHeaders(string[] headersCollection)
    Parameters
    Type Name Description
    string[] headersCollection

    Each line contains a single SIP header.

    Returns
    Type Description
    SIPHeader

    Returns a new SIPHeader object

    Exceptions
    Type Condition
    SIPValidationException

    Thrown if unable to parse the header fields due to invalid SIP formatting or illegal values.

    Exception

    Thrown if an unknown error occurs.

    | Edit this page View Source

    SetDateHeader()

    Sets the Date header field to the current time.

    Declaration
    public void SetDateHeader()
    | Edit this page View Source

    SplitHeaders(string)

    Splits a string containing the header portion of a SIP message into an array of strings. Handles header field folding.

    Declaration
    public static string[] SplitHeaders(string message)
    Parameters
    Type Name Description
    string message
    Returns
    Type Description
    string[]

    Each string contains a header line

    | Edit this page View Source

    ToString()

    Puts the SIP headers together into a string ready for transmission.

    Declaration
    public string ToString()
    Returns
    Type Description
    string

    String representing the SIP headers.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX