ejabberd

How does user1 (admin) submit presence subscription request from user2 to user 3 [closed]

让人想犯罪 __ 提交于 2019-12-25 04:58:16
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I hope it is possible because I couldn't find it anywhere on the web or in the XMPP/ejabberd docs: I run ejabberd and would like the ability for user1 (an administrator account) to be able to push a presence subscription request to user3 that appears to have come from user2. For security reasons I

XMPP: count of unread messages

二次信任 提交于 2019-12-25 04:16:03
问题 I'm trying to implement chat for my webapp with following features: When user logs in he should see a number of unread messages (which is both offline messages and "unseen", I will explain "unseen" in next step). When user is anywhere in the app but on chat window he should be notified that he has a new message. Message should be marked "unseen" and must be added to the count of unread messages. The first point is quite easily achieved using XEP-0013: Flexible Offline Message Retrieval. So I

Register a new user in ejabberd using Erlang

岁酱吖の 提交于 2019-12-25 03:45:19
问题 I am using erlang 17, ejabberd 14.07. I am trying to create chat application, For that I have to create user for ejabberd using Erlang. I have search but nothing found useful. There are three ways to do registration as far I have explored. Using command line From localhost Using other api Is there any method in ejabberd which help me to register new user? I am new in Erlang and ejabberd so it becomes useful to me if you describe step if any configuration required. 回答1: Do you mean that you

iOS - XMPPFramework - creating a group chatroom - Issue

☆樱花仙子☆ 提交于 2019-12-25 02:52:10
问题 I am developing a chat app in iOS. In XMPP server (Ejabberd in this case,I have enabled MUC ). I have registered a user and now trying to create a chatroom using an registered user. Also in MUC, the Host setting is defined properly {host, "conference.@HOST@"} But I am not able to create a chatroom The code I am using is below XMPPRoomCoreDataStorage *rosterstorage = [[XMPPRoomCoreDataStorage alloc] init]; NSString *jid =[[NSUserDefaults standardUserDefaults] valueForKey:@"UserName"]; jid=[jid

what does feature not implemented response mean

时间秒杀一切 提交于 2019-12-25 01:45:52
问题 I am trying to send a custom IQ to ejabberd server from android app and I have this following class public class IQCustom extends IQ { public final static String childElementName = "query"; public final static String childElementNamespace = "jabber:iq:conversations"; public IQCustom(String userFrom, String server) { super( childElementName, childElementNamespace ); this.setType(Type.get); setTo( server ); setFrom( userFrom ); } @Override protected IQChildElementXmlStringBuilder

Call to i:im() in application debugger failed in ejabberd

荒凉一梦 提交于 2019-12-24 21:18:20
问题 I'm trying to debug ejabberd. I have compiled the files with debug_info. I start ejabberd, then use ejabberd debug to get into the shell. Once in there, running im() produces "Call to i:im() in application debugger failed". I can't figure out what's causing this. Any ideas on how to debug? Edit I've tried running this in just the erl shell independent of ejabberd and it still fails. So it looks like it's related to my erlang setup as opposed to a problem with my ejabberd setup. 回答1: Foolish

Tsung connected users are not shown

别来无恙 提交于 2019-12-24 21:15:50
问题 I am trying to make load testing on xmpp ejabberd server using tsung.Every time i run my tsung.xml file no users are connected. here it's my tsung.xml file [root@chatting-server-test-2 .tsung]# vim tsung.xml <servers> <server host="localhost" port="5222" type="tcp"></server> </servers> <load> <arrivalphase phase="1" duration="3" unit="minute"> <users interarrival="1" unit="second"></users> </arrivalphase> </load> <options> <option type="ts_jabber" name="global_number" value="100"></option>

MUC configuration error : Couldn't find a field for the specified variable

 ̄綄美尐妖づ 提交于 2019-12-24 19:45:12
问题 I want to create group chat like whatsapp. i am using MUC service with ejabberd server. I have created group successfully but i unable to add member permanentantly in a group. I have also tried using send invitation and join group but it not work when user is offline. it is autometically remove user from group when it is offline. So i have tried belove code to add member in a group but it gives error : Couldn't find a field for the specified variable. Here is my code : EntityBareJid mucJid =

Getting bad request 400 error using asmack in android

ε祈祈猫儿з 提交于 2019-12-24 17:25:02
问题 I am trying to register a new user using my XMPP client using asmack library in Android on ejabberd server. The problem is that I am getting following error & the user is not being created on the server: bad-request(400) at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:243) at in.ui.MainActivity$1$1$1.run(MainActivity.java:316) at java.lang.Thread.run(Thread.java:841) Following is the code: _xmppUsername = XMPPConfig.getStringUserInfoValue (XMPPConfig.XMPP_CLIENT_ID)

How to resolve undef error in ejabberd hook

雨燕双飞 提交于 2019-12-24 14:52:54
问题 I have added a customized module named mod_confirm_delivery in ejabberd which has compiled and added successfully but when i am sending a message an error is coming in my ejabberd error log file, That is: 2016-03-15 17:03:38.306 [error] <0.2653.0>@ejabberd_hooks:run_fold1:368 {undef,[{mod_confirm_delivery,send_packet,[{xmlel,<<"iq">>,[{<<"xml:lang">>,<<"en">>},{<<"type">>,<<"get">>},{<<"id">>,<<"aacfa">>}],[{xmlcdata,<<"\n">>},{xmlel,<<"query">>,[{<<"xmlns">>,<<"jabber:iq:roster">>}],[]},