• 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 SIPMessage

    Represents an entire SIP message. This is the base class for the SIPRequest and the SIPResponse classes.

    Inheritance
    object
    SIPMessage
    SIPRequest
    SIPResponse
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SipLib.Core
    Assembly: SipLib.dll
    Syntax
    public class SIPMessage

    Fields

    | Edit this page View Source

    Body

    Contains the entire SIP message body as a string. Set to null if the message does not have a body.

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

    Header

    Contains all headers in the request

    Declaration
    public SIPHeader Header
    Field Value
    Type Description
    SIPHeader
    | Edit this page View Source

    LocalSIPEndPoint

    The local SIP socket the message was received on or sent from.

    Declaration
    public SIPEndPoint? LocalSIPEndPoint
    Field Value
    Type Description
    SIPEndPoint
    | Edit this page View Source

    RemoteSIPEndPoint

    The remote IP socket the message was received from or sent to.

    Declaration
    public SIPEndPoint? RemoteSIPEndPoint
    Field Value
    Type Description
    SIPEndPoint
    | Edit this page View Source

    SIPMessageType

    Identifies the type of SIP message -- i.e. a request or a response.

    Declaration
    public SIPMessageTypesEnum SIPMessageType
    Field Value
    Type Description
    SIPMessageTypesEnum

    Properties

    | Edit this page View Source

    HasBody

    Returns true if this message has a body.

    Declaration
    public bool HasBody { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    GetBodyContents()

    Gets a list of all of the contents of the body for this SIPMessage.

    Declaration
    public List<MessageContentsContainer> GetBodyContents()
    Returns
    Type Description
    List<MessageContentsContainer>

    Returns a list of contents. If the list is empty then there are not body contents.

    | Edit this page View Source

    GetContentsContainer(string)

    Gets the MessageContentsContainer containing the body contents for a specified content type.

    Declaration
    public MessageContentsContainer? GetContentsContainer(string contentType)
    Parameters
    Type Name Description
    string contentType

    Specifies the MIME type of the content block to get. For example: "application/sdp". Use the values defined in the ContentTypes class to ensure consistancy. This parameter may be a value taken from a message's Content-Type header but it must not include any header parameters.

    Returns
    Type Description
    MessageContentsContainer

    Returns a MessageContentsContainer object containing the specified body contents block. Returns null if the specified content type is not found.

    | Edit this page View Source

    GetContentsOfType(string)

    Gets a string containing the body contents for a specified content type. This method only returns non-binary content types.

    Declaration
    public string? GetContentsOfType(string contentType)
    Parameters
    Type Name Description
    string contentType

    Specifies the MIME type of the content block to get. For example: "application/sdp". Use the values defined in the ContentTypes class to ensure consistancy. This parameter may be a value taken from a message's Content-Type header but it must not include any header parameters.

    Returns
    Type Description
    string

    Returns a string that contains the body content block. Returns null if the specified content type is not found or if a parsing error occured.

    | Edit this page View Source

    ParseSIPMessage(byte[], SIPEndPoint, SIPEndPoint)

    Parses a byte array containing a SIP message and returns a SIPMessage object.

    Declaration
    public static SIPMessage? ParseSIPMessage(byte[] buffer, SIPEndPoint localSIPEndPoint, SIPEndPoint remoteSIPEndPoint)
    Parameters
    Type Name Description
    byte[] buffer

    Byte array containing the SIP message that was received from the transport layer.

    SIPEndPoint localSIPEndPoint

    The local SIP socket the message was received on or sent from.

    SIPEndPoint remoteSIPEndPoint

    The remote IP socket the message was received from or sent to.

    Returns
    Type Description
    SIPMessage

    Returns a SIPMessage object if successful. Returns null if the message is not valid.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the SIP message exceeds the maximum allowable length defined in: SIPConstants.SIP_MAXIMUM_RECEIVE_LENGTH.

    Exception

    Thrown if an unexpected error occurs.

    | Edit this page View Source

    ParseSIPMessage(string, SIPEndPoint?, SIPEndPoint?)

    Parses a string containing a SIP message and returns a SIPMessage

    Declaration
    public static SIPMessage? ParseSIPMessage(string message, SIPEndPoint? localSIPEndPoint, SIPEndPoint? remoteSIPEndPoint)
    Parameters
    Type Name Description
    string message

    Input string that contains the entire SIP message.

    SIPEndPoint localSIPEndPoint

    The local SIP socket the message was received on or sent from.

    SIPEndPoint remoteSIPEndPoint

    The remote IP socket the message was received from or sent to.

    Returns
    Type Description
    SIPMessage

    Returns a SIPMessage object if successful. Returns null if the message is not valid.

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