Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
hardmanii #1
Member since Apr 2011 · 20 posts · Location: seoul
Group memberships: Members
Show profile · Link to this post
Subject: how to chatroom invite?
hi. how are you?


chatroom come in user..

_MucManager.Invite(dropJid, _roomJid, "come room.")


what is mean?
dropJid Resource ?

dropJid resource "Res" Setting ----> Success!
dropJid.resouce = "" Setting ----> Error?
why?


my xml data ...

why error?


RECV:<presence from="pnumber@mydomain/res" to="pkh@mydomain" xmlns="jabber:client">
  <show>dnd</show>
  <status>180</status>
  <priority>8</priority>
</presence>
RECV:<presence from="pnumber@mydomain/res" to="pkh@mydomain" xmlns="jabber:client">
  <status>180</status>
  <priority>10</priority>
</presence>
SEND:
RECV:<presence to="pkh@mydomain/res" from="room_55a2998f-85f0-4a09-bc44-19f20b11fb02@conference.mydomain/rrrrrr" xmlns="jabber:client">
  <x xmlns="http://jabber.org/protocol/muc#user">
    <item jid="pkh@mydomain/res" affiliation="owner" role="moderator" />
    <status code="201" />
  </x>
</presence>
SEND:<iq id="MX_5" type="set" to="room_55a2998f-85f0-4a09-bc44-19f20b11fb02@conference.mydomain" xmlns="jabber:client">
  <query xmlns="http://jabber.org/protocol/muc#owner">
    <x type="submit" xmlns="jabber:x:data" />
  </query>
</iq>
RECV:<message type="groupchat" from="room_55a2998f-85f0-4a09-bc44-19f20b11fb02@conference.mydomain" to="pkh@mydomain/res" xmlns="jabber:client">
  <body>This room is locked from entry until configuration is confirmed.</body>
</message>
RECV:<message type="groupchat" from="room_55a2998f-85f0-4a09-bc44-19f20b11fb02@conference.mydomain" to="pkh@mydomain/res" xmlns="jabber:client">
  <body>This room is now unlocked.</body>
</message>
RECV:<iq type="result" id="MX_5" from="room_55a2998f-85f0-4a09-bc44-19f20b11fb02@conference.mydomain" to="pkh@mydomain/res" xmlns="jabber:client" />
OnIq
RECV:<presence from="pnumber@mydomain/res" to="pkh@mydomain" xmlns="jabber:client">
  <show>dnd</show>
  <status>180</status>
  <priority>8</priority>
</presence>
SEND:<message to="room_55a2998f-85f0-4a09-bc44-19f20b11fb02@conference.mydomain" xmlns="jabber:client">
  <x xmlns="http://jabber.org/protocol/muc#user">
    <invite to="demo4@mydomain/">
      <reason>come room~</reason>
    </invite>
  </x>
</message>
RECV:<message to="pkh@mydomain/res" from="room_55a2998f-85f0-4a09-bc44-19f20b11fb02@conference.mydomain" type="error" xmlns="jabber:client">
  <x xmlns="http://jabber.org/protocol/muc#user">
    <invite to="demo4@mydomain/">
      <reason>come room~</reason>
    </invite>
  </x>
  <error code="400" type="modify">
    <jid-malformed xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  </error>
</message>
This post was edited on 2011-09-08, 12:44 by hardmanii.
Avatar
Alex #2
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by hardmanii:
chatroom come in user..

_MucManager.Invite(dropJid, _roomJid, "come room.")


what is mean?
dropJid Resource ?

dropJid resource "Res" Setting ----> Success!
dropJid.resouce = "" Setting ----> Error?
why?

see here from the Xml documentation

/// <summary>
/// Invite a contact to join a chatroom
/// </summary>
/// <param name="to">The Jid of the contact to invite</param>
/// <param name="room">The Jid of the chatroom</param>
/// <param name="reason">The reason for this invite.</param>
Avatar
hardmanii #3
Member since Apr 2011 · 20 posts · Location: seoul
Group memberships: Members
Show profile · Link to this post
Subject: thank you alex.
thank you alex.

helped me a lot.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS