Hi all, again sorry for my English. I have a problem with vbox that I cannot solve. I tried earlier and did get a little further. But: I still get an error in the vboxgetty*.log files that there is a "General TCL problem line 40" It isn't actually line 40 because line 40 is this if { "$vbox_flag_record" == "TRUE" } { I presume that line 40 just starts here and all that follows is still line 40 until the last "}" The problem must be in the vboxmail script that I use. Funny thing is that if I call it directly it works, but it won't from the tcl script. Here's the vboxmail script I use #! /bin/sh # vboxmime zum Anhaengen der Audio Datei im # Sun-Audio Format # PATH="${PATH}:/usr/bin/:/usr/local/bin" BASENAME="`basename $0`" SAMPLE="${1}" CALLER="${2}" NUMBER="${3}" MAILTO="${4}" if [ "${MAILTO}" = "" ] then echo "${BASENAME}: Can't find email address to mail message." exit fi if (test -f "${SAMPLE}") then vboxtoau <${SAMPLE} >/tmp/vbox.au /usr/bin/sox -v5 /tmp/vbox.au /tmp/vbox.wav (MIMEBOUNDARY="NextPart$$" echo "MIME-Version: 1.0" echo "Content-type: Multipart/Mixed; Boundary=\"$MIMEBOUNDARY\"" echo "to: ${MAILTO}" echo "from: vbox" echo "Subject: Oproep van ${NUMBER} (${CALLER})" echo "" echo "--$MIMEBOUNDARY" echo "Content-type: text/plain; charset=US-ASCII" echo "" echo "Bericht op antwoordapparaat" vboxmode $SAMPLE echo "" echo "--$MIMEBOUNDARY" echo "Content-type: audio/x-wav; name=vbox.wav" echo "Content-description: Audio-file (wav)" echo "Content-Transfer-Encoding: base64" echo "Content-Disposition: attachment; filename=vbox.wav" echo "" recode data..base64 /tmp/vbox.wav cat /tmp/vbox.wav 2>/dev/null echo "" echo "" echo "--$MIMEBOUNDARY--" ) | 2>&1 sendmail -fvbox -i $MAILTO fi #end When I comment out the line in the standard.tcl script exec -- $vbox_var_bindir/vboxmail "$VBOX_NEW_MESSAGE" "$vbox_caller_name" "$vbox_caller_id" _ "$vbox_user_name" then there is no more error message. Nor is there an error message when I use the vboxmail script. So I conclude it must be the vboxmail script that I use. But if I call the script directly i.e. vboxmail vboxmessagefile test testnumber username it works fine So what can I do to get the script working from the TCL-script. Anybody?
Jeroen, it seems to me we both have the same problem. Have you ever tried this: Comment following line in vboxmail: # vboxtoau <${SAMPLE} >/tmp/vbox.au Now vboxgetty should'nt stop anymore (but you can't listen to the soundfile becaus it hasnt been converted) Try this: Remove the comment in vboxmail, but put an & at the end of the exec lini in standard.tcl: exec -- $vbox_var_bindir/vboxmail "$VBOX_NEW_MESSAGE" "$vbox_caller_name" "$vbox_caller_id" _ "$vbox_user_name" & Now you get - a converted file delivered as mail - vboxgetty doesn't stop BUT: - vboxmail creates a zombie. This is the point wher I am at the end with my know how... Thats why I asked for any known problems with vboxtoau. Could you do me a faivour and send me any news you get directely regarding this problem? I'll also keep you updated. Rgds Horst
-----Original Message----- From: Jeroen Verstegen [mailto:jeroen@jota.nl] Sent: Tuesday, February 06, 2001 3:52 PM To: suse-isdn Subject: [suse-isdn] Vbox still has problems
Hi all,
again sorry for my English.
I have a problem with vbox that I cannot solve. I tried earlier and did get a little further. But: I still get an error in the vboxgetty*.log files that there is a "General TCL problem line 40" ...
participants (2)
-
Horst Laubenbach
-
Jeroen Verstegen