public byte[] ProvisionVoiceAccountRequest(IScene scene, string request,
UUID agentID)
{
try
{
m_log.Debug("[MurmurVoice] Calling ProvisionVoiceAccountRequest...");
if (scene == null) throw new Exception("[MurmurVoice] Invalid scene.");
Agent agent = GetServerManager(scene).Agent.GetOrCreate(agentID);
OSDMap response = new OSDMap();
response["username"] = agent.name;
response["password"] = agent.pass;
response["voice_sip_uri_hostname"] = m_murmurd_host;
response["voice_account_server_name"] = String.Format("tcp://{0}:{1}", m_murmurd_host, m_murmurd_port);
return OSDParser.SerializeLLSDXmlBytes(response);
}
catch (Exception e)
{
m_log.DebugFormat("[MurmurVoice] {0} failed", e);
return MainServer.BadRequest;
}
}