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

    Class for a SIP request message.

    Inheritance
    object
    SIPMessage
    SIPRequest
    Inherited Members
    SIPMessage.SIPMessageType
    SIPMessage.Body
    SIPMessage.RemoteSIPEndPoint
    SIPMessage.LocalSIPEndPoint
    SIPMessage.Header
    SIPMessage.ParseSIPMessage(byte[], SIPEndPoint, SIPEndPoint)
    SIPMessage.ParseSIPMessage(string, SIPEndPoint, SIPEndPoint)
    SIPMessage.HasBody
    SIPMessage.GetContentsOfType(string)
    SIPMessage.GetContentsContainer(string)
    SIPMessage.GetBodyContents()
    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 SIPRequest : SIPMessage

    Constructors

    | Edit this page View Source

    SIPRequest(SIPMethodsEnum, SIPURI)

    Constructs a SIPRequest object. Use this constructor when creating a new request.

    Declaration
    public SIPRequest(SIPMethodsEnum method, SIPURI uri)
    Parameters
    Type Name Description
    SIPMethodsEnum method

    The SIP method for the request.

    SIPURI uri

    The URI to use in the request line. Must be a valid SIPURI.

    | Edit this page View Source

    SIPRequest(SIPMethodsEnum, string)

    Constructs a SIPRequest object. Use this constructor when creating a new request.

    Declaration
    public SIPRequest(SIPMethodsEnum method, string uri)
    Parameters
    Type Name Description
    SIPMethodsEnum method

    The SIP method for the request.

    string uri

    The URI to use in the request line. Must be a valid SIP URI.

    Exceptions
    Type Condition
    SIPValidationException

    Thrown if the input uri string is not a valid SIP URI

    Fields

    | Edit this page View Source

    Method

    Request method

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

    URI

    Request URI

    Declaration
    public SIPURI? URI
    Field Value
    Type Description
    SIPURI

    Methods

    | Edit this page View Source

    Copy()

    Creates an identical copy of the SIP Request for the caller. This is a deep copy.

    Declaration
    public SIPRequest Copy()
    Returns
    Type Description
    SIPRequest

    New copy of the SIPRequest.

    | Edit this page View Source

    CreateBasicRequest(SIPMethodsEnum, SIPURI, SIPURI, string?, SIPURI, string?)

    Creates a new SIPRequest containing all the basic headers: From, To, Via, Contact, Call-ID, Max-Forwards, Content-Length and CSeq.

    Declaration
    public static SIPRequest CreateBasicRequest(SIPMethodsEnum Method, SIPURI reqUri, SIPURI ToSipUri, string? ToDisplayName, SIPURI FromSipUri, string? FromDisplayName)
    Parameters
    Type Name Description
    SIPMethodsEnum Method

    SIP method of the request.

    SIPURI reqUri

    Request URI. May be the same as the ToSipUri or it may be different.

    SIPURI ToSipUri

    To URI.

    string ToDisplayName

    Display name for the To header. Optional, may be null.

    SIPURI FromSipUri

    From URI. A From-Tag is automatically created

    string FromDisplayName

    Display name for the From header. Optional, may be null.

    Returns
    Type Description
    SIPRequest

    Returns a new SIPRequest object.

    | Edit this page View Source

    GetQueueUri()

    Gets the URI of the queue (destination) that the request is addressed to. This is the URI of the topmost Route header if a route set is available, or the request URI (RURI) if there are no Route headers.

    Declaration
    public string GetQueueUri()
    Returns
    Type Description
    string

    Returns the URI of the destination queue.

    | Edit this page View Source

    IsValid(out SIPValidationFieldsEnum, out string?)

    Determines if this SIPRequest object is vallid

    Declaration
    public bool IsValid(out SIPValidationFieldsEnum errorField, out string? errorMessage)
    Parameters
    Type Name Description
    SIPValidationFieldsEnum errorField

    Identifies the header field that is not valid

    string errorMessage

    Explanation of the error.

    Returns
    Type Description
    bool

    Returns true if the SIPMessage is valid.

    | Edit this page View Source

    ParseSIPRequest(SIPMessage)

    Parses a received SIPMessage object that contains a SIP request message and creates a new SIPRequest object.

    Declaration
    public static SIPRequest ParseSIPRequest(SIPMessage sipMessage)
    Parameters
    Type Name Description
    SIPMessage sipMessage

    SIPMessage object to build the SIPRequest from ///

    Returns
    Type Description
    SIPRequest

    Returns a new SIPRequest object.

    Exceptions
    Type Condition
    SIPValidationException

    Thrown if the SIP message is not a valid SIP Request

    | Edit this page View Source

    ParseSIPRequest(string)

    Parses a string containing a SIPMessage into a SIPRequest object.

    Declaration
    public static SIPRequest ParseSIPRequest(string sipMessageStr)
    Parameters
    Type Name Description
    string sipMessageStr

    String containing a SIPMessage object

    Returns
    Type Description
    SIPRequest

    Returns a new SIPRequest object.

    Exceptions
    Type Condition
    SIPValidationException

    Thrown if the SIPMessage is not a valid SIP request.

    | Edit this page View Source

    ToByteArray()

    Converts this message to a byte array using UTF8 encoding.

    Declaration
    public byte[] ToByteArray()
    Returns
    Type Description
    byte[]

    Returns a UTF-8 encoded byte array

    | Edit this page View Source

    ToString()

    Converts this SIP request to a string.

    Declaration
    public string ToString()
    Returns
    Type Description
    string

    Returns the string represention of this SIPRequest object

    Exceptions
    Type Condition
    Exception

    Thrown if an unexpected error occured

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