Content
With vbox version 2.0, tcl can be used as a script language to act on incoming calls.
Incoming calls are still taken by vboxgetty, but further actions are made by the tcl script.
Tcl commands for vboxgetty
With vbox version 2.0, tcl can be used as a script language to act on incoming calls.
Incoming calls are still taken by vboxgetty, but further actions are made by the tcl script.
These are additional variables supplied by vboxgetty.
vbox_var_bindirdirectory with vbox commands.
vbox_var_savenamename for this message to save. The name is constructed from time and process id. It's a good idea to use this name, but you can also use a different name.
vbox_var_rectimemaximum seconds to record.
vbox_var_spooldirpath of the users spool directory (/var/spool/vbox/<user>).
vbox_var_checknewpath for new files (/var/spool/vbox/<user>/incoming).
vbox_msg_standardfilename with full path of the message to play as the standard message (/var/spool/vbox/<user>/messages/standard.msg).
vbox_msg_beepfilename with full path of the message to play as beep (/var/spool/vbox/<user>/messages/beep.msg).
vbox_msg_timeoutfilename with full path of the message to play after a timeout (/var/spool/vbox/<user>/messages/timeout.msg).
vbox_caller_idCALLERID of current caller. If unknown, this is "0".
vbox_caller_phonefull phone number of current caller. If unknown, this is "*** Unknown ***".
vbox_caller_namename of current caller. If unknown, this is "*** Unknown ***".
vbox_user_namename of the user that runs this vboxgetty.
vbox_user_homehome directory of the user that runs this vboxgetty.
vbox_flag_standardthis is TRUE if the script should play the standard message, and FALSE if the script should not.
vbox_flag_beepthis is TRUE if the script should play the beep message, and FALSE if the script should not.
vbox_flag_timeoutthis is TRUE if the script should play the timeout message, and FALSE if the script should not.
vbox_flag_recordthis is TRUE if the script should record a message, and FALSE if the script should not.
vboxgetty also provides some additional functions to the user.
Most functions will use these return codes:
An error occurred.
The connection was ended. Script should end now.
The whole message was played, nothing occurred.
Any other error code is a touchtone sequence, that was detected during playing the message.
With this command you can control which touchtone sequences vboxgetty will recognize.
Touchtone sequences have the format *NUMBER#, where NUMBER is a sequence of the characters 0-9 and A-D. Even single numbers must be given in the format *NUMBER#. Vboxgetty detects if the caller gives a number as a single digit or as a part of a sequence.
Add a touchtone sequence to breaklist. You can add up to 8 sequences at one time.
Remove a touchtone sequence from breaklist. You can remove up to 8 sequences at one time. You can use all to remove all sequences.
Play a message and returns an error code depending on the reason to stop playing. Default return codes.
messagefull name of the message file (with path).
Records a message. Default return codes. Options are:
savenamefull name of the file for saving the message.
timelimitmaximum time to record the message.
Waits for several seconds for an input from caller. Default return codes. Options are:
secondstime to wait.
vbox_init_touchtonesClears vboxgetty touchtone sequence. Normal way is to append all new touchtones to the sequence, the sequence is only cleared when a "*" touchtone is received.
waits a specific number of milliseconds.
msnumber of milliseconds to wait.
Return the number of new messages in the directory.
messageboxthe directory to scan
Return the number of messages in the directory.
messageboxthe directory to scan
12 releases since Debian 2.0 (Hamm); the text changed 5 times.