Interface IMediaPortManager
Interface for classes that manage the allocation and de-allocation of media ports for RTP media (voice, video and RTT) and MSRP media.
Namespace: SipLib.Media
Assembly: SipLib.dll
Syntax
public interface IMediaPortManager
Properties
| Edit this page View SourceNextAudioPort
Gets the next available port for audio media.
Declaration
int NextAudioPort { get; }
Property Value
| Type | Description |
|---|---|
| int |
NextMsrpPort
Gets the next available port for MSRP media.
Declaration
int NextMsrpPort { get; }
Property Value
| Type | Description |
|---|---|
| int |
NextRttPort
Gets the next available port for RTT media.
Declaration
int NextRttPort { get; }
Property Value
| Type | Description |
|---|---|
| int |
NextVideoPort
Gets the next available port for video media.
Declaration
int NextVideoPort { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceFreeAudioPort(int)
Frees an audio port.
Declaration
void FreeAudioPort(int port)
Parameters
| Type | Name | Description |
|---|---|---|
| int | port | Port that was allocated for audio. |
FreeMediaPort(string, int)
Frees a media port for the specified media type.
Declaration
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. |
FreeMsrpPort(int)
Frees a MSRP port.
Declaration
void FreeMsrpPort(int port)
Parameters
| Type | Name | Description |
|---|---|---|
| int | port | Port that was |
FreeRttPort(int)
Frees a RTT port.
Declaration
void FreeRttPort(int port)
Parameters
| Type | Name | Description |
|---|---|---|
| int | port | Port that was allocated for RTT. |
FreeVideoPort(int)
Frees a video port.
Declaration
void FreeVideoPort(int port)
Parameters
| Type | Name | Description |
|---|---|---|
| int | port | Port that was allocated for video. |