mod_sip: Omit documentation when SIP is disabled

Don't generate the actual mod_sip documentation if ejabberd is built
without SIP support.
This commit is contained in:
Holger Weiss 2020-01-11 20:34:11 +01:00
parent 6531fbb0f3
commit 919c9d6fb1
1 changed files with 4 additions and 2 deletions

View File

@ -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.