Is it possible to get a specific roster that I've created on a xmpp chat server such as EveryBody ?
I can get all the users of the EveryBody roster like this :
function getInfo(){
usersList = [];
iq = $iq({type: 'get'}).c('query', {xmlns: 'jabber:iq:roster'});
conn.sendIQ(iq, userList);
}
Assuming now that my roster name is : myRoster .
Is there a way to specify the name of this roster in a request that we send to the chat server to get all the members of this roster ?
That's not how shared roster work. When properly configured, shared roster are retrieve automatically inside the user standard roster. When requiring the roster, the shared rosters for that user are merged with the standard user roster.
So, if you create a shared roster from ejabberd web admin like example 1: every body see everybody else from that domain.
Here is the setup for that roster:
Name: EveryBody
Description: This group contains everybody
Members: #all#
Displayed Groups: everybody
Please, make sure shared_roster module is also enabled in ejabberd configuration file.
When you login on ejabberd, simply send a roster get to the server and you will get the populated roster.
Related
I want to send message to all users in openfire . I have knew the Broadcast Plugin . But it can send message to only online users . But i want to send message to all users of openfires . Please help me out is there is any plug in or other way to send message to all users .
From official specifications, just use Broadcast Plugin configuring it properly with this param:
plugin.broadcast.all2offline -- true to deliver broadcast messages sent to all#[serviceName].[serverName] to online and offline users. When false or not set only online users get the messages as described below.
So just add this parameter
by Admin Console panel (Server -> System Properties -> "Add new
property" on bottom )
or by adding this value on OFPROPERTY table on database.
An Openfire restart can be required.
For each mail message fetched using MS mail REST API I can get the ConversationId which is used to identify the mail thread for the message in user's folders.
The problem with ConversationId is that it is unique for each user, not for all domain users.
If I want to track the message for all domain users that receives the message. How could I accomplish that using the MS APIs?
This is not supported by the API since the o365 Api is for items identified by the server components such as: message id, appointment id, ...etc but not for client generated ids.
Dose anyone know, how to retrieve kind of Google-talk user's id bellow of contact list?
xxxxx#public.talk.google.com
Talk between two users via hangouts (hangouts.google.com). This will "create" id#public.talk.google.com in roster's list of each user.
Then use Adium as Gtalk client, setup credentials for user which will be "sender" of your message.
Sign in via Adium and you will see in contact list id#public.talk.google.com of receiver.
Shortcut answer:
1) sender talks to receiver via hangouts
2) Use Adium for sender
3) read receiver id#public.talk.google.com in sender's contact list in Adium
In XMPP user can send subscription request to another user to add in roster, I am easily doing this even working perfectly if user is offline server automatically dispatch this presence when user come online.
But I need to add a custom tag to this presence, it works till user is online, if user is offline the server send the regular presence without my custom tag when user arrives online.
How to achieve this.
It looks like the XMPP server you are using does not store the extended info of the presence. According to RFC6121 3.1.3.4 the server must store this info:
http://xmpp.org/rfcs/rfc6121.html#sub-request-inbound
I am developing a XMPP application and will be doing a global shared roster so that I don't have to do presence subscription requests. I also need to get the presence of a certain range of JabberIDs and not the entire global roster. We do not want to do single directed presence stanzas, since that would require up to 15 presence calls each page load. Is there a method within XMPP for me to get presence of multiple, but specific JIDs at once?
Something like:
<presence from="user1#domain.tld,user2#domain.tld,user3#domain.tld" to="user4#domain.tld" />
Thanks in advance!
You could create a pubsub node where each item is about a user. The id would be the users bare JID, and the contents could be a dataform stating whether they are online or not.
A bot or xmpp module listens out for presence messages and then updates the pubsub node appropriately.
The clients can then query the pubsub node using whatever method they like: subscribe and get live updates, or query and use requests