newCommunity

Adds a new community to the Sametime® Gateway Server.

Syntax

newCommunity hashString

Purpose

The newCommunity command adds a community based on the attributes that you specify in a hash string.

Data type: string

The following samples are taken from the sample Jacl scripts available in stgw_server_root/samples/scripts. Consult the actual scripts for information on properties and parameters. For additional information about default paths, see Directory conventions.

Sample: adding the local community

set ons [$AdminControl completeObjectName type=RTCAdminMbean,*]

set c {name=InternalCommunityTestName,rTCServers=[{transport=TCP,hostname=localhost,port=1516}],
internal=true,protocolConnector={name="VP"},domains=[internal.com,internal2.com]}
puts [$AdminControl invoke $ons newCommunity "{$c}"]

Sample: adding an external community

set ons [$AdminControl completeObjectName type=RTCAdminMbean,*]

set c {name=externalCommunityTestName,rTCServers=[{transport=TLS,hostname=localhost,port=5061}],
internal=false,protocolConnector={name="SIP for legacy Sametime Gateway"},customProperties=
[{name="session_timeout",value=3600,required=false,description="Optional session timeout for 
externalCommunityTestName"}, {name="subscription_timeout",value=3600,required=false,
description="Optional subscription timeout for externalCommunityTestName"}],domains=
[test1.com,test2.com]}puts [$AdminControl invoke $ons newCommunity "{$c}"]