XMPP Multiple MUC Web Application How-To

I'm designing a net-game that needs to support thousands (even tens of thousands) of end users. * The client side is browser-based. * The server side "engine" will be based on XMPP with MUC functionalities. * The game is made of many scenarios (dozens to hundreds), where the end-users (the players) join in order to take part in that scenario. * Every scenario must have a unique "bot" that controls the flow. For example: player X casts a spell at player Y: the bot receives the "cast spell reques

Xmpp Google chat server archive (XEP-0136)

I am looking for a way how to retrieve archive of chat messages from google server via using XEP-0136 standard, but I got these results just trying to ask for the feature. Request: <iq type="get"><pref xmlns="urn:xmpp:archive"/></iq> Response: <iq xmlns="jabber:client" type="error" to="myEmail@gmail.com/9FF72CA7"> <pref xmlns="urn:xmpp:archive"/> <error code="501" type="cancel"> <feature-not-implemented xmlns="urn:ietf:params:xm

When two Jabber (XMPP) clients connected, only one is able to receive messages, both can send

I have a Windows XMPP client - PSI and an android one - IMO. I'm connected to the same custom server, using two different resources (hostname on desktop, don't know what IMO uses as resource). When someone sends me a message, only desktop client is able to receive it. Android client can only send. What to configure in clients to be able to receive messages on both clients simultaneously?

Xmpp Strophe session attachment -- 403 forbidden

I am working on an XMPP web application which need to include session attachment. I am using Openfire XMPP server. I have successfully implemented the server side attachments where the session is created and I get the sid and rid of a session. Unfortunately, I am stuck in the next part. As I know, after getting the sid and rid, I need to use the Strophe.Connection.attach() to attach strphe to the existing session. After that I am making an IQ request which gets the correct response from the ser

Sending an XMPP message to a large number of users

I'm interested in sending "system status update" to a kind-of-large amount of users (say in the thousands or so, for the sake of discussion) over XMPP. The recipients would be completely arbitrary XMPP accounts spread over various domains, rather than being on one server/domain or anything like that. Is there a good way to do so such "broadcasting", or will I have to resort to sending an individual message to each individual recipient? If I have to do the latter, is it likely or unlikely that s

JMeter - XMPP Authentication

I am building a test plan to test XMPP with JMeter. But I always meet an error when I send a authentication string to server even the authentication string is correct. Does anybody have the same problem or know how to fix this issue? Thanks. 2014/07/04 10:23:22 INFO - jmeter.engine.StandardJMeterEngine: Running the test! 2014/07/04 10:23:22 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*) 2014/07/04 10:23:22 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 :

What is the difference between a Roster Group and Multi-User Chat Rooms in Smack (XMPP library)?

I'am new to XMPP protocol and I'am working on a chat application in android using smack library. I'am stuck in creating group chat. I want to create a group, add members to it and send message to all members of a group (like whatsApp group). When searching about group chat i got two things Group : creating group using createGroup(String name) method present in Roster class. Multi User chat : creating a Multi-user chat using MultiUserChatManager . I'am getting confused regarding what is Group

Why does the XMPP server ignore my subscribe with nickname request?

I'm trying to send a subscribe request to XMPP server (OpenFire 3.9.3) via Strophe.js (1.2.0). <presence type="subscribe" from="agent@localhost" to="agent3@localhost" xmlns="jabber:client"> <nick xmls="http://jabber.org/protocol/nick">agent3</nick> </presence> The roster item is created, but without a nickname. Openfire debug log: 2015.04.22 11:57:43 XMPPServlet - 447b9ca3ad42f7bc78e09d35b882dfb3 : onMessage : Received : <presence type='subscribe' from='agent@loc

Xmpp Smack MultiUserChatManager creates not joinable room

