vbox

Post Reply
Message
Author
Linuxglider

vbox

#1 Post by Linuxglider »

Hallo,
kann mir jemand helfen vbox zum laufen zu bekommen?
Mein System ist ne Mandrake8.1 mit funktionierender
Isdn Fritzcard PCI.
Die zugehörigen Programme zu vbox sind wohl schon von
Mandrake mit installiert worden.
Habe nur erstmal messages und user Verzeichnis angelegt.
in der Config habe ich den Demo Namen geändert.
Wie geht es jetzt weiter und vor allem kann man das ganze
unter Mdk überhaupt realisieren denn internet geht nur mit
rootpasswort (beschissenes rechtesystem auf isdn), würde mir
aber notfalls auch reichen wenn ich es nur als root aufrufen
kann.
Gruss
Olaf

gewitter
Posts: 1354
Joined: 09. Apr 2001 9:03

Re: vbox

#2 Post by gewitter »

im verzeichnis /etc/vbox fogende dateien anlegen:
vboxd.conf:
# Login access list
#
# All hosts in the login access list (begins with 'L') are checked at
# login (server startup) time. If access is 'yes' the host can login
# and count messages without special access.

L:localhost:Y
L:*:N

# Full access list
#
# All hosts in the full access list (begins with 'A') are checked if the
# server gets the 'login' command.

A:localhost:RW:user1:xxx:/var/spool/vbox/user1:incoming
A:localhost:RW:user2:xxx:/var/spool/vbox/user2:incoming

A:*:!:!:!:!:!
# end of vboxd.conf

vboxgetty.conf:
#--------------------------------------------------------------------------
# This is a example for 'vboxgetty.conf'. Please read the documentation for
# a complete description of the commands!
#--------------------------------------------------------------------------

# Global settings for all ports

compression adpcm-4
umask 077
badinitsexit 10
dropdtrtime 400
initpause 2500
commandtimeout 4
echotimeout 4
ringtimeout 6
alivetimeout 1800
freespace 2000000
debuglevel FEWIDJ

# Settings for port ttyI6

port /dev/ttyI6
modeminit ATZ&B512&E_msn1_
user user1
group users
spooldir /var/spool/vbox/user1


# Settings for port ttyI7

port /dev/ttyI7
modeminit ATZ&B512&E_msn2_
user user2
group users
spooldir /var/spool/vbox/user2

# end of vboxgetty.conf

in /etc/inittab muss der dienst angeschaltet werden:
ergänze folgende zeilen:

# vbox (voice box) getty
I6:35:respawn:/usr/sbin/vboxgetty -d /dev/ttyI6
I7:35:respawn:/usr/sbin/vboxgetty -d /dev/ttyI7
# end of addition

in dem verzeichnis /var/spool/vbox/user* folgende dateien anlegen:

standard.tcl:
# First we clear the touchtone sequences and remove all entries from
# the callerid breaklist.

vbox_init_touchtones

vbox_breaklist rem all

# If variable VBOX_FLAG_STANDARD is TRUE we must play the standard
# message...

if { "$vbox_flag_standard" == "TRUE" } {

set RC [ vbox_put_message $vbox_msg_standard ]

vbox_pause 500

if { "$RC" == "HANGUP" } {
return
}
}

# If variable VBOX_FLAG_BEEP is TRUE we must play the beep
# message...

if { "$vbox_flag_beep" == "TRUE" } {

set RC [ vbox_put_message $vbox_msg_beep ]

vbox_pause 500

if { "$RC" == "HANGUP" } {
return
}
}

# If variable VBOX_FLAG_RECORD is TRUE we must record a new
# message...

if { "$vbox_flag_record" == "TRUE" } {

set VBOX_NEW_MESSAGE "$vbox_var_spooldir/incoming/$vbox_var_savename"

set RC [ vbox_get_message $VBOX_NEW_MESSAGE $vbox_var_rectime ]

vbox_pause 1000

exec -- $vbox_var_bindir/vboxmail "$VBOX_NEW_MESSAGE" "$vbox_caller_name" "$vbox_caller_id" "$vbox_user_name"

if { "$RC" == "HANGUP" } {
return
}

if { "$RC" == "TIMEOUT" } {

vbox_put_message $vbox_msg_timeout

vbox_pause 500
}
}
# end of standard.tcl

vbox.conf:
# CALLERIDS
#
# Format: PATTERN SECTION REALNAME

[CALLERIDS]

9317850413 STANDARD-OWNER Michael Herold
9317830022 - Nicole Sauvage
* - *** Unknown ***


# RINGS
#
# Format: TIME DAYS RINGS

[RINGS]

23:30-23:59,00:00-08:59 * 1
* * 6


# [USERSECTIONS]
#
# Format: TIME DAYS STANDARD RECTIME [FLAG] [...]

[STANDARD]

20:15-22:14 DO user.msg 60 RINGS=1
* * user.msg 90 RINGS=8 TOLLRINGS=6

[STANDARD-OWNER]

* * standard.msg 120 RINGS=99

# end of vbox.conf

im verzeichnis /var/spool/vbox/user* müssen folgende verzeichnisse sein:

incoming:
speichert die eingehenden messages

messages:
darin liegen die messages:
standard.msg, beep.msg, timeout.msg und in dem fall user*.msg.
standard.msg und user*.msg enthalten die ansagen.

fehlen tut jetzt noch /var/log/vbox, ein verzeichnis um die isdn-modem-logs aufzunehmen. ein kill -HUP 1 müsste nun den dienst starten können. abweichungen kann es in der konfiguration geben, dann liegen die dateien von /etc/vbox unter /etc

Post Reply