XMPP客户端无法接收脱机消息

时间:2017-01-19 06:16:21

标签: ejabberd

客户端无法接收离线消息,ejabberd服务器抛出异常。日志消息为:

[error] <0.677.0>@ejabberd_hooks:run_fold1:368 {function_clause,[{xmpp_codec,get_ns,[{xmlel,<<"message">>,[{<<"xmlns">>,<<"jabber:client">>},{<<"to">>,<<"bingo@im.com">>},{<<"from">>,<<"bingo4@im.com/2685976459613694105436">>},{<<"type">>,<<"chat">>}],[{xmlel,<<"delay">>,[{<<"xmlns">>,<<"urn:xmpp:delay">>},{<<"from">>,<<"im.com">>},{<<"stamp">>,<<"2017-01-18T18:28:45.851121Z">>}],[{xmlcdata,<<"Offline Storage">>}]},{xmlel,<<"body">>,[],[{xmlcdata,<<"2222222222">>}]}]}],[{file,"src/xmpp_codec.erl"},{line,6151}]},{xmpp,get_subtag,2,[{file,"src/xmpp.erl"},{line,405}]},{mod_offline,find_x_expire,2,[{file,"src/mod_offline.erl"},{line,537}]},{mod_offline,'-pop_offline_messages/3-fun-1-',2,[{file,"src/mod_offline.erl"},{line,586}]},{lists,'-filter/2-lc$^0/1-0-',2,[{file,"lists.erl"},{line,1286}]},{mod_offline,pop_offline_messages,3,[{file,"src/mod_offline.erl"},{line,582}]},{ejabberd_hooks,safe_apply,3,[{file,"src/ejabberd_hooks.erl"},{line,382}]},{ejabberd_hooks,run_fold1,4,[{file,"src/ejabberd_hooks.erl"},{line,365}]}]}
running hook: {resend_offline_messages_hook,[<<"bingo">>,<<"im.com">>]}

我的配置:

max_user_offline_messages:
    - 5000: poweruser
    - 2000: admin
    - 100


mod_offline:
    db_type: sql
    access_max_user_messages: max_user_offline_messages
    store_empty_body: true

配置错误或错误? ejabberd版本16.12

1 个答案:

答案 0 :(得分:0)

这是最近修复的一个ejabberd错误,将包含在17.01中