aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2020-01-11 20:34:11 +0100
committerHolger Weiss <holger@zedat.fu-berlin.de>2020-01-11 20:34:11 +0100
commit919c9d6fb1bea9f19551a7d5d7204a769a621a3e (patch)
treea60b7ac20e992da592e4bf7f13fe48ff85b79de1
parentmod_sip: Fix compilation without SIP support (diff)
mod_sip: Omit documentation when SIP is disabled
Don't generate the actual mod_sip documentation if ejabberd is built without SIP support.
-rw-r--r--src/mod_sip.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mod_sip.erl b/src/mod_sip.erl
index f81ab006b..6a63b2b05 100644
--- a/src/mod_sip.erl
+++ b/src/mod_sip.erl
@@ -40,6 +40,8 @@ depends(_, _) ->
[].
mod_options(_) ->
[].
+mod_doc() ->
+ #{desc => [?T("SIP support has not been enabled.")]}.
-else.
-behaviour(gen_mod).
-behaviour(esip).
@@ -374,8 +376,6 @@ mod_options(Host) ->
{routes, [Route]},
{via, []}].
--endif.
-
mod_doc() ->
#{desc =>
[?T("This module adds SIP proxy/registrar support "
@@ -451,3 +451,5 @@ mod_doc() ->
" - tcp://sip-tcp.example.com:5060",
" - udp://sip-udp.example.com:5060",
" ..."]}.
+
+-endif.