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

    Class for managing allocation of UDP and TCP ports for audio, video, RTT and MSRP media.

    This class increments port numbers within a specified range of ports. When the last port in a range is allocated, this class wraps around to the starting port number.

    There is no need for the user agent using this class to free ports that have been used for a call.

    Inheritance
    object
    MediaPortManager
    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 MediaPortManager : IMediaPortManager

    Constructors

    | Edit this page View Source

    MediaPortManager(MediaPortSettings)

    Constructor

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

    Media port range allocations for each type of media.

    Properties

    | Edit this page View Source

    NextAudioPort

    Gets the next port to use for audio media. The return value is for audio media. The return value + 1 may be used for RTCP for the audio stream.

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

    NextMsrpPort

    Gets the next port to use for MSRP media. RTCP is not used for MSRP so only the return value may be used for the MSRP media.

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

    NextRttPort

    Gets the next port to use for RTT media. The return value is for RTT media. The return value + 1 may be used for RTCP for the RTT stream.

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

    NextVideoPort

    Gets the next port to use for video media. The return value is for video media. The return value + 1 may be used for RTCP for the video stream.

    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.

    Implements

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