ejabberd

Ejabber Configuration on Amazon for Chat application

折月煮酒 提交于 2019-12-04 21:00:50
Ubuntu Ejabber Amazon (AWS) Created t2 instance in AWS (Amazon) for congiguring Ejabberd Server . Created custom http and passed 5280 (Ejabber port) in place of 80 and through Ubuntu i tried to install Ejabber and register Admin as user . User registered succesfully. I used Ejabberdctl command to check Ejabberd status and it showing it running and in the message it showing a private IP which is linked with my AWS ip . But when same thing like : 36.159.103.47/admin/5280 hit on URL then it shows nothing , no data retrieved . I want to open Ejabber Web admin page , to check the Access Rule Users

Intercept login/logout ejabberd

允我心安 提交于 2019-12-04 13:30:15
I want to know when a user is logged in and logged out from an ejabberd session in a custom module, without changing the ejabberd code. I need that because I have to execute some actions when a user logs in and clean up the actions I did when the user logs out. Also, I need to be able to logoff a user given some circumstances. So, is there a way to extend some module to get those feature? I'm still looking for some documentation that could help me with that. Nuno Freitas You can write your own code and build it has a plugin with the behaviour gen_mod that ejabberd gives you. A nice place to

Get members nickname of MUC Room

被刻印的时光 ゝ 提交于 2019-12-04 11:01:06
Is there a way to get all nicknames of a MUC Room with an ejabberd server? I'm trying with: <iq from='crone1@shakespeare.lit/desktop' id='member3' to='coven@chat.shakespeare.lit' type='get'> <query xmlns='http://jabber.org/protocol/muc#admin'> <item affiliation='member'/> </query> </iq> but I obtain only jid without nicknames: <iq from='coven@chat.shakespeare.lit' id='member3' to='crone1@shakespeare.lit/desktop' type='result'> <query xmlns='http://jabber.org/protocol/muc#admin'> <item affiliation='member' jid='hag66@shakespeare.lit' role='participant'/> </query> </iq> On 6.5 Querying for Room

Is there an ejabberd python library?

风流意气都作罢 提交于 2019-12-04 11:00:43
问题 Is there an ejabberd python library wherein I can register user to ejabberd from python programmatically? Right now I'm executing "ejabberdctl register" command using the python commands module. 回答1: XMPP XEP-0077 If you have activated mod_register for In-Band registration on your Ejabberd server, then, as pointed out by @Drake, you can use an XMPP library to register users. In Python, I would recommend Sleek XMPP. The Getting started examples are, well, a good starting point. HTTP If you

mod_http_upload - HTTP File Upload (XEP-0363) using Ruby on Rails

百般思念 提交于 2019-12-04 07:58:09
I want to transfer image between users in my chat application. I am using an ejabberd server for chat. As I found out, the module which could do this is mod_http_upload - HTTP File Upload (XEP-0363). I am not able to figure out how to implement this. Anybody how could help me in figuring out how to do this will be very helpful. In order to use this module add configuration setting in ejabberd.yml file listen: # add following lines in listen section - module: ejabberd_http port: 5443 tls: true certfile: "/etc/ejabberd/example.com.pem" request_handlers: "": mod_http_upload access: # add

getting “XMPPException$XMPPErrorException: XMPPError: service-unavailable - cancel” while creating group using XMPP (4.1.3)

倖福魔咒の 提交于 2019-12-04 04:32:52
I am facing issue while creating chat group using XMPP(4.1.3). My code is try{ // Get the MultiUserChatManager MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(ClosrrService.xmppConnection); Log.e("Connection : ", ClosrrService.xmppConnection.toString()); // Get a MultiUserChat using MultiUserChatManager MultiUserChat muc = manager.getMultiUserChat("dayaroom@conference."+Constants.HOST); // Create the room and send an empty configuration form to make this an instant room muc.create("testbotdaya"); muc.sendConfigurationForm(new Form(DataForm.Type.submit)); }catch (Exception e)

How to handle MUC chat messages- messages duplicating

不羁岁月 提交于 2019-12-03 21:39:16
I have implemented one to one chat using XMPP framework It has extensive support in one to one chat. Message archiving and fetching is way simple. But i see, very difficulty in handling a group chat message saving and displaying. The sorting and predicates are failing. duplicate messages are shown. This is how i join a room before i fetch my already saved message) XMPPRoomCoreDataStorage *coreDataRoomStorage=[self appDelegate].xmppRoomCoreDataStorage; XMPPRoom *room=[[XMPPRoom alloc]initWithRoomStorage:coreDataRoomStorage jid:user.bareJid]; [room activate:[self appDelegate].xmppStream]; [room

XMPP C# Interaction

天涯浪子 提交于 2019-12-03 21:08:12
问题 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 connect pretty much the same way. The game engine is a c# application that handles the input accordingly. Is my game engine a user on the xmpp server just like

how to create persistent muc room in smack 4.1 beta2

痞子三分冷 提交于 2019-12-03 18:22:06
migrated from asmack to smack 4.1 beta2. The muc rooms created are no longer persistent. MultiUserChatManager mucm=MultiUserChatManager.getInstanceFor(connection); muc=mucm.getMultiUserChat(groupid+"@conference.localhost"); DiscussionHistory histroy=new DiscussionHistory(); histroy.setMaxStanzas(10); muc.createOrJoin(username,null,histroy,SmackConfiguration.getDefaultPacketReplyTimeout()); muc.nextMessage(); when created with gajim, the rooms are persistent. EDIT : Here is code we used earlier. By default the chat rooms were persistent, muc = new MultiUserChat(connection, groupid+"@conference

How make video call with ejabberd?

冷暖自知 提交于 2019-12-03 16:22:17
How make video call with ejabberd ( like msn and skype ) ? ejabberd doesn't handle audio/video natively. Audio and video is handled through the Jingle (XEP-0166), which is client-to-client. If you want to place audio or video calls you should make sure both clients support Jingle through normal serivce discover means (see section 11 of XEP-0166). There aren't a lot of clients that do this right now, but Psi, at least, supports it in more recent builds. You can try using Jingle Nodes ( http://jinglenodes.org ) in combination with SIP Communicator which supports Audio and Video via Jingle