1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>raccess4vbox3 - Configuration</title>
</head>
<body>
<a href="http://smarden.org/pape/">G. Pape</a><br>
<a href="http://smarden.org/pape/vbox3/">vbox3</a><br>
<a href="index.html">raccess4vbox3</a>
<hr>
<h1>raccess4vbox3 - Configuration</h1>
<hr>
Path names may be wrong.
<p>
Choose a user to run a
<a href=http://smarden.org/pape/vbox3/>vbox3</a>
voice box (e.g. '<tt>phone</tt>').
<p>
Become <tt>root</tt> and create a spool directory for the user:
<pre>
$ su
# mkdir /var/spool/vbox/phone
# chown phone /var/spool/vbox/phone
</pre>
Choose at least one ttyI to run a vboxgetty (<tt>ttyI4</tt>).
<p>
Choose at least one MSN to run a voice box (<tt>791357914</tt> and
<tt>791357915</tt>).
<p>
Edit <tt>/etc/isdn/vbox/vboxgetty.conf</tt> and put Your MSNs into the
value of <tt>initnumber</tt> in section <tt>VBOXGETTY-TTY</tt> like
this (see <tt>ttyI(4)</tt>, AT commands <tt>&E</tt> and <tt>&L</tt>):
<pre>
[VBOXGETTY-TTY]
init = ATZ&B512
initnumber = AT&L791357914;791357915
</pre>
Add a section for each MSN like this:
<pre>
[VBOXGETTY-PHONE-791357914]
user = phone
group = phone
umask = 0077
hdspace = 5000000
</pre>
Start the <tt>vboxgetty</tt>:
<ul>
<li>
I recommend using
<a href=http://cr.yp.to/daemontools.html>daemontools</a>
to run <tt>vboxgetties</tt>, if You have them installed, add the account
for running the <i>multilog</i> processes ('<tt>vboxlog</tt>'), change
permissions and link the service directory
<pre>
# useradd vboxlog
# chown -R vboxlog /etc/isdn/vbox/vboxgetty-ttyI?/log/main
# ln -s /etc/isdn/vbox/vboxgetty-ttyI4 /service/
</pre>
Wait max 5 seconds for the service to start and check the log:
<pre>
# less /service/vboxgetty-ttyI4/log/main/current
</pre>
<li>
If You do not use
<a href=http://cr.yp.to/daemontools.html>daemontools</a>,
add a line to
<tt>/etc/inittab</tt> like this one:
<pre>
# cat >> /etc/inittab <<EOT
I4:2345:respawn:vboxgetty -d /dev/ttyI4 -x FULL
EOT
</pre>
and
<pre>
# kill -HUP 1
</pre>
Check the log:
<pre>
# less /var/log/vboxgetty-ttyI4.log
</pre>
</ul>
As user running this voice box change to Your spool directory:
<pre>
$ su - phone
$ cd /var/spool/vbox/phone
</pre>
and copy all files from the <tt>skel</tt>-directory:
<pre>
$ cp -pr /usr/share/isdn/vbox/skel/* .
</pre>
Change permissions and edit <tt>raccess/answeringmachine</tt> to change
the PIN to run remote access mode (<tt>*1910#</tt>)
<pre>
$ chmod 600 raccess/answeringmachine
$ vi raccess/answeringmachine
</pre>
Try out Your
<a href=http://smarden.org/pape/vbox3/>vbox3</a>
voice box.
<p>
Take a look at the configuration files in Your spool directory. You
can edit them now or later for individual configuration. You can put
Your own <tt>standard.ulaw</tt> and <tt>beep.ulaw</tt> and other
messages in <tt>msg/</tt> now or later.
<p>
See <a href="configfiles.html">Configuration files</a> for more information
about the configuration files of <i>raccess4vbox3</i>.
<hr>
<address>
<a href="mailto:pape@smarden.org">Gerrit Pape <pape@smarden.org></a>
</address>
<small><tt>$Id: configuration.html,v 1.9 2002/03/03 08:36:17 pape Exp $</tt></small>
</body>
</html>
|