C# Class FreeswitchVoice.FreeSwitchVoiceModule

Inheritance: ISharedRegionModule, IVoiceModule
Afficher le fichier Open project: aurora-sim/Aurora-Sim-Optional-Modules

Méthodes publiques

Méthode Description
AddRegion ( IScene scene ) : void
Close ( ) : void
ForwardProxyRequest ( Hashtable request ) : Hashtable
FreeSwitchConfigHTTPHandler ( string path, Stream request, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : byte[]
FreeSwitchSLVoiceBuddyHTTPHandler ( string path, Stream request, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : byte[]
FreeSwitchSLVoiceGetPreloginHTTPHandler ( string path, Stream request, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : byte[]
FreeSwitchSLVoiceSigninHTTPHandler ( string path, Stream request, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : byte[]
FreeSwitchSLVoiceWatcherHTTPHandler ( string path, Stream request, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : byte[]
Initialise ( IConfigSource config ) : void
OnRegisterCaps ( IScene scene, UUID agentID, IHttpServer server ) : OpenSim.Framework.Capabilities.OSDMap

OnRegisterCaps is invoked via the scene.EventManager everytime OpenSim hands out capabilities to a client (login, region crossing). We contribute two capabilities to the set of capabilities handed back to the client: ProvisionVoiceAccountRequest and ParcelVoiceInfoRequest. ProvisionVoiceAccountRequest allows the client to obtain the voice account credentials for the avatar it is controlling (e.g., user name, password, etc). ParcelVoiceInfoRequest is invoked whenever the client changes from one region or parcel to another. Note that OnRegisterCaps is called here via a closure delegate containing the scene of the respective region (see Initialise()).

ParcelVoiceInfoRequest ( IScene scene, string request, UUID agentID ) : byte[]

Callback for a client request for ParcelVoiceInfo

ParseRequestBody ( string body ) : Hashtable
PostInitialise ( ) : void
ProvisionVoiceAccountRequest ( IScene scene, string request, UUID agentID ) : byte[]

Callback for a client request for Voice Account Details

RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
setLandSIPAddress ( string SIPAddress, UUID GlobalID ) : void

implementation of IVoiceModule, called by osSetParcelSIPAddress script function

Private Methods

Méthode Description
ChannelUri ( IScene scene, LandData land ) : string
CustomCertificateValidation ( object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors error ) : bool

Method Details

AddRegion() public méthode

public AddRegion ( IScene scene ) : void
scene IScene
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

ForwardProxyRequest() public méthode

public ForwardProxyRequest ( Hashtable request ) : Hashtable
request System.Collections.Hashtable
Résultat System.Collections.Hashtable

FreeSwitchConfigHTTPHandler() public méthode

public FreeSwitchConfigHTTPHandler ( string path, Stream request, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest OpenSim.Framework.Servers.HttpServer.OSHttpRequest
httpResponse OpenSim.Framework.Servers.HttpServer.OSHttpResponse
Résultat byte[]

FreeSwitchSLVoiceBuddyHTTPHandler() public méthode

public FreeSwitchSLVoiceBuddyHTTPHandler ( string path, Stream request, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest OpenSim.Framework.Servers.HttpServer.OSHttpRequest
httpResponse OpenSim.Framework.Servers.HttpServer.OSHttpResponse
Résultat byte[]

FreeSwitchSLVoiceGetPreloginHTTPHandler() public méthode

public FreeSwitchSLVoiceGetPreloginHTTPHandler ( string path, Stream request, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest OpenSim.Framework.Servers.HttpServer.OSHttpRequest
httpResponse OpenSim.Framework.Servers.HttpServer.OSHttpResponse
Résultat byte[]

FreeSwitchSLVoiceSigninHTTPHandler() public méthode

public FreeSwitchSLVoiceSigninHTTPHandler ( string path, Stream request, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest OpenSim.Framework.Servers.HttpServer.OSHttpRequest
httpResponse OpenSim.Framework.Servers.HttpServer.OSHttpResponse
Résultat byte[]

FreeSwitchSLVoiceWatcherHTTPHandler() public méthode

public FreeSwitchSLVoiceWatcherHTTPHandler ( string path, Stream request, OpenSim.Framework.Servers.HttpServer.OSHttpRequest httpRequest, OpenSim.Framework.Servers.HttpServer.OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest OpenSim.Framework.Servers.HttpServer.OSHttpRequest
httpResponse OpenSim.Framework.Servers.HttpServer.OSHttpResponse
Résultat byte[]

Initialise() public méthode

public Initialise ( IConfigSource config ) : void
config IConfigSource
Résultat void

OnRegisterCaps() public méthode

OnRegisterCaps is invoked via the scene.EventManager everytime OpenSim hands out capabilities to a client (login, region crossing). We contribute two capabilities to the set of capabilities handed back to the client: ProvisionVoiceAccountRequest and ParcelVoiceInfoRequest. ProvisionVoiceAccountRequest allows the client to obtain the voice account credentials for the avatar it is controlling (e.g., user name, password, etc). ParcelVoiceInfoRequest is invoked whenever the client changes from one region or parcel to another. Note that OnRegisterCaps is called here via a closure delegate containing the scene of the respective region (see Initialise()).
public OnRegisterCaps ( IScene scene, UUID agentID, IHttpServer server ) : OpenSim.Framework.Capabilities.OSDMap
scene IScene
agentID UUID
server IHttpServer
Résultat OpenSim.Framework.Capabilities.OSDMap

ParcelVoiceInfoRequest() public méthode

Callback for a client request for ParcelVoiceInfo
public ParcelVoiceInfoRequest ( IScene scene, string request, UUID agentID ) : byte[]
scene IScene current scene object of the client
request string
agentID UUID
Résultat byte[]

ParseRequestBody() public méthode

public ParseRequestBody ( string body ) : Hashtable
body string
Résultat System.Collections.Hashtable

PostInitialise() public méthode

public PostInitialise ( ) : void
Résultat void

ProvisionVoiceAccountRequest() public méthode

Callback for a client request for Voice Account Details
public ProvisionVoiceAccountRequest ( IScene scene, string request, UUID agentID ) : byte[]
scene IScene current scene object of the client
request string
agentID UUID
Résultat byte[]

RegionLoaded() public méthode

public RegionLoaded ( IScene scene ) : void
scene IScene
Résultat void

RemoveRegion() public méthode

public RemoveRegion ( IScene scene ) : void
scene IScene
Résultat void

setLandSIPAddress() public méthode

implementation of IVoiceModule, called by osSetParcelSIPAddress script function
public setLandSIPAddress ( string SIPAddress, UUID GlobalID ) : void
SIPAddress string
GlobalID UUID
Résultat void