【问题标题】:ejabberd hook execution error while trying building a message receipts module尝试构建消息回执模块时出现 ejabberd 挂钩执行错误
【发布时间】:2015-09-30 14:45:07
【问题描述】:

我在尝试从服务器返回回执消息以确认在我使用非官方模块 (mod_stanza_ack) 和 ejabberd 15.07 的服务器上收到的消息时遇到错误。

我也编译配置成功了,但是在ejabberd hook执行过程中报错:

@ejabberd_hooks:run_fold1:371 {undef,[{mod_send_receipt,on_user_send_packet,[{xmlel,<<"message">>,[{<<"id">>,<<"6uAAO-218">>}.....

【问题讨论】:

    标签: module ejabberd


    【解决方案1】:

    undef 表示函数mod_send_receipt:on_user_send_packet

    我看到了可能的原因:

    • 源文件未编译(例如由于语法错误)
    • 或者生成的 .beam 文件不在您的 Erlang VM 代码路径中
    • 或者你的模块中实际上没有定义函数

    您需要相应地修复您的模块或将 .beam 文件放在正确的位置。

    【讨论】:

      猜你喜欢
      • 2013-11-21
      • 2020-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多