diff --git a/src/ejabberd_sm.erl b/src/ejabberd_sm.erl index b42746ea8..5c1323ef8 100644 --- a/src/ejabberd_sm.erl +++ b/src/ejabberd_sm.erl @@ -481,7 +481,7 @@ do_route(From, To, Packet) -> _ -> Err = jlib:make_error_reply( - Packet, ?ERR_RECIPIENT_UNAVAILABLE), + Packet, ?ERR_SERVICE_UNAVAILABLE), ejabberd_router:route(To, From, Err) end; _ ->