ejabberd

pyxmpp: quick tutorial for creating a muc client?

删除回忆录丶 提交于 2019-12-03 14:15:50
I'm attempting to write a quick load-test script for our ejabberd cluster that simply logs into a chat room, posts a couple of random messages, then exits. We had attempted this particular test with tsung, but according to the authors, the muc functionality did not make it into this release. pyxmpp seems to have this functionality, but darned if I can figure out how to make it work. Here's hoping someone has a quick explanation of how to build the client and join/post to the muc. Thanks! Richy Hey I stumbled over your question a few times, while trying the same thing. Here is my answer: Using

difference between XMPP servername and XMPP servicename?

故事扮演 提交于 2019-12-03 12:56:16
In Smack API, there is a configuration class for connection, described at this page ConnectionConfiguration I am confused about the distinction between service name and server name. Suppose I have a computer named "mybox.mydomain.com", and I have ejabberd on it with a configured host called "myhost" (using the line {hosts, ["myhost"]}. in ejabbed.cfg), what is the host name, server name and service name in this case? myhost: service name (or XMPP domain) mybox.mydomain.com: hostname and servername. You can host an XMPP domain over any host, provided that you set the SRV records right in the

asmack XMPP new user registration

丶灬走出姿态 提交于 2019-12-03 10:12:34
问题 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

ejabberd status showing error while server is running

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to configure eJabberd on my server. I finished the installation. The following sequence of commands gives an unexpected output: $ ejabberd start $ ejabberd status In this sequence the ejabbed is started and we are able to access the web admin interface. But after running the ejabberd status its giving following output: Failed to create main carrier for temp_alloc /sbin/ejabberdctl: line 412: 9616 Aborted $EXEC_CMD "$ERL $NAME ${CONN_NAME} -noinput -hidden -pa $EJABBERD_EBIN_PATH $KERNEL_OPTS -s ejabberd_ctl -extra $ERLANG_NODE

Is there an ejabberd python library?

怎甘沉沦 提交于 2019-12-03 06:52:42
Is there an ejabberd python library wherein I can register user to ejabberd from python programmatically? Right now I'm executing "ejabberdctl register" command using the python commands module. XMPP XEP-0077 If you have activated mod_register for In-Band registration on your Ejabberd server, then, as pointed out by @Drake, you can use an XMPP library to register users. In Python, I would recommend Sleek XMPP . The Getting started examples are, well, a good starting point. HTTP If you have activated mod_register_web then you can send a HTTP POST request to http://<SERVERNAME>:5280/admin/server

Efficient external rostering with MySQL and ejabberd

ぃ、小莉子 提交于 2019-12-03 06:16:49
问题 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

Is there any python xmpp library that supports adding/removing users?

拜拜、爱过 提交于 2019-12-03 03:55:37
Right now I have a python class that creates user/deletes users by executing "ejabberdctl register/unregister" commands. Is there a python xmpp library that supports adding/removing users? You need to have an implementation of XEP-0077 : In-Band Registration. xmpppy does appear to support this: import sys import os import xmpp if len(sys.argv) < 3: print "Syntax: register.py [JID] [Password]" sys.exita(64) jid=xmpp.protocol.JID(sys.argv[1]) cli=xmpp.Client(jid.getDomain(), debug=[]) cli.connect() # getRegInfo has a bug that puts the username as a direct child of the # IQ, instead of inside the

ejabberd: retrieve chat history from mysql db

妖精的绣舞 提交于 2019-12-03 03:29:34
I'm building a chat system based on ejabberd using an iOS client (and XMPPFramework ). My current chat system supports only one-on-one conversations between users saving a chat history on a MySQL database. In order to recreate the same chat system, i'd need ejabberd to retrieve chat history from my database so the users don't lose previous conversations when switching to the new chat system. I'd like not to save the conversation client-side since the iOS app can be deleted and reinstalled (or the user could switch device). Is it possible to make ejabberd read chat history from my MySQL db?

how to use MongoDB for storing ejabberd messages?

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using ejabberd as an XMPP server. But i wish to store the messages that go through the server and also when was the message sent and to whom and by who. I googled it but could not find how to do it. Help? 回答1: You probably need to write a hook in Erlang. See the ejabberd documentation for events and hooks Specifically this one : user_send_packet(From, To, Packet) -> ok Use the erlang driver for mongodb . If that's "not possible"/"too difficult", i suggest you call a PHP/Python/Ruby script that just stores the message into mongodb. Its

ejabberd: retrieve chat history from mysql db

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm building a chat system based on ejabberd using an iOS client (and XMPPFramework ). My current chat system supports only one-on-one conversations between users saving a chat history on a MySQL database. In order to recreate the same chat system, i'd need ejabberd to retrieve chat history from my database so the users don't lose previous conversations when switching to the new chat system. I'd like not to save the conversation client-side since the iOS app can be deleted and reinstalled (or the user could switch device). Is it possible to