Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
sreedevi1984 #1
Member since Oct 2006 · 38 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to decline the invitation to join room
 When an invitee declines the invitation of the invitor, the invitee is getting back an error- code :405 - You are not in this room.. Can anyone please help me to find out what's the problem...

        THIS IS THE XML DEBUG OF THE INVITOR :

RECV:
  <presence xmlns="jabber:client" from="test@conference.localhost/viji" to="viji@localhost/MiniClient">
    <priority>5</priority>
    <x xmlns="http://jabber.org/protocol/muc#user">
    <item affiliation="none" role="participant" />
        </x>
</presence>

RECV:
  <message xmlns="jabber:client" from="test@conference.localhost" to="viji@localhost/MiniClient" type="groupchat">
    <body>test</body>
</message>

RECV:
  <message xmlns="jabber:client" from="test@conference.localhost" to="viji@localhost/MiniClient" type="groupchat">
    <body>This room supports the MUC protocol.</body>
</message>

RECV:
  <message xmlns="jabber:client" from="test@conference.localhost" to="viji@localhost/MiniClient" type="groupchat">
    <body>viji has become available</body>

</message>


        THIS IS THE XML DEBUG OF THE INVITEE :

RECV:
 <message xmlns="jabber:client" from="test@conference.localhost" to="sree@localhost/MiniClient" type="normal">
    <subject>Invitation</subject>
    <body>You have been invited to the test@conference.localhost room by viji@localhost
        Reason: None given
    </body>
    <x xmlns="http://jabber.org/protocol/muc#user">
        <invite from="viji@localhost" />
    </x>
    <x xmlns="jabber:x:conference" jid="test@conference.localhost">None given</x>
 </message>

SEND:
 <message xmlns="jabber:client" to="test@conference.localhost">
    <x xmlns="http://jabber.org/protocol/muc#user">
        <decline to="viji@localhost/MiniClient" />
    </x>
</message>

RECV:
  <message xmlns="jabber:client" from="test@conference.localhost" to="sree@localhost/MiniClient" type="error">
    <x xmlns="http://jabber.org/protocol/muc#user">
        <decline to="viji@localhost/MiniClient" />
    </x>
    <error code="405">You are not in this room</error>
</message>

Thanks in advance,
Sreedevi.
Avatar
Alex #2
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

the to Jid in your decline tag is a Full Jid. You should use the same Bare Jid as in the invite tag.
Let me know if this works.

Alex
Avatar
sreedevi1984 #3
Member since Oct 2006 · 38 posts
Group memberships: Members
Show profile · Link to this post
Subject: I tried with bare Jid..same problem exists
Even when I tried to replace the "to" jid with its bare jid, I got the same error...

Sreedevi.
Avatar
Alex #4
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
please post your logs again. It works for me.
Which server are you using for your tests?
Is the room configuration correct?

Alex
Avatar
sreedevi1984 #5
Member since Oct 2006 · 38 posts
Group memberships: Members
Show profile · Link to this post
Subject: here's the XML log after changing to Jid to its bareJid
RECV:
<message xmlns="jabber:client" from="test@conference.localhost" to="viji@localhost" type="normal">
<subject>Invitation</subject>
<body>You have been invited to the test@conference.localhost room by sree@localhost
Reason: None given
</body>
<x xmlns="http://jabber.org/protocol/muc#user">
<invite from="sree@localhost" />
</x>
<x xmlns="jabber:x:conference" jid="test@conference.localhost">None given
</x>
</message>
SEND:
<message xmlns="jabber:client" to="test@conference.localhost">
<x xmlns="http://jabber.org/protocol/muc#user"><decline to="sree@localhost" />
</x>
</message>
RECV: <message xmlns="jabber:client" from="test@conference.localhost" to="viji@localhost/MiniClient" type="error">
<x xmlns="http://jabber.org/protocol/muc#user">
<decline to="sree@localhost" />
</x>
<error code="405">You are not in this room</error>
</message>
Avatar
Alex #6
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

this logs look ok to me. I can't see smth wrong.

  • Which server are you using?
  • Can you try it on another public server?

Alex
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 RSS