URI url = Client.network.getCurrentSim().Caps.CapabilityURI("ChatSessionRequest");
if (url != null)
{
ChatSessionRequestStartConference startConference = new ChatSessionRequestStartConference();
startConference.AgentsBlock = new UUID[participants.size()];
for (int i = 0; i < participants.size(); i++)
startConference.AgentsBlock[i] = participants.get(i);
startConference.SessionID = tmp_session_id;
CapsHttpClient request = new CapsHttpClient(url);
request.BeginGetResponse(startConference.Serialize(), OSDFormat.Xml, Client.settings.CAPS_TIMEOUT);
}
else
{
throw new Exception("ChatSessionRequest capability is not currently available");
}