[jdev] blocking and unblocking user

Ganesh Kundapur ganesh.kundapur at gmail.com
Fri Feb 16 05:37:53 CST 2007


Hi,
   I tried to block a user by sending the fallowing stanza.
--
SEND:
-----------------------------------
<iq type="set" id="41221701208"> <query xmlns="jabber:iq:privacy"> <list
name="Example"> <item order="3" action="deny" group="myfriends" jid="
ganesh.kundapur at bhdhcp07392.apac.nokia.com" xmlns="jabber:iq:privacy">
<message></message>
</item>
</list>
</query>
</iq>
--
When i retrive the privacy list, its showing empty.
--
SEND:
-----------------------------------
<iq type="get" id="50219706223"> <query xmlns="jabber:iq:privacy"> <list
name="Example"></list>
</query>
</iq>

-----------------------------------

RECV [58]:
-----------------------------------
'<iq xmlns='jabber:client' id='41221701208' type='result'/>'
-----------------------------------

RECV [178]:
-----------------------------------
'<iq xmlns='jabber:client' id='50219706223' type='result'><query
xmlns='jabber:iq:privacy'><list name='Example'><item order='3'
action='deny'><message/></item></list></query></iq>'
-----------------------------------

SEND:
-----------------------------------
</stream:stream>
-----------------------------------
--
privacy list is not showing the blocked user. Even user will recieve the
message from the blocked user after blocking also.

Please let me know how to block a user and getting the blocked users
information.

Thanks,
Ganesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20070216/fc361f38/attachment-0002.htm>


More information about the JDev mailing list