ejabberd - Comments for "Sending IQ Packets To Clients" https://www.ejabberd.im/node/3125 en You can see mod_vcard.erl, https://www.ejabberd.im/node/3125#comment-53367 <p>I don't remember doing this exactly, so I'll just give some points. I hope some of them give you a good idea to solve the problem:</p> <p>You can see mod_vcard.erl, it handles some IQ namespace:</p> <pre> IQDisc = gen_mod:get_opt(iqdisc, Opts, one_queue), gen_iq_handler:add_iq_handler(ejabberd_local, Host, ?NS_VCARD, ?MODULE, process_local_iq, IQDisc), gen_iq_handler:add_iq_handler(ejabberd_sm, Host, ?NS_VCARD, ?MODULE, process_sm_iq, IQDisc), </pre><p> You can also look at mod_caps. That module performs many tasks, one of them: send an IQ query to discover features of remote Jabber servers; and when the response is received, parse it and store information.</p> <p>Or you can implement a jabber component (like mod_echo, mod_vcard, mod_pubsub, mod_muc, ...), so you have your own JID (test.example.org or whatever), and you can do whatever you want with IQ :)</p> Tue, 01 Jul 2008 18:36:16 +0000 mfoss comment 53367 at https://www.ejabberd.im