I am using Smack 4.1.1 as Gradle dependency in mine Android project. I have successfully established connection with mine local OpenFire server. But I have an issue while creating temporary room from Android client. final MultiUserChat multiUserChat = userChatManager.getMultiUserChat(roomId);   try {   multiUserChat.create(connection.getUser());   LOG.debug("room created");   } catch (XMPPException.XMPPErrorException | SmackException e) {   LOG.error("create ro

Xmpp ejabberd add_rosteritem process_rosteritems

I am fairly new to ejabberd 16.06 on Ubuntu 14.04 and I am trying to use it with an external DB, Azure SQL server. Almost everything works fine (except for a connection problem I talk about in another post). What I am trying to understand better now, are the add_rosteritem and process_rosteritems commands. I use add_rosteritem to add users to each others rosters, like so: ejabberdctl add_rosteritem localuser localserver user server nick group subs where subs is always "both". This command a

Xmpp Openfire meeting - Jitsi Conference Failed Connection Error

We are trying to deploy our Jitsi Meet instance. We've installed Openfire Meeting Plugin. I can see that the plugin was installed successfully. When I access the Jitsi URL /ofmeet/DemoMeeting1 it prompts me for username and password. After entering both it logs me in. However, I get the following error: Here are the browser logs, I see in chrome. Jitsi2:9 (TIME) index.html loaded: 467.68999999039806 Logger.js:125 [modules/browser/BrowserCapabilities.js] <new t>: This appears to

how xmpp use http binding to push message to client

According to wiki http://en.wikipedia.org/wiki/Extensible_Messaging_and_Presence_Protocol , xmpp is using http binding (rather an http pooling) to push message to client. Can anybody explain to me how it works?

Xmpp How to show presence of all the users that are registered to server

I am working on an Android XMPP client. The XMPP server is configured on eJabberd. I want to get the presence of all the users that are signed up to the XMPP server. I want to know whether by default the Roster functionality is added to the server when we install eJabberd or should we make any changes to it so that it can accommodate the Rosters. How can we get the Presence of all the users that are signed up to the server? Should we maintain a Global Roster to add all the users to the it and

XMPP Openfire server keeps on sending user avatar graphics though not requested

We create an app that uses XMPP protocol. Initially we started development and used some XMPP server for debug. That was Ok, and we managed to prevent redundant avatar loading by storing graphic files locally and checking the file hash while receiving user Presence update. But now we switched to new Openfilre server and it keeps sending us all available user avatars not only when we request VCard but also using some message immediately after our user logs in: <message id="ca82demo01@fffc

Is it possible to decrypt my XMPP server traffic using private key?

I can provide more detail if necessary, but my question is basically thus: If I'm running an openfire server that encrypts traffic using an RSA pub/priv key combo that I created (and have), is there a way (preferably in Java) to sniff packets off the wire and then decrypt them using my private key? Currently I can encrypt/decrypt a string using the following: public class TLSDecryptTest { Cipher Ecipher; Cipher Dcipher; public TLSDecryptTest(String pubpath, String privpath){ byte[] publi

Xmpp Openfire archive list count is always 0

I am using openfire (3.7.1) with monitoring plugin (1.3.0) and am trying to determine if archive is set up correctly. "Archive one-to-one chats" option is selected in archiving settings. In adium xml console I send following xml: <iq type='get' id='my-1'> <list xmlns='urn:xmpp:archive' with='user@my-server/resource/'> <set xmlns='http://jabber.org/protocol/rsm'> <max>30</max> </set> </list> </iq> Response I get is: <iq xmln

How to add Group in Openfire using XMPP programmatically

I want to create GROUP in openfire using xmpp programmatically see the image.... there are two groups in image I wish to add new groups in openfire using xmpp stanzas. If success then I wish to add members in particular groups. I know how to create chat rooms (MUC) but groups are different than chatrooms. in groups rosters are persistent but in chatroom any user can enter and can at leave any time. so I want to create groups not like chatrooms. I tried lot but it creates chatrooms only not t

Does XMPP allow users to send messages through someone elses server?

I was looking at this page: https://list.jabber.at , which states that everyone can use the public servers on that page for free. But then how does one register an account to send messages to ? How will all the servers know about the account, and how does one authenticate it ? EDIT: Also, how does one prevent creating duplicate accounts ? It seems "in-band" registration allows registering using the protocol itself, instead of a centralised server. But how does everyone know about it then ?

Adding nick field to registration new xmpp username using ejabberd

I wanted to send "nick" field from client to register new username with ejabberd in band registration. but Server is sending only username, password and instructions fields back to client to fill. I have checked below mod_register to modify these fields but none provide is available. https://docs.ejabberd.im/admin/configuration/#mod-register 2018-05-29 23:01:08.426 [debug] <0.4613.3>@xmpp_socket:send:218 (tls|<0.4613.3>) Send XML on stream = <<" <iq xml:lang='en' from='xm

Xmpp Smack throws NullPointerException in Roster's presence listener

I'm using Smack with android chatting applications and recently I have updated Smack to version to 4.3.0 and getting some error in fabric. It is a NullPointerException inside of Smack: Fatal Exception: java.lang.NullPointerException Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference java.util.concurrent.ConcurrentHashMap.get (ConcurrentHashMap.java:772) org.jivesoftware.smack.roster.Roster.getPresencesInternal (Roster.java:374) org.jivesoftware.smack.r

How to enable 'urn:xmpp:receipts' in xmpp?

How to enable <feature var='urn:xmpp:receipts'/> in xmpp? With xmpp.js when I send this stanza <iq type='get' from='user@localhost' to='localhost' id='1'> <query xmlns='http://jabber.org/protocol/disco#info'/> </iq> the response comes with list of enabled features like below <iq xmlns="jabber:client" xml:lang="en" to="admin@localhost/example" from="localhost" type="result" id="1"> <query xml

Xmpp How to create non-anonymous rooms in Ejabberd

I would like to create a non-anoymous room (muc) in Jabber (Ejabberd). I can create an anonymous room, but how can i make it non-anonymous? I have read http://xmpp.org/extensions/xep-0045.html but they only describe what non-anonymous rooms, not how to create it. I want the members to see each other's normal JIDs as opposed to conference JIDs with a nick.

Xmpp strophe to register user on ejabberdctl

I would like to add a user on ejabberd server using strophe with out typing ejabberdctl register uname servename passwd at command prompt. Is it possible to implement?. Is there any XMPP protocol exists to register an user? Thanks Sathi

Using XMPP - PEP/PubSub for sensor readings

I'm planning to setup some sensors for a project I am working on. I plan to use a simple xmpp client on each device hosting sensors and posting the readings via PEP/PubSub. I would like to run a program which dynamically displays this sensor data upon receiving the push notifications from the sensor clients. I intend to communicate on a LAN with 100Mbs connections and several WIFI APs as needed for the sensor locations. Is XMPP a good choice for a backend? Would this scale well at say 100 de

Xmpp Why presence stanza is rejected when there is no "to" attribute

As for XMPP documentation (Example 10) this kind of stanza should be valid: <presence from="support@im.server.com" /> However ejabberd replies with 400 response. The reason here is a missing "to" field. I wonder why it happens. Based on a XML schema of a XEP-0114 analysis I guess the reason is in a fact that support@im.server.com is an external component. Could someone confirm that I am right/wrong, or give a suggestion how to overcome the situation? XMPP Server: ejabberd 2.1.5.

How to send and listen to custom xmpp presence packet with asmack the library

I'm struggling to listen to contacts' updating of VCard. I'm trying to do this by sending a custom presence that carries some custom information while updating VCard.from the output of the debug,I found that ,whenever such a custom presence is send,it's contact will receive the presence stanza.Unfortunately,when the contact's packetListener can not detect the incoming packet,and then all of the listener added to the connection seems have been removed, that is other packet that can be detected pr

Xmpp Strophe.js Jabber Search (XEP-0055)

I am trying to figure out how to make Strophe.js work with the XEP-0055 plugin. So I guess I first have to determine what search fields are supported by the service, then I have to send the actual request: <iq type='set' from='romeo@montague.net/home' to='characters.shakespeare.lit' id='search2' xml:lang='en'> <query xmlns='jabber:iq:search'> <last>Capulet</last> </query> </iq> But how do you translate it into Strophe.js query? This

Xmpp X-FACEBOOK-PLATFORM authentication error

I'm trying to connect to Facebook chat api via SMACK using the code below but I always receive X-FACEBOOK-PLATFORM failed: not-authorized. I have a valid token with xmpp permission but I think I'm missing something... it's working with user/pass, but not with accessToken. Thanks for your help guys, this thing is driving me crazy. public class FacebookChatSample { public static void main( ) { String accessToken = //internet example "AAACjg0Eh1N8BAFuhUFZAN0EteV6pjZAsZAI46i8oV3iVmyLdaKiwa

Xmpp How to grant admin priviledges to any user?

I'm trying to send this iq... <iq to="localhost" type="get"> <query xmlns='http://jabber.org/protocol/disco#items' node="all users"/> </iq> ...to be able to retrieve all the users from the server, but I can only get a response if the sender is the admin. If it's a normal user I get "Denied by ACL" error How can I be able to get a response from the server to any user on the server. I've also tried to make the admin user to be anyone in the ejabberd.yml but I couldn

Xmpp Tigase Custom Database

I am trying to integrate Tigase to use my custom MySQL database to authenticate users, gets rosters and vCards. I setup the "Custom Authentication Connectors" as described at https://docs.tigase.net/tigase-server/8.0.0/Administration_Guide/html/#customAuthentication however, it only seems to authenticate users I've already added to the local Tigase database. Is it possible for Tigase to automatically create the user when the user has successfully authenticated? And, how can I setup Tigase to

amqp or xmpp for real time online games

Which of these technology suite for Multi user online game project.. Project requirements: 1. Able to handle 2k-5k user at any given time. 2. client library for iphone and android (native, no javascript). 3. client library for Microsoft Windows (most important), also for mac os x and linux. 4. Good documentation specially for mod development 5. Project is not open-source. So, can only use libraries with suitable license. I can program in erlang and java as well, programming language isn't an i

XMPP Sending Messages on Location Based Criteria

I am writing a custom service using XMPP protocol, ejabberd server and PostGis spatial database. Also I am writing the clients to the service, so I have complete control. User Alice comes online and need to publish information to certain user entities which are within proximity to her. So user Alice login create pubsub node, I want the other proximity entities to be automatically subscribed to Alice's node. When Alice comes online I need automatically to query postgis about entities within pro

Xmpp Blocking User In smack

I am working on a chat application and i want to block a particular friend from my chat list.Can anyone tell me how can i block a particular user through smack library. Thanks in advance.

Xmpp Manage roster modifictions true external webapp and disable for users?

I have a webapp that's a game, and only after certain score people can become friends and should be automatically added to each other friendlist. Trying to figure out how to handle rosters in Ejabberd like this prevent any user from adding anyone else by him/herself only let webapp handle modifications to rosters ( buddylist ) Using a client JS library like strophe would not be secure I need serverside method of adding users to each others roster. Any thoughts ideas on how to do this with

Xmpp chat application with cometd only is good enough?

I want to create a web chat application that will just do text chatting. A client will talk to owner. An owner will see the available client to chat with but a client cant see the list of available user he will just click the link and start chat with owner directly. So i have developed this with cometd and jquery only and its working fine. will that work in real application or should i consider some XMPP server(preferable openfire) also. It is just a text based chat.What are pros and cons of us

Xmpp Error creating room using Smack: "Feature not implemented"

I'm following the documentation and trying to create a room: //Create a MultiUserChat using a Connection for a room MultiUserChat muc = new MultiUserChat(conn1, "myroom@mycompany.com"); // Create the room muc.create("testroom"); // Send an empty room configuration form which indicates that we want // an instant room muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT)); When I go into PSI, click service discovery, click multiuserchat, right click browse, click myroom. It pops

Duplicate message received in XMPP Multi User Conference Room

When device1 is sending the message to the conference room "del@conference.jabber.org" the message is dispalyed in the chat list as well as a duplicated message is also displayed that is being send by the conference room "del@conference.jabber.org". I'm stuck, why i'm getting duplicate message. public void setConnection(XMPPConnection connection) { this.connection = connection; if (connection != null) { PacketFilter filter = new MessageTypeFilter(Message.Type.groupchat); con

How to manage XMPP connection

I am designing a chat application using ejabberd as XMPP server and Smack 4.1 API. Below is a code snippet for managing connection. // Create a connection to the server.com server on 5222 port. XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder() .setUsernameAndPassword("user", "password") .setServiceName("server.com") .setHost("server.com_ip") .setPort(5222) .setSecurityMode(SecurityMode.disabled) .build(); XMPPTCPCo

Xmpp Error loading vCard information using Smack: "EmptyResultIQ cannot be cast to org.jivesoftware.smackx.vcardtemp.packet.VCard"

I am creating an android chat application using smack 4.1.1 I could load users vcard on my local test server (Openfire). But now on ejabberd server when i try to load the vcard, I get the following error: 07-19 11:11:26.175: E/AndroidRuntime(13849): java.lang.RuntimeException: An error occured while executing doInBackground() 07-19 11:11:26.175: E/AndroidRuntime(13849): at android.os.AsyncTask$3.done(AsyncTask.java:300) 07-19 11:11:26.175: E/AndroidRuntime(13849): at java.util.concurren

Xmpp Can't access ejabberd admin panel using ip address

I downloaded ejabberd for windows 7. On setup process I done everything correctly. When I start ejabberd from my local system I can access the admin panel using http://localhost:5280/admin but if I change localhost to 127.0.0.1 or 192.168.0.159 (This is my network ip) I can't access admin panel. Is there anything I should configure on ejabberdctl or 'ejabberd.yml' . Please help me.

Xmpp No response while joining conference SmackException NoResponseException

i am getting below exception while joining the conference chat. Exception: org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 10000ms (~10s). Waited for response using: AndFilter: (StanzaTypeFilter: Presence, OrFilter: (AndFilter: (FromMatchesFilter (ignoreResourcepart): hdhd@conference.35.171.18.126, MUCUserStatusCodeFilter: status=110), AndFilter: (FromMatchesFilter (full): hdhd@conference.35.171.18.126/user000000

Xmpp Smack is unable to connect Openfire Server

I am trying to connect with OpenFire server using smack. Here is my code public static void main(String[] args) throws SmackException, IOException, XMPPException, InterruptedException { XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder() .setUsernameAndPassword("admin", "admin").setXmppDomain("XYZ") .setHost("localhost").build(); AbstractXMPPConnection connection = new XMPPTCPConnection(config); con

How can my xmpp app federate with Google Apps users without having them create SRV records?

I have an application that uses Prosody and XMPP to communicate with Google Talk users. I want the app to be able to communicate with Goole Apps users, but according to this document: http://www.google.com/support/a/bin/answer.py?hl=en&answer=34143 having Google Apps users talk to any xmpp client outside of @gtalk.com requires creating SRV records. My question is: How can my app talk to Google Apps users /without/ requiring them to create DNS records for their domain? (This is highly t

  1    2   3   4   5   6  ... 下一页 共 6 页