* src/ejabberd_s2s.erl: Don't bounce packets with "error" and

"result" type

SVN Revision: 747
This commit is contained in:
Alexey Shchepin 2007-03-17 23:02:06 +00:00
parent 3d7090f62c
commit 77282b0e1a
2 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2007-03-18 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_s2s.erl: Don't bounce packets with "error" and
"result" type
* src/ejabberd_s2s.erl: Fixed spelling
* src/ejabberd_s2s.erl: Don't start s2s process for existing

View File

@ -210,9 +210,14 @@ do_route(From, To, Packet) ->
send_element(Pid, {xmlelement, Name, NewAttrs, Els}),
ok;
{aborted, Reason} ->
Err = jlib:make_error_reply(
Packet, ?ERR_SERVICE_UNAVAILABLE),
ejabberd_router:route(To, From, Err),
case xml:get_tag_attr_s("type", Packet) of
"error" -> ok;
"result" -> ok;
_ ->
Err = jlib:make_error_reply(
Packet, ?ERR_SERVICE_UNAVAILABLE),
ejabberd_router:route(To, From, Err)
end,
false
end.