ejabberd

what else to do to enable XML-RPC in ejabberd?

元气小坏坏 提交于 2020-06-29 04:01:06
问题 I have configure ejabberd on my server but when i tried to access ejabberd i am getting the error the port 4560/rpc2 is not responding.I have uncomment out XML-RPC in ejabberd.yml file but after uncomment the ejabberd stop working.Here is the code which i uncomment. - ## port: 4560 ## module: ejabberd_xmlrpc ## maxsessions: 10 ## timeout: 5000 ## access_commands: ## admin: ## commands: all ## options: [] i have search almost everything what else i have to install or uncomment to enable this

Ejabberd - Run SQL Query for Custom Command

心已入冬 提交于 2020-05-16 03:13:28
问题 I'm trying to make a custom command in mod_admin_extra.erl . to fetch messages between 2 JIDs. My command will look like this:- ejabberdctl get_messages HOST FROM TO START_TIME END_TIME The SQL query will be like:- select * from archive where (username = FROM and bare_peer = TO) OR (username=TO and bare_peer = FROM) where created_at BETWEEN START_TIME AND END_TIME; I went through this thread to understand how IQ query works and want to build a similar sort of a thing via the command and API.

ejabberd - Fetch the history messages mod_mam via API

时光总嘲笑我的痴心妄想 提交于 2020-04-30 08:46:23
问题 I've activated mod_mam module in Ejabberd as follow:- mod_mam: db_type: sql assume_mam_usage: true default: always clear_archive_on_room_destroy: false How do I fetch messages over the APIs? 回答1: If "over the APIs" means using mod_http_api, xmlrpc, ReST, or similar, then that isn't possible. mod_mam right now is to be used by XMPP clients as defined in https://xmpp.org/extensions/xep-0313.html 来源: https://stackoverflow.com/questions/61297053/ejabberd-fetch-the-history-messages-mod-mam-via-api

ejabberd - Fetch the history messages mod_mam via API

馋奶兔 提交于 2020-04-30 08:46:12
问题 I've activated mod_mam module in Ejabberd as follow:- mod_mam: db_type: sql assume_mam_usage: true default: always clear_archive_on_room_destroy: false How do I fetch messages over the APIs? 回答1: If "over the APIs" means using mod_http_api, xmlrpc, ReST, or similar, then that isn't possible. mod_mam right now is to be used by XMPP clients as defined in https://xmpp.org/extensions/xep-0313.html 来源: https://stackoverflow.com/questions/61297053/ejabberd-fetch-the-history-messages-mod-mam-via-api

Ejabberd with Stream management (XEP-198) not using offline message hook

回眸只為那壹抹淺笑 提交于 2020-03-21 10:35:33
问题 We are developing an app with a chat feature. We have an ejabberd (15.02) configured to use mod_offline_post to use the offline message hook and forward all messages for offline clients to an url of our own which then forwards to the GCM. However as we are developing an app, we also need XEP-198 (stream management) enabled to handle connection loss. This is working fine in itself. Streams are created and resumed, messages are acknowledged. The problem is, that the jabber is waiting for a

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

白昼怎懂夜的黑 提交于 2020-01-31 04:02:15
问题 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? 回答1: 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

Retrieve Archive Delay on Openfire, how about Ejabberd?

守給你的承諾、 提交于 2020-01-25 05:27:05
问题 I am using Openfire server with Strophe and it has the Monitoring Plugin installed. It archives my messages, and I use strophe to load them. But there is a 30seconds-1min delay for the messages to be put into the database. I am wondering, if I use Ejabberd to archive messages, and the messages get put into the database, is there a delay as well? 回答1: There will be no delay on the ejabberd. As I was working on retrieving the messages using ejabberd, I didn't found any delay while retrieving

Host not served (ejabberd)

假如想象 提交于 2020-01-24 01:46:06
问题 I'm using out of the box ejabberd/ecs - Docker Hub and I've tried to run curl command (from my own container) to register the user , yet got following message: Host not served actual curl command w/ output: /app # curl -ks --request POST https://ejabberd:5443/api/register --data '{"user":"test","host":"localhost","password":"testing"}' Host not served /app # As far as Docker goes, both my app and ejabberd containers are both in same network. Please advise. ejabberd.yml just in case. 回答1: I

Error starting ejabberd 16.05 server on Mac os 10.7.5

孤街浪徒 提交于 2020-01-17 14:45:12
问题 I am newbie to ejabberd world. I am getting error while installation of ejabberd 15.06 server on mac os 10.7.5 during post install script execution. The installation looks to be complete. I went to bin directory of ejabberd installation path and manually executed post_install.sh to understand error. It is giving below error which doesn't make sense to me. Can anyone please help? ./ejabberdctl: line 160: 2092 Segmentation fault: 11 $EXEC_CMD "$ERL $NAME $ERLANG_NODE -noinput -detached -pa

getting internal server error on connecting ejabber using Bosh url

泪湿孤枕 提交于 2020-01-16 20:03:40
问题 Getting internal server error on connecting ejabberd using Bosh url. Sucessfully configured ejabberd and working on debian OS. But using that same configuration its getting internal server error on Ubuntu 14.04 OS. Can able to access ejabberd bosh url directly and its working but on connecting mod_rewrite rule in htaccess RewriteRule http/ http://ipaddress:5280/http-bind/ [p], showing the 500 error. 回答1: XMPP Prebind for PHP needs PHP5 curl extension. While Enabling Curl extension , it solved