[sip-comm-dev] group chat with Gmail/Jabber on SC


#1

should group chat with SC already work?
I have tried today to invite for group chat (with two other gmail users) but got this exception "fail to create jabber chat room":

net.java.sip.communicator.service.protocol.OperationFailedException: Failed to retrieve conference service name for user: *********@gmail.com on server: talk.google.com
  at net.java.sip.communicator.impl.protocol.jabber.OperationSetMultiUserChatJabberImpl.getCanonicalRoomName(OperationSetMultiUserChatJabberImpl.java:462)
  at net.java.sip.communicator.impl.protocol.jabber.OperationSetMultiUserChatJabberImpl.createChatRoom(OperationSetMultiUserChatJabberImpl.java:113)
  at net.java.sip.communicator.impl.gui.main.chat.conference.ConferenceChatManager.createChatRoom(ConferenceChatManager.java:723)
  at net.java.sip.communicator.impl.gui.main.chat.conference.ConferenceChatManager.createChatRoom(ConferenceChatManager.java:686)
  at net.java.sip.communicator.impl.gui.main.chat.conference.ConferenceChatManager.createChatRoom(ConferenceChatManager.java:666)
  at net.java.sip.communicator.impl.gui.main.chat.ChatPanel.inviteContacts(ChatPanel.java:1966)
  at net.java.sip.communicator.impl.gui.main.chat.conference.ChatInviteDialog.inviteContacts(ChatInviteDialog.java:133)
  at net.java.sip.communicator.impl.gui.main.chat.conference.ChatInviteDialog.access$000(ChatInviteDialog.java:24)
  at net.java.sip.communicator.impl.gui.main.chat.conference.ChatInviteDialog$1.actionPerformed(ChatInviteDialog.java:50)
  at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
  at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
  at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
  at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
  at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
  at java.awt.Component.processMouseEvent(Unknown Source)
  at javax.swing.JComponent.processMouseEvent(Unknown Source)
  at java.awt.Component.processEvent(Unknown Source)
  at java.awt.Container.processEvent(Unknown Source)
  at java.awt.Component.dispatchEventImpl(Unknown Source)
  at java.awt.Container.dispatchEventImpl(Unknown Source)
  at java.awt.Component.dispatchEvent(Unknown Source)
  at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
  at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
  at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
  at java.awt.Container.dispatchEventImpl(Unknown Source)
  at java.awt.Window.dispatchEventImpl(Unknown Source)
  at java.awt.Component.dispatchEvent(Unknown Source)
  at java.awt.EventQueue.dispatchEvent(Unknown Source)
  at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
  at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
  at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: feature-not-implemented(501)
  at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverItems(ServiceDiscoveryManager.java:495)
  at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverItems(ServiceDiscoveryManager.java:461)
  at org.jivesoftware.smackx.muc.MultiUserChat.getServiceNames(MultiUserChat.java:251)
  at net.java.sip.communicator.impl.protocol.jabber.OperationSetMultiUserChatJabberImpl.getCanonicalRoomName(OperationSetMultiUserChatJabberImpl.java:452)
  ... 33 more

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hello,

Le 03/08/2010 11:51, Mr Smith a �crit :

should group chat with SC already work?
I have tried today to invite for group chat (with two other gmail users) but got this exception "fail to create jabber chat room":

IIRC, Google Talk uses another protocol for the group chat (not the XEP-0045 of XMPP).
However, I remember we have a working case if someone that uses the Google Talk Gadget
and invites you to a group chat. But you won't be able to start a Google Talk group chat from
SIP Communicator.

Hope this helps,

Regards,
Valentin

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi,

I've managed to create and join a chat room using gmail account and
invite contact to it. But I've done it with two little modifications
to smack.
First the room name you enter must be with name of the following format
private-chat-00000000-0000-0000-0000-000000000000@groupchat.google.com,
where the zeroes can be replaced with random numbers.
Then the first modification is that smack waits for status code 201
for successful creation of room but as I see in XEP-0045 it can be and
100, 110, 201 and 210. And gtalk servers are sending status 100.
Then when I was trying to invite someone an exception is thrown from
within smack parser and connection is closed. It is that gtalk sends
messages(<message>) in which body(<body>) there is an xml but smack
expects a clear text. I catch the exception there as it continue its
work so the parser to go in proper state.
And that's it.
We must think of a way we generate those chat room names and join them
automatically without the need the user to enter those long names :slight_smile:
Maybe we can do this only for accounts that are created as Google Talk
Accounts from the wizard, what you think ? I'm not sure can we differ
those accounts from protocol point of view?

Cheers
damencho

···

On Tue, Aug 3, 2010 at 12:56 PM, Valentin MARTINET <vmartinet.sipcommunicator@gmail.com> wrote:

Hello,

Le 03/08/2010 11:51, Mr Smith a écrit :

should group chat with SC already work?
I have tried today to invite for group chat (with two other gmail users)
but got this exception "fail to create jabber chat room":

IIRC, Google Talk uses another protocol for the group chat (not the XEP-0045
of XMPP).
However, I remember we have a working case if someone that uses the Google
Talk Gadget
and invites you to a group chat. But you won't be able to start a Google
Talk group chat from
SIP Communicator.

Hope this helps,

Regards,
Valentin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi,

Le 03/08/2010 17:25, Damian Minkov a �crit :

I've managed to create and join a chat room using gmail account and
invite contact to it.

That's really cool! Back at the time when I worked on chat rooms there was a discussion
here about the case of Gmail chat rooms and I thought invitations from SC couldn't be
implemented. Nice :wink:

  But I've done it with two little modifications
to smack.
First the room name you enter must be with name of the following format
private-chat-00000000-0000-0000-0000-000000000000@groupchat.google.com,
where the zeroes can be replaced with random numbers.
Then the first modification is that smack waits for status code 201
for successful creation of room but as I see in XEP-0045 it can be and
100, 110, 201 and 210. And gtalk servers are sending status 100.
Then when I was trying to invite someone an exception is thrown from
within smack parser and connection is closed. It is that gtalk sends
messages(<message>) in which body(<body>) there is an xml but smack
expects a clear text. I catch the exception there as it continue its
work so the parser to go in proper state.
And that's it.
We must think of a way we generate those chat room names and join them
automatically without the need the user to enter those long names :slight_smile:
Maybe we can do this only for accounts that are created as Google Talk
Accounts from the wizard, what you think ? I'm not sure can we differ
those accounts from protocol point of view?
   

Yes, because they both rely on impl.protocol.jabber so the wizard is a good way to do it.
It would also avoid to check if the contact address matches one of the available Google domains
(gmail.com, googlemail.com, and maybe others).

Regards,
Valentin

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net