Hallo an alle! Nachdem ich mir schon lange einmal vbox vornehmen wollte, habe ich nun die entsprechenden Scripte geändert, damit mir die Nachrichten als MP3 per eMail zugeschickt werden. Folgende Programme werden benötigt bzw. müssen installiert sein: - isdn4linux (mit der CAPI4Linux ThePenguin.de-Edition gehts auch mit der CAPI) - sox (ist bei SuSE 7.2 schon dabei) - Lame (neueste Version kann hier geladen werden: http://www.sulaco.org/mp3/download/download.html; Die Binary wird in /usr/local/bin erwartet) Für Interessierte hier nun die entsprechenden Zeilen:
--- /usr/vboxmail ---< #! /bin/sh ## ## vboxmail v2.0.0BETA5 (17-NOV-98) ## ## Changed for mail delivering by ## Julian Pawlowski 08/22/01,
MSNAME="${1}" CALLER="${2}" CALLID="${3}" MAILTO="${4}" SPOOLDIR="${5}" SAVENAME="${6}" if (test -f "${MSNAME}") then /usr/bin/vboxtoau < ${SPOOLDIR}/incoming/${SAVENAME} \ > /tmp/${SAVENAME}.au /usr/bin/sox /tmp/${SAVENAME}.au /tmp/${SAVENAME}.wav /usr/local/bin/lame -m m -b 32 -f /tmp/${SAVENAME}.wav \ /tmp/${SAVENAME}.mp3 datum=`date | cut -d' ' -f1,2,3,4,7` uhrzeit=`date | cut -d' ' -f5,6` (echo "From: JP solution ServerSystem < root >" echo "To: Empfaenger < ${MAILTO} >" echo "Subject: [JPserver] Neue Nachricht von ${CALLER} (${CALLID})" echo "Mime-Version: 1.0" echo "Content-Type: Multipart/Mixed; Boundary=\"audio/x-mp3\"" echo "Content-Transfer-Encoding: 7bit" echo "" echo "This is a multi-part message in MIME format." echo "" echo "--audio/x-mp3" echo "Content-Type: text/plain;" echo "charset=\"us-ascii\"" echo "Hallo ${MAILTO}," echo "" echo "Es hat jemand eine Nachricht für Dich hinterlassen:" /usr/bin/vboxmode $MSNAME echo "" echo " Have a nice day..." echo "" echo "--audio/x-mp3" echo "Content-Type: audio/x-mp3; name=\"$SAVENAME.mp3\"" echo "Content-Description: Nachricht" echo "Content-Transfer-Encoding: base64" echo "Content-Disposition: attachment; filename=\"$SAVENAME.mp3\"" echo "" mimencode /tmp/$SAVENAME.mp3 echo "--audio/x-mp3--") | sendmail -t rm /tmp/$SAVENAME.* rm $MSNAME fi
--- ENDE ---<
--- /var/spool/vbox/user/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" \ "$vbox_var_spooldir" "$vbox_var_savename" if { "$RC" == "HANGUP" } { return } if { "$RC" == "TIMEOUT" } { vbox_put_message $vbox_msg_timeout vbox_pause 500 } }
--- ENDE ---<
Gruß Julian