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

    Represents a series of name value pairs that are optionally included in SIP URIs and also as an additional optional setting on some SIP Headers (Contact, To, From, Via). This class also treats the header value of a SIP URI as a special case of a SIP parameter. The difference between a parameter and a SIP URI header is the start and delimiter characters used.

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

    Constructors

    | Edit this page View Source

    SIPParameters(string?, char)

    Parses the name value pairs from a SIP parameter or header string.

    Declaration
    public SIPParameters(string? sipString, char delimiter)
    Parameters
    Type Name Description
    string sipString

    Input string containing the parameters

    char delimiter

    Delimeter to use for parsing

    Properties

    | Edit this page View Source

    Count

    Gets the number of parameters

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    AreEqual(SIPParameters, SIPParameters)

    Determines if SIPParameters objects are equal. Two SIPParameters objects are considered equal if they have the same keys and values. The order of the keys does not affect the equality comparison.

    Declaration
    public static bool AreEqual(SIPParameters params1, SIPParameters params2)
    Parameters
    Type Name Description
    SIPParameters params1

    First SIPParameters object

    SIPParameters params2

    Second SIPParameters object.

    Returns
    Type Description
    bool

    Returns true if they are equal or false if they are not

    | Edit this page View Source

    CopyOf()

    Creates a deep copy of this SIPParameters object

    Declaration
    public SIPParameters CopyOf()
    Returns
    Type Description
    SIPParameters
    | Edit this page View Source

    Equals(object?)

    Determines if a SIPParameters object is equal to this one. Two SIPParameters objects are considered equal if they have the same keys and values. The order of the keys does not affect the equality comparison.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    Input SIPParameters object

    Returns
    Type Description
    bool

    Returns true if the input SIPParameters object is equal to this one or false if it is not.

    Overrides
    object.Equals(object)
    | Edit this page View Source

    Get(string)

    Gets the value of a specified parameter

    Declaration
    public string? Get(string name)
    Parameters
    Type Name Description
    string name

    Name of the parameter

    Returns
    Type Description
    string

    Returns the value of the parameter. Returns null if the dictionary is empty or if the parameter is not in the dictionary.

    | Edit this page View Source

    GetHashCode()

    Calculates the has value for this object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    GetKeyValuePairsFromQuoted(string, char)

    Gets the key value pairs from a quoted string into a string array

    Declaration
    public static string[]? GetKeyValuePairsFromQuoted(string quotedString, char delimiter)
    Parameters
    Type Name Description
    string quotedString

    Input quoted string

    char delimiter

    Delimeter to use. For example ','

    Returns
    Type Description
    string[]

    Returns a string array containing the name value pairs

    | Edit this page View Source

    GetKeys()

    Gets an array of all parameter names (keys)

    Declaration
    public string[]? GetKeys()
    Returns
    Type Description
    string[]

    Returns an array of all parameter names or null if the dictionary is empty

    | Edit this page View Source

    Has(string)

    Determines if a parameter exists in the dictionary

    Declaration
    public bool Has(string name)
    Parameters
    Type Name Description
    string name

    Name of the parameter

    Returns
    Type Description
    bool

    Returns true if the parameter exists or false if it does not.

    | Edit this page View Source

    Remove(string)

    Removes a named parameter if it exists.

    Declaration
    public void Remove(string name)
    Parameters
    Type Name Description
    string name

    Name of the parameter to remove

    | Edit this page View Source

    RemoveAll()

    Clears the dictionary.

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

    Set(string, string?)

    Sets a key name to a specified value. If the dictionary does not contain the key then a new key value pair is added.

    Declaration
    public void Set(string name, string? value)
    Parameters
    Type Name Description
    string name

    Name of the parameter (key)

    string value

    Value of the parameter

    | Edit this page View Source

    ToString()

    Converts the name value pairs to a string.

    Declaration
    public string ToString()
    Returns
    Type Description
    string

    Operators

    | Edit this page View Source

    operator ==(SIPParameters, SIPParameters)

    Two SIPParameters objects are considered equal if they have the same keys and values. The order of the keys does not affect the equality comparison.

    Declaration
    public static bool operator ==(SIPParameters x, SIPParameters y)
    Parameters
    Type Name Description
    SIPParameters x

    Left-hand SIPParameters object

    SIPParameters y

    Right-hand SIPParameters object

    Returns
    Type Description
    bool

    True if the two SIPParameters objects are equal or false if they are not.

    | Edit this page View Source

    operator !=(SIPParameters, SIPParameters)

    Not equals operator

    Declaration
    public static bool operator !=(SIPParameters x, SIPParameters y)
    Parameters
    Type Name Description
    SIPParameters x

    Left-hand SIPParameters object

    SIPParameters y

    Right-hand SIPParameters object

    Returns
    Type Description
    bool

    Returns true if the two objects are not equal or false if they are equal

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