ejabberd

asmack XMPP new user registration

时间秒杀一切 提交于 2019-12-03 01:48:19
Good people of StackOverflow, please help. I've set up an ejabberd server on my ubuntu machine, added virtual host, set {access, register, [{allow, all}]}. and registered an admin account. I'm not a linux guru, but I've managed to do this basic set up. Now, from my Win 7 machine, using Pidgin, I can login as admin and have access to many administrative features. Most important I can create new users on the server. The problem is that I can't do that with my android client using asmack library. I can establish connection and login, but when I try to register a new user either trough account

amqp or xmpp for real time online games

…衆ロ難τιáo~ 提交于 2019-12-03 01:32:26
问题 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

ejabberdѧϰ2

匿名 (未验证) 提交于 2019-12-02 23:43:01
2019独角兽企业重金招聘Python工程师标准>>> 1.ejabberd监听多个端口 每个网络连接进来,ejabberd都会使用一个进程来负责这个连接的数据处理。原理跟Joe Armstrong的《Erlang程序设计》中的并行服务器一样,就在P196,大家可以看看。 相比于Joe的例子,ejabberd的代码更具有扩展性。在ejabberd_listener.erl文件中,start/3函数会根据要调用的模块的 socket_type来启动相关的必备资源。在这个文件里面,假设是tcp连接,调用过程是, accept/3 ,最后可能会调用 ejabberd_frontend_socket或者 ejabberd_socket里面的start/4函数。 在ejabberd_socket.erl文件中,还是会根据要调用的模块的socket_type来调用相关的函数。最后会调用模块里面的start/2函数,正常返回{ok, Pid}.一路看下来,参数中有端口,处理网络连接的模块名,连接时的选项。知道这些就可以轻松配置网络连接。 所以在处理网络连接时,要监听多个网络端口,可以考虑一下ejabberd_listener模块。具体的代码可以参考mod_proxy65_stream.erl。 2.在ejabberd的master库中,自己写的behavior模块,behavior

ejabberd BOSH search brings nothing

一笑奈何 提交于 2019-12-02 21:59:54
问题 We're trying to switch from Openfire to ejabberd XMPP server. I have ejabberd installed with default options on my local Windows 10 workstation. I set mod_vcard: search: true I registered a couple of users using ejabberd ReST API. I also set some vcard values for those users (my understanding is that vcard entries are necessary for ejabberd search to work, correct?) Using Postman, I can confirm that there are vcards for user "testfouoles": POST http://localhost:5281/api/get_vcard Body: {

`ejabberdctl start` results in “kernel pid terminated” error — what do I do?

感情迁移 提交于 2019-12-02 20:06:17
问题 I have googled for three hours but to no avail. I have an ejabberd installation which is not installed using apt. It is installed from source and there is no program called ejabberd in it. Start and Stop and everything is through ejabberdctl. It was running perfectly for a month and all of a sudden one day it stopped with the infamous kernel pid terminated error Anytime i do sudo ejabberdctl start --node ejabberd@MasterService A erl_crash file gets generated and when i try ejabberdctl i get

Efficient external rostering with MySQL and ejabberd

做~自己de王妃 提交于 2019-12-02 19:39:36
Question Please note that the solution to this is directly below using Eugen's view idea! I'm writing a chat module for a PHP/MySQL user-driven site that allows two users to make friends, and have chosen eJabberd for the chat system. I've set up external authentication successfully using a PHP daemon, and now I've successfully managed to get the friendships in to eJabberd by using mod_roster_odbc and populating the MySQL rosterusers table manually. After lots of digging, I managed to find this particular comment very helpful in knowing what to set each column to, in order to represent that

amqp or xmpp for real time online games

孤街醉人 提交于 2019-12-02 14:57:46
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 issue. I was looking at following server technologies like Openfire, Tigase, ejabberd and RabbitMQ. All

How to get message delivered , seen , failed and unread message count in XMPP iOS? (Swift 3.0)

霸气de小男生 提交于 2019-12-02 13:28:39
问题 i am developing chat app in that i have stuck in two scenario. 1) How to get message status like delivered ,seen etc.. I have done following things : self.xmppMessageDeliveryRecipts = XMPPMessageDeliveryReceipts(dispatchQueue: DispatchQueue.main) self.xmppMessageDeliveryRecipts!.autoSendMessageDeliveryReceipts = true self.xmppMessageDeliveryRecipts!.autoSendMessageDeliveryRequests = true but i do't get further idea, how can i further process to check message status ? 2) How to get un-read

ejabberd 16.06 + mysql 5.5.50, message history is not saved

孤街醉人 提交于 2019-12-02 13:01:00
I use ejabberd 16.06 + mysql 5.5.50, message history is not saved. My ejabberd.yml: ## MySQL server: odbc_type: mysql odbc_server: "freldo" odbc_port: 3306 odbc_database: "ejabberd" odbc_username: "ejabberd" odbc_password: "ejabberd" modules: ... mod_mam: db_type: odbc default: always for the formation of the database structure, I used: mysql.sql I get an error: @ejabberd_sql:check_error:1039 SQL query 'SELECT timestamp, xml, peer, kind, nick FROM (SELECT timestamp, xml, peer, kind, nick FROM archive WHERE username='test' and bare_peer='misha@freldo' ORDER BY timestamp DESC limit 21) AS t

ejabberd BOSH search brings nothing

[亡魂溺海] 提交于 2019-12-02 12:49:50
We're trying to switch from Openfire to ejabberd XMPP server. I have ejabberd installed with default options on my local Windows 10 workstation. I set mod_vcard: search: true I registered a couple of users using ejabberd ReST API. I also set some vcard values for those users (my understanding is that vcard entries are necessary for ejabberd search to work, correct?) Using Postman, I can confirm that there are vcards for user "testfouoles": POST http://localhost:5281/api/get_vcard Body: { "host": "planetrisk.com", "user": "testfouoles", "name": "FN" } Response: { "content": "Test