summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-01-19 13:26:55 +0000
committerLennart Poettering <lennart@poettering.net>2004-01-19 13:26:55 +0000
commite4c3dc5c0d1dc9cdd47fdb4ffb1ac49b9b768e5b (patch)
tree1517947448ad0dc962770f5636efb1a520ded994 /doc
parent2db4e16e39a91180dae55014176b20efa0b0c686 (diff)
prelimernary documentation
git-svn-id: file:///home/lennart/svn/public/ivam2/trunk@42 dbf6933d-3bce-0310-9bcc-ed052ba35b35
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am21
-rw-r--r--doc/README13
-rw-r--r--doc/README.html.in212
-rw-r--r--doc/style.css32
4 files changed, 262 insertions, 16 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 34fa300..8a8f63f 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,5 +1,5 @@
# $Id$
-#
+
# This file is part of ivam2.
#
# ivam2 is free software; you can redistribute it and/or modify it
@@ -16,6 +16,21 @@
# along with ivam2; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-pkgdata_DATA = README.VoiceBox
+noinst_DATA = README.html README
+EXTRA_DIST = $(noinst_DATA) style.css README.html.in README.VoiceBox REQUIREMENTS TODO
+
+MAINTAINERCLEANFILES = README README.html
+CLEANFILES =
+
+if USE_LYNX
+README: README.html
+ lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' > $@
+
+CLEANFILES += README
+endif
+
+tidy: README.html
+ tidy -e < README.html
+
+.PHONY: tidy
-EXTRA_DIST = README README.VoiceBox TODO REQUIREMENTS
diff --git a/doc/README b/doc/README
deleted file mode 100644
index 65f09a2..0000000
--- a/doc/README
+++ /dev/null
@@ -1,13 +0,0 @@
-Not much yet
-
-Quick installation HOWTO:
-
- - Install the requirements
- - ./configure && make && make install in the ivam directory
- - create a user and a group "ivam"
- - create a directory /var/spool/ivam2 and make "ivam:ivam" the owner of that directory
- - edit /etc/ivam2/msntab
- - create some links in /etc/rc?.d for the ivam2 init script
- - reboot or run "/etc/init.d/ivam2 start"
-
-$Id$
diff --git a/doc/README.html.in b/doc/README.html.in
new file mode 100644
index 0000000..1128784
--- /dev/null
+++ b/doc/README.html.in
@@ -0,0 +1,212 @@
+<?xml version="1.0" encoding="iso-8859-1"?> <!-- -*-html-helper-*- -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+<title>ivam2 @PACKAGE_VERSION@</title>
+<link rel="stylesheet" type="text/css" href="style.css" />
+</head>
+
+<body>
+<h1><a name="top">ivam2 @PACKAGE_VERSION@</a></h1>
+
+<p><i>Copyright 2003,2004 Lennart Poettering &lt;@PACKAGE_BUGREPORT@&gt;</i></p>
+
+<ul class="toc">
+ <li><a href="#license">License</a></li>
+ <li><a href="#news">News</a></li>
+ <li><a href="#overview">Overview</a></li>
+ <li><a href="#status">Status</a></li>
+ <li><a href="#documentation">Documentation</a></li>
+ <li><a href="#requirements">Requirements</a></li>
+ <li><a href="#installation">Installation</a></li>
+ <li><a href="#acks">Acknowledgements</a></li>
+ <li><a href="#download">Download</a></li>
+</ul>
+
+<h2><a name="license">License</a></h2>
+
+<p>This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License as
+published by the Free Software Foundation; either version 2 of the
+License, or (at your option) any later version.</p>
+
+<p>This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.</p>
+
+<p>You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</p>
+
+<h2><a name="news">News</a></h2>
+
+<div class="news-date">Sun Jan 11 2004: </div>
+
+<p class="news-text"><a href="@PACKAGE_URL@ivam2-0.1.tar.gz">Version 0.1</a> released, the initial release</p>
+
+<h2><a name="overview">Overview</a></h2>
+
+<p><tt>ivam2</tt> is an automatic phone answering machine software for ISDN
+and Linux. It is the completely rewritten successor of <a
+href="http://ivam.sf.net/">ivam</a> featuring many additions.</p>
+
+<p><tt>ivam2</tt> is seperated in two parts: the core daemon written
+in C and the automate logic coded in <a
+href="http://www.python.org/">Python</a>. The latter is pluggable and
+may be replaced by different implementations on a per phone number
+basis (both caller and callee). This makes <tt>ivam2</tt> a very
+powerful application server for telephony services. The software is
+very scalable, multiple ISDN channels may be controlled from a single
+daemon. To write telephony applications for <tt>ivam2</tt> is not
+complicated. In fact, they are simple executables which read audio
+data of the caller from STDIN and write audio data for the caller to
+STDOUT. DTMF sequences may be read from a FIFO special file. A
+framework for writing telephony applications in Python is provided, a
+simple answering machine script based on this framework as well. You
+are free to write applications in other languages such as Perl or
+C.</p>
+
+<h2><a name="status">Status</a></h2>
+
+<p>Version @PACKAGE_VERSION@ is more or less stable and feature complete.</p>
+
+<h2><a name="documentation">Documentation</a></h2>
+
+<p>Have a look on the man pages <a href="@PACKAGE_URL@ivamd.8.xml"><tt>ivamd(8)</tt></a>, <a href="@PACKAGE_URL@ivam2.conf.xml"><tt>ivam2.conf(5)</tt></a>, <a href="@PACKAGE_URL@msntab"><tt>msntab(5)</tt></a>, <a href="@PACKAGE_URL@ivam-autobox.1.xml"><tt>ivam-autobox(1)</tt></a>, <a href="@PACKAGE_URL@ivam-voicebox.1.xml"><tt>ivam-voicebox(1)</tt></a>, <a href="@PACKAGE_URL@ivam-echo.1.xml"><tt>ivam-echo(1)</tt></a>, <a href="@PACKAGE_URL@ivam-play.1.xml"><tt>ivam-play(1)</tt></a>, <a href="@PACKAGE_URL@ivam-createvb.1.xml"><tt>ivam-createvb(1)</tt></a>, <a href="@PACKAGE_URL@ivam-spool.1.xml"><tt>ivam-spool(5)</tt></a>. (An XSLT capable browser is required)</p>
+
+<p>The core daemon <tt>ivamd</tt> is configured through both the
+command line arguments and the file <tt>msntab</tt>. The latter
+specifies which telephony application to start for which caller/callee
+pairs. An example:</p>
+
+<pre>47110816 * defaults @ignore
+47110815 12345678 defaults @hangup
+47110815 87654321 rings=2 ivam-play /path/to/an/ulaw/file.ulaw.gz
+47110815 47110815 rings=0,pipehack ivam-autobox
+47110815 * rings=8,pipehack ivam-autobox
+</pre>
+
+<p>This configuration can be explained as follows: all calls to the
+local phone number 47110816 are ignored. Calls to the local phone
+number 47110815 are dispatched as follows: if the caller is 87654321,
+he will listen to a static message after two rings. If someone is
+calling the local number from the same number he enters the voice box
+system immediately. All other callers will be dispatched to the voice
+box system after eight rings.</p>
+
+<p>For more information on this configuration file see the manual page <a href="@PACKAGE_URL@msntab.5.xml"><tt>msntab(5)</tt></a>.</p>
+
+<p>The one and only audio format <tt>ivam2</tt> uses is 8 bit uLaw at
+8000Hz. Audio files stored on harddisk are raw sample data without any
+header information. You are free to compress the audio files with
+<tt>gzip</tt> to save some bytes. You can create these files by
+recording them with a telephone and <a
+href="http://0pointer.de/lennart/projects/ivcall/"><tt>ivcall</tt></a>.</p>
+
+<p>Another way to create these files is by using <tt>sox</tt> to convert standard <tt>.wav</tt> files:</p>
+
+<pre>sox foo.wav -t raw -U -b -r 8000 welcome.ulaw</pre>
+
+<p>The distribution of <tt>ivam2</tt> comes with four telephony applications:</p>
+
+<ul>
+ <li><tt>ivam-echo</tt> is a simple (shell) script which writes all incoming
+ audio data back to the caller. This may be used for testing or latency
+ measuring purposes. Internally this is not much more than a simple
+ call to <tt>/bin/cat</tt>.</li>
+
+ <li><tt>ivam-play</tt> is a simple (shell) script which plays the
+ contents of a <tt>.ulaw(.gz)</tt> file to the caller.</li>
+
+ <li><tt>ivam-voicebox</tt> is a voice box application based on the
+ Python framework described above. Audio files are saved in a special
+ spool directory, by default
+ <tt>/var/spool/ivam2/[VOICEBOXNAME]</tt>. Many voice boxes may
+ coexist on the same system and configured individually. The voice
+ box supports recording of messages for unauthenticated users and
+ playback and deletion of messages for authenticates
+ users. Authentication is based on an arbitrary length PIN. When a
+ new voice message arrives a mail (including an Ogg Vorbis encoded version
+ of the voice messages) is sent to the owner of the voice
+ box.</li>
+
+ <li><tt>ivam-autobox</tt> is a more capable version of
+ <tt>ivam-voicebox</tt>. Internally both applications use the same
+ logic. <tt>ivam-autobox</tt> is able to create spool directories
+ <i>on-the-fly</i>. If a phone call to a local phone number has no
+ existent voice box assigned one is automatically created and the
+ administrator is notified.</li>
+
+</ul>
+
+<p>Have a look on the respective manual pages for more information on
+these applications.</p>
+
+<p>The default audio samples for <tt>ivam-voicebox</tt> and
+<tt>ivam-autobox</tt> are in german language as this is my native
+tongue. You probably want to replace them with messages in your own
+language. (<i>I am interested in adding high quality english language
+samples to the distribution. If you are a native speaker and think
+that you are capable of creating them, feel free to contact me.</i>)
+Have a look on the manual page <a
+href="@PACKAGE_URL@ivam-spool.5.xml"><tt>ivam-spool(5)</tt></a> for
+more information how to change the audio samples.</p>
+
+<h2><a name="requirements">Requirements</a></h2>
+
+<p>A current Linux kernel with <a
+href="http://www.isdn4linux.de/">isdn4linux</a> and a compatible and
+configured (active or passive) ISDN card is required.</p>
+
+<p><tt>ivam2</tt> relies on a current version of <a
+href="http://www.python.org/">Python</a>. It was developed on Python
+2.3, but there are user reports that it works on Python 2.2 without
+changes.</p>
+
+<p><tt>ivam2</tt> needs <a
+href="http://0pointer.de/lennart/projects/libdaemon/"><tt>libdaemon</tt></a> (>= 0.4)
+and <a href="http://www.liboop.org/"><tt>liboop</tt></a> (>= 1.0).</p>
+
+<p>If you plan to use the message notification feature of
+<tt>ivam2</tt> you need <tt>metamail</tt>, <tt>sox</tt> and <tt>oggenc</tt>
+installed on the local system.</p>
+
+<h2><a name="installation">Installation</a></h2>
+
+<p>As this package is made with the GNU <tt>autotools</tt> you should
+run <tt>./configure</tt> inside the distribution directory for
+configuring the source tree. After that you should run <tt>make</tt>
+for compilation and <tt>make install</tt> (as root) for installation
+of <tt>ivam2</tt>. A SysV compatible init script is installed to your
+init directory.</p>
+
+<p>After installation of the executables you need to create an user
+<tt>ivam</tt> and a matching group <tt>ivam</tt>. The spool directory
+(by default <tt>/var/spool/ivam2</tt>) has to be created and must be
+owned by <tt>ivam:ivam</tt>.</p>
+
+<p>You should edit the configuration file <tt>msntab</tt> to enable
+the telephony services you want to use.</p>
+
+
+<h2><a name="acks">Acknowledgements</a></h2>
+
+<p>Wolfram Schlich for many suggestions and beta testing.</p>
+
+<h2><a name="download">Download</a></h2>
+
+<p>The newest release is always available from <a href="@PACKAGE_URL@">@PACKAGE_URL@</a></p>
+
+<p>The current release is <a href="@PACKAGE_URL@ivam2-@PACKAGE_VERSION@.tar.gz">@PACKAGE_VERSION@</a></p>
+
+<p>Get <tt>ivam2</tt>'s development sources from the <a href="http://subversion.tigris.org/">Subversion</a> <a href="https://seth.intheinter.net:8081/svn/ivam2/">repository</a>.</p>
+
+<hr/>
+<address class="grey">Lennart Poettering &lt;@PACKAGE_BUGREPORT@&gt;, January 2004</address>
+
+<div class="grey"><i>$Id$</i></div>
+
+</body>
+</html>
diff --git a/doc/style.css b/doc/style.css
new file mode 100644
index 0000000..59f2ec6
--- /dev/null
+++ b/doc/style.css
@@ -0,0 +1,32 @@
+/* $Id$ */
+
+/***
+ * This file is part of ivam2.
+ *
+ * ivam2 is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * ivam2 is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with ivam2; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ ***/
+
+body { color: black; background-color: white; margin: 0.5cm; }
+a:link, a:visited { color: #900000; }
+p { margin-left: 0.5cm; margin-right: 0.5cm; }
+div.news-date { margin-left: 0.5cm; font-size: 80%; color: #4f0000; }
+p.news-text { margin-left: 1cm; }
+h1 { color: #00009F; }
+h2 { color: #00009F; }
+h3 { color: #00004F; margin-left: 0.5cm; }
+ul { margin-left: .5cm; }
+ol { margin-left: .5cm; }
+pre { margin-left: .5cm; background-color: #f0f0f0; padding: 0.4cm;}
+.grey { color: #afafaf; }