URI url = Client.network.getCurrentSim().Caps.CapabilityURI("ChatSessionRequest");
if (url != null)
{
ChatSessionAcceptInvitation acceptInvite = new ChatSessionAcceptInvitation();
acceptInvite.SessionID = session_id;
CapsHttpClient request = new CapsHttpClient(url);
request.BeginGetResponse(acceptInvite.Serialize(), OSDFormat.Xml, Client.settings.CAPS_TIMEOUT);
synchronized (GroupChatSessions.getDictionary())
{
if (!GroupChatSessions.containsKey(session_id))
GroupChatSessions.add(session_id, new ArrayList<ChatSessionMember>());