Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
irokhes #1
Member since Mar 2012 · 16 posts
Group memberships: Members
Show profile · Link to this post
Subject: Error creating privacy list
Hi,

I´m trying to create a pricavy list but it doesn´t work properly

SEND:
<iq id="agsXMPP_5" type="set" from="user3@servername/agsXMPP">
<query xmlns="jabber:iq:privacy">
<list name="public">
<item type="jid" value="user1@servername" order="1" action="deny" />
</list>
</query>
</iq>
RECV:
<iq xmlns="jabber:client" to="user3@servername/agsXMPP" id="431-289" type="set">
<query xmlns="jabber:iq:privacy">
<list name="public" /></query>
</iq>
RECV:
<iq xmlns="jabber:client" to="user3@servername/agsXMPP" id="agsXMPP_5" type="result">
<query xmlns="jabber:iq:privacy">
<list name="public">
<item value="user1@qchat2.quadramqs.com" action="deny" type="jid" order="1" />
</list>
</query>
</iq>

I need block user but it doesn´t work. I also try to use this code (http://forum.ag-software.de/post/1983) with the same result.

Thanks!!
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
in your log you created the list with the name public with success. As you can see you last stanza has the id agsXMPP_5 and a type of result.

I don't know where the packet in the middle with the id 431-289 is coming from.

After the server accepted your list you should activate it to use it.
see: http://xmpp.org/extensions/xep-0016.html#protocol-active

Have you tried to activate the list?

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