newCommunity
Adds a new community to the Sametime® Gateway Server.
Syntax
Purpose
The newCommunity
command
adds a community based on the attributes that you specify in a hash
string.
Data type: string
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}"]