Adds an entry to the authorized host table

Namespace:  Microsoft.Rtc.Sip
Assembly:  ServerAgent(in ServerAgent.dll)

Syntax

Visual Basic (declaration)
Public 
Sub 
AddAuthorizedHost ( _
	
instance 
As 
Guid, _
	
address 
As 
String, _
	
treatAsServer 
As 
Boolean, _
	
treatAsAuthenticated 
As 
Boolean, _
	
outboundOnly 
As 
Boolean _
)
Visual Basic (usage)
Dim 
instance 
As 

ServerAgent
Dim 
instance 
As 
Guid
Dim 
address 
As 
String
Dim 
treatAsServer 
As 
Boolean
Dim 
treatAsAuthenticated 
As 
Boolean
Dim 
outboundOnly 
As 
Boolean

instance.
AddAuthorizedHost(
instance, _
	
address, 
treatAsServer, 
treatAsAuthenticated, _
	
outboundOnly)
C#
public 
void 
AddAuthorizedHost(
	
Guid 
instance,
	
string 
address,
	
bool 
treatAsServer,
	
bool 
treatAsAuthenticated,
	
bool 
outboundOnly
)

Parameters

instance
Type: System . . :: . . Guid

Uniquely identifies the entry for the host in the authorized host table.

address
Type: System . . :: . . String

FQDN or IP address of the host.

treatAsServer
Type: System . . :: . . Boolean

The host is treated as SIP server alloting it more bandwidth then client and trusting it for supplying valid routing information.

treatAsAuthenticated
Type: System . . :: . . Boolean

The host is trusted for authentication information in SIP messages (From header URI in requests, TO header URI in responses)

outboundOnly
Type: System . . :: . . Boolean

The host cannot or will not establish a connection in reverse direction and is expected to route all messages (especially requests) over the outgoing connection established by this server.

See also