Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Avatar
hexin #1
User title: to search knowledge
Member since Mar 2007 · 34 posts · Location: China
Group memberships: Members
Show profile · Link to this post
Subject: why the invite message doesn't have 'reason' stanza
the room owner 'hxzsz' send  the following iq:
<iq id="agsXMPPhxzsz_8" to="hxzsz_2@conference.dfg.xpd.cn" type="set" from="hxzsz@fdfg.xpd.cn/agsXMPP"><query xmlns="http://jabber.org/protocol/muc#admin"><item affiliation="member" jid="wfw@dfg.xpd.cn"><reason>my chat room</reason></item></query></iq>}

the user 'wfw' receive the following message:
{<message xmlns="jabber:client" from="hxzsz_2@conference.dfg.xpd.cn" to="wfw@dfg.xpd.cn"><x xmlns="http://jabber.org/protocol/muc#user"><invite from="hxzsz@fis.crec.cn" /></x><x xmlns="jabber:x:conference" jid="hxzsz_2@conference.dfg.xpd.cn" /></message>}

why the receiving message doesn't contain reason stanza?
Avatar
Jabberer #2
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
Quote by hexin:
<iq id="agsXMPPhxzsz_8" to="hxzsz_2@conference.dfg.xpd.cn" type="set" from="hxzsz@fdfg.xpd.cn/agsXMPP"><query xmlns="http://jabber.org/protocol/muc#admin"><item affiliation="member" jid="wfw@dfg.xpd.cn"><reason>my chat room</reason></item></query></iq>

this is not an invite stanza. An invite looks like:

Quote by xml:
<message
    from='crone1@shakespeare.lit/desktop'
    to='darkcave@macbeth.shakespeare.lit'>
  <x xmlns='http://jabber.org/protocol/muc#user'>
    <invite to='hecate@shakespeare.lit'>
      <reason>
        Hey Hecate, this is the place for all good witches!
      </reason>
    </invite>
  </x>
</message>

are you using the Invite member from the MucManager?
Software Developer
AG-Software
Avatar
hexin #3
User title: to search knowledge
Member since Mar 2007 · 34 posts · Location: China
Group memberships: Members
Show profile · Link to this post
I know the invite member from the MucManager.  But When I create persistent rooms, And I use the above iq to add room member, the server will automatically sends invite message to the member.    The following message doesn't  send by me,but by server.

<message xmlns="jabber:client" from="hxzsz_2@conference.dfg.xpd.cn" to="wfw@dfg.xpd.cn"><x xmlns="http://jabber.org/protocol/muc#user"><invite from="hxzsz@fis.crec.cn" /></x><x xmlns="jabber:x:conference" jid="hxzsz_2@conference.dfg.xpd.cn" /></message>}
This post was edited on 2008-05-14, 10:56 by hexin.
Avatar
Jabberer #4
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
Then you are doing something wrong, or your server has a bug and removes the reason.
Software Developer
AG-Software
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: agsXMPP SDK Support RSS