ejabberd

Ejabberd Memory Consumption (or Leak?)

I'm using ejabberd + mochiweb on our server. The longer I keep ejabberd and mochiweb running, the more memory is consumed (last night it was consuming 35% of memory. right now it's a bit above 50%). I thought this was just a mnesia garbage collection issue - so I installed Erlang R13B3 and restarted ejabberd. This didn't fix it thoug...

ejabberd : replace mnesia with mysql

Hello All, Is there any way to setup mysql in place of mnesia. any help on this is much appreciated. Everything for me went on fine. Also I need to archive the history text. Thanks in advance Abraham ...

How to filter messages in Ejabberd

I have Ejabberd up and running with test users, and its working fine. I want to write a module that can intercept messages and modify them, as follows : intercept "messages" send them to a php file get the result from the same php file (immediate) Modify the message stanza and send it down the wire to the recipient The ejabberd docum...

ejabberd supervisor module

I need to keep a gen_mod process running as it loops every minute and does some cleanup. However once every few days it will crash and I'll have to manually start it back up again. I could use a basic example of implementing a supervisor into ejabberd_sup so it can keep going. I am struggling to understand the examples that use gen_se...

How can anonymous users exchange presence information with valid users on Jabber (Ejabberd)

Hi, I am working on a social network that should allow members to chat with visitors on the site. The concept is simple. Users who have registered signup get their own account with rosters When a visitor comes to the home page of the social network, he can see some of the online members of the community Now he should be able to initia...

How to remove a user from all rosters in Ejabberd

Hi, I want to delete a chat account and at the same time : Delete his roster Delete him from all of his friends rosters How can i do this? I have tried the various options of ejabberdctl. I can unregister a user, and even purge his roster, but i cant find a way to remove him from other rosters. PS : All my users are currently on o...

How to create global variables in Erlang

Hi, I am writing an ejabberd module to filter packets. I need to get the hostname to pull some configs using gen_mod:get_module_opt() . I have 4 important functions : start(Host, _Opt) : This is an ejabberd function to load my module. I get the 'Host' atom here filter_packet({From, To, XML}) : This is my packet filter hook. I cannot...

How to create non-anonymous rooms in Ejabberd

Hi, 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 con...

XMPP C# Interaction

I am trying to connect via c# and via javascript to an xmpp server (currently ejabberd). Im having a little trouble conceptualizing how the connections will exists. Backstory: I have a game engine that will take input from the user and send some kind of response back to them. The user may be a windows app, a web app, all needing to con...

Configuring XMPP server

I am developing a messenger like skype. For this i have downloaded Ejabberd Server. I am developing my own client using Java. But i do not know how to configure the server so that they can communicate with each other. Please help me in that. ...

Ejabberd start issue. RPC Failed Node Down error

Im trying to configure my Ejabberd to run on Ubuntu. I have managed to successfully install the Ejabberd without any problems. When I try to start my server using ejabberdctl [email protected] start I get the following error RPC failed on the node 'ejabberd@domU-12-31-39-01-7C-F5': nodedown Im using Ejabb...

why gen_tcp:controlling_process() can failed with badarg?

Hi. I have a problem with one module of ejabberd. It is http_bind. But when I debug deeply I found that after accept socket and spawning hadling process and when reasign process for recieve data for new created process by calling gen_tcp:controlling_process() failed with badarg, WHY? ... {ok, Socket} = get_tcp:accept(ListenSocket), Op...

How to log messages passing through ejabberd

I would like to log when a stanza (message and presence only) was received by the ejabberd server,a nd when it was sent to the other party (or broardcast). Whats important for me is to log the stanza and the times they are sent & received. Thanks. ...

pyxmpp: quick tutorial for creating a muc client?

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...

Ejabberd gives 404 error randomly

I am working on a social network that uses EJabberd via http-bind (via Apache Proxy). The server is running fine, and i have disabled some additional modules i dont need (such as IRC) to preserve memory. Although we have ample RAM and disk space for this server. The problem is i keep getting 404 errors every once in a while after a clie...

How to call ejabberdctl from PHP (Apache)

Hi, I am trying to call ejabberdctl from PHP but i keep getting an error code of 3 (Failed RPC connection to the node ejabberd@localhost: nodedown). My PHP script contains the following code to add friends : exec('sudo /opt/ejabberd-2.1.2/bin/ejabberdctl add_rosteritem adil.baig40122310029739 godudu.com chburaska0822431111022397 godud...

Calling ejabberdctl from PHP

I am working on a php social network that requires us to create XMPP accounts for all new members. I have a working Ejabberd server running with mod_admin_extra all working fine. I am trying to call ejabberdctl from a php file like so: exec('sudo /home/user/ejabberd-2.1.2/bin/ejabberdctl register test server pass 2>&1'); but i get t...

ejabberdctl does not work from PHP

I am trying to call ejabberdctl from a PHP file, but it is failing with the following error : Failed RPC connection to the node ejabberd@localhost: nodedown The node is running, i have checked this by logging into the server. When the php script is run this is the error i see in /opt/ejabberd-2.1.2/logs/ejabberd.log shows : =ERROR R...

How make video call with ejabberd ?

How make video call with ejabberd ( like msn and skype ) ? ...

Ejabberd Issue - Anonymous user can send presence stanza to roster member

I was under the assumption that an anonymous user cannot send a presence stanza to a registered user without a subscription. But using Ejabberd 2.1.2 this is happening. How can i stop anonymous users from sending presence stanzas to registered users? ...