Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2005-04-02 02:43:47 +0400
committerAlexey Shchepin <alexey@process-one.net>2005-04-02 02:43:47 +0400
commitbaa1cfada594ce00a952d79a053761dcb5f18a4e (patch)
treed1f8e1959de3baeecf83284d4e9ca1a1cac7209b /examples
parenta12bded165e616a1cb97dea3f3bfc9a4c2b2dbcd (diff)
* examples/transport-configs/: Updated (thanks to Sander Devrieze)
SVN Revision: 302
Diffstat (limited to 'examples')
-rw-r--r--examples/transport-configs/configs/aim-transport.xml77
-rw-r--r--examples/transport-configs/configs/ile.xml136
-rw-r--r--examples/transport-configs/configs/jabber-gg-transport.xml149
-rw-r--r--examples/transport-configs/configs/jit.xml128
-rw-r--r--examples/transport-configs/configs/msn-transport.xml118
-rw-r--r--examples/transport-configs/configs/yahoo-transport-2.xml86
-rwxr-xr-xexamples/transport-configs/init-scripts/aim-transport45
-rwxr-xr-xexamples/transport-configs/init-scripts/ile43
-rwxr-xr-xexamples/transport-configs/init-scripts/jabber-gg-transport48
-rwxr-xr-xexamples/transport-configs/init-scripts/jit45
-rwxr-xr-xexamples/transport-configs/init-scripts/msn-transport50
-rwxr-xr-xexamples/transport-configs/init-scripts/yahoo-transport-245
12 files changed, 970 insertions, 0 deletions
diff --git a/examples/transport-configs/configs/aim-transport.xml b/examples/transport-configs/configs/aim-transport.xml
new file mode 100644
index 000000000..41804c69d
--- /dev/null
+++ b/examples/transport-configs/configs/aim-transport.xml
@@ -0,0 +1,77 @@
+<!-- aim-transport.xml -->
+
+<jabber>
+
+ <!--
+ You need to add elogger and rlogger entries when using ejabberd.
+ In this case the transport will do the logging.
+ -->
+
+ <log id='elogger'>
+ <host/>
+ <logtype/>
+ <format>%d: [%t] (%h): %s</format>
+ <file>/var/log/jabber/aim-transport-error.log</file>
+ </log>
+
+ <log id='rlogger'>
+ <host/>
+ <logtype>record</logtype>
+ <format>%d %h %s</format>
+ <file>/var/log/jabber/aim-transport-record.log</file>
+ </log>
+
+ <!--
+ ejabberd do not provide XDB services.
+ xdb_file.so is loaded in to handle all XDB requests.
+ -->
+
+ <xdb id="xdb">
+ <host/>
+ <load>
+ <xdb_file>/usr/local/lib/jabber/libjabberdxdbfile.so</xdb_file> <!-- This file is part of jabberd-1.4.x. -->
+ </load>
+ <xdb_file xmlns="jabber:config:xdb_file">
+ <spool><jabberd:cmdline flag='s'>/var/spool/jabber</jabberd:cmdline></spool>
+ </xdb_file>
+ </xdb>
+
+ <!--
+ Make sure that all host names here are resolveable via DNS if you
+ want the transport to be available to the public.
+ -->
+
+ <service id='aim.SERVER.COM'>
+ <!-- aim-transport configuration. -->
+ <aimtrans xmlns='jabber:config:aimtrans'>
+ <vCard>
+ <FN>AIM/ICQ Transport</FN>
+ <DESC>This is the AIM/ICQ Transport.</DESC>
+ <MAIL>EMAIL@ADDRESS.COM</MAIL>
+ <URL>http://aim-transport.jabberstudio.org/</URL>
+ </vCard>
+ <charset>cp1252</charset>
+ </aimtrans>
+ <!-- aim-transport module. -->
+ <load>
+ <aim_transport>/usr/local/lib/jabber/aim-transport.so</aim_transport>
+ </load>
+ </service>
+
+ <!--
+ The settings below have to match the settings you made
+ in your ejabberd.cfg configuration file.
+ -->
+
+ <service id="icq-linker">
+ <uplink/>
+ <connect>
+ <ip>127.0.0.1</ip>
+ <port>5233</port>
+ <secret>SECRET</secret>
+ </connect>
+ </service>
+
+ <pidfile>/var/run/jabber/aim-transport.pid</pidfile>
+
+</jabber>
diff --git a/examples/transport-configs/configs/ile.xml b/examples/transport-configs/configs/ile.xml
new file mode 100644
index 000000000..5999f0fbd
--- /dev/null
+++ b/examples/transport-configs/configs/ile.xml
@@ -0,0 +1,136 @@
+<!-- ile.xml -->
+
+<config>
+ <jabber>
+ <server>127.0.0.1</server>
+ <port>5238</port>
+ <secret>SECRET</secret>
+ <service>ile.SERVER.COM</service>
+ <connectsleep>7</connectsleep> <!-- seconds to wait if we get disconnected -->
+ <language>en</language>
+ <vCard>
+ <FN>I Love Email</FN>
+ <DESC>With this service you can receive email notifications.
+
+Security warning: Be careful when using this. Your password will travel in clear from your client to your jabber server if you don't use SSL and it will probably travel in clear from the jabber server to your email server. Use with care. This shouldn't be an issue in your Intranet, but it is if you use an ILE installed in a foreign jabber server.</DESC>
+ <MAIL>EMAIL@ADDRESS.COM</MAIL>
+ <URL>http://ile.jabberstudio.org/</URL>
+ </vCard>
+ </jabber>
+
+ <debug>
+ <file>/var/log/jabber/ile.log</file>
+ <level>1</level> <!-- man Net::Jabber::Debug -->
+ </debug>
+
+ <mail>
+ <checkinterval>10</checkinterval> <!-- in minutes -->
+ <timeout>20</timeout> <!-- timeout for IMAP/POP connection, in seconds -->
+ </mail>
+
+ <files>
+ <users>/var/spool/jabber/ile.SERVER.COM/users.db</users>
+ <passwords>/var/spool/jabber/ile.SERVER.COM/passwords.db</passwords>
+ <hosts>/var/spool/jabber/ile.SERVER.COM/hosts.db</hosts>
+ <types>/var/spool/jabber/ile.SERVER.COM/types.db</types>
+ <notifyxa>/var/spool/jabber/ile.SERVER.COM/notifyxa.db</notifyxa>
+ <notifydnd>/var/spool/jabber/ile.SERVER.COM/notifydnd.db</notifydnd>
+ <urls>/var/spool/jabber/ile.SERVER.COM/urls.db</urls>
+ </files>
+
+ <form>
+ <en>
+ <instructions>Please fill in the fields,according to your email account settings and notification preferences</instructions>
+ <title>ILE: Email notification service</title>
+ <email_options>Email account settings</email_options>
+ <user>Username</user>
+ <pass>Password</pass>
+ <host>Hostname</host>
+ <type>Type</type>
+ <newmail>You have received NUM email messages since last time I checked, which was CHECKINTERVAL minutes ago.</newmail>
+ <errorcheck>There was an error while trying to check mail for ACCOUNT.</errorcheck>
+ <notify_options>Notification Options</notify_options>
+ <notifyxa>Notify even when Xtended Away (XA)</notifyxa>
+ <notifydnd>Notify even when Do Not Disturb (DND)</notifydnd>
+ <webmail_url>Webmail URL</webmail_url>
+ <webmail_login>Login to ACCOUNT</webmail_login>
+ <iledesc>ILE: an email notifier component: http://ile.jabberstudio.org</iledesc>
+ </en>
+
+ <es>
+ <instructions>Por favor, rellene los campos del formulario.</instructions>
+ <title>ILE: Servicio de notificación de correo</title>
+ <email_options>Configuración de la cuenta de correo</email_options>
+ <user>Usuario</user>
+ <pass>Clave</pass>
+ <host>Host</host>
+ <type>Tipo</type>
+ <newmail>Ha recibido NUM email(s) desde la última comprobación que fue hace CHECKINTERVAL minutos</newmail>
+ <errorcheck>Ha habido un error en la comprobación del correo para la cuenta ACCOUNT.</errorcheck>
+ <notify_options>Opciones de notificación</notify_options>
+ <notifyxa>Notificar incluso si muy ausente (XA)</notifyxa>
+ <notifydnd>Notificar incluso si no molestar (DND)</notifydnd>
+ <webmail_url>Webmail URL</webmail_url>
+ <webmail_login>Leer correo de ACCOUNT</webmail_login>
+ <iledesc>ILE: un notificador de nuevo email - http://ile.jabberstudio.org</iledesc>
+ </es>
+
+ <ca>
+ <instructions>Ompli els camps del formulari.</instructions>
+ <title>ILE: Servei de notificació de nou email</title>
+ <email_options>Dades del compte de mail</email_options>
+ <user>Usuari</user>
+ <pass>Clau</pass>
+ <host>Host</host>
+ <type>Tipus</type>
+ <newmail>Ha rebut NUM email(s) des de la última comprobació que va ser fa CHECKINTERVAL minuts.</newmail>
+ <errorcheck>S'ha produit un error en la comprobació del correu per al compte ACCOUNT.</errorcheck>
+ <notify_options>Opcions de notificació</notify_options>
+ <notifyxa>Notificar si molt absent (XA)</notifyxa>
+ <notifydnd>Notificar si no molestar (DND)</notifydnd>
+ <webmail_url>Webmail URL</webmail_url>
+ <webmail_login>Llegir correu de ACCOUNT</webmail_login>
+ <iledesc>ILE: un notificador de nou email - http://ile.jabberstudio.org</iledesc>
+ </ca>
+
+ <ro>
+ <!-- Contributed by Adrian Rappa -->
+ <instructions>Va rog completati urmatoarele campuri</instructions>
+ <title>I Love Email: new email notification service</title>
+ <email_options>Email account settings</email_options>
+ <user>Nume utilizator</user>
+ <pass>Parola</pass>
+ <host>Nume gazda</host>
+ <type>Tip</type>
+ <newmail>Ati primit NUM mesaj(e) de la ultima verificare, care a fost acum CHECKINTERVAL minute.</newmail>
+ <errorcheck>A fost eroare in timp ce incercam sa verific posta pentru ACCOUNT.</errorcheck>
+ <notify_options>Notification Options</notify_options>
+ <notifyxa>Notify even when Xtended Away (XA)</notifyxa>
+ <notifydnd>Notify even when Do Not Disturb (DND)</notifydnd>
+ <webmail_url>Webmail URL</webmail_url>
+ <webmail_login>Login to ACCOUNT</webmail_login>
+ <iledesc>ILE: an email notifier component: http://ile.jabberstudio.org</iledesc>
+ </ro>
+
+ <nl>
+ <!-- Contributed by Sander Devrieze -->
+ <instructions>Vul volgende velden in.</instructions>
+ <title>ILE: Dienst voor e-mailnotificaties</title>
+ <email_options>Instellingen van e-mailaccount</email_options>
+ <user>Gebruikersnaam</user>
+ <pass>Wachtwoord</pass>
+ <host>Inkomende mailserver</host>
+ <type>Type verbinding</type>
+ <newmail>U hebt NUM berichten ontvangen sinds CHECKINTERVAL minuten geleden.</newmail>
+ <errorcheck>Fout tijdens controle op nieuwe e-mails bij ACCOUNT. ILE zal deze account niet meer opnieuw controleren tot u uw registratiegegevens wijzigt of opnieuw aanmeldt.</errorcheck>
+ <notify_options>Notificatie-instellingen</notify_options>
+ <notifyxa>Notificeer ook in de status Niet Beschikbaar (XA)</notifyxa>
+ <notifydnd>Notificeer ook in de status Niet Storen (DND)</notifydnd>
+ <webmail_url>URL van webmail</webmail_url>
+ <webmail_login>Aanmelden op ACCOUNT</webmail_login>
+ <iledesc>ILE: een dienst om e-mailnotificaties te ontvangen: http://ile.jabberstudio.org</iledesc>
+ </nl>
+
+ </form>
+
+</config> \ No newline at end of file
diff --git a/examples/transport-configs/configs/jabber-gg-transport.xml b/examples/transport-configs/configs/jabber-gg-transport.xml
new file mode 100644
index 000000000..39d8c0b64
--- /dev/null
+++ b/examples/transport-configs/configs/jabber-gg-transport.xml
@@ -0,0 +1,149 @@
+<jggtrans>
+
+ <service jid="gg.SERVER.COM"/>
+
+ <!-- This connects the jabber-gg-transport process to ejabberd. -->
+ <connect id="gglinker">
+ <ip>127.0.0.1</ip>
+ <port>5237</port>
+ <secret>SECRET</secret>
+ </connect>
+
+ <register>
+ <!-- This tag contains the message displayed to users at registration time.
+ You can use <p/> and/or <br/> to break lines. Multiple spaces and newlines
+ are converted to just one, so formatting of config file doesn't really matter. -->
+ <instructions>
+ Fill in your GG number (after "username")
+ and password to register on the transport.
+ <p/>To change your information in the GaduGadu directory you need to fill in the other fields.
+ <p/>To remove registration you need to leave the form blank.
+ </instructions>
+ </register>
+
+ <search>
+ <!-- This tag contains the message displayed to users at search time. -->
+ <instructions>
+ To search people:<br/>
+ First fill in surname or family name, nickname, city, birthyear or range of birthyears (eg. 1950-1960)
+ and gender (you may fill in more fields at once).<br/>
+ or<br/>
+ Fill in phone number<br/>
+ or<br/>
+ Fill in the GG number of the person you are searching.
+ </instructions>
+ </search>
+
+ <gateway>
+ <!-- This is message, that may be displayed to user when adding gg contact. -->
+ <desc>Please fill in the GaduGadu number of the person you want to add.</desc>
+ <!-- And this is the prompt for GG number. -->
+ <prompt>GG Nummer</prompt>
+ </gateway>
+
+ <vCard>
+ <FN>Gadu-Gadu Transport</FN>
+ <DESC>This is the Gadu-Gadu Transport.</DESC>
+ <EMAIL>EMAIL@ADDRESS.COM</EMAIL>
+ <URL>http://www.jabberstudio.org/projects/jabber-gg-transport/</URL>
+ </vCard>
+
+ <!-- Default user locale (language).
+ Empty means system locale setting,
+ no (or commented-out) <default_locale> tag means no translations. -->
+ <!-- <default_locale>pl_PL</default_locale> -->
+
+ <!-- Logger configuration.
+ You may configure one logger of type "syslog" and/or one of type "file".
+ You may also not configure logging at all. -->
+ <log type="syslog" facility="local0"/>
+ <log type="file">/var/log/jabber/jabber-gg-transport.log</log>
+
+ <!-- Uncomment this, if you want proxy to be used for Gadu-Gadu connection. -->
+ <!--
+ <proxy>
+ <ip>127.0.0.1</ip>
+ <port>8080</port>
+ </proxy>
+ -->
+
+ <!-- You can change these values according to your needs. -->
+ <conn_timeout>60</conn_timeout>
+ <ping_interval>10</ping_interval>
+
+ <!-- Gadu-Gadu server doesn't seem to answer pings anymore :-(
+ So let's give it 10 year :-) -->
+ <pong_timeout>315360000</pong_timeout>
+
+ <!-- This time after disconnection from Gadu-Gadu server the transport
+ will try to connect again. -->
+ <reconnect>300</reconnect>
+
+ <!-- How long to wait before restart, after jabber server connection is broken
+ negative value means, that jggtrans should terminate. -->
+ <restart_timeout>60</restart_timeout>
+
+ <!-- Delay between the unavailable presence is received from user and loggin out
+ from Gadu-Gadu - for nice <presence type="invisible"/> support. -->
+ <disconnect_delay>5</disconnect_delay>
+
+ <!-- list of Gadu-Gadu servers to use.
+ <hub/> means "use GG hub to find server"
+ <server/> tag should contain server address and may contain "port"
+ attribute with port number. When TLS is available (supported by libgadu)
+ it will be used unless "tls" attribute is set to "no". Please notice,
+ that not all servers will accept TLS connections.
+ Servers (including hub) are tried in order as they appear in <servers/>
+ element.
+ A reasonable default server list is hardcoded in jggtrans.
+ -->
+ <!--
+ <servers>
+ <hub/>
+ <server port="443">217.17.41.90</server>
+ <server tls="no">217.17.41.85</server>
+ <server tls="no">217.17.41.88</server>
+ </servers>
+ -->
+
+ <!-- Spool directory. This is the place, where user info will be stored. -->
+ <!-- Be careful about permissions - users' Gadu-Gadu passwords are stored there. -->
+ <spool>/var/spool/jabber/gg.SERVER.COM/</spool>
+
+ <!-- Where to store pid file. This tag is optional. -->
+ <pidfile>/var/run/jabber/jabber-gg-transport.pid</pidfile>
+
+ <!-- jid allowed to do some administrative task (eg. discovering online users).
+ May be used multiple times. -->
+ <admin>GG_TRANSPORT_ADMIN@SERVER.COM</admin>
+
+ <!-- ACL gives detailed access control to the transport. -->
+ <acl>
+ <!-- Example entries: -->
+
+ <allow who="admin@SERVER.COM" what="iq/query?xmlns=http://jabber.org/protocol/stats"/>
+ <!-- will allow statistics gathering to admin@SERVER.COM -->
+
+ <deny who="*" what="iq/query?xmlns=http://jabber.org/protocol/stats"/>
+ <!-- will deny statistics gathering for anybody else -->
+
+ <!-- <allow who="*@SERVER.COM"/> -->
+ <!-- will allow anything else to users from "SERVER.COM" -->
+
+ <!-- <deny what="iq/query?xmlns=jabber:x:register"/> -->
+ <!-- will deny registration for all other users -->
+
+ <!-- <allow what="presence"/> -->
+ <!-- allow presence from anybody -->
+
+ <!-- <allow what="iq"/> -->
+ <!-- allow iq from anybody -->
+
+ <!-- <allow what="message"/> -->
+ <!-- allow message from anybody -->
+
+ <!-- <deny/> -->
+ <!-- will deny anything else -->
+ </acl>
+
+</jggtrans>
diff --git a/examples/transport-configs/configs/jit.xml b/examples/transport-configs/configs/jit.xml
new file mode 100644
index 000000000..c0d78c40a
--- /dev/null
+++ b/examples/transport-configs/configs/jit.xml
@@ -0,0 +1,128 @@
+<!-- jit.xml -->
+
+<jabber>
+
+ <!--
+ You need to add elogger and rlogger entries here when using ejabberd.
+ In this case the transport will do the logging.
+ -->
+
+ <log id='elogger'>
+ <host/>
+ <logtype/>
+ <file>/var/log/jabber/jit-error</file> <!-- WPJabber logs with date. -->
+ </log>
+
+ <log id='rlogger'>
+ <host/>
+ <logtype>record</logtype>
+ <file>/var/log/jabber/jit-record</file> <!-- WPJabber logs with date. -->
+ </log>
+
+ <!--
+ ejabberd do not provide XDB services.
+ xdb_file-jit.so (the renamed xdb_file.so from WPJabber) is
+ loaded in to handle all XDB requests.
+ Read also the documentation in xdb_file/README from the JIT package.
+ -->
+
+ <xdb id="xdb">
+ <host/>
+ <load>
+ <xdb_file>/usr/local/lib/jabber/xdb_file.so</xdb_file> <!-- The xdb_file.so from WPJabber/JIT. -->
+ </load>
+ <xdb_file xmlns="jabber:config:xdb_file">
+ <spool><jabberd:cmdline flag='s'>/var/spool/jabber</jabberd:cmdline></spool>
+ </xdb_file>
+ </xdb>
+
+ <!--
+ Make sure that all host names here are resolveable via DNS if you
+ want the transport to be available to the public.
+ -->
+
+ <service id="icq.SERVER.COM">
+ <!--
+ Replace SERVER.COM with the same as above to enable sms.
+ -->
+ <host>sms.icq.SERVER.COM</host>
+ <!-- JIT configuration. -->
+ <icqtrans xmlns="jabber:config:icqtrans">
+ <sms>
+ <host>sms.icq.SERVER.COM</host>
+ <!-- Status of virtual "sms-contacts". -->
+ <show>away</show>
+ <status/>
+ </sms>
+ <instructions>Fill in your UIN and password.</instructions>
+ <search>Search ICQ users.</search>
+ <vCard>
+ <FN>ICQ Transport (JIT)</FN>
+ <DESC>This is the Jabber ICQ Transport.</DESC>
+ <MAIL>EMAIL@ADDRESS.COM</MAIL>
+ <URL>http://jit.jabberstudio.org/</URL>
+ </vCard>
+ <!-- Hashtable for users. -->
+ <prime>3907</prime>
+ <!-- Send messages from ICQ as chat to Jabber clients. -->
+ <chat/>
+ <!-- Enable this for ICQ web presence. -->
+ <web/>
+ <!--
+ If you don't want jabber:x:data forms
+ in reg and search uncomment this tag
+ (Not recomended).
+ -->
+ <no_xdata/>
+ <!--
+ This tag is necessary when using ejabberd.
+ In this way JIT will have its own contact list.
+ -->
+ <own_roster/>
+ <!--
+ When present, this tag will tell JIT not to try to
+ get the user's roster (which will take a bit of time
+ to fail in scenarios described above).
+ -->
+ <no_jabber_roster/>
+ <!-- File with stats. -->
+ <user_count_file>/var/spool/jabber/jit-count</user_count_file>
+ <!--
+ Interval beetween checking sessions: ping, messages, acks.
+ -->
+ <session_check>5</session_check>
+ <!-- Reconnect retries. -->
+ <reconnects>5</reconnects>
+ <!--
+ Time in sec when session can be inactive, 0=disabled.
+ -->
+ <session_timeout>18000</session_timeout>
+ <charset>windows-1252</charset>
+ <server>
+ <host port="5190">login.icq.com</host>
+ </server>
+ </icqtrans>
+ <!-- JIT module. -->
+ <load>
+ <icqtrans>/usr/local/lib/jabber/jit.so</icqtrans>
+ </load>
+ </service>
+
+ <!--
+ The settings below have to match the settings you made
+ in your ejabberd.cfg configuration file.
+ -->
+
+ <service id="icq-linker">
+ <host>SERVER.COM</host>
+ <uplink/>
+ <connect>
+ <ip>127.0.0.1</ip>
+ <port>5234</port>
+ <secret>SECRET</secret>
+ </connect>
+ </service>
+
+ <pidfile>/var/run/jabber/jit.pid</pidfile>
+
+</jabber>
diff --git a/examples/transport-configs/configs/msn-transport.xml b/examples/transport-configs/configs/msn-transport.xml
new file mode 100644
index 000000000..3ab9972bf
--- /dev/null
+++ b/examples/transport-configs/configs/msn-transport.xml
@@ -0,0 +1,118 @@
+<!-- msn-transport.xml -->
+
+<jabber>
+
+ <!--
+ You need to add elogger and rlogger entries here when using ejabberd.
+ In this case the transport will do the logging.
+ -->
+
+ <log id='elogger'>
+ <host/>
+ <logtype/>
+ <format>%d: [%t] (%h): %s</format>
+ <file>/var/log/jabber/msn-transport-error.log</file>
+ </log>
+
+ <log id='rlogger'>
+ <host/>
+ <logtype>record</logtype>
+ <format>%d %h %s</format>
+ <file>/var/log/jabber/msn-transport-record.log</file>
+ </log>
+
+ <!--
+ ejabberd do not provide XDB services.
+ xdb_file.so is loaded in to handle all XDB requests.
+ -->
+
+ <xdb id="xdb">
+ <host/>
+ <load>
+ <xdb_file>/usr/local/lib/libjabberdxdbfile.so</xdb_file>
+ </load>
+ <xdb_file xmlns="jabber:config:xdb_file">
+ <spool><jabberd:cmdline flag='s'>/var/spool/jabber</jabberd:cmdline></spool>
+ </xdb_file>
+ </xdb>
+
+ <!--
+ Make sure that all host names here are resolveable via DNS if you
+ want the transport to be available to the public.
+ -->
+
+ <service id="msn.SERVER.COM">
+ <!-- msn-transport configuration. -->
+ <msntrans xmlns="jabber:config:msntrans">
+ <instructions>Fill in your MSN account and password (eg: user1@hotmail.com). A nickname is optional.</instructions>
+ <vCard>
+ <FN>MSN Transport</FN>
+ <DESC>This is the MSN Transport.</DESC>
+ <EMAIL>EMAIL@ADDRESS.COM</EMAIL>
+ <URL>http://msn-transport.jabberstudio.org/</URL>
+ </vCard>
+ <!--
+ Conference support allows you to create groupchat rooms on the
+ msn-transport and invite MSN users to join.
+ -->
+ <conference id="conference.msn.SERVER.COM">
+ <!--
+ This will make MSN transport invite you to a special groupchat
+ room when more then one user joins a normal one-on-one session.
+ Joining this room will make MSN transport "switch" the session
+ into groupchat mode. If you ignore it, MSN transport will
+ continue to send the messages as one-on-one chats.
+ -->
+ <invite>More than one user entered this chat session. Enter this room to switch to groupchat modus.</invite>
+ <notice>
+ <join> is available</join>
+ <leave> has leaved the room</leave>
+ </notice>
+ </conference>
+ <!-- Enable Hotmail inbox notification. -->
+ <headlines/>
+ <!--
+ Enable fancy friendly names
+ If the user enters a nickname upon registration, and the user has
+ a status message, their MSN friendly name will be "nickname - status message".
+
+ If the user does not enter a nickname on registration, but they do have
+ a status message, their friendly name will just be their status message.
+
+ If the user did enter a nickname on registration, but they have a blank status message,
+ then their friendly name will just be the registered nickname.
+
+ If the user did not enter a nickname on registration, and they have a blank status message,
+ their nickname will just be the username portion of their JID.
+
+ If the above chosen friendly name is too long, then it will be truncated and "..." placed
+ at the end. MSN only supports friendly names of 128 characters, so this is unavoidable.
+
+ If this is disabled, then the registered nick is always sent as the MSN friendly name,
+ or if that is blank, the username portion of their JID is sent instead.
+ -->
+ <fancy_friendly/>
+ </msntrans>
+ <!-- msn-transport module. -->
+ <load>
+ <msntrans>/usr/local/lib/jabber/msn-transport.so</msntrans>
+ </load>
+ </service>
+
+ <!--
+ The settings below have to match the settings you made
+ in your ejabberd.cfg configuration file.
+ -->
+
+ <service id="msn-linker">
+ <uplink/>
+ <connect>
+ <ip>127.0.0.1</ip>
+ <port>5235</port>
+ <secret>SECRET</secret>
+ </connect>
+ </service>
+
+ <pidfile>/var/run/jabber/msn-transport.pid</pidfile>
+
+</jabber>
diff --git a/examples/transport-configs/configs/yahoo-transport-2.xml b/examples/transport-configs/configs/yahoo-transport-2.xml
new file mode 100644
index 000000000..2d077aa7a
--- /dev/null
+++ b/examples/transport-configs/configs/yahoo-transport-2.xml
@@ -0,0 +1,86 @@
+<!-- yahoo-transport-2.xml -->
+
+<jabber>
+
+ <!--
+ You need to add the elogger entry here when using ejabberd.
+ In this case the transport will do the logging.
+ -->
+
+ <log id='elogger'>
+ <host/>
+ <logtype/>
+ <format>%d: [%t] (%h): %s</format>
+ <file>/var/log/jabber/yahoo-transport-2-error.log</file>
+ <stderr/>
+ </log>
+
+ <!--
+ ejabberd do not provide XDB services.
+ xdb_file.so is loaded in to handle all XDB requests.
+ -->
+
+ <xdb id="xdb">
+ <host/>
+ <load>
+ <xdb_file>/usr/local/lib/jabber/libjabberdxdbfile.so</xdb_file>
+ </load>
+ <xdb_file xmlns="jabber:config:xdb_file">
+ <spool><jabberd:cmdline flag='s'>/var/spool/jabber</jabberd:cmdline></spool>
+ </xdb_file>
+ </xdb>
+
+ <!--
+ Make sure that all host names here are resolveable via DNS if you
+ want the transport to be available to the public.
+ -->
+
+ <service id="yahoo.SERVER.COM">
+ <!-- yahoo-transport-2 configuration. -->
+ <config xmlns="jabber:config:yahoo">
+ <vCard>
+ <NAME>Yahoo! Transport</NAME>
+ <FN>vCard not implemented in current version</FN>
+ <DESC>This is the Yahoo! transport.</DESC>
+ <MAIL>EMAIL@ADDRESS.COM</MAIL>
+ <URL>http://yahoo-transport-2.jabberstudio.org/</URL>
+ </vCard>
+ <instructions>Fill in your YAHOO! Messenger username and password to register on this transport.</instructions>
+ <server>scs.msg.yahoo.com</server>
+ <port>5050</port>
+ <!--
+ The character map. This provides character set translation from UTF-8
+ to the indicated character map. See the man page for 'iconv' for available
+ character maps on your platform. CP1252 is the standard Windows character
+ set.
+ -->
+ <charmap>CP1252</charmap>
+ <!--
+ When this element exists, the transport will send new mail notifications as
+ well as a count of unread messages when the user initially logs in.
+ -->
+ <newmail/>
+ </config>
+ <!-- yahoo-transport-2 module. -->
+ <load>
+ <yahoo_transport>/usr/local/lib/jabber/yahoo-transport-2.so</yahoo_transport>
+ </load>
+ </service>
+
+ <!--
+ The settings below have to match the settings you made
+ in your ejabberd.cfg configuration file.
+ -->
+
+ <service id="yahoo-linker">
+ <uplink/>
+ <connect>
+ <ip>127.0.0.1</ip>
+ <port>5236</port>
+ <secret>SECRET</secret>
+ </connect>
+ </service>
+
+ <pidfile>/var/run/jabber/yahoo-transport-2.pid</pidfile>
+
+</jabber>
diff --git a/examples/transport-configs/init-scripts/aim-transport b/examples/transport-configs/init-scripts/aim-transport
new file mode 100755
index 000000000..e13d6572f
--- /dev/null
+++ b/examples/transport-configs/init-scripts/aim-transport
@@ -0,0 +1,45 @@
+#!/bin/sh
+#########################################################
+#
+# aim-transport -- script to start aim-transport.
+#
+#########################################################
+
+DAEMON=/usr/local/sbin/jabberd-aim-transport
+CONF=/etc/jabber/aim-transport.xml
+NAME=jabberd-aim-transport
+HOME=/etc/jabber/
+USER=ejabberd
+
+#########################################################
+
+if [ "`/usr/bin/whoami`" != "$USER" ]; then
+
+ echo "You need to be" $USER "user to run this script."
+ exit 1
+fi
+
+case "$1" in
+ debug)
+ test -f $DAEMON -a -f $CONF || exit 0
+ echo "Starting $NAME in debugging mode."
+ $DAEMON -D -H $HOME -c $CONF &
+ ;;
+ start)
+ test -f $DAEMON -a -f $CONF || exit 0
+ echo "Starting $NAME."
+ $DAEMON -H $HOME -c $CONF &
+ ;;
+ stop)
+ echo "Stopping $NAME."
+ killall $NAME &
+ ;;
+ restart|reload)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {debug|start|stop|restart}"
+ exit 1
+esac
diff --git a/examples/transport-configs/init-scripts/ile b/examples/transport-configs/init-scripts/ile
new file mode 100755
index 000000000..a1e072f2c
--- /dev/null
+++ b/examples/transport-configs/init-scripts/ile
@@ -0,0 +1,43 @@
+#!/bin/sh
+#########################################################
+#
+# ile -- script to start ILE.
+#
+#########################################################
+
+DAEMON=/usr/local/sbin/ile.pl
+NAME=ile.pl
+CONF=/etc/jabber/ile.xml
+USER=ejabberd
+
+#########################################################
+
+if [ "`/usr/bin/whoami`" != "$USER" ]; then
+
+ echo "You need to be" $USER "user to run this script."
+ exit 1
+fi
+
+case "$1" in
+ debug)
+ echo "Not implemented yet. Starting in normal mode"
+ $0 start
+ ;;
+ start)
+ test -f $DAEMON || exit 0
+ echo "Starting $NAME."
+ $DAEMON $CONF &
+ ;;
+ stop)
+ echo "Stopping $NAME."
+ killall $NAME &
+ ;;
+ restart|reload)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {debug|start|stop|status|restart}"
+ exit 1
+esac
diff --git a/examples/transport-configs/init-scripts/jabber-gg-transport b/examples/transport-configs/init-scripts/jabber-gg-transport
new file mode 100755
index 000000000..17718fb93
--- /dev/null
+++ b/examples/transport-configs/init-scripts/jabber-gg-transport
@@ -0,0 +1,48 @@
+#!/bin/sh
+#########################################################
+#
+# jabber-gg-transport -- script to start jabber-gg-transport.
+#
+#########################################################
+
+DAEMON=/usr/local/sbin/jggtrans
+CONF=/etc/jabber/jabber-gg-transport.xml
+NAME=jggtrans
+HOME=/etc/jabber/
+USER=ejabberd
+
+#########################################################
+
+if [ "`/usr/bin/whoami`" != "$USER" ]; then
+
+ echo "You need to be" $USER "user to run this script."
+ exit 1
+fi
+
+case "$1" in
+ debug)
+ test -f $DAEMON -a -f $CONF || exit 0
+ echo "Starting $NAME in debugging mode."
+ $DAEMON -D -H $HOME -c $CONF &
+ ;;
+ start)
+ test -f $DAEMON -a -f $CONF || exit 0
+ echo "Starting $NAME."
+ $DAEMON $CONF &
+ ;;
+ stop)
+ echo "Stopping $NAME."
+ killall $NAME &
+# BUG REPORTEN hiervoor: bij afsluiten blijft telkens PID-bestand achter
+ rm $HOME/../../../var/run/jabber/jabber-gg-transport.pid
+ ;;
+
+ restart|reload)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {debug|start|stop|restart}"
+ exit 1
+esac
diff --git a/examples/transport-configs/init-scripts/jit b/examples/transport-configs/init-scripts/jit
new file mode 100755
index 000000000..55e000ee8
--- /dev/null
+++ b/examples/transport-configs/init-scripts/jit
@@ -0,0 +1,45 @@
+#!/bin/sh
+#########################################################
+#
+# jit -- script to start JIT.
+#
+#########################################################
+
+DAEMON=/usr/local/sbin/wpjabber-jit
+CONF=/etc/jabber/jit.xml
+NAME=wpjabber-jit
+HOME=/etc/jabber/
+USER=ejabberd
+
+#########################################################
+
+if [ "`/usr/bin/whoami`" != "$USER" ]; then
+
+ echo "You need to be" $USER "user to run this script."
+ exit 1
+fi
+
+case "$1" in
+ debug)
+ test -f $DAEMON -a -f $CONF || exit 0
+ echo "Starting $NAME in debugging mode."
+ $DAEMON -D -H $HOME -c $CONF &
+ ;;
+ start)
+ test -f $DAEMON -a -f $CONF || exit 0
+ echo "Starting $NAME."
+ $DAEMON -H $HOME -c $CONF &
+ ;;
+ stop)
+ echo "Stopping $NAME."
+ killall $NAME &
+ ;;
+ restart|reload)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {debug|start|stop|restart}"
+ exit 1
+esac
diff --git a/examples/transport-configs/init-scripts/msn-transport b/examples/transport-configs/init-scripts/msn-transport
new file mode 100755
index 000000000..555ba2b0f
--- /dev/null
+++ b/examples/transport-configs/init-scripts/msn-transport
@@ -0,0 +1,50 @@
+#!/bin/sh
+#########################################################
+#
+# msn-transport -- script to start MSN Transport.
+#
+#########################################################
+
+DAEMON=/usr/local/sbin/jabberd-msn-transport
+CONF=/etc/jabber/msn-transport.xml
+NAME=jabberd-msn-transport
+HOME=/etc/jabber/
+USER=ejabberd
+
+#########################################################
+
+if [ "`/usr/bin/whoami`" != "$USER" ]; then
+
+ echo "You need to be" $USER "user to run this script."
+ exit 1
+fi
+
+case "$1" in
+ strace)
+ test -f $DAEMON -a -f $CONF || exit 0
+ echo "Starting $NAME in strace mode."
+ strace -o /opt/ejabberd/var/log/jabber/strace.log $DAEMON -H $HOME -c $CONF &
+ ;;
+ debug)
+ test -f $DAEMON -a -f $CONF || exit 0
+ echo "Starting $NAME in debugging mode."
+ $DAEMON -D -H $HOME -c $CONF &
+ ;;
+ start)
+ test -f $DAEMON -a -f $CONF || exit 0
+ echo "Starting $NAME."
+ $DAEMON -H $HOME -c $CONF &
+ ;;
+ stop)
+ echo "Stopping $NAME."
+ killall $NAME &
+ ;;
+ restart|reload)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {debug|start|stop|restart}"
+ exit 1
+esac
diff --git a/examples/transport-configs/init-scripts/yahoo-transport-2 b/examples/transport-configs/init-scripts/yahoo-transport-2
new file mode 100755
index 000000000..fde78a913
--- /dev/null
+++ b/examples/transport-configs/init-scripts/yahoo-transport-2
@@ -0,0 +1,45 @@
+#!/bin/sh
+##############################################################
+#
+# yahoo-transport-2 -- script to start Yahoo-transport-2.
+#
+#############################################################
+
+DAEMON=/usr/local/sbin/jabberd-yahoo-transport-2
+CONF=/etc/jabber/yahoo-transport-2.xml
+NAME=jabberd-yahoo-transport-2
+HOME=/etc/jabber/
+USER=ejabberd
+
+#############################################################
+
+if [ "`/usr/bin/whoami`" != "$USER" ]; then
+
+ echo "You need to be" $USER "user to run this script."
+ exit 1
+fi
+
+case "$1" in
+ debug)
+ test -f $DAEMON -a -f $CONF || exit 0
+ echo "Starting $NAME in debugging mode."
+ $DAEMON -D -H $HOME -c $CONF &
+ ;;
+ start)
+ test -f $DAEMON -a -f $CONF || exit 0
+ echo "Starting $NAME."
+ $DAEMON -H $HOME -c $CONF &
+ ;;
+ stop)
+ echo "Stopping $NAME."
+ killall $NAME &
+ ;;
+ restart|reload)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {debug|start|stop|restart}"
+ exit 1
+esac