我必须将自定义 IQ 从eva@pc377/Smack
使用我自己的命名空间http://www.test.com/test
发送给特定用户bob@pc377/Smack
。当我使用 OpenFire 时一切正常,但 Ejabberd 不会将此 IQ 转发给用户。在我看到的日志文件中,服务器接收到 IQ,内部分派给会话管理器,但没有转发给用户。如果我发送一个Message
,它会被正确转发。我正在使用基于 Java 的 Smack-Client。
Ejabberd 是否需要特定配置来转发自定义 IQ?
=INFO REPORT==== 2013-09-11 13:55:36 ===
D(<0.658.0>:ejabberd_receiver:320) : Received XML on stream =
"<iq id=\"0j8w6-8\" to=\"bob@pc377/Smack\" type=\"set\">
<ts:register-request xmlns:ts=\"http://www.test.com/test\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">
<ts:node-id>550e8400-e29b-11d4-a716-446655440000</ts:node-id>
<ts:properties>
<ts:path>.</ts:path>
<ts:delivery-mode>1</ts:delivery-mode>
</ts:properties>
</ts:register-request>
</iq>"
=INFO REPORT==== 2013-09-11 13:55:36 ===
D(<0.659.0>:ejabberd_router:313) : route
from {jid,"eva","pc377","Smack","eva","pc377","Smack"}
to {jid,"bob","pc377","Smack","bob","pc377","Smack"}
packet {xmlelement,"iq",
[{"id","0j8w6-8"},
{"to","bob@pc377/Smack"},
{"type","set"}],
[{xmlelement,"ts:register-request",
[{"xmlns:ts","http://www.test.com/test"},
{"xmlns:xs","http://www.w3.org/2001/XMLSchema"},
{"xmlns:xsi",
"http://www.w3.org/2001/XMLSchema-instance"}],
[{xmlelement,"ts:node-id",[],
[{xmlcdata,
<<"550e8400-e29b-11d4-a716-446655440000">>}]},
{xmlelement,"ts:properties",[],
[{xmlelement,"ts:path",[],[{xmlcdata,<<".">>}]},
{xmlelement,"ts:delivery-mode",[],
[{xmlcdata,<<"1">>}]}]}]}]}
=INFO REPORT==== 2013-09-11 13:55:36 ===
D(<0.659.0>:ejabberd_local:300) : local route
from {jid,"eva","pc377","Smack","eva","pc377","Smack"}
to {jid,"bob","pc377","Smack","bob","pc377","Smack"}
packet {xmlelement,"iq",
[{"id","0j8w6-8"},{"to",[...]},{[...],...}],
[{xmlelement,[...],...}]}
=INFO REPORT==== 2013-09-11 13:55:36 ===
D(<0.659.0>:ejabberd_sm:411) : session manager
from {jid,"eva","pc377","Smack","eva","pc377","Smack"}
to {jid,"bob","pc377","Smack","bob","pc377","Smack"}
packet {xmlelement,"iq",
[{"id","0j8w6-8"},{"to",[...]},{[...],...}],
[{xmlelement,[...],...}]}
=INFO REPORT==== 2013-09-11 13:55:36 ===
D(<0.659.0>:ejabberd_sm:510) : sending to process <0.656.0>