Mnesia table being deleted?
Hey I'm trying to make an ejabberd module which uses mnesia. I make a mnesia table with disk copies. I'm having this bug where any tables I make are lost on restart. When I do the call to create the...
View Articlecan't parse packet/payload on ejabberd 13 (xmlelements)
I'm using the pubsub_publish_item hook (from mod_pubsub @master) and I'm unable to parse the payload/packet.I've tried using xml:get_tag_attr_s("x", Payload) and other xml:functions with no luck.This...
View ArticleHow to change required fields for mod_register in ejabberd
Going through http://xmpp.org/extensions/xep-0077.html#intro, section 3.1 I see that the client should request which fields are required for in-band registration from the host. In case of ejabberd...
View Articlegen_mod:start_module:78 Problem starting the module my_module for host
Hi,I run a small private group of users on an XMPP server and recently I have been wanting to write a custom module that that will timestamp all messages. I figure something like an ejabberd hook using...
View ArticleCompiling a module for dummies
Hello,I installed Ejabberd on Debian "Out-Of-The-Box" and it worked well from the beginning. I started to configure it to my needs, which was no problem a all. I got brave an started to build an own...
View Articlemod_amp not taking effect
Dear Friends,I am relatively new to Ejabberd, recently I had a requirement wherein I needed to implement Advanced Message Processing specification which is implemented by mod_amp. I downloaded the...
View ArticleHandling of Requests in ejabberd_http (a.k.a. is ejabberd_http useful for...
Hi,i would like to develop a module, that handles up- and downloads of large files. Therefor it would be necessary, that the body of the request is not loaded completely before the control is handed...
View ArticleWhen to use what and why
I want to know what is the exact difference between mod_roster and mod_shared_roster and in what cases to use it.Thanks Jeet
View ArticleDeliver message to multiple JIDs atomically?
Hi guys. Is there a way to send a message to multiple JIDs atomically? I don't think XEP 0033 guarantees atomicity.Thanks
View ArticleNewbie module development
Hi,I’m trying to start with developing modules.After compiling my module, I don’t seem to be able to produce a .beam file... Using the command:erlc -I /path/to/my/installation/ebin/ mod_test.erlI get...
View ArticleGroup chat issue
Hi folks, I'm getting started with ejabberd and I'm seeking to find out what it can and can't do. I really appreciate the ejabberd features: its modularity, and its scalability (still having few...
View ArticleDisabling offline_message storage for a chat session or depending on a Mysql...
Hello Developers, I am using ejabberd 2.1.11 for a IOS chat application. I have a special 60 seconds chat apart from the regular chat, I need to disable offline message archiving for a custom type of...
View ArticleA typical SQL Query in Erlang and Ejabberd
I want some help in writing a typical SQL query in Erlang. I just want to prevent logging the offline message based on this query.Want to put this query at start of this function....
View ArticleHow to store/handle messages for unregistered user
Guys, How can I force ejabberd to save messages sent to unregistered users. Currently ejabberd returns error 503 service-unavailable. It would be great if I could store these messages in offline...
View Articlehow to get "Server" in iq_handler?
Hi, I'm a newbie, writing an iq handler. I need to run odbc sql query in iq handler but I haven't figured it out how to get Server to call sql query. I have been very struggling to figure this...
View ArticleCan't use Logger
I know this issue was raised few times but I didn't found a solution yet. I cant use the logger My steps: 1. Download Erlang 2. Download & compile eJabrred with the code from...
View Article