Question about changing roster items

Hi,
I want to substitute some attributes of roster items. For example replace Resource info with IP-address.
Point me where to start digging. Maybe mod_roster.erl?

uvizhe wrote: Hi, I want to

uvizhe wrote:

Hi,
I want to substitute some attributes of roster items. For example replace Resource info with IP-address.
Point me where to start digging. Maybe mod_roster.erl?

The information about roster items stored in the database does not include the resource, since that attribute is short-lived.

You can start looking at mod_roster.erl, and also ejabberd_sm.erl

By the way, there is a feature in ejabberd SVN to show the user IP address in the ejabberd Web Admin.

Thanks for the answer. I

Thanks for the answer.
I know of this patch and use it. I even added some code in ejabberd_c2s.erl to replace users' resources with their IP adresses. But this way is a little insecure as everyone sees everyone's IP.

So the next question is: how clients gather resource info of contacts?

Syndicate content