【问题标题】:File transfer using ejabberd使用 ejabberd 进行文件传输
【发布时间】:2015-07-30 18:43:48
【问题描述】:

我有一个使用 ejabberd2 的聊天应用程序。现在,我需要通过聊天消息传输文件。我只是在ejabberd.cfg文件中配置mod_proxy65并打开端口7777。但发送文件失败。

myejabberd.cfg 设置

{mod_proxy65,  [
                  {ip, {118,132,178,95}},
                  {name, "SOCKS5 Bytestreams"},
                  {host, "proxy.amadoa.org"}
                 ]},

有人知道我如何在 ejabberd2 中启用mod_proxy65 吗?我需要在这里安装任何额外的模块吗?

非常感谢您的帮助。谢谢

【问题讨论】:

  • 文件传输失败究竟会发生什么?尝试捕获涉及的 xmpp 节。它可能会揭示根本原因。
  • 嗨 Vks :我可以和你聊天吗chat.stackoverflow.com/rooms/64981/ejabberd-with-mysql
  • @vks,您好 vks,您是否得到了发送文件的答案。如果是,请发布答案。遇到同样的问题

标签: xmpp ejabberd


【解决方案1】:

大多数人将主机与主机名 ejabberd 配置混淆,主机名是您应该提供公共 IP 或 www.domain.com 的位置,其中主机是您为 ejabberd 服务器提供的逻辑名称;它默认为 proxy.domain.com,

而且IP地址是Ejabberd监听的接口IP,所以应该是本地地址。 Llike:192.168.1.10 监听一个接口,0.0.0.0 监听所有接口,127.0.0.1 只允许本地文件传输。

对我有用的配置示例:

{mod_proxy65,  [
                  {host, "proxy.domain.com"}, %% defines the Jabber ID of service. If not specified, Jabber ID will be hostname of  the virtual host with the prefix 'proxy'.

                  %%{ip, {192,168,1,90}}, %% this line works, or use the below line
                  {ip, {0,0,0,0}}, %% 127.0.0.1 by default, make it 0.0.0.0 to listen on all interfaces, or the ip of specific interface

                  {hostname, "www.domain.com"}, % useful service run behind a NAT. default is value of ip option. Ex: "proxy.mydomain.org", "200.150.100.50"
                  {port, 7777}, %% Default, we don't need to add
                  {access, all}, %% Default, we don't need to add
                  {shaper, c2s_shaper}
                 ]},

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-02-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-24
    • 2014-11-10
    • 1970-01-01
    相关资源
    最近更新 更多