zdk.net
|
MSRP (Message Session Relay Protocol) specific account configuration. More...
#include <MSRPConfig.h>
Public Member Functions | |
MSRPConfig (ZDK::Shared::MSRPConfig src) | |
bool | IsEqual (ZDK_NET::MSRPConfig^ comp) |
Compares the current configuration with the given one. More... | |
virtual long long | Handle () override |
virtual void | Initialize () override |
virtual void | ReleaseReference () override |
Public Attributes | |
ZDK::IMSRPConfig * | cppRef = nullptr |
Properties | |
bool | EnableMSRP [get, set] |
Sets the use of MSRP functionality as described in RFC 4975. More... | |
bool | EnableMSRPChat [get, set] |
Configures the use of MSRP chat functionality for the user. More... | |
bool | EnableMSRPFileTransfer [get, set] |
Configures file transfer feature for the user. More... | |
bool | UseMSRPRelay [get, set] |
Configures the use of MSRP relay functionality as described in RFC 4976. More... | |
System::String^ | MSRPRelayURL [get, set] |
Configures the MSRP relay URI. More... | |
System::String^ | MSRPRelayUserName [get, set] |
Configures MSRP relay authentication username for the user. More... | |
System::String^ | MSRPRelayPassword [get, set] |
Configures MSRP relay password for the user. More... | |
int | MSRPTcpPort [get, set] |
Configures the main MSRP TCP port. More... | |
MSRP (Message Session Relay Protocol) specific account configuration.
bool ZDK_NET::MSRPConfig::IsEqual | ( | ZDK_NET::MSRPConfig^ | comp | ) |
Compares the current configuration with the given one.
[in] | comp | SIP configuration to be compared |
|
getset |
Sets the use of MSRP functionality as described in RFC 4975.
[in] | value |
|
|
getset |
Configures the use of MSRP chat functionality for the user.
MSRP chat is done through the messaging class and API - Message and SendMessage()
All messages are sent over SIP SIMPLE while an MSRP session is not active. The ZDK will attempt to establish the session automatically but will also use a graylist in case the remote end does not support MSRP.
[in] | value |
|
|
getset |
Configures file transfer feature for the user.
The default is "disabled".
If the file transfer functionality is not enabled for a user all incoming file transfer will be automatically rejected. InitiateTransfer() will return -1 (L_FAIL) immediately and OnFileTransferRequest() will never arrive.
[in] | value |
|
|
getset |
Configures MSRP relay password for the user.
Configures the password to be used when authenticating to a MSRP relay.
Unlike the MSRP authentication username the password has NO fallback. Its default is the empty string (a valid password for the authentication algorithm).
The password is treated as nul-terminated string, disregarding encoding. It does not appear verbatim anywhere and is used as a binary string during hash calculation.
[in] | value | The MSRP relay password |
|
getset |
Configures the MSRP relay URI.
The use of MSRP relay must be enabled through UseMSRPRelay().
Configures the MSRP relay URI to use for MSRP sessions done with the same user and on behalf of contacts linked to the same user.
The URI can be partial (just a hostname or an IP address), can contain a port (host:port or ip:port) and can be a full msrp or msrps URI (msrps:
Certain other configuration parameters may override the URI parameters.
[in] | value | MSRP relay URI |
|
getset |
Configures MSRP relay authentication username for the user.
Configures the authentication username to be used when authenticating to a MSRP relay. It overrides the default which is to use the SIP authentication username if available, or the SIP username itself as a last resort.
The username is treated as nul-terminated string, UTF-8 (due to the fact that it is sent in the MSRP header).
[in] | value | The MSRP relay authentication username |
|
getset |
Configures the main MSRP TCP port.
Configures the main TCP port for MSRP. This port is used to listen on all local interfaces for incoming MSRP connections.
The default MSRP port is 2855 as described in RFC4975.
[in] | value | The MSRP TCP port |
|
getset |
Configures the use of MSRP relay functionality as described in RFC 4976.
Routes all MSRP requests through the MSRP relay configured with MSRPRelayURL().
MSRP relays are almost always needed for MSRP to work for clients behind NATs.
[in] | value |
|