ejabberd

Parsing XML websocket responses with Strophe.js

假装没事ソ 提交于 2020-01-16 18:53:06
问题 I'm using Strophe.js to connect to an XMPP server via websockets. Here's a sample response I get when the connected user receives a message: <message xmlns='jabber:client' xml:lang='en' to='agent@chat.domain.com/6665193359253278721998' from='client@chat.domain.com/Mac' type='chat' id='purple42fccc5c'> <archived by='agent@chat.domain.com' id='1557026681122740' xmlns='urn:xmpp:mam:tmp'/> <stanza-id by='agent@chat.domain.com' id='1557026681122740' xmlns='urn:xmpp:sid:0'/> <active xmlns='http:/

pyxmpp: quick tutorial for creating a muc client?

只愿长相守 提交于 2020-01-12 08:00:34
问题 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! 回答1:

ejabberd offline users can not receive announce message

拟墨画扇 提交于 2020-01-07 07:57:39
问题 I use a xmpp client to send announce message, such as Psi or Gajim. All the online users can receive the announce message, except the offline users. I do send the announce to all the users not online users. The offline user can not receive the announce message when it is online again. But the offline user can receive offline message sent from other user. 回答1: I guess you are using external authentication or a custom authentication. In that case, ejabberd cannot access to the full user

Ejabberd - Server Configuration for public connection [closed]

狂风中的少年 提交于 2020-01-07 07:24:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have a linux server. I installed ejabberd on the server. I can go into administration url - http://ipaddress:5280/admin I can not connect via jabber client to the server. How do I set up a server for public connection? 回答1: Make sure: a) You do not firewall the ports. b) You have valid SRV records for your

XMPP ejabberd SaaS Push Notifications

[亡魂溺海] 提交于 2020-01-07 03:46:29
问题 This is an update to my previous question, XMPP push notifications causing problems. Thanks to the answer from Mickaël Rémond delay and duplication issues are gone but I still fail to understand the behaviour of push notifications. If I move the app to background (without locking device or termination) it won't receive any push notifications, and when I bring it back to foreground all the messages are received perfectly. When the app is in foreground and I lock the device, no notifications

ejabberd denies generating token

人盡茶涼 提交于 2020-01-07 03:14:09
问题 I have read all questions and answers what I can find, but oauth still not working. this is config ejabberd.yml. port: 5280 module: ejabberd_http request_handlers: "/websocket": ejabberd_http_ws "/log": mod_log_http # OAuth support: "/oauth": ejabberd_oauth # ReST API: "/api": mod_http_api ## "/pub/archive": mod_http_fileserver web_admin: true http_bind: true ## register: true captcha: false commands_admin_access: configure commands: - add_commands: user oauth_expire: 3600 oauth_access: all

Ejabberd cannot compile mod_multicast module

对着背影说爱祢 提交于 2020-01-06 19:34:33
问题 I am trying to add mod_multicast module to my ejabberd 15.09. Steps: 1. Get the repo from 'svn co https://svn.process-one.net/ejabberd-modules/' 2. Run ./build.sh command in the directory for mod_multicast '../ejabberd-modules/mod_multicast/trunk'. 3. A .beam file should be created in the ebin directory, but no file is created in my case. I am following this tutorial for ref: http://www.gettechgo.com/how-to-install-mod_admin_extra-in-ejabberd/#comment-128 回答1: mod_multicast is integrated in

Ejabberd cannot compile mod_multicast module

我怕爱的太早我们不能终老 提交于 2020-01-06 19:33:58
问题 I am trying to add mod_multicast module to my ejabberd 15.09. Steps: 1. Get the repo from 'svn co https://svn.process-one.net/ejabberd-modules/' 2. Run ./build.sh command in the directory for mod_multicast '../ejabberd-modules/mod_multicast/trunk'. 3. A .beam file should be created in the ebin directory, but no file is created in my case. I am following this tutorial for ref: http://www.gettechgo.com/how-to-install-mod_admin_extra-in-ejabberd/#comment-128 回答1: mod_multicast is integrated in

Ejabberd- Push notifications APNS and GCM with mod_offline_push

懵懂的女人 提交于 2020-01-06 18:09:55
问题 I'm trying to get push notifications working with ejabberd and I found this link here: https://github.com/diamondbybold/ejabberd_mod_offline_post where it should make a POST request at a URL for offline messages. I edited my ejabberd.yml file to include the URL and token, however, I'm running into some issues when trying to run it on Ejabberd 16.12. It runs, but I send a message to someone offline, I'm seeing the following error in /var/log/ejabberd/error.log 2017-02-07 09:12:19.359 [error]

Ejabberd- Push notifications APNS and GCM with mod_offline_push

拥有回忆 提交于 2020-01-06 18:09:09
问题 I'm trying to get push notifications working with ejabberd and I found this link here: https://github.com/diamondbybold/ejabberd_mod_offline_post where it should make a POST request at a URL for offline messages. I edited my ejabberd.yml file to include the URL and token, however, I'm running into some issues when trying to run it on Ejabberd 16.12. It runs, but I send a message to someone offline, I'm seeing the following error in /var/log/ejabberd/error.log 2017-02-07 09:12:19.359 [error]