ejabberd

Error while starting ejabberd with xml_rpc

…衆ロ難τιáo~ 提交于 2019-12-08 08:09:55
问题 I try to configure xmlrpc in my ejabberd server but the server doesnt seem to start after configuring xmlrpc. My ejabberd config is : {listen,[ {{4560, "127.0.0.1"}, ejabberd_xmlrpc, [ {access_commands, [ %% This bot can only execute the command 'register', %% and if argument 'host' is provided, it must be "example.org": {xmlrpcaccess, [register], [{host, "myhost.com"}]} ]} ]}, //many modules added here ]}. {acl, xmlrpcbot, {user, "USER", "myhost.com"}}. {access, xmlrpcaccess, [{allow,

IOS Chat application using XMPP Protocol (ejabberd) Room chat issue

↘锁芯ラ 提交于 2019-12-08 07:47:15
问题 I am developing an IOS Chat application using XMPP Protocol(ejabberd). My chat room is created at my server, it return roomID to me. I am facing an issue in room/group chat. When i am sending a single message it is repeating more than once like 3 to 4 times.How to fix this. My code is here XMPPJID *roomJID = [XMPPJID jidWithString:[roomDict objectForKey:KEY_group_id]]; XMPPRoom *xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:xmppRoomCoreDataStorage jid:roomJID dispatchQueue:dispatch_get

iOS using XMPP connects to ejabberd failed

≡放荡痞女 提交于 2019-12-08 07:33:52
问题 I'm using https://github.com/robbiehanson/XMPPFramework to connect to my own ejabberd server, but it always failed after negotiation. here is the log I got: 2014-01-17 07:14:40.780 Chat[48246:70b] error: (null) 2014-01-17 07:14:40.789 Chat[48246:70b] xmppStreamWillConnect 2014-01-17 07:14:46.076 Chat[48246:70b] socketDidConnect 2014-01-17 07:14:46.077 Chat[48246:70b] xmppStreamDidStartNegotiation 2014-01-17 07:14:51.799 Chat[48246:70b] xmppStreamDidDisconnect: Error Domain

aSmack 4.0.* XMPPTCPConnection can't connect to OpenFire and Ejabbered (SmackException$NoResponseException)

房东的猫 提交于 2019-12-08 06:02:00
问题 I am using asmack-android-8-source-4.0.6 when i try to connect to the server whether it is openFire or Ejabbered i get this exception org.jivesoftware.smack.SmackException$NoResponseException here's my code: SmackAndroid.init(getApplicationContext()); ConnectionConfiguration conConfig = new ConnectionConfiguration(HOST, PORT); conConfig.setDebuggerEnabled(true); connection = new XMPPTCPConnection(conConfig); try { connection.connect(); Log.i("AppName", "CONNECTED TO " + connection.getHost());

Members cannot get member list in a muc room

混江龙づ霸主 提交于 2019-12-08 05:34:01
问题 I'm using IOS XMPPFramework for our chat application and I'm creating the group and adding the selected member with the below code, and receipants succesfully joins the group. And if I query the member list of that group admins succesfully retrieve the group's members but members cannot get the same list and instead they are receiving the below error: <iq xmlns="jabber:client" from="250034370263@conference.chat.meeapps.com.tr" to="16503312600@chat.meeapps.com.tr/15323458207749806891286" id=

Filtering message packet's body in ejabberd

谁说胖子不能爱 提交于 2019-12-08 02:03:30
问题 I am trying to filter undesired messages in ejabberd. I took some direction from this post. Here is the function snippet which gets executed via filter_packet hook: check_stanza({_From, _To, #xmlel{name = StanzaType}} = Input) -> AccessRule = case StanzaType of <<"message">> -> ?DEBUG("filtering packet...~nFrom: ~p~nTo: ~p~nPacket: ~p~nResult: ", [_From, _To, Input]), Input %check_stanza_type(AccessRule, Input) end. The packet printed in log : {{jid,<<"test25">>,<<"localhost">>,<<

How to stop ejabberd from using mnesia [closed]

☆樱花仙子☆ 提交于 2019-12-07 23:44:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm trying to establish a procedure for restoring my database from a crashed server to a new server. My server is running Ejabberd as an XMPP server, and I configured it to use postgresql instead of mnesia - or so I thought. My procedure goes something like "dump the contents of the original DB, run the new

Ejabberd user registration command fails with {error,access_rules_unauthorized}

蹲街弑〆低调 提交于 2019-12-07 23:35:36
问题 I've been trying to set up an XMPP server using ejabberd on windows. every time I try to register a user in ejabberd with this command: ejabberdctl register admin localhost admin it gives me this error: {error,access_rules_unauthorized} I've installed the ejabberd using its binary installer and according to "install.log" file, the installer also fails to create a user due to the same error. Part of the log file: E:\Program Files\ejabberd-16.08\bin>bash ejabberdctl register "admin" "localhost"

远程连接ejabberd的mnesia数据库

♀尐吖头ヾ 提交于 2019-12-07 20:11:03
由于服务器是server版本,所以很难直观的看到mnesia的数据。所以对于初学者来说非常的困惑。 特地在qq群中请教了别人。别人说只要pong通了就行,就能通过rpc去操作远程的mnesia数据库。初学者太懂这个意思。然后特地搜索了一下,终于搜到了别人关于两台erl节点服务器ping通的文章。 ok,接下来远程连接ejabber的mnesia数据库吧。 ejabberd默认节点是ejabberd@localhost,这种节点是无法正常ping通的。我也尝试修改ejabberdctl.cfg配置文件、hosts等文件去修改ejabberd节点。虽然成功,ejabberd能启动,但是停止命令无效。我没有深究这个问题。想直接对ejabberd的mnesia做连接。不管ejabberd的节点问题。 于是。。。 启动erlang的,并指定mnesia数据库的目录。 我在虚拟机上操作如下: $ erl -name 'csq@172.16.157.142 ' -mnesia dir '"/var/lib/ejabberd"' (ip为本机的ip,必须,否则不能ping通) ( csq@172.16.157.142 )> ( csq@172.16.157.142 )> auth:get_cookie(). (获取cookie) ( csq@172.16.157.142 )>

ejabberd 安装报错问题

こ雲淡風輕ζ 提交于 2019-12-07 20:10:52
安装ejabberd的时候出现: 1、configure: error: Could not find development files of libyaml library 解决: ubuntu: sudo apt-get install libyaml-dev 2、configure: error: Could not find development files of Expat library 解决: ubuntu: sudo apt-get install libexpat-dev 可能还会报关于ssl的错。 总结: 安装ejabberd之前,先安装这些库。 git clone https://github.com/processone/ejabberd apt-get install libyaml-dev apt-get install libexpat-dev apt-get install openssl apt-get install libssl-dev apt-get install libgd-dev apt-get install libwebp-dev 来源: oschina 链接: https://my.oschina.net/u/167181/blog/528008