summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-07-17 20:45:44 +0000
committerBadlop <badlop@process-one.net>2009-07-17 20:45:44 +0000
commit9df56399744becf808e45df39aff8c4b13ce7266 (patch)
tree779ba57b33c1b97fe39cc274435e70f7d68a6b6a /doc
parentFix updating pending subscriptions (EJAB-980) (diff)
Support XEP-0157: Contact Addresses for XMPP Services (EJAB-235)
SVN Revision: 2368
Diffstat (limited to 'doc')
-rw-r--r--doc/guide.html39
-rw-r--r--doc/guide.tex38
2 files changed, 72 insertions, 5 deletions
diff --git a/doc/guide.html b/doc/guide.html
index 50daeb69..2d1fb8ea 100644
--- a/doc/guide.html
+++ b/doc/guide.html
@@ -1958,6 +1958,7 @@ disabled for instances of <TT>ejabberd</TT> with hundreds of thousands users.</P
+
</P><P>This module adds support for Service Discovery (<A HREF="http://www.xmpp.org/extensions/xep-0030.html">XEP-0030</A>). With
this module enabled, services on your server can be discovered by
Jabber clients. Note that <TT>ejabberd</TT> has no modules with support
@@ -1969,8 +1970,16 @@ the services you offer.</P><P>Options:
<B><TT>iqdisc</TT></B></DT><DD CLASS="dd-description"> This specifies
the processing discipline for Service Discovery (<TT>http://jabber.org/protocol/disco#items</TT> and
<TT>http://jabber.org/protocol/disco#info</TT>) IQ queries (see section&#XA0;<A HREF="#modiqdiscoption">3.3.2</A>).
-</DD><DT CLASS="dt-description"><B><TT>extra_domains</TT></B></DT><DD CLASS="dd-description"> With this option,
-extra domains can be added to the Service Discovery item list.
+</DD><DT CLASS="dt-description"><B><TT>{extra_domains, [ Domain ]}</TT></B></DT><DD CLASS="dd-description"> With this option,
+you can specify a list of extra domains that are added to the Service Discovery item list.
+</DD><DT CLASS="dt-description"><B><TT>{server_info, [ {Modules, Field, [Value]} ]}</TT></B></DT><DD CLASS="dd-description">
+Specify additional information about the server,
+as described in Contact Addresses for XMPP Services (<A HREF="http://www.xmpp.org/extensions/xep-0157.html">XEP-0157</A>).
+<TT>Modules</TT> can be the keyword &#X2018;all&#X2019;,
+in which case the information is reported in all the services;
+or a list of <TT>ejabberd</TT> modules,
+in which case the information is only specified for the services provided by those modules.
+Any arbitrary <TT>Field</TT> and <TT>Value</TT> can be specified, not only contact addresses.
</DD></DL><P>Examples:
</P><UL CLASS="itemize"><LI CLASS="li-itemize">
To serve a link to the Jabber User Directory on <TT>jabber.org</TT>:
@@ -1996,6 +2005,28 @@ To serve a link to the Jabber User Directory on <TT>jabber.org</TT>:
"example.com"]}]},
...
]}.
+</PRE></LI><LI CLASS="li-itemize">With this configuration, all services show abuse addresses,
+feedback address on the main server,
+and admin addresses for both the main server and the vJUD service:
+<PRE CLASS="verbatim">{modules,
+ [
+ ...
+ {mod_disco, [{server_info, [
+ {all,
+ "abuse-addresses",
+ ["mailto:abuse@shakespeare.lit"]},
+ {[mod_muc],
+ "Web chatroom logs",
+ ["http://www.example.org/muc-logs"]},
+ {[mod_disco],
+ "feedback-addresses",
+ ["http://shakespeare.lit/feedback.php", "mailto:feedback@shakespeare.lit", "xmpp:feedback@shakespeare.lit"]},
+ {[mod_disco, mod_vcard],
+ "admin-addresses",
+ ["mailto:xmpp@shakespeare.lit", "xmpp:admins@shakespeare.lit"]}
+ ]}]},
+ ...
+ ]}.
</PRE></LI></UL><P> <A NAME="modecho"></A> </P><!--TOC subsection <TT>mod_echo</TT>-->
<H3 CLASS="subsection"><!--SEC ANCHOR --><A NAME="htoc42">3.3.5</A>&#XA0;&#XA0;<A HREF="#modecho"><TT>mod_echo</TT></A></H3><!--SEC END --><P> <A NAME="modecho"></A>
</P><P>This module simply echoes any Jabber
@@ -3275,6 +3306,10 @@ Starts the Erlang system detached from the system console.
Maximum number of Erlang processes.
</DD><DT CLASS="dt-description"><B><TT>-remsh ejabberd@localhost</TT></B></DT><DD CLASS="dd-description">
Open an Erlang shell in a remote Erlang node.
+</DD><DT CLASS="dt-description"><B><TT>-hidden</TT></B></DT><DD CLASS="dd-description">
+ The connections to other nodes are hidden (not published).
+ The result is that this node is not considered part of the cluster.
+ This is important when starting a temporary <TT>ctl</TT> or <TT>debug</TT> node.
</DD></DL><P>
Note that some characters need to be escaped when used in shell scripts, for instance <CODE>"</CODE> and <CODE>{}</CODE>.
You can find other options in the Erlang manual page (<TT>erl -man erl</TT>).</P><P> <A NAME="eja-commands"></A> </P><!--TOC section <TT>ejabberd</TT> Commands-->
diff --git a/doc/guide.tex b/doc/guide.tex
index 80bc0327..7c8466ee 100644
--- a/doc/guide.tex
+++ b/doc/guide.tex
@@ -2600,6 +2600,7 @@ disabled for instances of \ejabberd{} with hundreds of thousands users.
\ind{protocols!XEP-0030: Service Discovery}
\ind{protocols!XEP-0011: Jabber Browsing}
\ind{protocols!XEP-0094: Agent Information}
+\ind{protocols!XEP-0157: Contact Addresses for XMPP Services}
This module adds support for Service Discovery (\xepref{0030}). With
this module enabled, services on your server can be discovered by
@@ -2613,8 +2614,16 @@ Options:
\begin{description}
\iqdiscitem{Service Discovery (\ns{http://jabber.org/protocol/disco\#items} and
\ns{http://jabber.org/protocol/disco\#info})}
-\titem{extra\_domains} \ind{options!extra\_domains}With this option,
- extra domains can be added to the Service Discovery item list.
+\titem{\{extra\_domains, [ Domain ]\}} \ind{options!extra\_domains}With this option,
+ you can specify a list of extra domains that are added to the Service Discovery item list.
+\titem{\{server\_info, [ \{Modules, Field, [Value]\} ]\}} \ind{options!server\_info}
+ Specify additional information about the server,
+ as described in Contact Addresses for XMPP Services (\xepref{0157}).
+ \term{Modules} can be the keyword `all',
+ in which case the information is reported in all the services;
+ or a list of \ejabberd{} modules,
+ in which case the information is only specified for the services provided by those modules.
+ Any arbitrary \term{Field} and \term{Value} can be specified, not only contact addresses.
\end{description}
Examples:
@@ -2648,9 +2657,32 @@ Examples:
...
]}.
\end{verbatim}
+\item With this configuration, all services show abuse addresses,
+feedback address on the main server,
+and admin addresses for both the main server and the vJUD service:
+\begin{verbatim}
+{modules,
+ [
+ ...
+ {mod_disco, [{server_info, [
+ {all,
+ "abuse-addresses",
+ ["mailto:abuse@shakespeare.lit"]},
+ {[mod_muc],
+ "Web chatroom logs",
+ ["http://www.example.org/muc-logs"]},
+ {[mod_disco],
+ "feedback-addresses",
+ ["http://shakespeare.lit/feedback.php", "mailto:feedback@shakespeare.lit", "xmpp:feedback@shakespeare.lit"]},
+ {[mod_disco, mod_vcard],
+ "admin-addresses",
+ ["mailto:xmpp@shakespeare.lit", "xmpp:admins@shakespeare.lit"]}
+ ]}]},
+ ...
+ ]}.
+\end{verbatim}
\end{itemize}
-
\makesubsection{modecho}{\modecho{}}
\ind{modules!\modecho{}}\ind{debugging}