Class SIPProtocolsType
Helper functions for dealing with tranport protocols
Inherited Members
Namespace: SipLib.Core
Assembly: SipLib.dll
Syntax
public class SIPProtocolsType
Methods
| Edit this page View SourceGetProtocolType(string)
Returns a protocol enum value given a string containing the transport protocol type. Only call this function if IsAllowedProtocol() returns true.
Declaration
public static SIPProtocolsEnum GetProtocolType(string protocolType)
Parameters
Type | Name | Description |
---|---|---|
string | protocolType | Input string value |
Returns
Type | Description |
---|---|
SIPProtocolsEnum | Returns the enum equivalent |
IsAllowedProtocol(string)
Determines if a transport protocol is allowed.
Declaration
public static bool IsAllowedProtocol(string protocol)
Parameters
Type | Name | Description |
---|---|---|
string | protocol | Input string value |
Returns
Type | Description |
---|---|
bool | Return true if the transport protocol is allowed, else return false |