ejabberd - Comments for "designing a one-to-one chat system in a dating website" https://www.ejabberd.im/node/3635 en got mod_xmlrpc working https://www.ejabberd.im/node/3635#comment-54603 <p>got mod_xmlrpc working ;)<br /> thanks badlop.</p> Sun, 30 Aug 2009 19:26:28 +0000 hatembr comment 54603 at https://www.ejabberd.im actually I meant mod_xmlrpc https://www.ejabberd.im/node/3635#comment-54599 <p>actually I meant mod_xmlrpc (not ejabberd_xmlrpc) :)</p> Fri, 28 Aug 2009 17:15:41 +0000 hatembr comment 54599 at https://www.ejabberd.im Ok, I tried to install the https://www.ejabberd.im/node/3635#comment-54598 <p>Ok, I tried to install the ejabberd_xmlrpc module, but it doesn't seem to be loaded, I don't see it listed in the modules page.<br /> Then I read (<a href="http://www.ejabberd.im/ejabberd_xmlrpc" title="http://www.ejabberd.im/ejabberd_xmlrpc">http://www.ejabberd.im/ejabberd_xmlrpc</a>) it requires "XML-RPC-Erlang 1.13 with IP, Ruby and Xmerl 1.x patches".<br /> If I get the compiled version of those patches, do I have to place the correspondant beam files in the ebin folder with the other modules? Then which ones of those beams have to be added in the ejabberd config file/modules section?</p> <p>Sorry all this is new to me, I have absolutely no idea about it</p> Fri, 28 Aug 2009 17:11:44 +0000 hatembr comment 54598 at https://www.ejabberd.im Hi, I tried the shell https://www.ejabberd.im/node/3635#comment-54596 <p>Hi,</p> <p>I tried the shell commands and they work great except when I exec them from php, this is certainly due to some privileges.<br /> I will try the XML_RPC method in order to anticipate the execution of ejabberd on a different server.</p> Fri, 28 Aug 2009 16:47:13 +0000 hatembr comment 54596 at https://www.ejabberd.im For ejabberd 2.0.* you can https://www.ejabberd.im/node/3635#comment-54587 <p>For ejabberd 2.0.* you can use shell commands thanks to mod_ctlextra; or XML-RPC calls with mod_xmlrpc. You can't use mod_rest in ejabberd 2.0.* to execute commands.</p> Wed, 26 Aug 2009 18:24:28 +0000 mfoss comment 54587 at https://www.ejabberd.im Thanks for answering https://www.ejabberd.im/node/3635#comment-54586 <p>Thanks for answering badlop.</p> <p>I didn't install the 2.1 yet, I have the previous version, so I can't use those shell commands right now.<br /> So I will have a look at the REST and XML RPC methods.</p> Wed, 26 Aug 2009 17:03:38 +0000 hatembr comment 54586 at https://www.ejabberd.im Some Jabber details. How to add contacts with ejabberd commands https://www.ejabberd.im/node/3635#comment-54584 <p>1. -X makes a search<br /> 2. -X sends a friend request to Y<br /> 3. -Y accepts the request</p> <p>Now your webapp must tell ejabberd to add X as contact of Y, and Y as contact of X. If you have the webapp and ejabberd in the same machine, this can be done with shell calls. Other solutions are to send XML-RPC calls, or REST HTTP calls. See later.</p> <p>4. -Since then, X can view Y photos, details... but can also send a chat request (same for Y)</p> <p>By default in Jabber/XMPP/ejabberd, you can chat with anybody, even if he is not in your roster. You don't need his pre-approval. Of course, if your users only use a client written by you, you can implement in your client this limitation: "you only can send messages to approved contacts".</p> <p>5. -Y accepts the chat request and the session is now open between them.</p> <p>In Jabber/XMPP/ejabberd there isn't conversation pre-approval. I consider normal that, when you accept/approve a new contact, you allow him to chat with you anytime.</p> <p>Explanation of "this can be done with shell calls" when using ejabberd 2.1.0-beta2:<br /> 1. Install ejabberd<br /> 2. Download mod_admin_extra from ejabberd-modules SVN, compile, install and enable in config.<br /> 3. Start ejabberd<br /> 4. Create users x@localhost and y@localhost<br /> For example:</p> <pre> $ ejabberdctl register x localhost mypassxx User x@localhost succesfully registered $ ejabberdctl register y localhost mypassyy User y@localhost succesfully registered </pre><p> 5. Add both users as contacts. For example:</p> <pre> $ ejabberdctl add_rosteritem x localhost y localhost \"Mr. Y\" Friends both $ ejabberdctl add_rosteritem y localhost x localhost \"Dr. X\" \"Friends from school\" both </pre><p> 6. Enter the ejabberd WebAdmin to verify the rosters were correctly updated.</p> <p>If you prefer to use XML-RPC calls, install ejabberd_xmlrpc. If you prefer REST HTTP calls, install mod_rest.</p> Wed, 26 Aug 2009 09:50:57 +0000 mfoss comment 54584 at https://www.ejabberd.im