• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • AmrWbLib
      • AmrWb
    • SipLib.Body
      • BodyParser
      • ContentTypes
      • MessageContentsContainer
      • MultipartBinaryBodyBuilder
      • SipBodyBuilder
    • SipLib.Channels
      • AcceptCertificateDelegate
      • AcceptConnectionDelegate
      • DscpSettings
      • LogInvalidSipMessageDelegate
      • LogSipRequestDelegate
      • LogSipResponseDelegate
      • Qos
      • SIPChannel
      • SIPConnection
      • SIPConnectionDisconnectedDelegate
      • SIPConnectionsEnum
      • SIPMessageReceivedDelegate
      • SIPTCPChannel
      • SIPTLSChannel
      • SIPUDPChannel
      • SipChannelSettings
      • 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
      • AmrWbDecoder
      • AmrWbEncoder
      • AudioDestination
      • AudioDestinationDelegate
      • AudioMediaUtils
      • AudioSampleData
      • AudioSamplesReadyDelegate
      • AudioSource
      • CallPortAllocations
      • DtmfDigitReceivedDelegate
      • FileAudioSource
      • G722Decoder
      • G722Encoder
      • G729Decoder
      • G729Encoder
      • HighResolutionTimer
      • HighResolutionTimerDelegate
      • IAudioDecoder
      • IAudioEncoder
      • IAudioSampleSource
      • IMediaPortManager
      • Ld8k
      • MediaPortListManager
      • MediaPortManager
      • MediaPortSettings
      • MediaTypes
      • MsrpEncryptionEnum
      • MuLawEncoder
      • PcmaDecoder
      • PcmaEncoder
      • PcmuDecoder
      • PcmuEncoder
      • PortRange
      • RtpEncryptionEnum
      • SilenceAudioSampleSource
    • SipLib.Msrp
      • ByteRangeHeader
      • CpimMessage
      • MsrpCompletionStatus
      • MsrpConnection
      • MsrpConnectionStatusDelegate
      • MsrpMessage
      • MsrpMessageDeliveryFailedDelegate
      • MsrpMessageReceivedDelegate
      • MsrpMessageSentDelegate
      • MsrpMessageType
      • MsrpPathHeader
      • MsrpStatusHeader
      • MsrpStreamParser
      • MsrpTextMessageReceivedDelegate
      • MsrpUri
      • ReportReceivedDelegate
    • SipLib.Network
      • IpUtils
      • SipDnsClient
    • SipLib.RealTimeText
      • RttCharactersReceivedDelegate
      • RttParameters
      • RttReceiver
      • RttRtpSendDelegate
      • RttSender
    • SipLib.Rtp
      • ByePacket
      • DtlsHandshakeFailedDelegate
      • DtmfEventEnum
      • DtmfPacket
      • JitterStatistics
      • MeanOpinionScore
      • ReceiveStatisticsReadyDelegate
      • ReceiverReport
      • ReportBlock
      • RtcpCompoundPacket
      • RtcpHeader
      • RtcpPacketReceivedDelegate
      • RtcpPacketSentDelegate
      • RtcpPacketType
      • RtpChannel
      • RtpEncryptionTypeEnum
      • 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
      • SdpOfferSettings
      • SdpUtils
      • SetupType
    • SipLib.TestCalls
      • IncomingTestCall
      • IncomingTestCallManager
      • IncomingTestCallSettings
      • OutgoingTestCallResults
      • SimpleOutgoingAudioTestCall
      • TestCallConstants
      • TestCallDurationUnitsEnum
      • TestCallEndedDelegateType
    • SipLib.Threading
      • QueuedActionThread
      • 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 MediaPortListManager

    Class for managing allocation of UDP and TCP ports for audio, video, RTT and MSRP media. This class allocates ports from a list of available ports and frees the allocated ports by returning them to the list when a call ends.

    User agents that use this class are responsible for freeing allocated ports by calling one of the Free*() methods.

    Inheritance
    object
    MediaPortListManager
    Implements
    IMediaPortManager
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SipLib.Media
    Assembly: SipLib.dll
    Syntax
    public class MediaPortListManager : IMediaPortManager

    Constructors

    | Edit this page View Source

    MediaPortListManager(MediaPortSettings)

    Constructor

    Declaration
    public MediaPortListManager(MediaPortSettings settings)
    Parameters
    Type Name Description
    MediaPortSettings settings

    Specifies the port ranges to allocate for each media type.

    Properties

    | Edit this page View Source

    NextAudioPort

    Gets the next available port for video media.

    Declaration
    public int NextAudioPort { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    NextMsrpPort

    Gets the next available port for MSRP media.

    Declaration
    public int NextMsrpPort { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    NextRttPort

    Gets the next available port for RTT media.

    Declaration
    public int NextRttPort { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    NextVideoPort

    Gets the next available port for video media.

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

    Methods

    | Edit this page View Source

    FreeAudioPort(int)

    Frees an audio port.

    Declaration
    public void FreeAudioPort(int port)
    Parameters
    Type Name Description
    int port

    Port that was allocated for audio.

    | Edit this page View Source

    FreeMediaPort(string, int)

    Frees a media port for the specified media type.

    Declaration
    public void FreeMediaPort(string mediaType, int port)
    Parameters
    Type Name Description
    string mediaType

    Media type that the port was allocated for. Must be equal to one of the value specified in the MediaTypes class.

    int port

    Port that was allocated for the specified media type.

    | Edit this page View Source

    FreeMsrpPort(int)

    Frees a MSRP port.

    Declaration
    public void FreeMsrpPort(int port)
    Parameters
    Type Name Description
    int port

    Port that was

    | Edit this page View Source

    FreeRttPort(int)

    Frees a RTT port.

    Declaration
    public void FreeRttPort(int port)
    Parameters
    Type Name Description
    int port

    Port that was allocated for RTT.

    | Edit this page View Source

    FreeVideoPort(int)

    Frees a video port.

    Declaration
    public void FreeVideoPort(int port)
    Parameters
    Type Name Description
    int port

    Port that was allocated for video.

    | Edit this page View Source

    GetFreePortCount(string)

    Gets the current number of free media ports. This method is for diagnostic purposes only.

    Declaration
    public int GetFreePortCount(string mediaType)
    Parameters
    Type Name Description
    string mediaType

    Type of media to get the free port count for. For example MediaTypes.Audio.

    Returns
    Type Description
    int

    Returns the number of free media ports.

    Implements

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